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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import './base.css';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const cn = {
|
|
2
|
+
superPageRuntimeMessage:{
|
|
3
|
+
successfulSave: '保存成功',
|
|
4
|
+
recordLine:'第 {row} 行记录',
|
|
5
|
+
tableListSubTableDataVerificationFailed: '表单子表数据校验失败',
|
|
6
|
+
formDataVerificationFailed: '表单数据校验失败',
|
|
7
|
+
successfulOperation: '操作成功',
|
|
8
|
+
selectTemplate: '选择模板',
|
|
9
|
+
temlpate: '模板',
|
|
10
|
+
operating: '操作',
|
|
11
|
+
export: '导出',
|
|
12
|
+
tips: '提示',
|
|
13
|
+
sure: '确定',
|
|
14
|
+
cancel: '取消',
|
|
15
|
+
whetherToConfirmSubmit: '确定{name}吗?',
|
|
16
|
+
whetherToConfirmAgree: '确定{name}吗?',
|
|
17
|
+
whetherToConfirmDisagree: '确定{name}吗?',
|
|
18
|
+
pleaseSelectRecord:'请选择记录',
|
|
19
|
+
whetherToConfirmDeletion: '确定删除吗?',
|
|
20
|
+
successfulDelete: '删除成功',
|
|
21
|
+
noFileSelected: '请选择一个文件',
|
|
22
|
+
asyncImport: '正在异步导入,请等待消息通知!',
|
|
23
|
+
successfulImport: '导入成功',
|
|
24
|
+
thePreconditionOfTheButtonTo: '该按钮前置条件为[{message}]',
|
|
25
|
+
onlyOneRecordCanBeselected: '只能选择一条记录',
|
|
26
|
+
selectAtLeastOneRecord: '请至少选择一条记录',
|
|
27
|
+
requestPathEmpty: '后台请求路径为空',
|
|
28
|
+
successfulSubmit: '提交成功',
|
|
29
|
+
successfulCompleteTask: '任务办理成功',
|
|
30
|
+
successfulAssign: '指派任务成功',
|
|
31
|
+
successfulRetrieve: '取回任务成功',
|
|
32
|
+
successfulDrawTask: '领取任务成功',
|
|
33
|
+
successfulAbandonReceive: '放弃任务成功',
|
|
34
|
+
successfulReturnToPreviousTask: '退回上一环节成功',
|
|
35
|
+
successfulEndInstance: '强制结束流程成功',
|
|
36
|
+
selectNode:'选择环节',
|
|
37
|
+
nodeName:'环节名称',
|
|
38
|
+
nodeId:'环节编码',
|
|
39
|
+
pleaseSelectNode:'请选择环节',
|
|
40
|
+
successfulReturnTaskTo: '退回成功',
|
|
41
|
+
selectRemoveUsers: '选择减签任务',
|
|
42
|
+
transactorName: '办理人姓名',
|
|
43
|
+
transactor: '办理人登录名',
|
|
44
|
+
trustorName: '委托人姓名',
|
|
45
|
+
pleaseSelectRemoverUsers: '请选择减签用户',
|
|
46
|
+
required:'{label}必填',
|
|
47
|
+
formatMismatch:'{label}格式不匹配',
|
|
48
|
+
overMaxLength:'{label}最多只能输入{value}字符',
|
|
49
|
+
limitMinLength:'{label}至少输入{value}字符'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export default cn
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const en = {
|
|
2
|
+
superPageRuntimeMessage:{
|
|
3
|
+
successfulSave: 'Save succeeded',
|
|
4
|
+
recordLine:'Record line {row}',
|
|
5
|
+
tableListSubTableDataVerificationFailed: 'Table List Sub Table Data Verification Failed',
|
|
6
|
+
formDataVerificationFailed: 'Form Data Verification Failed',
|
|
7
|
+
successfulOperation: 'Operation successful',
|
|
8
|
+
selectTemplate: 'Select Template',
|
|
9
|
+
temlpate: 'Template',
|
|
10
|
+
operating: 'Operate',
|
|
11
|
+
export: 'Export',
|
|
12
|
+
tips: 'Tip',
|
|
13
|
+
sure: 'Sure',
|
|
14
|
+
cancel: 'Cancel',
|
|
15
|
+
whetherToConfirmSubmit: 'Are you sure to {name}?',
|
|
16
|
+
whetherToConfirmAgree: 'Are you sure to {name}?',
|
|
17
|
+
whetherToConfirmDisagree: 'Are you sure to {name}?',
|
|
18
|
+
pleaseSelectRecord: 'Please select the record',
|
|
19
|
+
whetherToConfirmDeletion: 'Are you sure to delete?',
|
|
20
|
+
successfulDelete: 'Delete succeeded',
|
|
21
|
+
noFileSelected: 'Please select a file',
|
|
22
|
+
asyncImport: 'Asynchronous import, please wait for message notification!',
|
|
23
|
+
successfulImport: 'Import succeeded',
|
|
24
|
+
thePreconditionOfTheButtonTo: 'The Precondition Of The Button To [{message}]',
|
|
25
|
+
onlyOneRecordCanBeselected: 'Only One Record Can Be Selected',
|
|
26
|
+
selectAtLeastOneRecord: 'Please Select At Least One Record',
|
|
27
|
+
requestPathEmpty: 'Backend request path is empty',
|
|
28
|
+
successfulSubmit: 'Submit succeeded',
|
|
29
|
+
successfulCompleteTask: 'Task handled successfully',
|
|
30
|
+
successfulAssign: 'Task assigned successfully',
|
|
31
|
+
successfulRetrieve: 'Retrieve task succeeded',
|
|
32
|
+
successfulDrawTask: 'Task received successfully',
|
|
33
|
+
successfulAbandonReceive: 'The task was abandoned successfully',
|
|
34
|
+
successfulReturnToPreviousTask:'Successfully returned to the previous phase',
|
|
35
|
+
successfulEndInstance: 'Forced to end the process successfully',
|
|
36
|
+
selectNode:'Select Node',
|
|
37
|
+
nodeName:'Node Name',
|
|
38
|
+
nodeId:'Node Code',
|
|
39
|
+
pleaseSelectNode:'Please Select Node',
|
|
40
|
+
successfulReturnTaskTo: 'Returned successfully',
|
|
41
|
+
selectRemoveUsers: 'Select Remove Task',
|
|
42
|
+
transactorName: 'Transactor Name',
|
|
43
|
+
transactor: 'Transactor Loginname',
|
|
44
|
+
trustorName: 'Trustor Name',
|
|
45
|
+
pleaseSelectRemoverUsers: 'Please select remove task',
|
|
46
|
+
required:'{label} is required',
|
|
47
|
+
formatMismatch:'{label} Format mismatch',
|
|
48
|
+
overMaxLength:'{label} can only input a maximum of {value} characters',
|
|
49
|
+
limitMinLength:'Enter at least {value} characters for {label}'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export default en
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ref, computed } from 'vue'
|
|
2
|
+
import { defineStore } from 'pinia'
|
|
3
|
+
|
|
4
|
+
export const useCounterStore = defineStore('counter', () => {
|
|
5
|
+
const count = ref(0)
|
|
6
|
+
const doubleCount = computed(() => count.value * 2)
|
|
7
|
+
function increment() {
|
|
8
|
+
count.value++
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return { count, doubleCount, increment }
|
|
12
|
+
})
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
|
|
2
|
+
import {
|
|
3
|
+
getSystemBackendUrl
|
|
4
|
+
} from 'agilebuilder-ui/src/utils/common-util'
|
|
5
|
+
import { getSessionCache } from 'agilebuilder-ui/src/utils/auth'
|
|
6
|
+
import http from 'agilebuilder-ui/src/utils/request'
|
|
7
|
+
import {getBaseUrl} from '../common-util'
|
|
8
|
+
import {dealCompleteTaskParam} from '../events/standard-event'
|
|
9
|
+
/**
|
|
10
|
+
* 设值自定义校验规则。推荐在按钮的beforeValidateForm事件中调用该方法。
|
|
11
|
+
* @param params 事件中的params参数
|
|
12
|
+
* @param customRules 自定义的校验规则
|
|
13
|
+
*/
|
|
14
|
+
export function setCustomRules(pageContext, customRules) {
|
|
15
|
+
//TODO: 流程表单时自定义验证规则实现方式
|
|
16
|
+
if (pageContext) {
|
|
17
|
+
pageContext.customRules = customRules
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 获得表单数据
|
|
22
|
+
* @param pageContext
|
|
23
|
+
*/
|
|
24
|
+
export function getData(pageContext) {
|
|
25
|
+
const pageType = pageContext.pageType
|
|
26
|
+
if(pageType && pageType === 'form') {
|
|
27
|
+
console.log('获取表单数据getData--pageContext=', pageContext)
|
|
28
|
+
const isWorkflow = pageContext.workflowCode ? true : false
|
|
29
|
+
if (isWorkflow) {
|
|
30
|
+
// 表示是流程表单
|
|
31
|
+
return getWorkflowFormData(pageContext)
|
|
32
|
+
} else {
|
|
33
|
+
// 表示是普通表单
|
|
34
|
+
return getCommonFormData(pageContext)
|
|
35
|
+
}
|
|
36
|
+
} else {
|
|
37
|
+
return new Promise((resolve,reject)=>{
|
|
38
|
+
resolve(true)
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// 获得普通表单数据
|
|
44
|
+
function getCommonFormData(pageContext) {
|
|
45
|
+
return new Promise((resolve, reject) => {
|
|
46
|
+
const system = pageContext.entity.system
|
|
47
|
+
const pageCode = pageContext.code
|
|
48
|
+
const pageVersion = pageContext.version
|
|
49
|
+
const additionalParamMap = pageContext.entity.request
|
|
50
|
+
const dataId = additionalParamMap ? additionalParamMap.id : null
|
|
51
|
+
const ids = additionalParamMap ? additionalParamMap.ids : null
|
|
52
|
+
const taskId = additionalParamMap ? additionalParamMap.taskId : null
|
|
53
|
+
const permissionPrefix = system.code + '.' + pageCode
|
|
54
|
+
const backendUrl = getSystemBackendUrl(system.backendUrl)
|
|
55
|
+
const param = {
|
|
56
|
+
pageCode: pageCode,
|
|
57
|
+
pageVersion: pageVersion,
|
|
58
|
+
tableName: pageContext.tableName,
|
|
59
|
+
formNoRuleCode: pageContext.formNoRuleCode,
|
|
60
|
+
id: dataId,
|
|
61
|
+
systemCode: system.code,
|
|
62
|
+
functionCode: permissionPrefix + '.get',
|
|
63
|
+
tableNames: pageContext.tableNames
|
|
64
|
+
}
|
|
65
|
+
if (!param.id && additionalParamMap &&
|
|
66
|
+
additionalParamMap._t_ && getSessionCache(additionalParamMap._t_ + '_id')) {
|
|
67
|
+
param.id = getSessionCache(additionalParamMap._t_ + '_id')
|
|
68
|
+
}
|
|
69
|
+
if (ids) {
|
|
70
|
+
param['ids'] = ids
|
|
71
|
+
}
|
|
72
|
+
if (pageContext.notIdInitializationList) {
|
|
73
|
+
param['noIdAndTaskIdInitSetting'] = JSON.stringify(pageContext.notIdInitializationList)
|
|
74
|
+
}
|
|
75
|
+
if (additionalParamMap) {
|
|
76
|
+
param['additionalParamMap'] = additionalParamMap
|
|
77
|
+
}
|
|
78
|
+
if (pageContext.beanName) {
|
|
79
|
+
param['beanName'] = pageContext.beanName
|
|
80
|
+
}
|
|
81
|
+
if (taskId) {
|
|
82
|
+
param['taskId'] = taskId
|
|
83
|
+
}
|
|
84
|
+
const urlForView = backendUrl + '/dsc/commons/gets'
|
|
85
|
+
http.post(urlForView, param).then((commonEntity) => {
|
|
86
|
+
if (commonEntity) {
|
|
87
|
+
pageContext.entity.data = commonEntity.entity
|
|
88
|
+
// 获得表单编码规则解析结果
|
|
89
|
+
// TODO: 临时表单编码处理
|
|
90
|
+
pageContext.initFormNo = commonEntity.formNo
|
|
91
|
+
|
|
92
|
+
// if (this.dataId) {
|
|
93
|
+
// // 是否是新建表单
|
|
94
|
+
// setStoreInfo(this.pageCode, '_isCreateformData', false)
|
|
95
|
+
// } else {
|
|
96
|
+
// setStoreInfo(this.pageCode, '_isCreateformData', true)
|
|
97
|
+
// }
|
|
98
|
+
// TODO: dataTypeMap处理
|
|
99
|
+
// this.dataTypeMap = formParam.dataTypeMap
|
|
100
|
+
}
|
|
101
|
+
resolve(commonEntity)
|
|
102
|
+
}).catch(error => {
|
|
103
|
+
reject(error)
|
|
104
|
+
})
|
|
105
|
+
})
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// 获得流程表单数据
|
|
109
|
+
function getWorkflowFormData(pageContext) {
|
|
110
|
+
return new Promise((resolve,reject)=>{
|
|
111
|
+
const system = pageContext.entity.system
|
|
112
|
+
const pageCode = pageContext.code
|
|
113
|
+
const pageVersion = pageContext.version
|
|
114
|
+
const additionalParamMap = pageContext.entity.request
|
|
115
|
+
const dataId = additionalParamMap ? additionalParamMap.id : null
|
|
116
|
+
const ids = additionalParamMap ? additionalParamMap.ids : null
|
|
117
|
+
const taskId = additionalParamMap ? additionalParamMap.taskId : null
|
|
118
|
+
const permissionPrefix = system.code + '.' + pageCode
|
|
119
|
+
const param = {
|
|
120
|
+
pageCode: pageCode,
|
|
121
|
+
pageVersion: pageVersion,
|
|
122
|
+
tableName: pageContext.tableName,
|
|
123
|
+
formNoRuleCode: pageContext.formNoRuleCode,
|
|
124
|
+
isWorkflowEntity:true,
|
|
125
|
+
systemCode: system.code,
|
|
126
|
+
functionCode: permissionPrefix + '.get',
|
|
127
|
+
tableNames: pageContext.tableNames
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (ids) {
|
|
131
|
+
param['ids'] = ids
|
|
132
|
+
}
|
|
133
|
+
if (taskId) {
|
|
134
|
+
// 办理任务页面
|
|
135
|
+
param['taskId'] = this.taskId
|
|
136
|
+
} else if (dataId) {
|
|
137
|
+
// 修改页面
|
|
138
|
+
param['id'] = dataId
|
|
139
|
+
} else {
|
|
140
|
+
if (additionalParamMap &&
|
|
141
|
+
additionalParamMap._t_ && getSessionCache(additionalParamMap._t_ + '_id')) {
|
|
142
|
+
param['id'] = getSessionCache(additionalParamMap._t_ + '_id')
|
|
143
|
+
}
|
|
144
|
+
// 新建页面
|
|
145
|
+
if (pageContext.notIdInitializationList) {
|
|
146
|
+
param['noIdAndTaskIdInitSetting'] = JSON.stringify(pageContext.notIdInitializationList)
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
}
|
|
150
|
+
if (additionalParamMap) {
|
|
151
|
+
param['additionalParamMap'] = additionalParamMap
|
|
152
|
+
}
|
|
153
|
+
if (pageContext.beanName) {
|
|
154
|
+
param['beanName'] = pageContext.beanName
|
|
155
|
+
}
|
|
156
|
+
const baseUrl = getBaseUrl(system)
|
|
157
|
+
const urlForView = baseUrl + '/dsc/workflow-commons/gets'
|
|
158
|
+
http.post(urlForView, param).then((commonEntity) => {
|
|
159
|
+
pageContext.definitionId = commonEntity.definitionId
|
|
160
|
+
pageContext.entity.task = commonEntity.taskParamMap
|
|
161
|
+
|
|
162
|
+
// if (this.dataId) {
|
|
163
|
+
// setStoreInfo(this.pageCode, '_isCreateformData', false)
|
|
164
|
+
// } else {
|
|
165
|
+
// setStoreInfo(this.pageCode, '_isCreateformData', true)
|
|
166
|
+
// }
|
|
167
|
+
// TODO: dataTypeMap处理
|
|
168
|
+
// this.dataTypeMap = formParam.dataTypeMap
|
|
169
|
+
|
|
170
|
+
dealCompleteTaskParam(commonEntity, true, pageContext)
|
|
171
|
+
resolve(commonEntity)
|
|
172
|
+
}).catch(error => {
|
|
173
|
+
reject(error)
|
|
174
|
+
})
|
|
175
|
+
})
|
|
176
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import theme1 from '../../assets/chart-themes/theme1'
|
|
2
|
+
import theme2 from '../../assets/chart-themes/theme2'
|
|
3
|
+
import theme3 from '../../assets/chart-themes/theme3'
|
|
4
|
+
|
|
5
|
+
//缓存主题
|
|
6
|
+
const themeMap: any = {
|
|
7
|
+
theme1: theme1,
|
|
8
|
+
theme2: theme2,
|
|
9
|
+
theme3: theme3
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 获取主题对象
|
|
14
|
+
* @param themeName 获取自定义的主题名称
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
export function getCustomTheme(themeName: string) {
|
|
18
|
+
console.log('getdd', themeName)
|
|
19
|
+
return themeMap[themeName]
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 获取所有主题对象
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
export function getCustomThemeOptions(): Array<any> {
|
|
27
|
+
return [
|
|
28
|
+
{
|
|
29
|
+
value: 'theme1',
|
|
30
|
+
label: '主题1'
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
value: 'theme2',
|
|
34
|
+
label: '主题2'
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
value: 'theme3',
|
|
38
|
+
label: '主题3'
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { getSystemBackendUrl } from 'agilebuilder-ui/src/utils/common-util'
|
|
2
|
+
import { getLanguageWithLocale } from 'agilebuilder-ui/src/utils/util'
|
|
3
|
+
import { getPageStoreKey } from './store-util'
|
|
4
|
+
export function isArrayFn(value) {
|
|
5
|
+
// 首先判断浏览器是否支持Array.isArray这个方法
|
|
6
|
+
if (typeof Array.isArray === 'function') {
|
|
7
|
+
return Array.isArray(value)
|
|
8
|
+
} else {
|
|
9
|
+
return Object.prototype.toString.call(value) === '[object Array]'
|
|
10
|
+
// return obj.__proto__ === Array.prototype;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function getBaseUrl(system) {
|
|
15
|
+
// window['$vueApp'].config.globalProperties.baseURL 应该是自定义扩展系统的后台访问路径
|
|
16
|
+
let baseUrl = window['$vueApp'].config.globalProperties.baseURL
|
|
17
|
+
if (system) {
|
|
18
|
+
baseUrl = getSystemBackendUrl(system.backendUrl)
|
|
19
|
+
}
|
|
20
|
+
return baseUrl
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function getRealRestApiPath(orgRestApiPath, system) {
|
|
24
|
+
let path = orgRestApiPath
|
|
25
|
+
if (orgRestApiPath) {
|
|
26
|
+
if (system && !isFullPath(orgRestApiPath)) {
|
|
27
|
+
const baseUrl = getBaseUrl(system)
|
|
28
|
+
if (system.standard === false) {
|
|
29
|
+
// 自定义系统
|
|
30
|
+
// 扩展系统的后台地址格式为:/dsc/systemCode/xxx/x,例如:/dsc/demo/orders/list,配置的路径为/orders/list即可
|
|
31
|
+
path = baseUrl + '/' + system.code + orgRestApiPath
|
|
32
|
+
} else {
|
|
33
|
+
// 标准系统
|
|
34
|
+
path = baseUrl + orgRestApiPath
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return path
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// 表示是全路径
|
|
42
|
+
function isFullPath(path) {
|
|
43
|
+
return path.indexOf('http:') === 0 || path.indexOf('https:') === 0
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* 封装模板文件列表
|
|
48
|
+
* @param templateFiles
|
|
49
|
+
* @returns
|
|
50
|
+
*/
|
|
51
|
+
export function packageTemplateFiles(templateFiles) {
|
|
52
|
+
if (!templateFiles) {
|
|
53
|
+
return templateFiles
|
|
54
|
+
}
|
|
55
|
+
const currentLocale = getLanguageWithLocale()
|
|
56
|
+
if (Array.isArray(templateFiles)) {
|
|
57
|
+
// 表示是上传的多个模板
|
|
58
|
+
let templateFilesResult = []
|
|
59
|
+
let fileCodes = []
|
|
60
|
+
const fileSeperate = '~-~-'
|
|
61
|
+
templateFiles.forEach((template) => {
|
|
62
|
+
let showName = template.templateShowPath
|
|
63
|
+
if (showName.indexOf(fileSeperate) > 0) {
|
|
64
|
+
// 表示是多语言模板
|
|
65
|
+
const fileCode = showName.substring(0, showName.indexOf(fileSeperate))
|
|
66
|
+
const fileLanguage = showName.substring(
|
|
67
|
+
showName.indexOf(fileSeperate) + fileSeperate.length,
|
|
68
|
+
showName.lastIndexOf(fileSeperate)
|
|
69
|
+
)
|
|
70
|
+
const fileName = showName.substring(
|
|
71
|
+
showName.lastIndexOf(fileSeperate) + fileSeperate.length
|
|
72
|
+
)
|
|
73
|
+
if (currentLocale === fileLanguage && fileCodes.indexOf(fileCode) < 0) {
|
|
74
|
+
templateFilesResult.push({
|
|
75
|
+
templateUUID: template.templateUUID,
|
|
76
|
+
templateShowPath: fileName
|
|
77
|
+
})
|
|
78
|
+
fileCodes.push(fileCode)
|
|
79
|
+
}
|
|
80
|
+
} else {
|
|
81
|
+
templateFilesResult.push(template)
|
|
82
|
+
}
|
|
83
|
+
})
|
|
84
|
+
return templateFilesResult
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// 首字母大写
|
|
89
|
+
export function upperFirstCase(str) {
|
|
90
|
+
return str.toLowerCase().replace(/( |^)[a-z]/g, (L) => L.toUpperCase()) // 执行代码
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// 获得列表编码
|
|
94
|
+
export function getListCode(pageCode, pageVersion, tableUuid) {
|
|
95
|
+
return pageCode + ':V' + pageVersion + ':' + tableUuid
|
|
96
|
+
}
|