super-page-runtime 0.0.1-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/.prettierrc.json +8 -0
- package/README.md +61 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +9 -0
- package/lib/components/index.d.ts +5 -0
- package/lib/components/runtime/index.d.ts +3 -0
- package/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +24 -0
- package/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +35 -0
- package/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +26 -0
- package/lib/components/runtime/views/assemblys/error-render.vue.d.ts +22 -0
- package/lib/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
- package/lib/components/runtime/views/super-page.vue.d.ts +91 -0
- package/lib/components/super-page-dialog/index.d.ts +3 -0
- package/lib/components/super-page-dialog/super-page-dialog.vue.d.ts +36 -0
- package/lib/components/wf-editor/index.d.ts +3 -0
- package/lib/components/wf-editor/wf-editor.vue.d.ts +2 -0
- package/lib/favicon.ico +0 -0
- package/lib/index.js +8 -0
- package/lib/runtime/index.js +3 -0
- package/lib/runtime/utils/assemblys-config.js +258 -0
- package/lib/runtime/views/assemblys/button/button/button-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/button/button/button-runtime.vue2.js +54 -0
- package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +35 -0
- package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +110 -0
- package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +53 -0
- package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +42 -0
- package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +50 -0
- package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +50 -0
- package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +51 -0
- package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue.js +141 -0
- package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +3 -0
- package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue.js +127 -0
- package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
- package/lib/runtime/views/assemblys/common/task-informition-dialog.vue.js +104 -0
- package/lib/runtime/views/assemblys/common/task-informition-dialog.vue2.js +3 -0
- package/lib/runtime/views/assemblys/container/card/card-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/container/card/card-runtime.vue2.js +72 -0
- package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +73 -0
- package/lib/runtime/views/assemblys/container/container/container-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/container/container/container-runtime.vue2.js +78 -0
- package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +42 -0
- package/lib/runtime/views/assemblys/container/form/form-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/container/form/form-runtime.vue2.js +43 -0
- package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +29 -0
- package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +68 -0
- package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +74 -0
- package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue.js +640 -0
- package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +3 -0
- package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +452 -0
- package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +3 -0
- package/lib/runtime/views/assemblys/data/table/table-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/data/table/table-runtime.vue2.js +82 -0
- package/lib/runtime/views/assemblys/error-render.vue.js +22 -0
- package/lib/runtime/views/assemblys/error-render.vue2.js +3 -0
- package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +156 -0
- package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +82 -0
- package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +59 -0
- package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +40 -0
- package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +74 -0
- package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +63 -0
- package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +127 -0
- package/lib/runtime/views/assemblys/form/label/label-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/label/label-runtime.vue2.js +133 -0
- package/lib/runtime/views/assemblys/form/link/link-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/link/link-runtime.vue2.js +77 -0
- package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +29 -0
- package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +157 -0
- package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +174 -0
- package/lib/runtime/views/assemblys/form/select/select-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/select/select-runtime.vue2.js +201 -0
- package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +63 -0
- package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +63 -0
- package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +65 -0
- package/lib/runtime/views/assemblys/object-render.vue.js +142 -0
- package/lib/runtime/views/assemblys/object-render.vue2.js +3 -0
- package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +3 -0
- package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +61 -0
- package/lib/runtime/views/super-page.vue.js +479 -0
- package/lib/runtime/views/super-page.vue2.js +3 -0
- package/lib/src/assets/chart-themes/theme1.js +7 -0
- package/lib/src/assets/chart-themes/theme2.js +7 -0
- package/lib/src/assets/chart-themes/theme3.js +7 -0
- package/lib/src/utils/api/api-util.d.ts +11 -0
- package/lib/src/utils/api/api-util.js +128 -0
- package/lib/src/utils/charts/chart-util.js +15 -0
- package/lib/src/utils/common-util.d.ts +11 -0
- package/lib/src/utils/common-util.js +81 -0
- package/lib/src/utils/events/event-util.d.ts +48 -0
- package/lib/src/utils/events/event-util.js +525 -0
- package/lib/src/utils/events/standard-event.d.ts +61 -0
- package/lib/src/utils/events/standard-event.js +1623 -0
- package/lib/src/utils/events/validator-util.d.ts +4 -0
- package/lib/src/utils/events/validator-util.js +389 -0
- package/lib/src/utils/global-refs.d.ts +59 -0
- package/lib/src/utils/global-refs.js +65 -0
- package/lib/src/utils/interfaces/page-design-types.d.ts +221 -0
- package/lib/src/utils/interfaces/page-design-types.js +9 -0
- package/lib/src/utils/page-helper-util.d.ts +87 -0
- package/lib/src/utils/page-helper-util.js +503 -0
- package/lib/src/utils/page-init-util.d.ts +38 -0
- package/lib/src/utils/page-init-util.js +200 -0
- package/lib/src/utils/store-util.d.ts +15 -0
- package/lib/src/utils/store-util.js +17 -0
- package/lib/src/utils/store.d.ts +2 -0
- package/lib/src/utils/store.js +3 -0
- package/lib/src/utils/table-utils.js +23 -0
- package/lib/super-page-dialog/index.js +3 -0
- package/lib/super-page-dialog/super-page-dialog.vue.js +73 -0
- package/lib/super-page-dialog/super-page-dialog.vue2.js +3 -0
- package/lib/wf-editor/index.js +3 -0
- package/lib/wf-editor/wf-editor.css +4 -0
- package/lib/wf-editor/wf-editor.vue.js +15 -0
- package/package-ws.json +70 -0
- package/package.json +67 -0
- package/src/assets/base.css +86 -0
- package/src/assets/chart-themes/theme1.ts +6 -0
- package/src/assets/chart-themes/theme2.ts +6 -0
- package/src/assets/chart-themes/theme3.ts +6 -0
- package/src/assets/images/button/button-group.png +0 -0
- package/src/assets/images/button/button.png +0 -0
- package/src/assets/images/chart/chart-column.png +0 -0
- package/src/assets/images/chart/chart-gauge.png +0 -0
- package/src/assets/images/chart/chart-pie.png +0 -0
- package/src/assets/images/chart/chart-radar.png +0 -0
- package/src/assets/images/chart/chart-scatter.png +0 -0
- package/src/assets/images/container/container-card.png +0 -0
- package/src/assets/images/container/container-collapse.png +0 -0
- package/src/assets/images/container/container-container.png +0 -0
- package/src/assets/images/container/container-flex.png +0 -0
- package/src/assets/images/container/container-form.png +0 -0
- package/src/assets/images/container/container-iframe.png +0 -0
- package/src/assets/images/container/container-normal.png +0 -0
- package/src/assets/images/container/container-tabs.png +0 -0
- package/src/assets/images/container/container-tools.png +0 -0
- package/src/assets/images/data/data-process.png +0 -0
- package/src/assets/images/data/data-step.png +0 -0
- package/src/assets/images/data/data-table-column.png +0 -0
- package/src/assets/images/data/data-table.png +0 -0
- package/src/assets/images/data/data-timeline.png +0 -0
- package/src/assets/images/data/data-tree.png +0 -0
- package/src/assets/images/form/form-cascader.png +0 -0
- package/src/assets/images/form/form-check.png +0 -0
- package/src/assets/images/form/form-color.png +0 -0
- package/src/assets/images/form/form-count.png +0 -0
- package/src/assets/images/form/form-custom.png +0 -0
- package/src/assets/images/form/form-date.png +0 -0
- package/src/assets/images/form/form-dept.png +0 -0
- package/src/assets/images/form/form-divider.png +0 -0
- package/src/assets/images/form/form-file.png +0 -0
- package/src/assets/images/form/form-image-upload.png +0 -0
- package/src/assets/images/form/form-img.png +0 -0
- package/src/assets/images/form/form-input.png +0 -0
- package/src/assets/images/form/form-label.png +0 -0
- package/src/assets/images/form/form-link.png +0 -0
- package/src/assets/images/form/form-radio.png +0 -0
- package/src/assets/images/form/form-scan.png +0 -0
- package/src/assets/images/form/form-score.png +0 -0
- package/src/assets/images/form/form-select.png +0 -0
- package/src/assets/images/form/form-slider.png +0 -0
- package/src/assets/images/form/form-space.png +0 -0
- package/src/assets/images/form/form-switch.png +0 -0
- package/src/assets/images/form/form-text.png +0 -0
- package/src/assets/images/form/form-textarea.png +0 -0
- package/src/assets/images/form/form-transfer.png +0 -0
- package/src/assets/images/form/form-zoom.png +0 -0
- package/src/assets/images/group-button.png +0 -0
- package/src/assets/images/group-chart.png +0 -0
- package/src/assets/images/group-container.png +0 -0
- package/src/assets/images/group-data.png +0 -0
- package/src/assets/images/group-form.png +0 -0
- package/src/assets/images/group-workflow.png +0 -0
- package/src/assets/images/workflow/workflow-button.png +0 -0
- package/src/assets/images/workflow/workflow-history-texts.png +0 -0
- package/src/assets/images/workflow/workflow-history.png +0 -0
- package/src/assets/images/workflow/workflow-imagehistory.png +0 -0
- package/src/assets/images/workflow/workflow-texthistory .png +0 -0
- package/src/assets/logo.svg +1 -0
- package/src/assets/main.css +1 -0
- package/src/i18n/langs/cn.js +52 -0
- package/src/i18n/langs/en.js +52 -0
- package/src/stores/counter.ts +12 -0
- package/src/utils/api/api-util.ts +176 -0
- package/src/utils/charts/chart-util.ts +41 -0
- package/src/utils/common-util.ts +96 -0
- package/src/utils/container-style-util.ts +237 -0
- package/src/utils/eventBus.ts +14 -0
- package/src/utils/events/event-util.ts +790 -0
- package/src/utils/events/jump-page-util.ts +0 -0
- package/src/utils/events/standard-event.ts +2075 -0
- package/src/utils/events/validator-util.ts +474 -0
- package/src/utils/global-refs.ts +160 -0
- package/src/utils/interfaces/page-design-types.ts +259 -0
- package/src/utils/page-helper-util.ts +850 -0
- package/src/utils/page-init-util.ts +291 -0
- package/src/utils/page-permission-util.ts +521 -0
- package/src/utils/store-util.ts +41 -0
- package/src/utils/store.ts +3 -0
- package/src/utils/table-utils.ts +31 -0
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
export enum FuncType {
|
|
2
|
+
/**
|
|
3
|
+
* 公用
|
|
4
|
+
*/
|
|
5
|
+
AUTHENTICATED = 'AUTHENTICATED',
|
|
6
|
+
/**
|
|
7
|
+
* 匿名
|
|
8
|
+
*/
|
|
9
|
+
ANONYMOUS = 'ANONYMOUS',
|
|
10
|
+
/**
|
|
11
|
+
* 专用
|
|
12
|
+
*/
|
|
13
|
+
AUTHORIZED = 'AUTHORIZED'
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 未指定资源类型时,表示为专用,否则以指定的为准
|
|
17
|
+
*/
|
|
18
|
+
const standardFuncUrlMap = {
|
|
19
|
+
page: {
|
|
20
|
+
label: '页面',
|
|
21
|
+
functions: [
|
|
22
|
+
{
|
|
23
|
+
label: '页面',
|
|
24
|
+
path: 'temp'
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
gets: {
|
|
29
|
+
group: '表单标准功能',
|
|
30
|
+
label: '获取表单数据',
|
|
31
|
+
functions: [
|
|
32
|
+
{
|
|
33
|
+
funcType: FuncType.AUTHENTICATED,
|
|
34
|
+
path: '/commons/gets$POST'
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
workflowGets: {
|
|
39
|
+
group: '标准流程',
|
|
40
|
+
label: '获取表单及流程数据',
|
|
41
|
+
functions: [
|
|
42
|
+
{
|
|
43
|
+
funcType: FuncType.AUTHENTICATED,
|
|
44
|
+
path: '/workflow-commons/gets$POST'
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
save: {
|
|
49
|
+
group: '表单标准功能',
|
|
50
|
+
label: '暂存',
|
|
51
|
+
functions: [
|
|
52
|
+
{
|
|
53
|
+
code: 'create',
|
|
54
|
+
label: '暂存',
|
|
55
|
+
path: '/commons$POST'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
code: 'update',
|
|
59
|
+
label: '修改',
|
|
60
|
+
path: '/commons$POST'
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
submit: {
|
|
65
|
+
group: '表单标准功能',
|
|
66
|
+
label: '提交',
|
|
67
|
+
functions: [
|
|
68
|
+
{
|
|
69
|
+
path: '/commons/submits$POST'
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
exportForm: {
|
|
74
|
+
group: '表单标准功能',
|
|
75
|
+
label: '导出报告',
|
|
76
|
+
functions: [
|
|
77
|
+
{
|
|
78
|
+
path: '/commons/export-reports$POST'
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
exportPDF: {
|
|
83
|
+
group: '表单标准功能',
|
|
84
|
+
label: '导出PDF',
|
|
85
|
+
functions: [
|
|
86
|
+
{
|
|
87
|
+
path: '/commons/exportPDF$POST'
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
agree: {
|
|
92
|
+
group: '表单标准功能',
|
|
93
|
+
label: '同意',
|
|
94
|
+
functions: [
|
|
95
|
+
{
|
|
96
|
+
path: '/commons/approves$POST'
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
disagree: {
|
|
101
|
+
group: '表单标准功能',
|
|
102
|
+
label: '不同意',
|
|
103
|
+
functions: [
|
|
104
|
+
{
|
|
105
|
+
path: '/commons/refuses$POST'
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
back: {
|
|
110
|
+
group: '表单标准功能',
|
|
111
|
+
label: '返回',
|
|
112
|
+
functions: [] //无资源时表示不需要控制
|
|
113
|
+
},
|
|
114
|
+
workflowSave: {
|
|
115
|
+
group: '流程表单功能',
|
|
116
|
+
label: '暂存',
|
|
117
|
+
functions: [
|
|
118
|
+
{
|
|
119
|
+
funcType: 'AUTHENTICATED', //公用
|
|
120
|
+
path: '/workflow-commons$POST'
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
submitProcess: {
|
|
125
|
+
group: '流程表单功能',
|
|
126
|
+
label: '提交流程',
|
|
127
|
+
functions: [
|
|
128
|
+
{
|
|
129
|
+
funcType: 'AUTHENTICATED', //公用
|
|
130
|
+
path: '/workflow-commons/submit$POST'
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
submitTask: {
|
|
135
|
+
group: '流程表单功能',
|
|
136
|
+
label: '提交任务',
|
|
137
|
+
functions: [
|
|
138
|
+
{
|
|
139
|
+
funcType: 'AUTHENTICATED', //公用
|
|
140
|
+
code: 'completeTask.submitTask',
|
|
141
|
+
path: '/workflow-commons/complete-tasks$POST'
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
approve: {
|
|
146
|
+
group: '流程表单功能',
|
|
147
|
+
label: '同意',
|
|
148
|
+
functions: [
|
|
149
|
+
{
|
|
150
|
+
funcType: 'AUTHENTICATED', //公用
|
|
151
|
+
code: 'completeTask.approve',
|
|
152
|
+
path: '/workflow-commons/complete-tasks$POST'
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
refuse: {
|
|
157
|
+
group: '流程表单功能',
|
|
158
|
+
label: '不同意',
|
|
159
|
+
functions: [
|
|
160
|
+
{
|
|
161
|
+
funcType: 'AUTHENTICATED', //公用
|
|
162
|
+
code: 'completeTask.refuse',
|
|
163
|
+
path: '/workflow-commons/complete-tasks$POST'
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
assign: {
|
|
168
|
+
group: '流程表单功能',
|
|
169
|
+
label: '指派',
|
|
170
|
+
functions: [
|
|
171
|
+
{
|
|
172
|
+
funcType: 'AUTHENTICATED', //公用
|
|
173
|
+
path: '/workflow-commons/assigns$POST'
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
drawTask: {
|
|
178
|
+
group: '流程表单功能',
|
|
179
|
+
label: '领取',
|
|
180
|
+
functions: [
|
|
181
|
+
{
|
|
182
|
+
funcType: 'AUTHENTICATED', //公用
|
|
183
|
+
path: '/workflow-commons/draw-tasks$POST'
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
abandonReceive: {
|
|
188
|
+
group: '流程表单功能',
|
|
189
|
+
label: '放弃领取',
|
|
190
|
+
functions: [
|
|
191
|
+
{
|
|
192
|
+
funcType: 'AUTHENTICATED', //公用
|
|
193
|
+
path: '/workflow-commons/abandon-receives$POST'
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
readed: {
|
|
198
|
+
group: '流程表单功能',
|
|
199
|
+
label: '已阅',
|
|
200
|
+
functions: [
|
|
201
|
+
{
|
|
202
|
+
funcType: 'AUTHENTICATED', //公用
|
|
203
|
+
code: 'completeTask.readed',
|
|
204
|
+
path: '/workflow-commons/complete-tasks$POST'
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
agreement: {
|
|
209
|
+
group: '流程表单功能',
|
|
210
|
+
label: '赞成',
|
|
211
|
+
functions: [
|
|
212
|
+
{
|
|
213
|
+
funcType: 'AUTHENTICATED', //公用
|
|
214
|
+
code: 'completeTask.agreement',
|
|
215
|
+
path: '/workflow-commons/complete-tasks$POST'
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
oppose: {
|
|
220
|
+
group: '流程表单功能',
|
|
221
|
+
label: '反对',
|
|
222
|
+
functions: [
|
|
223
|
+
{
|
|
224
|
+
funcType: 'AUTHENTICATED', //公用
|
|
225
|
+
code: 'completeTask.oppose',
|
|
226
|
+
path: '/workflow-commons/complete-tasks$POST'
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
kiken: {
|
|
231
|
+
group: '流程表单功能',
|
|
232
|
+
label: '弃权',
|
|
233
|
+
functions: [
|
|
234
|
+
{
|
|
235
|
+
funcType: 'AUTHENTICATED', //公用
|
|
236
|
+
code: 'completeTask.kiken',
|
|
237
|
+
path: '/workflow-commons/complete-tasks$POST'
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
addSigner: {
|
|
242
|
+
group: '流程表单功能',
|
|
243
|
+
label: '加签',
|
|
244
|
+
functions: [
|
|
245
|
+
{
|
|
246
|
+
funcType: 'AUTHENTICATED', //公用
|
|
247
|
+
path: '/workflow-commons/add-signers$POST'
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
removeSigner: {
|
|
252
|
+
group: '流程表单功能',
|
|
253
|
+
label: '减签',
|
|
254
|
+
functions: [
|
|
255
|
+
{
|
|
256
|
+
funcType: 'AUTHENTICATED', //公用
|
|
257
|
+
path: '/workflow-commons/abandon-receives$POST'
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
code: 'getRemoveSigners', //有编码时,以此为准
|
|
261
|
+
label: '获取可减签人员', //有标题时,以此为准
|
|
262
|
+
funcType: 'AUTHENTICATED', //公用
|
|
263
|
+
path: '/workflow-commons/get-remove-signers$POST'
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
copyTask: {
|
|
268
|
+
group: '流程表单功能',
|
|
269
|
+
label: '抄送',
|
|
270
|
+
functions: [
|
|
271
|
+
{
|
|
272
|
+
funcType: 'AUTHENTICATED', //公用
|
|
273
|
+
path: '/workflow-commons/copies$POST'
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
retrieveTask: {
|
|
278
|
+
group: '流程表单功能',
|
|
279
|
+
label: '取回',
|
|
280
|
+
functions: [
|
|
281
|
+
{
|
|
282
|
+
funcType: 'AUTHENTICATED', //公用
|
|
283
|
+
path: '/workflow-commons/retrieves$POST'
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
returnToPreviousTask: {
|
|
288
|
+
group: '流程表单功能',
|
|
289
|
+
label: '驳回',
|
|
290
|
+
functions: [
|
|
291
|
+
{
|
|
292
|
+
funcType: 'AUTHENTICATED', //公用
|
|
293
|
+
path: '/workflow-commons/returnTaskTo$POST'
|
|
294
|
+
}
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
returnTaskTo: {
|
|
298
|
+
group: '流程表单功能',
|
|
299
|
+
label: '退回',
|
|
300
|
+
functions: [
|
|
301
|
+
{
|
|
302
|
+
funcType: 'AUTHENTICATED', //公用
|
|
303
|
+
path: '/workflow-commons/return-to-previous-tasks$POST'
|
|
304
|
+
}
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
endInstance: {
|
|
308
|
+
group: '流程表单功能',
|
|
309
|
+
label: '强制结束',
|
|
310
|
+
functions: [
|
|
311
|
+
{
|
|
312
|
+
funcType: 'AUTHENTICATED', //公用
|
|
313
|
+
path: '/workflow-commons/end-instance$POST'
|
|
314
|
+
}
|
|
315
|
+
]
|
|
316
|
+
},
|
|
317
|
+
listData: {
|
|
318
|
+
group: '列表功能',
|
|
319
|
+
label: '列表数据',
|
|
320
|
+
functions: [
|
|
321
|
+
{
|
|
322
|
+
funcType: 'AUTHENTICATED', //公用
|
|
323
|
+
path: '/commons/list$POST'
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
listSubData: {
|
|
328
|
+
group: '列表功能',
|
|
329
|
+
label: '列表子级',
|
|
330
|
+
functions: [
|
|
331
|
+
{
|
|
332
|
+
funcType: 'AUTHENTICATED', //公用
|
|
333
|
+
path: '/commons/list-subs$POST'
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
saveList: {
|
|
338
|
+
group: '列表功能',
|
|
339
|
+
label: '暂存',
|
|
340
|
+
functions: [
|
|
341
|
+
{
|
|
342
|
+
code: 'create',
|
|
343
|
+
label: '暂存',
|
|
344
|
+
path: '/commons$POST'
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
funcType: 'AUTHENTICATED', //公用
|
|
348
|
+
code: 'update',
|
|
349
|
+
label: '修改',
|
|
350
|
+
path: '/commons$POST'
|
|
351
|
+
}
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
delete: {
|
|
355
|
+
group: '列表功能',
|
|
356
|
+
label: '删除',
|
|
357
|
+
functions: [
|
|
358
|
+
{
|
|
359
|
+
path: '/commons/{tableName}$DELETE'
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
},
|
|
363
|
+
submitList: {
|
|
364
|
+
group: '列表功能',
|
|
365
|
+
label: '提交',
|
|
366
|
+
functions: [
|
|
367
|
+
{
|
|
368
|
+
path: '/commons/batch-submits$POST'
|
|
369
|
+
}
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
agreeList: {
|
|
373
|
+
group: '列表功能',
|
|
374
|
+
label: '同意',
|
|
375
|
+
functions: [
|
|
376
|
+
{
|
|
377
|
+
path: '/commons/batch-approves$POST'
|
|
378
|
+
}
|
|
379
|
+
]
|
|
380
|
+
},
|
|
381
|
+
disagreeList: {
|
|
382
|
+
group: '列表功能',
|
|
383
|
+
label: '不同意',
|
|
384
|
+
functions: [
|
|
385
|
+
{
|
|
386
|
+
path: '/commons/batch-refuses$POST'
|
|
387
|
+
}
|
|
388
|
+
]
|
|
389
|
+
},
|
|
390
|
+
import: {
|
|
391
|
+
group: '列表功能',
|
|
392
|
+
label: '导入',
|
|
393
|
+
functions: [
|
|
394
|
+
{
|
|
395
|
+
path: '/commons/import-data$POST'
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
export: {
|
|
400
|
+
group: '列表功能',
|
|
401
|
+
label: '导出',
|
|
402
|
+
functions: [
|
|
403
|
+
{
|
|
404
|
+
path: '/commons/export-list-data$POST /commons/export-reports$POST'
|
|
405
|
+
}
|
|
406
|
+
]
|
|
407
|
+
},
|
|
408
|
+
search: {
|
|
409
|
+
group: '列表功能',
|
|
410
|
+
label: '查询',
|
|
411
|
+
functions: []
|
|
412
|
+
},
|
|
413
|
+
downloadTemplate: {
|
|
414
|
+
group: '列表功能',
|
|
415
|
+
label: '下载导入模板',
|
|
416
|
+
functions: [
|
|
417
|
+
{
|
|
418
|
+
path: '/commons/download-files$GET'
|
|
419
|
+
}
|
|
420
|
+
]
|
|
421
|
+
},
|
|
422
|
+
lineEditCreate: {
|
|
423
|
+
group: '列表行编辑功能',
|
|
424
|
+
label: '新建',
|
|
425
|
+
functions: [
|
|
426
|
+
{
|
|
427
|
+
code: 'create',
|
|
428
|
+
label: '暂存',
|
|
429
|
+
path: '/commons$POST'
|
|
430
|
+
}
|
|
431
|
+
]
|
|
432
|
+
},
|
|
433
|
+
lineEditSave: {
|
|
434
|
+
group: '列表行编辑功能',
|
|
435
|
+
label: '保存',
|
|
436
|
+
functions: [
|
|
437
|
+
{
|
|
438
|
+
code: 'create',
|
|
439
|
+
label: '保存',
|
|
440
|
+
path: '/commons$POST'
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
code: 'update',
|
|
444
|
+
label: '修改',
|
|
445
|
+
path: '/commons$POST'
|
|
446
|
+
}
|
|
447
|
+
]
|
|
448
|
+
},
|
|
449
|
+
lineEditDelete: {
|
|
450
|
+
group: '列表行编辑功能',
|
|
451
|
+
label: '删除',
|
|
452
|
+
functions: [
|
|
453
|
+
{
|
|
454
|
+
code: 'delete',
|
|
455
|
+
path: '/commons/{tableName}$DELETE'
|
|
456
|
+
}
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
lineEditUpdate: {
|
|
460
|
+
group: '列表行编辑功能',
|
|
461
|
+
label: '修改',
|
|
462
|
+
functions: [
|
|
463
|
+
{
|
|
464
|
+
code: 'update',
|
|
465
|
+
label: '修改',
|
|
466
|
+
path: '/commons$POST'
|
|
467
|
+
}
|
|
468
|
+
]
|
|
469
|
+
},
|
|
470
|
+
restoreEdit: {
|
|
471
|
+
group: '列表行编辑功能',
|
|
472
|
+
label: '取消编辑',
|
|
473
|
+
functions: []
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* 根据资源简码缓存信息
|
|
479
|
+
*/
|
|
480
|
+
const functionMap: any = {}
|
|
481
|
+
/**
|
|
482
|
+
* 根据简码获取对应的资源信息
|
|
483
|
+
* @param eventName 方法名
|
|
484
|
+
* @returns
|
|
485
|
+
*/
|
|
486
|
+
export function getStandPermissionInfo(eventName: string) {
|
|
487
|
+
return eventName ? standardFuncUrlMap[eventName] : undefined
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* 获取资源信息
|
|
492
|
+
* @param simpleCode
|
|
493
|
+
* @returns
|
|
494
|
+
*/
|
|
495
|
+
export function getFunctionInfo(simpleCode: string) {
|
|
496
|
+
if (!simpleCode) {
|
|
497
|
+
return undefined
|
|
498
|
+
}
|
|
499
|
+
let funcInfo: any = functionMap[simpleCode]
|
|
500
|
+
if (funcInfo == undefined) {
|
|
501
|
+
for (let eventName in standardFuncUrlMap) {
|
|
502
|
+
const functions = standardFuncUrlMap[eventName].functions
|
|
503
|
+
if (!functions) {
|
|
504
|
+
continue
|
|
505
|
+
}
|
|
506
|
+
for (let f of functions) {
|
|
507
|
+
const tempCode = f.code ? f.code : eventName
|
|
508
|
+
if (simpleCode === tempCode) {
|
|
509
|
+
funcInfo = f
|
|
510
|
+
break
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
if (funcInfo) {
|
|
514
|
+
break
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
//设置默认值
|
|
518
|
+
functionMap[simpleCode] = funcInfo ? funcInfo : ''
|
|
519
|
+
}
|
|
520
|
+
return funcInfo ? funcInfo : undefined
|
|
521
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import store from './store'
|
|
2
|
+
// 获得store中缓存的信息。返回的是Object对象,不是json字符串
|
|
3
|
+
export function getStoreInfo(pageCode, pageVersion, key) {
|
|
4
|
+
const pageCodeStoreInfo = store.get(getPageStoreKey(pageCode, pageVersion))
|
|
5
|
+
if (pageCodeStoreInfo) {
|
|
6
|
+
return pageCodeStoreInfo[key]
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// 往store中缓存信息
|
|
11
|
+
export function setStoreInfo(pageCode, pageVersion, key:string, value:any) {
|
|
12
|
+
const pageKey = getPageStoreKey(pageCode, pageVersion)
|
|
13
|
+
let pageCodeStoreInfo = store.get(pageKey)
|
|
14
|
+
if (!pageCodeStoreInfo) {
|
|
15
|
+
pageCodeStoreInfo = {}
|
|
16
|
+
store.set(pageKey, pageCodeStoreInfo)
|
|
17
|
+
}
|
|
18
|
+
pageCodeStoreInfo[key] = value
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 删除某属性
|
|
22
|
+
* @param {*} pageCode
|
|
23
|
+
* @param {*} key
|
|
24
|
+
*/
|
|
25
|
+
export function deleteStoreInfo(pageCode, pageVersion, key) {
|
|
26
|
+
let pageCodeStoreInfo = store.get(getPageStoreKey(pageCode, pageVersion))
|
|
27
|
+
if (pageCodeStoreInfo && pageCodeStoreInfo[key]) {
|
|
28
|
+
delete pageCodeStoreInfo[key]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 获得页面缓存的key
|
|
35
|
+
* @param pageCode
|
|
36
|
+
* @param pageVersion
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
export function getPageStoreKey(pageCode, pageVersion) {
|
|
40
|
+
return pageCode + ':' + pageVersion
|
|
41
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { getBaseUrl } from './common-util'
|
|
2
|
+
import http from 'agilebuilder-ui/src/utils/request'
|
|
3
|
+
// import eventBus from './eventBus'
|
|
4
|
+
export function getDataTypeMap(system, tableName) {
|
|
5
|
+
return new Promise((resolve, reject) => {
|
|
6
|
+
// TODO:是否需要区分预览
|
|
7
|
+
// if (this.isPreview) {
|
|
8
|
+
// // 预览时不需要获得字段类型
|
|
9
|
+
// resolve(true)
|
|
10
|
+
// } else {
|
|
11
|
+
getDataTypeMapRequest(system, tableName)
|
|
12
|
+
.then((dataTypeMap) => {
|
|
13
|
+
resolve(dataTypeMap)
|
|
14
|
+
})
|
|
15
|
+
.catch(() => {
|
|
16
|
+
reject(new Error('获得数据表:' + tableName + '的字段类型集合失败'))
|
|
17
|
+
})
|
|
18
|
+
// }
|
|
19
|
+
})
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function getDataTypeMapRequest(system, tableName) {
|
|
23
|
+
const baseUrl = getBaseUrl(system)
|
|
24
|
+
return http.get(baseUrl + '/dsc/commons/tables/' + tableName + '/data-types')
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// 弹框显示页面,例如:列表页面super-grid字段的超链接弹框、表单页面子表字段的超链接弹框、表单页面超链接或按钮弹框。
|
|
28
|
+
// 此处只需要直接弹出来就行了,弹框前事件、跳转页面配置解析已在对应位置(super-grid或super-form)代码解析了
|
|
29
|
+
export function popupToPage(params) {
|
|
30
|
+
window['$eventBus'].$emit(params.pageCode + '_open-dialog', params)
|
|
31
|
+
}
|