bpmax-cli 0.2.1-beta.9 → 0.2.1-beta.90
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.
- package/README.md +30 -7
- package/dist/bin.js +45185 -12834
- package/dist/bin.js.map +1 -1
- package/package.json +12 -5
- package/scripts/install-skills.mjs +27 -60
- package/scripts/run-source-cli.mjs +145 -0
- package/skills/bpmax-ai-taskbook/SKILL.md +17 -1
- package/skills/bpmax-ai-taskbook/references/blueprint-taskbook-gates.md +141 -0
- package/skills/bpmax-ai-taskbook/references/taskbook-template.md +43 -3
- package/skills/bpmax-api-platform-editor/SKILL.md +24 -31
- package/skills/bpmax-api-platform-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-api-platform-editor/references/platform-api-map.md +2 -2
- package/skills/bpmax-api-platform-editor/references/runtime-workflow.md +3 -3
- package/skills/bpmax-approval-matrix/SKILL.md +54 -2
- package/skills/bpmax-blueprint-doc-workflow/SKILL.md +38 -5
- package/skills/bpmax-blueprint-doc-workflow/references/blueprint-structure.md +24 -8
- package/skills/bpmax-blueprint-doc-workflow/references/business-language.md +74 -0
- package/skills/bpmax-blueprint-doc-workflow/references/per-flow-required-structure.md +13 -0
- package/skills/bpmax-blueprint-doc-workflow/references/review-and-confirmation-dialogue.md +70 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-modeling-review.xml +23 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-review-record.xml +72 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-paragraph-flow-details.xml +27 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-pass.xml +59 -35
- package/skills/bpmax-blueprint-doc-workflow/references/sample-system-identifier.xml +79 -0
- package/skills/bpmax-blueprint-doc-workflow/references/source-traceability-and-flow-modeling.md +115 -0
- package/skills/bpmax-blueprint-doc-workflow/scripts/lint_blueprint_doc.py +586 -5
- package/skills/bpmax-bug-reporting/SKILL.md +72 -0
- package/skills/bpmax-builder-shared/SKILL.md +1 -0
- package/skills/bpmax-builder-shared/configuration-impact-review.md +76 -0
- package/skills/bpmax-builder-shared/template_script_hard_rules.py +3 -1
- package/skills/bpmax-builder-shared/tests/test_template_script_hard_rules.py +16 -0
- package/skills/bpmax-business-skill/SKILL.md +3 -1
- package/skills/bpmax-cli/SKILL.md +46 -0
- package/skills/bpmax-config-latest/SKILL.md +4 -0
- package/skills/bpmax-console-template-editor/SKILL.md +113 -523
- package/skills/bpmax-console-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-console-template-editor/references/full-detail-guide.md +45 -0
- package/skills/bpmax-console-template-editor/references/local-temp-workflow.md +13 -12
- package/skills/bpmax-console-template-editor/scripts/console_template_editor_common.py +299 -78
- package/skills/bpmax-console-template-editor/tests/test_console_template_editor.py +344 -30
- package/skills/bpmax-dataset-field-template-editor/SKILL.md +131 -594
- package/skills/bpmax-dataset-field-template-editor/references/full-detail-guide.md +570 -0
- package/skills/bpmax-dataset-field-template-editor/references/nested-field-patterns.md +8 -8
- package/skills/bpmax-dataset-field-template-editor/references/runtime-verified-field-page-shape.md +1 -1
- package/skills/bpmax-dataset-field-template-editor/scripts/dataset_field_editor_common.py +11 -77
- package/skills/bpmax-dataset-field-template-editor/scripts/export_dataset_field.py +4 -57
- package/skills/bpmax-dataset-field-template-editor/scripts/init_create_dataset_field.py +2 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/inspect_dataset_field_runtime.py +4 -78
- package/skills/bpmax-dataset-field-template-editor/scripts/submit_dataset_field.py +3 -89
- package/skills/bpmax-dataset-field-template-editor/tests/test_dataset_field_editor.py +14 -0
- package/skills/bpmax-dataset-field-template-editor/tests/test_init_create_dataset_field.py +2 -0
- package/skills/bpmax-dataset-template-editor/SKILL.md +123 -778
- package/skills/bpmax-dataset-template-editor/references/dataset-script-runtime-matrix.md +11 -0
- package/skills/bpmax-dataset-template-editor/references/full-detail-guide.md +753 -0
- package/skills/bpmax-dataset-template-editor/references/runtime-gotchas.md +12 -0
- package/skills/bpmax-dataset-template-editor/references/ui-to-backend-field-map.md +1 -0
- package/skills/bpmax-dataset-template-editor/references/work-file-to-submit-mapping.md +2 -2
- package/skills/bpmax-dataset-template-editor/scripts/basic_table_audit.py +8 -1
- package/skills/bpmax-dataset-template-editor/scripts/dataset_editor_common.py +9 -90
- package/skills/bpmax-dataset-template-editor/scripts/export_dataset.py +8 -1
- package/skills/bpmax-dataset-template-editor/scripts/resolve_dataset.py +8 -1
- package/skills/bpmax-dataset-template-editor/scripts/submit_dataset.py +1 -2
- package/skills/bpmax-dataset-template-editor/scripts/verify_dataset_list.py +8 -1
- package/skills/bpmax-dataset-template-editor/scripts/verify_publish_health.py +8 -1
- package/skills/bpmax-dataset-template-editor/tests/test_dataset_editor.py +6 -40
- package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +18 -4
- package/skills/bpmax-e2e-flow-config-orchestrator/agents/openai.yaml +2 -2
- package/skills/bpmax-e2e-flow-config-orchestrator/references/orchestration-matrix.md +13 -9
- package/skills/bpmax-e2e-flow-test-operator/SKILL.md +174 -546
- package/skills/bpmax-e2e-flow-test-operator/agents/openai.yaml +2 -3
- package/skills/bpmax-e2e-flow-test-operator/references/ai-test-suite.md +181 -15
- package/skills/bpmax-e2e-flow-test-operator/references/browser-action-dsl.md +169 -0
- package/skills/bpmax-e2e-flow-test-operator/references/browser-only-checkpoints.md +15 -7
- package/skills/bpmax-e2e-flow-test-operator/references/full-detail-guide.md +589 -0
- package/skills/bpmax-e2e-flow-test-operator/references/minimal-test-loop.md +12 -8
- package/skills/bpmax-e2e-flow-test-operator/references/negative-sale-api-matrix.md +4 -4
- package/skills/bpmax-e2e-flow-test-operator/references/profile-schema.md +1 -1
- package/skills/bpmax-e2e-flow-test-operator/references/state-schema.md +3 -1
- package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_doc.py +7 -5
- package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_state.py +2 -2
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_runner.py +5 -1
- package/skills/bpmax-e2e-flow-test-operator/tests/test_negative_sale_api_tools.py +71 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/SKILL.md +64 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/agents/openai.yaml +7 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/automation-generation-pipeline.md +33 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/autonomous-execution.md +40 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/batch-generation-and-execution.md +17 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/browser-action-runner.md +19 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/browser-recording-and-replay.md +95 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/form-script-generation.md +41 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/identity-and-failure-routing.md +92 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/multi-request-mutation.md +9 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/scenario-coverage-generation.md +17 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/scoped-execution.md +13 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/step-restartability-and-state.md +23 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/test-assets-and-evidence.md +9 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/test-data-and-selector-contract.md +51 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/test-preflight-and-confirmation.md +32 -0
- package/skills/bpmax-filter-template-editor/SKILL.md +114 -551
- package/skills/bpmax-filter-template-editor/references/experience-coverage-matrix.md +18 -18
- package/skills/bpmax-filter-template-editor/references/filter-content-schema.md +21 -0
- package/skills/bpmax-filter-template-editor/references/filter-request-shape.md +29 -26
- package/skills/bpmax-filter-template-editor/references/filter-runtime-patterns.md +19 -2
- package/skills/bpmax-filter-template-editor/references/full-detail-guide.md +56 -0
- package/skills/bpmax-filter-template-editor/references/runtime-verified-filter-page-shape.md +10 -9
- package/skills/bpmax-filter-template-editor/scripts/filter_template_editor_common.py +7 -57
- package/skills/bpmax-filter-template-editor/tests/test_filter_template_editor.py +4 -48
- package/skills/bpmax-flow/SKILL.md +2 -0
- package/skills/bpmax-flow-detail-template-editor/SKILL.md +53 -0
- package/skills/bpmax-flow-template-editor/SKILL.md +132 -1137
- package/skills/bpmax-flow-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-flow-template-editor/references/diff-strategy.md +3 -3
- package/skills/bpmax-flow-template-editor/references/editor-runtime-vs-draft.md +9 -9
- package/skills/bpmax-flow-template-editor/references/flow-template-api-workflow.md +2 -1
- package/skills/bpmax-flow-template-editor/references/full-detail-guide.md +1162 -0
- package/skills/bpmax-flow-template-editor/references/local-temp-workflow.md +1 -1
- package/skills/bpmax-flow-template-editor/references/message-card-professional-standard.md +234 -0
- package/skills/bpmax-flow-template-editor/references/payload-checklist.md +2 -0
- package/skills/bpmax-flow-template-editor/references/project-create-runtime-gotchas.md +17 -0
- package/skills/bpmax-flow-template-editor/references/requirement-to-node-mapping.md +8 -3
- package/skills/bpmax-flow-template-editor/references/runtime-verified-flow-detail-shape.md +7 -7
- package/skills/bpmax-flow-template-editor/references/runtime-verified-meta-fields.md +2 -2
- package/skills/bpmax-flow-template-editor/references/runtime-verified-node-fields.md +12 -2
- package/skills/bpmax-flow-template-editor/references/save-draft-request-shape.md +7 -23
- package/skills/bpmax-flow-template-editor/references/script-review-hard-rules.md +17 -0
- package/skills/bpmax-flow-template-editor/references/work-file-to-submit-mapping.md +1 -1
- package/skills/bpmax-flow-template-editor/tests/test_flow_template_editor.py +19 -75
- package/skills/bpmax-form-template-editor/SKILL.md +138 -1151
- package/skills/bpmax-form-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-form-template-editor/references/dynamic-field-state.md +167 -0
- package/skills/bpmax-form-template-editor/references/form-template-api-workflow.md +51 -51
- package/skills/bpmax-form-template-editor/references/full-detail-guide.md +1115 -0
- package/skills/bpmax-form-template-editor/references/local-temp-workflow.md +4 -4
- package/skills/bpmax-form-template-editor/references/payload-checklist.md +3 -1
- package/skills/bpmax-form-template-editor/references/sub-form-patterns.md +6 -0
- package/skills/bpmax-form-template-editor/scripts/form_template_editor_common.py +8 -0
- package/skills/bpmax-form-template-editor/tests/test_form_template_editor.py +42 -19
- package/skills/bpmax-functional-test-design/LICENSE.upstream +24 -0
- package/skills/bpmax-functional-test-design/SKILL.md +80 -0
- package/skills/bpmax-functional-test-design/agents/openai.yaml +4 -0
- package/skills/bpmax-functional-test-design/references/bpmax-test-suite-output.md +95 -0
- package/skills/bpmax-functional-test-design/references/decision-table-testing.md +50 -0
- package/skills/bpmax-functional-test-design/references/domain-testing.md +43 -0
- package/skills/bpmax-functional-test-design/references/state-transition-testing.md +47 -0
- package/skills/bpmax-functional-test-design/references/technique-selection.md +38 -0
- package/skills/bpmax-functional-test-design/references/use-case-testing.md +55 -0
- package/skills/bpmax-group-model-editor/SKILL.md +24 -0
- package/skills/bpmax-home-portal-editor/SKILL.md +81 -0
- package/skills/bpmax-icon-catalog/SKILL.md +18 -0
- package/skills/bpmax-icon-catalog/agents/openai.yaml +4 -0
- package/skills/bpmax-icon-catalog/assets/ri-icons.json +3140 -0
- package/skills/bpmax-icon-catalog/references/source-contract.md +3 -0
- package/skills/bpmax-list-template-editor/SKILL.md +133 -466
- package/skills/bpmax-list-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-list-template-editor/references/content-config-shape.md +16 -4
- package/skills/bpmax-list-template-editor/references/full-detail-guide.md +461 -0
- package/skills/bpmax-list-template-editor/references/list-template-api-workflow.md +6 -9
- package/skills/bpmax-list-template-editor/references/local-temp-workflow.md +1 -1
- package/skills/bpmax-list-template-editor/references/runtime-verified-workflow.md +50 -2
- package/skills/bpmax-list-template-editor/references/special-formats.md +5 -2
- package/skills/bpmax-list-template-editor/scripts/list_template_editor_common.py +9 -78
- package/skills/bpmax-memory-protocol/SKILL.md +7 -6
- package/skills/bpmax-nav-config-editor/SKILL.md +14 -17
- package/skills/bpmax-nav-config-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-nav-config-editor/references/api-workflow.md +2 -2
- package/skills/bpmax-nav-config-editor/references/runtime-probing.md +11 -12
- package/skills/bpmax-page-composition-template-editor/SKILL.md +398 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/catalog.json +41 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/full-capability-workbench.json +294 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/project-detail-step-panel.json +184 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/project-list-quick-process.json +177 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/project-operations-dashboard.json +400 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/project-operations-visual-light.json +214 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/step-related-projects.json +184 -0
- package/skills/bpmax-page-composition-template-editor/references/resource-api.md +9 -0
- package/skills/bpmax-plugin-config/SKILL.md +55 -5
- package/skills/bpmax-project/SKILL.md +37 -1
- package/skills/bpmax-project-detail-template-editor/SKILL.md +13 -39
- package/skills/bpmax-project-detail-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-role-editor/SKILL.md +11 -30
- package/skills/bpmax-shared/SKILL.md +19 -9
- package/skills/bpmax-team-editor/SKILL.md +27 -0
- package/skills/bpmax-ui-ux-audit/LICENSE.upstream +23 -0
- package/skills/bpmax-ui-ux-audit/SKILL.md +42 -0
- package/skills/bpmax-ui-ux-audit/agents/openai.yaml +4 -0
- package/skills/bpmax-ui-ux-audit/references/audit-framework.md +39 -0
- package/skills/bpmax-ui-ux-audit/references/bpmax-ux-findings.md +56 -0
- package/skills/bpmax-user/SKILL.md +33 -1
- package/skills/bpmax-user-mock-operator/SKILL.md +58 -56
- package/skills/bpmax-user-mock-operator/agents/openai.yaml +2 -2
- package/skills/bpmax-user-mock-operator/scripts/chrome_identity_bridge.mjs +1766 -0
- package/skills/bpmax-user-model-editor/SKILL.md +24 -0
- package/skills/bpmax-workspace-editor/SKILL.md +1 -0
- package/skills/form-control-library/references/form-template-submit-schema.md +3 -1
- package/skills/bpmax-user-mock-operator/scripts/switch_user_identity.py +0 -37
- package/skills/bpmax-user-mock-operator/scripts/user_mock_operator_common.py +0 -136
- package/skills/bpmax-user-mock-operator/tests/test_user_mock_operator.py +0 -138
|
@@ -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
|
+
}
|