super-page-runtime 2.2.29-tmp1 → 2.2.29-tmp2
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/dist/es/_virtual/_plugin-vue_export-helper.js +7 -5
- package/dist/es/assets/chart-themes/theme1.js +6 -2
- package/dist/es/assets/chart-themes/theme2.js +6 -2
- package/dist/es/assets/chart-themes/theme3.js +6 -2
- package/dist/es/components/runtime/utils/api/api-util.js +7 -4
- package/dist/es/components/runtime/utils/api/page-expose-util.js +443 -135
- package/dist/es/components/runtime/utils/assemblys-config.js +369 -13
- package/dist/es/components/runtime/utils/barcode-util.js +33 -9
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +306 -122
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +68 -29
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +152 -69
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +124 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +99 -38
- package/dist/es/components/runtime/utils/charts/chart-util.js +522 -226
- package/dist/es/components/runtime/utils/common-util.js +156 -76
- package/dist/es/components/runtime/utils/eventBus.js +8 -3
- package/dist/es/components/runtime/utils/events/event-util.js +775 -362
- package/dist/es/components/runtime/utils/events/print-label.js +140 -73
- package/dist/es/components/runtime/utils/events/standard-event.js +2320 -820
- package/dist/es/components/runtime/utils/events/validator-util.js +560 -224
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +88 -28
- package/dist/es/components/runtime/utils/form/scan-util.js +162 -62
- package/dist/es/components/runtime/utils/global-refs.js +84 -53
- package/dist/es/components/runtime/utils/i18n-util.js +20 -11
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +7 -2
- package/dist/es/components/runtime/utils/page-helper-util.js +660 -280
- package/dist/es/components/runtime/utils/page-init-util.js +405 -144
- package/dist/es/components/runtime/utils/page-permission-util.js +531 -22
- package/dist/es/components/runtime/utils/page-store.js +68 -23
- package/dist/es/components/runtime/utils/store-util.js +13 -9
- package/dist/es/components/runtime/utils/store.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +81 -40
- package/dist/es/components/runtime/utils/tree-utils.js +37 -17
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +83 -21
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +46 -14
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +132 -36
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +18 -4
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +107 -17
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +198 -54
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +42 -12
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +60 -11
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +203 -54
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +162 -46
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +109 -33
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +166 -44
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +117 -33
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +118 -33
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +599 -253
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +42 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +62 -8
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +160 -29
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +62 -13
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +594 -213
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +139 -33
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +125 -21
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +102 -16
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +81 -18
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +82 -17
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +86 -14
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +79 -21
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +61 -16
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +37 -10
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +127 -38
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +76 -28
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +178 -63
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +810 -305
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +635 -265
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +115 -40
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +215 -56
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +21 -3
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +154 -43
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +98 -34
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +200 -52
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +239 -70
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +109 -31
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +59 -21
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +188 -56
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +103 -22
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +246 -59
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +174 -34
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +107 -29
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +50 -13
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +194 -65
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +249 -89
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +263 -80
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +57 -13
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +155 -30
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +129 -40
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +107 -22
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +188 -89
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +272 -133
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +46 -18
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +49 -21
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +58 -20
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +53 -16
- package/dist/es/components/runtime/views/home-chart.vue.js +160 -41
- package/dist/es/components/runtime/views/home-chart.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +139 -21
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +756 -230
- package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
- package/dist/es/i18n/langs/cn.js +55 -2
- package/dist/es/i18n/langs/en.js +55 -2
- package/package.json +2 -2
|
@@ -1,30 +1,539 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
var FuncType = /* @__PURE__ */ ((FuncType2) => {
|
|
2
|
+
FuncType2["AUTHENTICATED"] = "AUTHENTICATED";
|
|
3
|
+
FuncType2["ANONYMOUS"] = "ANONYMOUS";
|
|
4
|
+
FuncType2["AUTHORIZED"] = "AUTHORIZED";
|
|
5
|
+
return FuncType2;
|
|
6
|
+
})(FuncType || {});
|
|
7
|
+
const standardFuncUrlMap = {
|
|
8
|
+
page: {
|
|
9
|
+
label: "页面",
|
|
10
|
+
functions: [
|
|
11
|
+
{
|
|
12
|
+
label: "页面",
|
|
13
|
+
path: "temp"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
gets: {
|
|
18
|
+
group: "表单标准功能",
|
|
19
|
+
label: "获取表单数据",
|
|
20
|
+
functions: [
|
|
21
|
+
{
|
|
22
|
+
funcType: "AUTHENTICATED",
|
|
23
|
+
path: "/commons/gets$POST"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
workflowGets: {
|
|
28
|
+
group: "标准流程",
|
|
29
|
+
label: "获取表单及流程数据",
|
|
30
|
+
functions: [
|
|
31
|
+
{
|
|
32
|
+
funcType: "AUTHENTICATED",
|
|
33
|
+
path: "/workflow-commons/gets$POST"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
save: {
|
|
38
|
+
group: "表单标准功能",
|
|
39
|
+
label: "暂存",
|
|
40
|
+
functions: [
|
|
41
|
+
{
|
|
42
|
+
code: "create",
|
|
43
|
+
label: "暂存",
|
|
44
|
+
path: "/commons$POST"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
code: "update",
|
|
48
|
+
label: "修改",
|
|
49
|
+
path: "/commons$POST"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
submit: {
|
|
54
|
+
group: "表单标准功能",
|
|
55
|
+
label: "提交",
|
|
56
|
+
functions: [
|
|
57
|
+
{
|
|
58
|
+
path: "/commons/submits$POST"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
exportForm: {
|
|
63
|
+
group: "表单标准功能",
|
|
64
|
+
label: "导出报告",
|
|
65
|
+
functions: [
|
|
66
|
+
{
|
|
67
|
+
path: "/commons/export-reports$POST"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
exportPDF: {
|
|
72
|
+
group: "表单标准功能",
|
|
73
|
+
label: "导出PDF",
|
|
74
|
+
functions: [
|
|
75
|
+
{
|
|
76
|
+
path: "/commons/exportPDF$POST"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
agree: {
|
|
81
|
+
group: "表单标准功能",
|
|
82
|
+
label: "同意",
|
|
83
|
+
functions: [
|
|
84
|
+
{
|
|
85
|
+
path: "/commons/approves$POST"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
disagree: {
|
|
90
|
+
group: "表单标准功能",
|
|
91
|
+
label: "不同意",
|
|
92
|
+
functions: [
|
|
93
|
+
{
|
|
94
|
+
path: "/commons/refuses$POST"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
back: {
|
|
99
|
+
group: "表单标准功能",
|
|
100
|
+
label: "返回",
|
|
101
|
+
functions: []
|
|
102
|
+
//无资源时表示不需要控制
|
|
103
|
+
},
|
|
104
|
+
workflowSave: {
|
|
105
|
+
group: "流程表单功能",
|
|
106
|
+
label: "暂存",
|
|
107
|
+
functions: [
|
|
108
|
+
{
|
|
109
|
+
label: "暂存",
|
|
110
|
+
code: "save",
|
|
111
|
+
funcType: "AUTHENTICATED",
|
|
112
|
+
//公用
|
|
113
|
+
path: "/workflow-commons$POST"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
label: "修改",
|
|
117
|
+
code: "update",
|
|
118
|
+
funcType: "AUTHENTICATED",
|
|
119
|
+
//公用
|
|
120
|
+
path: "/workflow-commons$PUT"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
submitProcess: {
|
|
125
|
+
group: "流程表单功能",
|
|
126
|
+
label: "提交流程",
|
|
127
|
+
functions: [
|
|
128
|
+
{
|
|
129
|
+
funcType: "AUTHENTICATED",
|
|
130
|
+
//公用
|
|
131
|
+
path: "/workflow-commons/submit$POST"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
submitTask: {
|
|
136
|
+
group: "流程表单功能",
|
|
137
|
+
label: "提交任务",
|
|
138
|
+
functions: [
|
|
139
|
+
{
|
|
140
|
+
funcType: "AUTHENTICATED",
|
|
141
|
+
//公用
|
|
142
|
+
code: "completeTask.submit",
|
|
143
|
+
path: "/workflow-commons/complete-tasks$POST"
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
approve: {
|
|
148
|
+
group: "流程表单功能",
|
|
149
|
+
label: "同意",
|
|
150
|
+
functions: [
|
|
151
|
+
{
|
|
152
|
+
funcType: "AUTHENTICATED",
|
|
153
|
+
//公用
|
|
154
|
+
code: "completeTask.approve",
|
|
155
|
+
path: "/workflow-commons/complete-tasks$POST"
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
refuse: {
|
|
160
|
+
group: "流程表单功能",
|
|
161
|
+
label: "不同意",
|
|
162
|
+
functions: [
|
|
163
|
+
{
|
|
164
|
+
funcType: "AUTHENTICATED",
|
|
165
|
+
//公用
|
|
166
|
+
code: "completeTask.refuse",
|
|
167
|
+
path: "/workflow-commons/complete-tasks$POST"
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
assign: {
|
|
172
|
+
group: "流程表单功能",
|
|
173
|
+
label: "指派",
|
|
174
|
+
functions: [
|
|
175
|
+
{
|
|
176
|
+
funcType: "AUTHENTICATED",
|
|
177
|
+
//公用
|
|
178
|
+
path: "/workflow-commons/assigns$POST"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
drawTask: {
|
|
183
|
+
group: "流程表单功能",
|
|
184
|
+
label: "领取",
|
|
185
|
+
functions: [
|
|
186
|
+
{
|
|
187
|
+
funcType: "AUTHENTICATED",
|
|
188
|
+
//公用
|
|
189
|
+
path: "/workflow-commons/draw-tasks$POST"
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
abandonReceive: {
|
|
194
|
+
group: "流程表单功能",
|
|
195
|
+
label: "放弃领取",
|
|
196
|
+
functions: [
|
|
197
|
+
{
|
|
198
|
+
funcType: "AUTHENTICATED",
|
|
199
|
+
//公用
|
|
200
|
+
path: "/workflow-commons/abandon-receives$POST"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
readed: {
|
|
205
|
+
group: "流程表单功能",
|
|
206
|
+
label: "已阅",
|
|
207
|
+
functions: [
|
|
208
|
+
{
|
|
209
|
+
funcType: "AUTHENTICATED",
|
|
210
|
+
//公用
|
|
211
|
+
code: "completeTask.readed",
|
|
212
|
+
path: "/workflow-commons/complete-tasks$POST"
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
agreement: {
|
|
217
|
+
group: "流程表单功能",
|
|
218
|
+
label: "赞成",
|
|
219
|
+
functions: [
|
|
220
|
+
{
|
|
221
|
+
funcType: "AUTHENTICATED",
|
|
222
|
+
//公用
|
|
223
|
+
code: "completeTask.agreement",
|
|
224
|
+
path: "/workflow-commons/complete-tasks$POST"
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
oppose: {
|
|
229
|
+
group: "流程表单功能",
|
|
230
|
+
label: "反对",
|
|
231
|
+
functions: [
|
|
232
|
+
{
|
|
233
|
+
funcType: "AUTHENTICATED",
|
|
234
|
+
//公用
|
|
235
|
+
code: "completeTask.oppose",
|
|
236
|
+
path: "/workflow-commons/complete-tasks$POST"
|
|
237
|
+
}
|
|
238
|
+
]
|
|
239
|
+
},
|
|
240
|
+
kiken: {
|
|
241
|
+
group: "流程表单功能",
|
|
242
|
+
label: "弃权",
|
|
243
|
+
functions: [
|
|
244
|
+
{
|
|
245
|
+
funcType: "AUTHENTICATED",
|
|
246
|
+
//公用
|
|
247
|
+
code: "completeTask.kiken",
|
|
248
|
+
path: "/workflow-commons/complete-tasks$POST"
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
addSigner: {
|
|
253
|
+
group: "流程表单功能",
|
|
254
|
+
label: "加签",
|
|
255
|
+
functions: [
|
|
256
|
+
{
|
|
257
|
+
funcType: "AUTHENTICATED",
|
|
258
|
+
//公用
|
|
259
|
+
path: "/workflow-commons/add-signers$POST"
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
removeSigner: {
|
|
264
|
+
group: "流程表单功能",
|
|
265
|
+
label: "减签",
|
|
266
|
+
functions: [
|
|
267
|
+
{
|
|
268
|
+
funcType: "AUTHENTICATED",
|
|
269
|
+
//公用
|
|
270
|
+
path: "/workflow-commons/abandon-receives$POST"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
code: "getRemoveSigners",
|
|
274
|
+
//有编码时,以此为准
|
|
275
|
+
label: "获取可减签人员",
|
|
276
|
+
//有标题时,以此为准
|
|
277
|
+
funcType: "AUTHENTICATED",
|
|
278
|
+
//公用
|
|
279
|
+
path: "/workflow-commons/get-remove-signers$POST"
|
|
280
|
+
}
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
copyTask: {
|
|
284
|
+
group: "流程表单功能",
|
|
285
|
+
label: "抄送",
|
|
286
|
+
functions: [
|
|
287
|
+
{
|
|
288
|
+
funcType: "AUTHENTICATED",
|
|
289
|
+
//公用
|
|
290
|
+
path: "/workflow-commons/copies$POST"
|
|
291
|
+
}
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
retrieveTask: {
|
|
295
|
+
group: "流程表单功能",
|
|
296
|
+
label: "取回",
|
|
297
|
+
functions: [
|
|
298
|
+
{
|
|
299
|
+
funcType: "AUTHENTICATED",
|
|
300
|
+
//公用
|
|
301
|
+
path: "/workflow-commons/retrieves$POST"
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
returnToPreviousTask: {
|
|
306
|
+
group: "流程表单功能",
|
|
307
|
+
label: "驳回",
|
|
308
|
+
functions: [
|
|
309
|
+
{
|
|
310
|
+
funcType: "AUTHENTICATED",
|
|
311
|
+
//公用
|
|
312
|
+
path: "/workflow-commons/returnTaskTo$POST"
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
returnTaskTo: {
|
|
317
|
+
group: "流程表单功能",
|
|
318
|
+
label: "退回",
|
|
319
|
+
functions: [
|
|
320
|
+
{
|
|
321
|
+
funcType: "AUTHENTICATED",
|
|
322
|
+
//公用
|
|
323
|
+
path: "/workflow-commons/return-to-previous-tasks$POST"
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
endInstance: {
|
|
328
|
+
group: "流程表单功能",
|
|
329
|
+
label: "强制结束",
|
|
330
|
+
functions: [
|
|
331
|
+
{
|
|
332
|
+
funcType: "AUTHENTICATED",
|
|
333
|
+
//公用
|
|
334
|
+
path: "/workflow-commons/end-instance$POST"
|
|
335
|
+
}
|
|
336
|
+
]
|
|
337
|
+
},
|
|
338
|
+
listData: {
|
|
339
|
+
group: "列表功能",
|
|
340
|
+
label: "列表数据",
|
|
341
|
+
functions: [
|
|
342
|
+
{
|
|
343
|
+
funcType: "AUTHENTICATED",
|
|
344
|
+
//公用
|
|
345
|
+
path: "/commons/list$POST"
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
listSubData: {
|
|
350
|
+
group: "列表功能",
|
|
351
|
+
label: "列表子级",
|
|
352
|
+
functions: [
|
|
353
|
+
{
|
|
354
|
+
funcType: "AUTHENTICATED",
|
|
355
|
+
//公用
|
|
356
|
+
path: "/commons/list-subs$POST"
|
|
357
|
+
}
|
|
358
|
+
]
|
|
359
|
+
},
|
|
360
|
+
saveList: {
|
|
361
|
+
group: "列表功能",
|
|
362
|
+
label: "暂存",
|
|
363
|
+
functions: [
|
|
364
|
+
{
|
|
365
|
+
code: "create",
|
|
366
|
+
label: "暂存",
|
|
367
|
+
path: "/commons$POST"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
funcType: "AUTHENTICATED",
|
|
371
|
+
//公用
|
|
372
|
+
code: "update",
|
|
373
|
+
label: "修改",
|
|
374
|
+
path: "/commons$POST"
|
|
375
|
+
}
|
|
376
|
+
]
|
|
377
|
+
},
|
|
378
|
+
delete: {
|
|
379
|
+
group: "列表功能",
|
|
380
|
+
label: "删除",
|
|
381
|
+
functions: [
|
|
382
|
+
{
|
|
383
|
+
path: "/commons/{tableName}$DELETE"
|
|
384
|
+
}
|
|
385
|
+
]
|
|
386
|
+
},
|
|
387
|
+
submitList: {
|
|
388
|
+
group: "列表功能",
|
|
389
|
+
label: "提交",
|
|
390
|
+
functions: [
|
|
391
|
+
{
|
|
392
|
+
path: "/commons/batch-submits$POST"
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
agreeList: {
|
|
397
|
+
group: "列表功能",
|
|
398
|
+
label: "同意",
|
|
399
|
+
functions: [
|
|
400
|
+
{
|
|
401
|
+
path: "/commons/batch-approves$POST"
|
|
402
|
+
}
|
|
403
|
+
]
|
|
404
|
+
},
|
|
405
|
+
disagreeList: {
|
|
406
|
+
group: "列表功能",
|
|
407
|
+
label: "不同意",
|
|
408
|
+
functions: [
|
|
409
|
+
{
|
|
410
|
+
path: "/commons/batch-refuses$POST"
|
|
411
|
+
}
|
|
412
|
+
]
|
|
413
|
+
},
|
|
414
|
+
import: {
|
|
415
|
+
group: "列表功能",
|
|
416
|
+
label: "导入",
|
|
417
|
+
functions: [
|
|
418
|
+
{
|
|
419
|
+
path: "/commons/import-data$POST"
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
},
|
|
423
|
+
export: {
|
|
424
|
+
group: "列表功能",
|
|
425
|
+
label: "导出",
|
|
426
|
+
functions: [
|
|
427
|
+
{
|
|
428
|
+
path: "/commons/export-list-data$POST"
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
},
|
|
432
|
+
search: {
|
|
433
|
+
group: "列表功能",
|
|
434
|
+
label: "查询",
|
|
435
|
+
functions: []
|
|
436
|
+
},
|
|
437
|
+
showMobileSearch: {
|
|
438
|
+
group: "列表功能",
|
|
439
|
+
label: "显示移动端查询区域",
|
|
440
|
+
functions: []
|
|
441
|
+
},
|
|
442
|
+
downloadTemplate: {
|
|
443
|
+
group: "列表功能",
|
|
444
|
+
label: "下载导入模板",
|
|
445
|
+
functions: [
|
|
446
|
+
{
|
|
447
|
+
path: "/commons/download-files$GET"
|
|
448
|
+
}
|
|
449
|
+
]
|
|
450
|
+
},
|
|
451
|
+
lineEditCreate: {
|
|
452
|
+
group: "列表行编辑功能",
|
|
453
|
+
label: "新建",
|
|
454
|
+
functions: [
|
|
455
|
+
{
|
|
456
|
+
code: "create",
|
|
457
|
+
label: "暂存",
|
|
458
|
+
path: "/commons$POST"
|
|
459
|
+
}
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
lineEditSave: {
|
|
463
|
+
group: "列表行编辑功能",
|
|
464
|
+
label: "保存",
|
|
465
|
+
functions: [
|
|
466
|
+
{
|
|
467
|
+
code: "create",
|
|
468
|
+
label: "保存",
|
|
469
|
+
path: "/commons$POST"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
code: "update",
|
|
473
|
+
label: "修改",
|
|
474
|
+
path: "/commons$POST"
|
|
475
|
+
}
|
|
476
|
+
]
|
|
477
|
+
},
|
|
478
|
+
lineEditDelete: {
|
|
479
|
+
group: "列表行编辑功能",
|
|
480
|
+
label: "删除",
|
|
481
|
+
functions: [
|
|
482
|
+
{
|
|
483
|
+
code: "delete",
|
|
484
|
+
path: "/commons/{tableName}$DELETE"
|
|
485
|
+
}
|
|
486
|
+
]
|
|
487
|
+
},
|
|
488
|
+
lineEditUpdate: {
|
|
489
|
+
group: "列表行编辑功能",
|
|
490
|
+
label: "修改",
|
|
491
|
+
functions: [
|
|
492
|
+
{
|
|
493
|
+
code: "update",
|
|
494
|
+
label: "修改",
|
|
495
|
+
path: "/commons$POST"
|
|
496
|
+
}
|
|
497
|
+
]
|
|
498
|
+
},
|
|
499
|
+
restoreEdit: {
|
|
500
|
+
group: "列表行编辑功能",
|
|
501
|
+
label: "取消编辑",
|
|
502
|
+
functions: []
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
const functionMap = {};
|
|
506
|
+
function getStandPermissionInfo(eventName) {
|
|
507
|
+
return eventName ? standardFuncUrlMap[eventName] : void 0;
|
|
5
508
|
}
|
|
6
|
-
function
|
|
7
|
-
if (!
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
509
|
+
function getFunctionInfo(simpleCode) {
|
|
510
|
+
if (!simpleCode) {
|
|
511
|
+
return void 0;
|
|
512
|
+
}
|
|
513
|
+
let funcInfo = functionMap[simpleCode];
|
|
514
|
+
if (funcInfo == void 0) {
|
|
515
|
+
for (const eventName in standardFuncUrlMap) {
|
|
516
|
+
const functions = standardFuncUrlMap[eventName].functions;
|
|
517
|
+
if (!functions) {
|
|
518
|
+
continue;
|
|
519
|
+
}
|
|
520
|
+
for (const f of functions) {
|
|
521
|
+
const tempCode = f.code ? f.code : eventName;
|
|
522
|
+
if (simpleCode === tempCode) {
|
|
523
|
+
funcInfo = f;
|
|
524
|
+
break;
|
|
18
525
|
}
|
|
19
|
-
|
|
526
|
+
}
|
|
527
|
+
if (funcInfo) {
|
|
528
|
+
break;
|
|
20
529
|
}
|
|
21
530
|
}
|
|
22
|
-
|
|
531
|
+
functionMap[simpleCode] = funcInfo ? funcInfo : "";
|
|
23
532
|
}
|
|
24
|
-
return
|
|
533
|
+
return funcInfo ? funcInfo : void 0;
|
|
25
534
|
}
|
|
26
535
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
536
|
+
FuncType,
|
|
537
|
+
getFunctionInfo,
|
|
538
|
+
getStandPermissionInfo
|
|
30
539
|
};
|
|
@@ -1,26 +1,71 @@
|
|
|
1
|
-
import { ref
|
|
2
|
-
import { defineStore
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
1
|
+
import { ref } from "vue";
|
|
2
|
+
import { defineStore } from "pinia";
|
|
3
|
+
import bus from "./eventBus.js";
|
|
4
|
+
const usePageContextStore = defineStore("pageContextUtil", () => {
|
|
5
|
+
const pageContext = ref({ systemCode: "", systemVersion: -1 });
|
|
6
|
+
const pageComponentsLoaded = ref(false);
|
|
7
|
+
const formPageDataLoaded = ref(false);
|
|
8
|
+
const pageLoaded = ref(false);
|
|
9
|
+
const componentsTotalNmber = ref(0);
|
|
10
|
+
const componentsLoadedNumber = ref(0);
|
|
11
|
+
function setPageContext(newPageContext) {
|
|
12
|
+
pageContext.value = newPageContext;
|
|
13
|
+
}
|
|
14
|
+
function countComponentsTotalNmber() {
|
|
15
|
+
componentsTotalNmber.value++;
|
|
16
|
+
pageComponentsLoaded.value = false;
|
|
17
|
+
pageLoaded.value = false;
|
|
18
|
+
}
|
|
19
|
+
function countComponentsLoadedNumber() {
|
|
20
|
+
componentsLoadedNumber.value++;
|
|
21
|
+
pageLoaded.value = false;
|
|
22
|
+
}
|
|
23
|
+
function setPageComponentsLoaded(state) {
|
|
24
|
+
pageComponentsLoaded.value = state;
|
|
25
|
+
if (pageComponentsLoaded.value && formPageDataLoaded.value) {
|
|
26
|
+
bus.$emit("pageLoaded");
|
|
27
|
+
pageLoaded.value = true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function setFormPageDataLoadState(state) {
|
|
31
|
+
formPageDataLoaded.value = state;
|
|
32
|
+
if (pageComponentsLoaded.value && formPageDataLoaded.value) {
|
|
33
|
+
console.log(
|
|
34
|
+
"setpageLoaded+++++++++++++++++++",
|
|
35
|
+
pageComponentsLoaded.value,
|
|
36
|
+
formPageDataLoaded.value
|
|
37
|
+
);
|
|
38
|
+
pageLoaded.value = true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function restorePageLoadState() {
|
|
42
|
+
pageComponentsLoaded.value = false;
|
|
43
|
+
formPageDataLoaded.value = false;
|
|
44
|
+
pageLoaded.value = false;
|
|
45
|
+
}
|
|
46
|
+
function getPageLoaded() {
|
|
47
|
+
return pageLoaded.value;
|
|
48
|
+
}
|
|
49
|
+
function setPageLoaded(state) {
|
|
50
|
+
pageLoaded.value = state;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
pageContext,
|
|
54
|
+
setPageContext,
|
|
55
|
+
countComponentsTotalNmber,
|
|
56
|
+
countComponentsLoadedNumber,
|
|
57
|
+
componentsTotalNmber,
|
|
58
|
+
componentsLoadedNumber,
|
|
59
|
+
setPageComponentsLoaded,
|
|
60
|
+
setFormPageDataLoadState,
|
|
61
|
+
formPageDataLoaded,
|
|
62
|
+
pageComponentsLoaded,
|
|
63
|
+
restorePageLoadState,
|
|
64
|
+
pageLoaded,
|
|
65
|
+
getPageLoaded,
|
|
66
|
+
setPageLoaded
|
|
67
|
+
};
|
|
23
68
|
});
|
|
24
69
|
export {
|
|
25
|
-
|
|
70
|
+
usePageContextStore
|
|
26
71
|
};
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
3
|
-
const
|
|
4
|
-
let
|
|
5
|
-
|
|
1
|
+
import store from "./store.js";
|
|
2
|
+
function setStoreInfo(pageCode, pageVersion, key, value) {
|
|
3
|
+
const pageKey = getPageStoreKey(pageCode, pageVersion);
|
|
4
|
+
let pageCodeStoreInfo = store.get(pageKey);
|
|
5
|
+
if (!pageCodeStoreInfo) {
|
|
6
|
+
pageCodeStoreInfo = {};
|
|
7
|
+
store.set(pageKey, pageCodeStoreInfo);
|
|
8
|
+
}
|
|
9
|
+
pageCodeStoreInfo[key] = value;
|
|
6
10
|
}
|
|
7
|
-
function
|
|
8
|
-
return
|
|
11
|
+
function getPageStoreKey(pageCode, pageVersion) {
|
|
12
|
+
return pageCode + ":" + pageVersion;
|
|
9
13
|
}
|
|
10
14
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
getPageStoreKey,
|
|
16
|
+
setStoreInfo
|
|
13
17
|
};
|