bpmax-cli 0.2.1-beta.74 → 0.2.1-beta.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,294 @@
1
+ {
2
+ "name": "全能力组合工作台",
3
+ "key": "page.composition.full-capability-workbench",
4
+ "intro": "",
5
+ "template": {
6
+ "version": 1,
7
+ "entry": {
8
+ "kind": "custom"
9
+ },
10
+ "contexts": {
11
+ "selectedProject": {
12
+ "source": "selected-row"
13
+ },
14
+ "currentStep": {
15
+ "source": "selectedProject",
16
+ "resolver": "current-step"
17
+ }
18
+ },
19
+ "data": {
20
+ "queries": {
21
+ "projects": {
22
+ "engine": "es",
23
+ "resource": "/project/list",
24
+ "method": "POST",
25
+ "params": {
26
+ "data_set_key": "main",
27
+ "page": 1,
28
+ "page_size": 20,
29
+ "with_step": 1
30
+ }
31
+ }
32
+ },
33
+ "methods": {},
34
+ "actions": {
35
+ "resolveCurrentStep": {
36
+ "capability": "step.quick-process",
37
+ "schema": {
38
+ "required": [
39
+ "projectId"
40
+ ],
41
+ "properties": {
42
+ "projectId": {
43
+ "type": "number"
44
+ }
45
+ }
46
+ }
47
+ },
48
+ "submitStep": {
49
+ "capability": "step.operation",
50
+ "previewOnly": true,
51
+ "action": "approve",
52
+ "schema": {
53
+ "required": [
54
+ "projectId",
55
+ "stepId"
56
+ ],
57
+ "properties": {
58
+ "projectId": {
59
+ "type": "number"
60
+ },
61
+ "stepId": {
62
+ "type": "number"
63
+ },
64
+ "comments": {
65
+ "type": "string"
66
+ }
67
+ }
68
+ },
69
+ "refresh": [
70
+ "projects"
71
+ ]
72
+ },
73
+ "createProject": {
74
+ "capability": "project.create",
75
+ "previewOnly": true,
76
+ "action": "create",
77
+ "schema": {
78
+ "required": [
79
+ "name"
80
+ ],
81
+ "properties": {
82
+ "name": {
83
+ "type": "string"
84
+ }
85
+ }
86
+ },
87
+ "refresh": [
88
+ "projects"
89
+ ]
90
+ },
91
+ "updateProject": {
92
+ "capability": "project.form",
93
+ "previewOnly": true,
94
+ "action": "update",
95
+ "schema": {
96
+ "required": [
97
+ "projectId",
98
+ "name"
99
+ ],
100
+ "properties": {
101
+ "projectId": {
102
+ "type": "number"
103
+ },
104
+ "name": {
105
+ "type": "string"
106
+ }
107
+ }
108
+ },
109
+ "refresh": [
110
+ "projects"
111
+ ]
112
+ },
113
+ "exportProjects": {
114
+ "capability": "project.export",
115
+ "previewOnly": true,
116
+ "action": "export",
117
+ "schema": {
118
+ "required": [
119
+ "projectIds"
120
+ ],
121
+ "properties": {
122
+ "projectIds": {
123
+ "type": "array"
124
+ }
125
+ }
126
+ }
127
+ },
128
+ "bulkEditProjects": {
129
+ "capability": "project.bulk-edit",
130
+ "previewOnly": true,
131
+ "action": "bulk-edit",
132
+ "schema": {
133
+ "required": [
134
+ "projectIds",
135
+ "status"
136
+ ],
137
+ "properties": {
138
+ "projectIds": {
139
+ "type": "array"
140
+ },
141
+ "status": {
142
+ "type": "string"
143
+ }
144
+ }
145
+ },
146
+ "refresh": [
147
+ "projects"
148
+ ]
149
+ }
150
+ }
151
+ },
152
+ "render": {
153
+ "template": "<section class=\"composition-shell\">\n <header class=\"composition-header\">\n <div>\n <p class=\"composition-eyebrow\">PAGE COMPOSITION</p>\n <h1>{{ template.name || '跨页面组合' }}</h1>\n <p>{{ template.intro || '由页面上下文和公开业务能力组合而成。' }}</p>\n </div>\n <button type=\"button\" class=\"composition-refresh\" :disabled=\"dashboardRefreshing\" @click=\"refreshAll\">\n {{ dashboardRefreshing ? '刷新中…' : '刷新数据' }}\n </button>\n </header>\n <div v-if=\"runtimeError\" class=\"composition-alert\" role=\"alert\">{{ runtimeError }}</div>\n <section v-for=\"(block, index) in blocks\" :key=\"block.type + '-' + index\" class=\"composition-section\">\n <div class=\"composition-section-heading\">\n <h2>{{ block.title || block.type }}</h2>\n <span>{{ block.capability || '' }}</span>\n </div>\n <page-block\n :block=\"block\"\n :block-index=\"index\"\n :rows=\"block.paginated ? paginatedProjectRows : queryRows(block.query || 'projects')\"\n :selected-project=\"selectedProject\"\n :current-step=\"currentStep\"\n :draft-comment=\"draftComment\"\n :action-busy=\"actionBusy\"\n :filter-status=\"filterStatus\"\n :filter-keyword=\"filterKeyword\"\n :status-options=\"statusOptions\"\n :pagination-page=\"paginationPage\"\n :pagination-page-size=\"paginationPageSize\"\n :project-count=\"projectCount\"\n :selected-project-ids=\"selectedProjectIds\"\n :step-logs=\"stepLogs\"\n :attachment-drafts=\"attachmentDrafts\"\n :report-metrics=\"dashboardMetrics\"\n @select-project=\"selectProject\"\n @select-step=\"selectStep\"\n @open-quick-process=\"openQuickProcess\"\n @load-project-detail=\"loadProjectDetail\"\n @submit-step=\"submitStep\"\n @update-comment=\"draftComment = $event\"\n @set-filter-status=\"filterStatus = $event\"\n @set-filter-keyword=\"filterKeyword = $event\"\n @set-page=\"setPage\"\n @create-project=\"createProject\"\n @submit-project-form=\"submitProjectForm\"\n @export-projects=\"exportProjects\"\n @bulk-edit-projects=\"bulkEditProjects\"\n @add-attachment=\"addAttachment\"\n @selection-change=\"setSelectedProjectIds\"\n />\n </section>\n <div v-if=\"quickProcessVisible\" class=\"composition-dialog\" role=\"dialog\" aria-modal=\"true\">\n <div class=\"composition-dialog-panel\">\n <div class=\"composition-dialog-heading\"><h2>快速处理</h2><button type=\"button\" @click=\"clearSelection\">关闭</button></div>\n <p v-if=\"selectedProject\">{{ selectedProject.name || selectedProject.title || ('项目 ' + selectedProject.id) }}</p>\n <page-block\n v-for=\"(block, index) in blocks\"\n v-if=\"block.type === 'step-form' || block.type === 'step-operation'\"\n :key=\"'dialog-' + block.type + '-' + index\"\n :block=\"block\"\n :block-index=\"index\"\n :selected-project=\"selectedProject\"\n :current-step=\"currentStep\"\n :draft-comment=\"draftComment\"\n :action-busy=\"actionBusy\"\n :filter-status=\"filterStatus\"\n :filter-keyword=\"filterKeyword\"\n :status-options=\"statusOptions\"\n :pagination-page=\"paginationPage\"\n :pagination-page-size=\"paginationPageSize\"\n :project-count=\"projectCount\"\n :selected-project-ids=\"selectedProjectIds\"\n :step-logs=\"stepLogs\"\n :attachment-drafts=\"attachmentDrafts\"\n :report-metrics=\"dashboardMetrics\"\n @submit-step=\"submitStep\"\n @update-comment=\"draftComment = $event\"\n />\n </div>\n </div>\n</section>",
154
+ "style": ".composition-shell { min-height: 100%; padding: 24px 32px; background: #f5f7fa; color: #1f2937; }\n.composition-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 20px 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; }\n.composition-eyebrow { margin: 0; color: #2563eb; font-size: 11px; letter-spacing: .12em; font-weight: 700; }\n.composition-header h1 { margin: 6px 0; font-size: 24px; }\n.composition-header p:last-child { margin: 0; color: #64748b; }\n.composition-refresh, .composition-dialog-heading button { min-height: 40px; padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; cursor: pointer; }\n.composition-alert { margin-top: 16px; padding: 12px 16px; border: 1px solid #fecaca; border-radius: 8px; background: #fff1f2; color: #991b1b; }\n.composition-section { margin-top: 16px; padding: 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; }\n.composition-section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }\n.composition-section-heading h2 { margin: 0; font-size: 16px; }\n.composition-section-heading span { color: #64748b; font-size: 12px; }\n.composition-dialog { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: flex-end; background: rgba(15, 23, 42, .32); }\n.composition-dialog-panel { width: min(520px, 100vw); height: 100%; overflow: auto; box-sizing: border-box; padding: 24px; background: #fff; }\n.composition-dialog-heading { display: flex; justify-content: space-between; align-items: center; }\n.composition-dialog-heading h2 { margin: 0; }\n@media (max-width: 720px) { .composition-shell { padding: 16px; } .composition-header { flex-direction: column; } }",
155
+ "blocks": [
156
+ {
157
+ "type": "project-list",
158
+ "capability": "project.list",
159
+ "query": "projects",
160
+ "title": "项目列表能力"
161
+ },
162
+ {
163
+ "type": "project-filter",
164
+ "capability": "project.filter",
165
+ "title": "项目筛选"
166
+ },
167
+ {
168
+ "type": "project-table",
169
+ "capability": "project.table",
170
+ "query": "projects",
171
+ "selectable": true,
172
+ "title": "项目表格"
173
+ },
174
+ {
175
+ "type": "project-pagination",
176
+ "capability": "project.pagination",
177
+ "title": "项目分页"
178
+ },
179
+ {
180
+ "type": "project-detail",
181
+ "capability": "project.detail",
182
+ "context": "selectedProject",
183
+ "title": "项目详情"
184
+ },
185
+ {
186
+ "type": "project-detail-drawer",
187
+ "capability": "project.detail-drawer",
188
+ "context": "selectedProject",
189
+ "title": "项目详情抽屉"
190
+ },
191
+ {
192
+ "type": "project-form",
193
+ "capability": "project.form",
194
+ "action": "updateProject",
195
+ "title": "项目表单"
196
+ },
197
+ {
198
+ "type": "project-step-list",
199
+ "capability": "project.step-list",
200
+ "context": "selectedProject",
201
+ "title": "项目环节列表"
202
+ },
203
+ {
204
+ "type": "project-create",
205
+ "capability": "project.create",
206
+ "action": "createProject",
207
+ "title": "创建项目"
208
+ },
209
+ {
210
+ "type": "project-export",
211
+ "capability": "project.export",
212
+ "action": "exportProjects",
213
+ "title": "导出项目"
214
+ },
215
+ {
216
+ "type": "project-bulk-edit",
217
+ "capability": "project.bulk-edit",
218
+ "action": "bulkEditProjects",
219
+ "title": "批量编辑项目"
220
+ },
221
+ {
222
+ "type": "step-context",
223
+ "capability": "step.context",
224
+ "context": "currentStep",
225
+ "title": "环节上下文"
226
+ },
227
+ {
228
+ "type": "step-form",
229
+ "capability": "step.form",
230
+ "context": "currentStep",
231
+ "title": "环节表单"
232
+ },
233
+ {
234
+ "type": "step-operation",
235
+ "capability": "step.operation",
236
+ "action": "submitStep",
237
+ "title": "环节操作"
238
+ },
239
+ {
240
+ "type": "step-quick-process",
241
+ "capability": "step.quick-process",
242
+ "action": "submitStep",
243
+ "title": "快速处理"
244
+ },
245
+ {
246
+ "type": "step-comment",
247
+ "capability": "step.comment",
248
+ "context": "currentStep",
249
+ "title": "环节评论"
250
+ },
251
+ {
252
+ "type": "step-attachment",
253
+ "capability": "step.attachment",
254
+ "context": "currentStep",
255
+ "title": "环节附件"
256
+ },
257
+ {
258
+ "type": "step-log",
259
+ "capability": "step.log",
260
+ "context": "currentStep",
261
+ "title": "环节日志"
262
+ },
263
+ {
264
+ "type": "report-preview",
265
+ "capability": "report.preview",
266
+ "title": "报表预览"
267
+ }
268
+ ]
269
+ },
270
+ "dependencies": {
271
+ "capabilities": [
272
+ "project.list",
273
+ "project.filter",
274
+ "project.table",
275
+ "project.pagination",
276
+ "project.detail",
277
+ "project.detail-drawer",
278
+ "project.form",
279
+ "project.step-list",
280
+ "project.create",
281
+ "project.export",
282
+ "project.bulk-edit",
283
+ "step.context",
284
+ "step.form",
285
+ "step.operation",
286
+ "step.quick-process",
287
+ "step.comment",
288
+ "step.attachment",
289
+ "step.log",
290
+ "report.preview"
291
+ ]
292
+ }
293
+ }
294
+ }
@@ -0,0 +1,184 @@
1
+ {
2
+ "name": "项目详情环节处理",
3
+ "key": "project.detail.step-panel",
4
+ "intro": "",
5
+ "template": {
6
+ "version": 1,
7
+ "entry": {
8
+ "kind": "project-detail"
9
+ },
10
+ "contexts": {
11
+ "selectedProject": {
12
+ "source": "selected-row"
13
+ },
14
+ "currentStep": {
15
+ "source": "selectedProject",
16
+ "resolver": "current-step"
17
+ }
18
+ },
19
+ "data": {
20
+ "queries": {
21
+ "projects": {
22
+ "engine": "es",
23
+ "resource": "/project/list",
24
+ "method": "POST",
25
+ "params": {
26
+ "data_set_key": "main",
27
+ "page": 1,
28
+ "page_size": 20,
29
+ "with_step": 1
30
+ }
31
+ }
32
+ },
33
+ "methods": {},
34
+ "actions": {
35
+ "resolveCurrentStep": {
36
+ "capability": "step.quick-process",
37
+ "schema": {
38
+ "required": [
39
+ "projectId"
40
+ ],
41
+ "properties": {
42
+ "projectId": {
43
+ "type": "number"
44
+ }
45
+ }
46
+ }
47
+ },
48
+ "submitStep": {
49
+ "capability": "step.operation",
50
+ "previewOnly": true,
51
+ "action": "approve",
52
+ "schema": {
53
+ "required": [
54
+ "projectId",
55
+ "stepId"
56
+ ],
57
+ "properties": {
58
+ "projectId": {
59
+ "type": "number"
60
+ },
61
+ "stepId": {
62
+ "type": "number"
63
+ },
64
+ "comments": {
65
+ "type": "string"
66
+ }
67
+ }
68
+ },
69
+ "refresh": [
70
+ "projects"
71
+ ]
72
+ },
73
+ "createProject": {
74
+ "capability": "project.create",
75
+ "previewOnly": true,
76
+ "action": "create",
77
+ "schema": {
78
+ "required": [
79
+ "name"
80
+ ],
81
+ "properties": {
82
+ "name": {
83
+ "type": "string"
84
+ }
85
+ }
86
+ },
87
+ "refresh": [
88
+ "projects"
89
+ ]
90
+ },
91
+ "updateProject": {
92
+ "capability": "project.form",
93
+ "previewOnly": true,
94
+ "action": "update",
95
+ "schema": {
96
+ "required": [
97
+ "projectId",
98
+ "name"
99
+ ],
100
+ "properties": {
101
+ "projectId": {
102
+ "type": "number"
103
+ },
104
+ "name": {
105
+ "type": "string"
106
+ }
107
+ }
108
+ },
109
+ "refresh": [
110
+ "projects"
111
+ ]
112
+ },
113
+ "exportProjects": {
114
+ "capability": "project.export",
115
+ "previewOnly": true,
116
+ "action": "export",
117
+ "schema": {
118
+ "required": [
119
+ "projectIds"
120
+ ],
121
+ "properties": {
122
+ "projectIds": {
123
+ "type": "array"
124
+ }
125
+ }
126
+ }
127
+ },
128
+ "bulkEditProjects": {
129
+ "capability": "project.bulk-edit",
130
+ "previewOnly": true,
131
+ "action": "bulk-edit",
132
+ "schema": {
133
+ "required": [
134
+ "projectIds",
135
+ "status"
136
+ ],
137
+ "properties": {
138
+ "projectIds": {
139
+ "type": "array"
140
+ },
141
+ "status": {
142
+ "type": "string"
143
+ }
144
+ }
145
+ },
146
+ "refresh": [
147
+ "projects"
148
+ ]
149
+ }
150
+ }
151
+ },
152
+ "render": {
153
+ "template": "<section class=\"composition-shell\">\n <header class=\"composition-header\">\n <div>\n <p class=\"composition-eyebrow\">PAGE COMPOSITION</p>\n <h1>{{ template.name || '跨页面组合' }}</h1>\n <p>{{ template.intro || '由页面上下文和公开业务能力组合而成。' }}</p>\n </div>\n <button type=\"button\" class=\"composition-refresh\" :disabled=\"dashboardRefreshing\" @click=\"refreshAll\">\n {{ dashboardRefreshing ? '刷新中…' : '刷新数据' }}\n </button>\n </header>\n <div v-if=\"runtimeError\" class=\"composition-alert\" role=\"alert\">{{ runtimeError }}</div>\n <section v-for=\"(block, index) in blocks\" :key=\"block.type + '-' + index\" class=\"composition-section\">\n <div class=\"composition-section-heading\">\n <h2>{{ block.title || block.type }}</h2>\n <span>{{ block.capability || '' }}</span>\n </div>\n <page-block\n :block=\"block\"\n :block-index=\"index\"\n :rows=\"block.paginated ? paginatedProjectRows : queryRows(block.query || 'projects')\"\n :selected-project=\"selectedProject\"\n :current-step=\"currentStep\"\n :draft-comment=\"draftComment\"\n :action-busy=\"actionBusy\"\n :filter-status=\"filterStatus\"\n :filter-keyword=\"filterKeyword\"\n :status-options=\"statusOptions\"\n :pagination-page=\"paginationPage\"\n :pagination-page-size=\"paginationPageSize\"\n :project-count=\"projectCount\"\n :selected-project-ids=\"selectedProjectIds\"\n :step-logs=\"stepLogs\"\n :attachment-drafts=\"attachmentDrafts\"\n :report-metrics=\"dashboardMetrics\"\n @select-project=\"selectProject\"\n @select-step=\"selectStep\"\n @open-quick-process=\"openQuickProcess\"\n @load-project-detail=\"loadProjectDetail\"\n @submit-step=\"submitStep\"\n @update-comment=\"draftComment = $event\"\n @set-filter-status=\"filterStatus = $event\"\n @set-filter-keyword=\"filterKeyword = $event\"\n @set-page=\"setPage\"\n @create-project=\"createProject\"\n @submit-project-form=\"submitProjectForm\"\n @export-projects=\"exportProjects\"\n @bulk-edit-projects=\"bulkEditProjects\"\n @add-attachment=\"addAttachment\"\n @selection-change=\"setSelectedProjectIds\"\n />\n </section>\n <div v-if=\"quickProcessVisible\" class=\"composition-dialog\" role=\"dialog\" aria-modal=\"true\">\n <div class=\"composition-dialog-panel\">\n <div class=\"composition-dialog-heading\"><h2>快速处理</h2><button type=\"button\" @click=\"clearSelection\">关闭</button></div>\n <p v-if=\"selectedProject\">{{ selectedProject.name || selectedProject.title || ('项目 ' + selectedProject.id) }}</p>\n <page-block\n v-for=\"(block, index) in blocks\"\n v-if=\"block.type === 'step-form' || block.type === 'step-operation'\"\n :key=\"'dialog-' + block.type + '-' + index\"\n :block=\"block\"\n :block-index=\"index\"\n :selected-project=\"selectedProject\"\n :current-step=\"currentStep\"\n :draft-comment=\"draftComment\"\n :action-busy=\"actionBusy\"\n :filter-status=\"filterStatus\"\n :filter-keyword=\"filterKeyword\"\n :status-options=\"statusOptions\"\n :pagination-page=\"paginationPage\"\n :pagination-page-size=\"paginationPageSize\"\n :project-count=\"projectCount\"\n :selected-project-ids=\"selectedProjectIds\"\n :step-logs=\"stepLogs\"\n :attachment-drafts=\"attachmentDrafts\"\n :report-metrics=\"dashboardMetrics\"\n @submit-step=\"submitStep\"\n @update-comment=\"draftComment = $event\"\n />\n </div>\n </div>\n</section>",
154
+ "style": ".composition-shell { min-height: 100%; padding: 24px 32px; background: #f5f7fa; color: #1f2937; }\n.composition-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 20px 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; }\n.composition-eyebrow { margin: 0; color: #2563eb; font-size: 11px; letter-spacing: .12em; font-weight: 700; }\n.composition-header h1 { margin: 6px 0; font-size: 24px; }\n.composition-header p:last-child { margin: 0; color: #64748b; }\n.composition-refresh, .composition-dialog-heading button { min-height: 40px; padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; cursor: pointer; }\n.composition-alert { margin-top: 16px; padding: 12px 16px; border: 1px solid #fecaca; border-radius: 8px; background: #fff1f2; color: #991b1b; }\n.composition-section { margin-top: 16px; padding: 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; }\n.composition-section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }\n.composition-section-heading h2 { margin: 0; font-size: 16px; }\n.composition-section-heading span { color: #64748b; font-size: 12px; }\n.composition-dialog { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: flex-end; background: rgba(15, 23, 42, .32); }\n.composition-dialog-panel { width: min(520px, 100vw); height: 100%; overflow: auto; box-sizing: border-box; padding: 24px; background: #fff; }\n.composition-dialog-heading { display: flex; justify-content: space-between; align-items: center; }\n.composition-dialog-heading h2 { margin: 0; }\n@media (max-width: 720px) { .composition-shell { padding: 16px; } .composition-header { flex-direction: column; } }",
155
+ "blocks": [
156
+ {
157
+ "type": "project-detail",
158
+ "capability": "project.detail",
159
+ "context": "selectedProject",
160
+ "title": "项目详情"
161
+ },
162
+ {
163
+ "type": "step-form",
164
+ "capability": "step.form",
165
+ "context": "currentStep",
166
+ "title": "环节表单"
167
+ },
168
+ {
169
+ "type": "step-operation",
170
+ "capability": "step.operation",
171
+ "action": "submitStep",
172
+ "title": "环节操作"
173
+ }
174
+ ]
175
+ },
176
+ "dependencies": {
177
+ "capabilities": [
178
+ "project.detail",
179
+ "step.form",
180
+ "step.operation"
181
+ ]
182
+ }
183
+ }
184
+ }
@@ -0,0 +1,177 @@
1
+ {
2
+ "name": "项目列表快速处理",
3
+ "key": "project.list.quick-process",
4
+ "intro": "",
5
+ "template": {
6
+ "version": 1,
7
+ "entry": {
8
+ "kind": "project-list"
9
+ },
10
+ "contexts": {
11
+ "selectedProject": {
12
+ "source": "selected-row"
13
+ },
14
+ "currentStep": {
15
+ "source": "selectedProject",
16
+ "resolver": "current-step"
17
+ }
18
+ },
19
+ "data": {
20
+ "queries": {
21
+ "projects": {
22
+ "engine": "es",
23
+ "resource": "/project/list",
24
+ "method": "POST",
25
+ "params": {
26
+ "data_set_key": "main",
27
+ "page": 1,
28
+ "page_size": 20,
29
+ "with_step": 1
30
+ }
31
+ }
32
+ },
33
+ "methods": {},
34
+ "actions": {
35
+ "resolveCurrentStep": {
36
+ "capability": "step.quick-process",
37
+ "schema": {
38
+ "required": [
39
+ "projectId"
40
+ ],
41
+ "properties": {
42
+ "projectId": {
43
+ "type": "number"
44
+ }
45
+ }
46
+ }
47
+ },
48
+ "submitStep": {
49
+ "capability": "step.operation",
50
+ "previewOnly": true,
51
+ "action": "approve",
52
+ "schema": {
53
+ "required": [
54
+ "projectId",
55
+ "stepId"
56
+ ],
57
+ "properties": {
58
+ "projectId": {
59
+ "type": "number"
60
+ },
61
+ "stepId": {
62
+ "type": "number"
63
+ },
64
+ "comments": {
65
+ "type": "string"
66
+ }
67
+ }
68
+ },
69
+ "refresh": [
70
+ "projects"
71
+ ]
72
+ },
73
+ "createProject": {
74
+ "capability": "project.create",
75
+ "previewOnly": true,
76
+ "action": "create",
77
+ "schema": {
78
+ "required": [
79
+ "name"
80
+ ],
81
+ "properties": {
82
+ "name": {
83
+ "type": "string"
84
+ }
85
+ }
86
+ },
87
+ "refresh": [
88
+ "projects"
89
+ ]
90
+ },
91
+ "updateProject": {
92
+ "capability": "project.form",
93
+ "previewOnly": true,
94
+ "action": "update",
95
+ "schema": {
96
+ "required": [
97
+ "projectId",
98
+ "name"
99
+ ],
100
+ "properties": {
101
+ "projectId": {
102
+ "type": "number"
103
+ },
104
+ "name": {
105
+ "type": "string"
106
+ }
107
+ }
108
+ },
109
+ "refresh": [
110
+ "projects"
111
+ ]
112
+ },
113
+ "exportProjects": {
114
+ "capability": "project.export",
115
+ "previewOnly": true,
116
+ "action": "export",
117
+ "schema": {
118
+ "required": [
119
+ "projectIds"
120
+ ],
121
+ "properties": {
122
+ "projectIds": {
123
+ "type": "array"
124
+ }
125
+ }
126
+ }
127
+ },
128
+ "bulkEditProjects": {
129
+ "capability": "project.bulk-edit",
130
+ "previewOnly": true,
131
+ "action": "bulk-edit",
132
+ "schema": {
133
+ "required": [
134
+ "projectIds",
135
+ "status"
136
+ ],
137
+ "properties": {
138
+ "projectIds": {
139
+ "type": "array"
140
+ },
141
+ "status": {
142
+ "type": "string"
143
+ }
144
+ }
145
+ },
146
+ "refresh": [
147
+ "projects"
148
+ ]
149
+ }
150
+ }
151
+ },
152
+ "render": {
153
+ "template": "<section class=\"composition-shell\">\n <header class=\"composition-header\">\n <div>\n <p class=\"composition-eyebrow\">PAGE COMPOSITION</p>\n <h1>{{ template.name || '跨页面组合' }}</h1>\n <p>{{ template.intro || '由页面上下文和公开业务能力组合而成。' }}</p>\n </div>\n <button type=\"button\" class=\"composition-refresh\" :disabled=\"dashboardRefreshing\" @click=\"refreshAll\">\n {{ dashboardRefreshing ? '刷新中…' : '刷新数据' }}\n </button>\n </header>\n <div v-if=\"runtimeError\" class=\"composition-alert\" role=\"alert\">{{ runtimeError }}</div>\n <section v-for=\"(block, index) in blocks\" :key=\"block.type + '-' + index\" class=\"composition-section\">\n <div class=\"composition-section-heading\">\n <h2>{{ block.title || block.type }}</h2>\n <span>{{ block.capability || '' }}</span>\n </div>\n <page-block\n :block=\"block\"\n :block-index=\"index\"\n :rows=\"block.paginated ? paginatedProjectRows : queryRows(block.query || 'projects')\"\n :selected-project=\"selectedProject\"\n :current-step=\"currentStep\"\n :draft-comment=\"draftComment\"\n :action-busy=\"actionBusy\"\n :filter-status=\"filterStatus\"\n :filter-keyword=\"filterKeyword\"\n :status-options=\"statusOptions\"\n :pagination-page=\"paginationPage\"\n :pagination-page-size=\"paginationPageSize\"\n :project-count=\"projectCount\"\n :selected-project-ids=\"selectedProjectIds\"\n :step-logs=\"stepLogs\"\n :attachment-drafts=\"attachmentDrafts\"\n :report-metrics=\"dashboardMetrics\"\n @select-project=\"selectProject\"\n @select-step=\"selectStep\"\n @open-quick-process=\"openQuickProcess\"\n @load-project-detail=\"loadProjectDetail\"\n @submit-step=\"submitStep\"\n @update-comment=\"draftComment = $event\"\n @set-filter-status=\"filterStatus = $event\"\n @set-filter-keyword=\"filterKeyword = $event\"\n @set-page=\"setPage\"\n @create-project=\"createProject\"\n @submit-project-form=\"submitProjectForm\"\n @export-projects=\"exportProjects\"\n @bulk-edit-projects=\"bulkEditProjects\"\n @add-attachment=\"addAttachment\"\n @selection-change=\"setSelectedProjectIds\"\n />\n </section>\n <div v-if=\"quickProcessVisible\" class=\"composition-dialog\" role=\"dialog\" aria-modal=\"true\">\n <div class=\"composition-dialog-panel\">\n <div class=\"composition-dialog-heading\"><h2>快速处理</h2><button type=\"button\" @click=\"clearSelection\">关闭</button></div>\n <p v-if=\"selectedProject\">{{ selectedProject.name || selectedProject.title || ('项目 ' + selectedProject.id) }}</p>\n <page-block\n v-for=\"(block, index) in blocks\"\n v-if=\"block.type === 'step-form' || block.type === 'step-operation'\"\n :key=\"'dialog-' + block.type + '-' + index\"\n :block=\"block\"\n :block-index=\"index\"\n :selected-project=\"selectedProject\"\n :current-step=\"currentStep\"\n :draft-comment=\"draftComment\"\n :action-busy=\"actionBusy\"\n :filter-status=\"filterStatus\"\n :filter-keyword=\"filterKeyword\"\n :status-options=\"statusOptions\"\n :pagination-page=\"paginationPage\"\n :pagination-page-size=\"paginationPageSize\"\n :project-count=\"projectCount\"\n :selected-project-ids=\"selectedProjectIds\"\n :step-logs=\"stepLogs\"\n :attachment-drafts=\"attachmentDrafts\"\n :report-metrics=\"dashboardMetrics\"\n @submit-step=\"submitStep\"\n @update-comment=\"draftComment = $event\"\n />\n </div>\n </div>\n</section>",
154
+ "style": ".composition-shell { min-height: 100%; padding: 24px 32px; background: #f5f7fa; color: #1f2937; }\n.composition-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 20px 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; }\n.composition-eyebrow { margin: 0; color: #2563eb; font-size: 11px; letter-spacing: .12em; font-weight: 700; }\n.composition-header h1 { margin: 6px 0; font-size: 24px; }\n.composition-header p:last-child { margin: 0; color: #64748b; }\n.composition-refresh, .composition-dialog-heading button { min-height: 40px; padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; cursor: pointer; }\n.composition-alert { margin-top: 16px; padding: 12px 16px; border: 1px solid #fecaca; border-radius: 8px; background: #fff1f2; color: #991b1b; }\n.composition-section { margin-top: 16px; padding: 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; }\n.composition-section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }\n.composition-section-heading h2 { margin: 0; font-size: 16px; }\n.composition-section-heading span { color: #64748b; font-size: 12px; }\n.composition-dialog { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: flex-end; background: rgba(15, 23, 42, .32); }\n.composition-dialog-panel { width: min(520px, 100vw); height: 100%; overflow: auto; box-sizing: border-box; padding: 24px; background: #fff; }\n.composition-dialog-heading { display: flex; justify-content: space-between; align-items: center; }\n.composition-dialog-heading h2 { margin: 0; }\n@media (max-width: 720px) { .composition-shell { padding: 16px; } .composition-header { flex-direction: column; } }",
155
+ "blocks": [
156
+ {
157
+ "type": "project-table",
158
+ "capability": "project.table",
159
+ "query": "projects",
160
+ "title": "项目列表"
161
+ },
162
+ {
163
+ "type": "step-quick-process",
164
+ "capability": "step.quick-process",
165
+ "action": "submitStep",
166
+ "title": "快速处理"
167
+ }
168
+ ]
169
+ },
170
+ "dependencies": {
171
+ "capabilities": [
172
+ "project.table",
173
+ "step.quick-process"
174
+ ]
175
+ }
176
+ }
177
+ }