super-page-runtime 1.0.17 → 2.0.1
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/assets/chart-themes/theme1.d.ts +4 -0
- package/{lib/src → dist/es}/assets/chart-themes/theme1.js +3 -2
- package/dist/es/assets/chart-themes/theme2.d.ts +4 -0
- package/{lib/src → dist/es}/assets/chart-themes/theme2.js +3 -2
- package/dist/es/assets/chart-themes/theme3.d.ts +4 -0
- package/{lib/src → dist/es}/assets/chart-themes/theme3.js +3 -2
- package/dist/es/components/runtime/index.d.ts +4 -0
- package/{lib/src → dist/es/components/runtime}/utils/api/api-util.js +15 -15
- package/dist/es/components/runtime/utils/assemblys-config.js +257 -0
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +11 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +28 -0
- package/{lib/src → dist/es/components/runtime}/utils/common-util.d.ts +5 -0
- package/{lib/src → dist/es/components/runtime}/utils/common-util.js +25 -12
- package/dist/es/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/es/components/runtime/utils/eventBus.js +11 -0
- package/{lib/src → dist/es/components/runtime}/utils/events/event-util.d.ts +1 -1
- package/{lib/src → dist/es/components/runtime}/utils/events/event-util.js +41 -40
- package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.js +149 -148
- package/{lib/src → dist/es/components/runtime}/utils/events/validator-util.js +23 -23
- package/{lib/src → dist/es/components/runtime}/utils/global-refs.js +8 -8
- package/{lib/src → dist/es/components/runtime}/utils/interfaces/page-design-types.d.ts +2 -0
- package/{lib/src → dist/es/components/runtime}/utils/interfaces/page-design-types.js +3 -3
- package/{lib/src → dist/es/components/runtime}/utils/page-helper-util.d.ts +19 -0
- package/{lib/src → dist/es/components/runtime}/utils/page-helper-util.js +135 -19
- package/{lib/src → dist/es/components/runtime}/utils/page-init-util.js +18 -18
- package/dist/es/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/es/components/runtime/utils/page-permission-util.js +525 -0
- package/{lib/src → dist/es/components/runtime}/utils/store-util.js +5 -5
- package/{lib/src → dist/es/components/runtime}/utils/store.js +3 -2
- package/{lib/src → dist/es/components/runtime}/utils/table-utils.js +10 -9
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +55 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +36 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +111 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +249 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +62 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +57 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +50 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +51 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +51 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +52 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/common/export-form-report-dialog.vue.js +34 -27
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/common/remove-signer-dialog.vue.js +33 -32
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/common/task-informition-dialog.vue.js +30 -29
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/container/card/card-runtime.vue2.js +24 -23
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +75 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +80 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +44 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +45 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -8
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +70 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +17 -15
- package/{lib → dist/es/components}/runtime/views/assemblys/data/table/main-table-runtime.vue.js +66 -63
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +40 -38
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/data/table/table-runtime.vue2.js +17 -11
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +23 -0
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +36 -35
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +83 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +64 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +41 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +75 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +64 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +128 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +128 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +78 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +30 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +37 -36
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +37 -48
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/form/select/select-runtime.vue2.js +54 -53
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +64 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +64 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +66 -0
- package/{lib → dist/es}/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
- package/{lib → dist/es/components}/runtime/views/assemblys/object-render.vue.js +35 -34
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +17 -16
- package/{lib/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.js +19 -17
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +4 -0
- package/{lib → dist/es}/components/runtime/views/super-page.vue.d.ts +1 -1
- package/{lib → dist/es/components}/runtime/views/super-page.vue.js +129 -112
- package/dist/es/components/runtime/views/super-page.vue2.js +4 -0
- package/dist/es/index.d.ts +8 -0
- package/dist/es/index.js +15 -0
- package/package.json +70 -71
- package/src/index.ts +15 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +0 -9
- package/lib/components/index.d.ts +0 -5
- package/lib/components/runtime/index.d.ts +0 -3
- package/lib/components/super-page-dialog/index.d.ts +0 -3
- package/lib/components/wf-editor/index.d.ts +0 -3
- package/lib/components/wf-editor/wf-editor.vue.d.ts +0 -2
- package/lib/index.js +0 -8
- package/lib/runtime/index.js +0 -3
- package/lib/runtime/utils/assemblys-config.js +0 -258
- package/lib/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
- package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
- package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
- package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -53
- package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -42
- package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -50
- package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -50
- package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -51
- package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
- package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- package/lib/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
- package/lib/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -73
- package/lib/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -78
- package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -42
- package/lib/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -43
- package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -68
- package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
- package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
- package/lib/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/error-render.vue.js +0 -22
- package/lib/runtime/views/assemblys/error-render.vue2.js +0 -3
- package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
- package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -59
- package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
- package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
- package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
- package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
- package/lib/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -133
- package/lib/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
- package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
- package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
- package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
- package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
- package/lib/runtime/views/assemblys/object-render.vue2.js +0 -3
- package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/lib/runtime/views/super-page.vue2.js +0 -3
- package/lib/src/utils/charts/chart-util.js +0 -15
- package/lib/super-page-dialog/index.js +0 -3
- package/lib/super-page-dialog/super-page-dialog.vue2.js +0 -3
- package/lib/wf-editor/index.js +0 -3
- package/lib/wf-editor/wf-editor.css +0 -4
- package/lib/wf-editor/wf-editor.vue.js +0 -15
- package/src/assets/base.css +0 -86
- package/src/assets/chart-themes/theme1.ts +0 -6
- package/src/assets/chart-themes/theme2.ts +0 -6
- package/src/assets/chart-themes/theme3.ts +0 -6
- 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 +0 -1
- package/src/assets/main.css +0 -1
- package/src/i18n/langs/cn.js +0 -52
- package/src/i18n/langs/en.js +0 -52
- package/src/stores/counter.ts +0 -12
- package/src/utils/api/api-util.ts +0 -176
- package/src/utils/charts/chart-util.ts +0 -41
- package/src/utils/common-util.ts +0 -96
- package/src/utils/container-style-util.ts +0 -237
- package/src/utils/eventBus.ts +0 -14
- package/src/utils/events/event-util.ts +0 -790
- package/src/utils/events/jump-page-util.ts +0 -0
- package/src/utils/events/standard-event.ts +0 -2075
- package/src/utils/events/validator-util.ts +0 -474
- package/src/utils/global-refs.ts +0 -160
- package/src/utils/interfaces/page-design-types.ts +0 -259
- package/src/utils/page-helper-util.ts +0 -850
- package/src/utils/page-init-util.ts +0 -291
- package/src/utils/page-permission-util.ts +0 -521
- package/src/utils/store-util.ts +0 -41
- package/src/utils/store.ts +0 -3
- package/src/utils/table-utils.ts +0 -31
- /package/{lib/src → dist/es/components/runtime}/utils/api/api-util.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/events/validator-util.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/global-refs.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/page-init-util.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/store-util.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/store.d.ts +0 -0
- /package/{lib → dist/es}/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/components/runtime/views/assemblys/error-render.vue.d.ts +0 -0
- /package/{lib/components/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/favicon.ico +0 -0
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const storeUtil = require("../store-util.js");
|
|
1
|
+
import { getBaseUrl, getRealRestApiPath, isArrayFn, upperFirstCase, packageTemplateFiles } from "../common-util.js";
|
|
2
|
+
import http from "agilebuilder-ui/src/utils/request";
|
|
3
|
+
import { getI18n } from "agilebuilder-ui/src/utils/util";
|
|
4
|
+
import { ElMessage, ElMessageBox } from "element-plus";
|
|
5
|
+
import { useRoute } from "vue-router";
|
|
6
|
+
import { setSessionCache, getToken } from "agilebuilder-ui/src/utils/auth";
|
|
7
|
+
import { getComponentRef } from "../global-refs.js";
|
|
8
|
+
import eventBus from "../eventBus.js";
|
|
9
|
+
import axios from "axios";
|
|
10
|
+
import { doAfterClickEvent } from "./event-util.js";
|
|
11
|
+
import { setStoreInfo } from "../store-util.js";
|
|
13
12
|
const standardEvents = {
|
|
14
13
|
// 表单标准事件保存save
|
|
15
14
|
save: function(params) {
|
|
@@ -27,7 +26,7 @@ const standardEvents = {
|
|
|
27
26
|
const pageContext = params.pageContext;
|
|
28
27
|
const pagCode = pageContext.code;
|
|
29
28
|
const eventPageInfo = pagCode + "_";
|
|
30
|
-
|
|
29
|
+
eventBus.$emit(eventPageInfo + "export-form-report", params);
|
|
31
30
|
},
|
|
32
31
|
// 表单标准事件导出报告exportPDF
|
|
33
32
|
exportPDF: function(params) {
|
|
@@ -85,7 +84,7 @@ const standardEvents = {
|
|
|
85
84
|
const pageContext = params.pageContext;
|
|
86
85
|
const pagCode = pageContext.code;
|
|
87
86
|
const eventPageInfo = pagCode + "_";
|
|
88
|
-
|
|
87
|
+
eventBus.$emit(eventPageInfo + "import-file", params);
|
|
89
88
|
},
|
|
90
89
|
// 列表标准事件 导出export
|
|
91
90
|
export: function(params) {
|
|
@@ -97,7 +96,7 @@ const standardEvents = {
|
|
|
97
96
|
console.log("列表标准事件 查询search--params=", params);
|
|
98
97
|
const pageContext = params.pageContext;
|
|
99
98
|
const tableUuid = params.tableUuid;
|
|
100
|
-
const gridRef =
|
|
99
|
+
const gridRef = getComponentRef(pageContext, tableUuid);
|
|
101
100
|
gridRef.refresh();
|
|
102
101
|
},
|
|
103
102
|
// 流程表单标准事件 暂存workflowSave
|
|
@@ -243,15 +242,15 @@ function exportFormReport(pageContext, configureObj, templateFile, isPdf) {
|
|
|
243
242
|
}
|
|
244
243
|
if (exportResult) {
|
|
245
244
|
exportResult.then(() => {
|
|
246
|
-
|
|
245
|
+
doAfterClickEvent(pageContext, configureObj);
|
|
247
246
|
});
|
|
248
247
|
}
|
|
249
248
|
}
|
|
250
249
|
function exportFormReportSuccess(fileName, system, param) {
|
|
251
250
|
return new Promise((resolve, reject) => {
|
|
252
|
-
const baseUrl =
|
|
251
|
+
const baseUrl = getBaseUrl(system);
|
|
253
252
|
const path = baseUrl + "/dsc/commons/export-reports";
|
|
254
|
-
axios.defaults.headers.common.Authorization =
|
|
253
|
+
axios.defaults.headers.common.Authorization = getToken();
|
|
255
254
|
const request = axios.post(path, param, {
|
|
256
255
|
headers: {
|
|
257
256
|
"content-type": "application/x-www-form-urlencoded"
|
|
@@ -281,9 +280,9 @@ function exportFormReportSuccess(fileName, system, param) {
|
|
|
281
280
|
}
|
|
282
281
|
function exportFormPdf(fileName, system, param) {
|
|
283
282
|
return new Promise((resolve, reject) => {
|
|
284
|
-
const baseUrl =
|
|
283
|
+
const baseUrl = getBaseUrl(system);
|
|
285
284
|
const path = baseUrl + "/dsc/commons/export-pdf";
|
|
286
|
-
axios.defaults.headers.common.Authorization =
|
|
285
|
+
axios.defaults.headers.common.Authorization = getToken();
|
|
287
286
|
const request = axios.post(path, param, {
|
|
288
287
|
headers: {
|
|
289
288
|
"content-type": "application/x-www-form-urlencoded"
|
|
@@ -362,7 +361,7 @@ function getCommonFormRequestParam(pageContext, configureObj, isUnControlVersion
|
|
|
362
361
|
param["ids"] = ids;
|
|
363
362
|
}
|
|
364
363
|
if (pageContext.judgeHeavyList) {
|
|
365
|
-
if (
|
|
364
|
+
if (isArrayFn(pageContext.judgeHeavyList)) {
|
|
366
365
|
param["judgeHeavyList"] = JSON.stringify(pageContext.judgeHeavyList);
|
|
367
366
|
} else {
|
|
368
367
|
param["judgeHeavyList"] = pageContext.judgeHeavyList;
|
|
@@ -370,7 +369,7 @@ function getCommonFormRequestParam(pageContext, configureObj, isUnControlVersion
|
|
|
370
369
|
}
|
|
371
370
|
const conversionCodes = configureObj.props.base.conversionCodes;
|
|
372
371
|
if (conversionCodes) {
|
|
373
|
-
if (
|
|
372
|
+
if (isArrayFn(conversionCodes)) {
|
|
374
373
|
param["dataConversionRule"] = conversionCodes.join(",");
|
|
375
374
|
} else if (typeof conversionCodes === "string") {
|
|
376
375
|
param["dataConversionRule"] = conversionCodes;
|
|
@@ -378,7 +377,7 @@ function getCommonFormRequestParam(pageContext, configureObj, isUnControlVersion
|
|
|
378
377
|
}
|
|
379
378
|
const autoSetValueData = configureObj.props.base.setValueList;
|
|
380
379
|
if (autoSetValueData) {
|
|
381
|
-
if (
|
|
380
|
+
if (isArrayFn(autoSetValueData)) {
|
|
382
381
|
param["autoSetValueData"] = autoSetValueData.join(",");
|
|
383
382
|
} else if (typeof autoSetValueData === "string") {
|
|
384
383
|
param["autoSetValueData"] = autoSetValueData;
|
|
@@ -423,9 +422,9 @@ function getSaveFormRequest(pageContext, configureObj, url, isUnControlVersion,
|
|
|
423
422
|
return getSaveFormRequestByParam(system, param, url, pageContext.entity.data);
|
|
424
423
|
}
|
|
425
424
|
function getSaveFormRequestByParam(system, param, url, formData) {
|
|
426
|
-
const baseUrl =
|
|
425
|
+
const baseUrl = getBaseUrl(system);
|
|
427
426
|
let path = baseUrl + url;
|
|
428
|
-
path =
|
|
427
|
+
path = getRealRestApiPath(path, system);
|
|
429
428
|
let request;
|
|
430
429
|
if (formData && (formData.id || formData.ID)) {
|
|
431
430
|
request = http.put(path, param);
|
|
@@ -457,8 +456,8 @@ function dealAfterWithForm(pageContext, configureObj, data, successTip) {
|
|
|
457
456
|
afterSuccessOperateInForm(pageContext, configureObj, dataModel);
|
|
458
457
|
}
|
|
459
458
|
if (successTip) {
|
|
460
|
-
|
|
461
|
-
message:
|
|
459
|
+
ElMessage({
|
|
460
|
+
message: getI18n().t(successTip),
|
|
462
461
|
type: "success",
|
|
463
462
|
showClose: true
|
|
464
463
|
});
|
|
@@ -484,9 +483,9 @@ function afterSuccessOperateInForm(pageContext, configureObj, dataModel) {
|
|
|
484
483
|
} else if (successOperation === "refresh") {
|
|
485
484
|
if (dataModel && (dataModel.id || dataModel.ID)) {
|
|
486
485
|
const dataIdSessio = dataModel.ID == null ? dataModel.id : dataModel.ID;
|
|
487
|
-
const route =
|
|
486
|
+
const route = useRoute();
|
|
488
487
|
if (route.query._t_) {
|
|
489
|
-
|
|
488
|
+
setSessionCache(route.query._t_ + "_id", dataIdSessio);
|
|
490
489
|
}
|
|
491
490
|
}
|
|
492
491
|
} else if (successOperation === "closeWindow" || successOperation === "closeWindowAndRefresh") {
|
|
@@ -503,15 +502,15 @@ function dealAfterWithList(pageContext, configureObj, row, successTip) {
|
|
|
503
502
|
console.log("dealAfterWithList--");
|
|
504
503
|
if (successOperation === "refresh") {
|
|
505
504
|
if (tableUuid) {
|
|
506
|
-
const gridRef =
|
|
505
|
+
const gridRef = getComponentRef(pageContext, tableUuid);
|
|
507
506
|
gridRef.refresh();
|
|
508
507
|
} else {
|
|
509
508
|
console.error("tableUuid is empty");
|
|
510
509
|
}
|
|
511
510
|
}
|
|
512
511
|
if (successTip) {
|
|
513
|
-
|
|
514
|
-
message:
|
|
512
|
+
ElMessage({
|
|
513
|
+
message: getI18n().t(successTip),
|
|
515
514
|
type: "success",
|
|
516
515
|
showClose: true
|
|
517
516
|
});
|
|
@@ -560,13 +559,13 @@ function submitForm(params, isListButton, eventName, url) {
|
|
|
560
559
|
function getSubmitFormRequest(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo, eventName, ids) {
|
|
561
560
|
return new Promise((resolve, reject) => {
|
|
562
561
|
const buttonName = configureObj.props.base.title;
|
|
563
|
-
const operationI18nTip = "superPageRuntimeMessage.whetherToConfirm" +
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
562
|
+
const operationI18nTip = "superPageRuntimeMessage.whetherToConfirm" + upperFirstCase(eventName);
|
|
563
|
+
ElMessageBox.confirm(
|
|
564
|
+
getI18n().t(operationI18nTip, { name: buttonName }),
|
|
565
|
+
getI18n().t("superPageRuntimeMessage.tips"),
|
|
567
566
|
{
|
|
568
|
-
confirmButtonText:
|
|
569
|
-
cancelButtonText:
|
|
567
|
+
confirmButtonText: getI18n().t("superPageRuntimeMessage.sure"),
|
|
568
|
+
cancelButtonText: getI18n().t("superPageRuntimeMessage.cancel"),
|
|
570
569
|
type: "warning"
|
|
571
570
|
}
|
|
572
571
|
).then(() => {
|
|
@@ -593,19 +592,19 @@ function deleteFunc(params) {
|
|
|
593
592
|
return new Promise((resolve, reject) => {
|
|
594
593
|
const ids = params.ids;
|
|
595
594
|
if (!ids || ids.length === 0) {
|
|
596
|
-
|
|
595
|
+
ElMessage({
|
|
597
596
|
showClose: true,
|
|
598
597
|
type: "warning",
|
|
599
|
-
message:
|
|
598
|
+
message: getI18n().t("superPageRuntimeMessage.pleaseSelectRecord")
|
|
600
599
|
});
|
|
601
600
|
return;
|
|
602
601
|
}
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
602
|
+
ElMessageBox.confirm(
|
|
603
|
+
getI18n().t("superPageRuntimeMessage.whetherToConfirmDeletion"),
|
|
604
|
+
getI18n().t("superPageRuntimeMessage.tips"),
|
|
606
605
|
{
|
|
607
|
-
confirmButtonText:
|
|
608
|
-
cancelButtonText:
|
|
606
|
+
confirmButtonText: getI18n().t("superPageRuntimeMessage.sure"),
|
|
607
|
+
cancelButtonText: getI18n().t("superPageRuntimeMessage.cancel"),
|
|
609
608
|
type: "warning"
|
|
610
609
|
}
|
|
611
610
|
).then(() => {
|
|
@@ -614,9 +613,9 @@ function deleteFunc(params) {
|
|
|
614
613
|
const system = pageContext.entity.system;
|
|
615
614
|
const tableName = pageContext.tableName;
|
|
616
615
|
const configureBase = configureObj.props.base;
|
|
617
|
-
const baseUrl =
|
|
616
|
+
const baseUrl = getBaseUrl(system);
|
|
618
617
|
let path = baseUrl + "/dsc/commons/" + tableName;
|
|
619
|
-
path =
|
|
618
|
+
path = getRealRestApiPath(path, system);
|
|
620
619
|
const isPermission = configureBase.isPermission === void 0 || configureBase.isPermission === "true" || configureBase.isPermission;
|
|
621
620
|
const isWorkflow = pageContext.workflowCode ? true : false;
|
|
622
621
|
const param = {
|
|
@@ -649,7 +648,7 @@ function deleteFunc(params) {
|
|
|
649
648
|
http.delete(path, {
|
|
650
649
|
data: param
|
|
651
650
|
}).then((data) => {
|
|
652
|
-
const gridRef =
|
|
651
|
+
const gridRef = getComponentRef(pageContext, params.tableUuid);
|
|
653
652
|
if (gridRef) {
|
|
654
653
|
gridRef.isDeleteChange(true);
|
|
655
654
|
gridRef.clearSelections();
|
|
@@ -674,7 +673,7 @@ function downloadTemplateFunc(params) {
|
|
|
674
673
|
const pageContext = params.pageContext;
|
|
675
674
|
const configureObj = params.configureObj;
|
|
676
675
|
const configureBase = configureObj.props.base;
|
|
677
|
-
const templateFilesResult =
|
|
676
|
+
const templateFilesResult = packageTemplateFiles(configureBase.templateFiles);
|
|
678
677
|
let templateUUID;
|
|
679
678
|
let templateShowPath;
|
|
680
679
|
if (templateFilesResult && templateFilesResult.length > 0) {
|
|
@@ -713,7 +712,7 @@ function downloadTemplateFunc(params) {
|
|
|
713
712
|
const isPermission = configureBase.isPermission === void 0 || configureBase.isPermission === "true" || configureBase.isPermission;
|
|
714
713
|
param += "&isPermission=" + isPermission;
|
|
715
714
|
}
|
|
716
|
-
const baseUrl =
|
|
715
|
+
const baseUrl = getBaseUrl(system);
|
|
717
716
|
window.open(baseUrl + "/dsc/commons/download-files" + param);
|
|
718
717
|
}
|
|
719
718
|
function doImportFinally(params, fileObj) {
|
|
@@ -771,37 +770,37 @@ function doImportFinally(params, fileObj) {
|
|
|
771
770
|
const isPermission = buttonConfigureBase.isPermission === void 0 || buttonConfigureBase.isPermission === "true" || buttonConfigureBase.isPermission;
|
|
772
771
|
param.append("isPermission", isPermission + "");
|
|
773
772
|
const system = pageContext.entity.system;
|
|
774
|
-
const baseUrl =
|
|
773
|
+
const baseUrl = getBaseUrl(system);
|
|
775
774
|
let path = baseUrl + "/dsc/commons/import-data";
|
|
776
|
-
path =
|
|
775
|
+
path = getRealRestApiPath(path, system);
|
|
777
776
|
http.post(path, param).then((data) => {
|
|
778
777
|
if (isAsync) {
|
|
779
|
-
|
|
778
|
+
ElMessage({
|
|
780
779
|
showClose: true,
|
|
781
780
|
type: "success",
|
|
782
|
-
message:
|
|
781
|
+
message: getI18n().t("superPageRuntimeMessage.asyncImport")
|
|
783
782
|
});
|
|
784
783
|
} else {
|
|
785
784
|
let isSuccess = false;
|
|
786
785
|
if (data) {
|
|
787
786
|
isSuccess = false;
|
|
788
|
-
|
|
787
|
+
ElMessage({
|
|
789
788
|
dangerouslyUseHTMLString: true,
|
|
790
789
|
showClose: true,
|
|
791
790
|
type: "warning",
|
|
792
791
|
message: data
|
|
793
792
|
});
|
|
794
793
|
} else {
|
|
795
|
-
|
|
794
|
+
ElMessage({
|
|
796
795
|
showClose: true,
|
|
797
796
|
type: "success",
|
|
798
|
-
message:
|
|
797
|
+
message: getI18n().t("superPageRuntimeMessage.successfulImport")
|
|
799
798
|
});
|
|
800
799
|
isSuccess = true;
|
|
801
800
|
}
|
|
802
801
|
dealAfterOperate(pageContext, buttonConfigureObj, data, null, true);
|
|
803
802
|
pageContext.result = isSuccess;
|
|
804
|
-
|
|
803
|
+
doAfterClickEvent(pageContext, buttonConfigureObj);
|
|
805
804
|
}
|
|
806
805
|
}).catch((error) => {
|
|
807
806
|
console.log("error==", error);
|
|
@@ -812,22 +811,22 @@ function judgeDataNumber(buttonConfigureObj, ids) {
|
|
|
812
811
|
if (buttonConfigureBase.conditionsForExecution && buttonConfigureBase.conditionsForExecution !== "") {
|
|
813
812
|
if (buttonConfigureBase.conditionsForExecution === "one") {
|
|
814
813
|
if (!ids || ids.length !== 1) {
|
|
815
|
-
|
|
814
|
+
ElMessage({
|
|
816
815
|
showClose: true,
|
|
817
816
|
type: "warning",
|
|
818
|
-
message:
|
|
819
|
-
message:
|
|
817
|
+
message: getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", {
|
|
818
|
+
message: getI18n().t("superPageRuntimeMessage.onlyOneRecordCanBeselected")
|
|
820
819
|
})
|
|
821
820
|
});
|
|
822
821
|
return false;
|
|
823
822
|
}
|
|
824
823
|
} else if (buttonConfigureBase.conditionsForExecution === "more") {
|
|
825
824
|
if (!ids || ids.length <= 0) {
|
|
826
|
-
|
|
825
|
+
ElMessage({
|
|
827
826
|
showClose: true,
|
|
828
827
|
type: "warning",
|
|
829
|
-
message:
|
|
830
|
-
message:
|
|
828
|
+
message: getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", {
|
|
829
|
+
message: getI18n().t("superPageRuntimeMessage.selectAtLeastOneRecord")
|
|
831
830
|
})
|
|
832
831
|
});
|
|
833
832
|
return false;
|
|
@@ -903,7 +902,7 @@ function getWorkflowSaveParams(params) {
|
|
|
903
902
|
};
|
|
904
903
|
}
|
|
905
904
|
if (pageContext.judgeHeavyList) {
|
|
906
|
-
if (
|
|
905
|
+
if (isArrayFn(pageContext.judgeHeavyList)) {
|
|
907
906
|
param["judgeHeavyList"] = JSON.stringify(pageContext.judgeHeavyList);
|
|
908
907
|
} else {
|
|
909
908
|
param["judgeHeavyList"] = pageContext.judgeHeavyList;
|
|
@@ -911,7 +910,7 @@ function getWorkflowSaveParams(params) {
|
|
|
911
910
|
}
|
|
912
911
|
const conversionCodes = configureObj.props.base.conversionCodes;
|
|
913
912
|
if (conversionCodes) {
|
|
914
|
-
if (
|
|
913
|
+
if (isArrayFn(conversionCodes)) {
|
|
915
914
|
param["dataConversionRule"] = conversionCodes.join(",");
|
|
916
915
|
} else if (typeof conversionCodes === "string") {
|
|
917
916
|
param["dataConversionRule"] = conversionCodes;
|
|
@@ -919,7 +918,7 @@ function getWorkflowSaveParams(params) {
|
|
|
919
918
|
}
|
|
920
919
|
const autoSetValueData = configureObj.props.base.setValueList;
|
|
921
920
|
if (autoSetValueData) {
|
|
922
|
-
if (
|
|
921
|
+
if (isArrayFn(autoSetValueData)) {
|
|
923
922
|
param["autoSetValueData"] = autoSetValueData.join(",");
|
|
924
923
|
} else if (typeof autoSetValueData === "string") {
|
|
925
924
|
param["autoSetValueData"] = autoSetValueData;
|
|
@@ -954,13 +953,13 @@ function workflowSaveFunc(params) {
|
|
|
954
953
|
const pageContext = params.pageContext;
|
|
955
954
|
const dataModel = pageContext.entity.data;
|
|
956
955
|
const system = pageContext.entity.system;
|
|
957
|
-
let path =
|
|
958
|
-
path =
|
|
956
|
+
let path = getBaseUrl(system) + "/dsc/workflow-commons";
|
|
957
|
+
path = getRealRestApiPath(path, system);
|
|
959
958
|
if (!path) {
|
|
960
|
-
|
|
959
|
+
ElMessage({
|
|
961
960
|
showClose: true,
|
|
962
961
|
type: "warning",
|
|
963
|
-
message:
|
|
962
|
+
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
964
963
|
});
|
|
965
964
|
return;
|
|
966
965
|
}
|
|
@@ -977,10 +976,10 @@ function workflowSaveFunc(params) {
|
|
|
977
976
|
result = dealCompleteTaskParam(commonEntity, false, pageContext, params, null);
|
|
978
977
|
}
|
|
979
978
|
if (result === true) {
|
|
980
|
-
|
|
979
|
+
ElMessage({
|
|
981
980
|
showClose: true,
|
|
982
981
|
type: "success",
|
|
983
|
-
message:
|
|
982
|
+
message: getI18n().t("superPageRuntimeMessage.successfulSave")
|
|
984
983
|
});
|
|
985
984
|
}
|
|
986
985
|
resolve(true);
|
|
@@ -1005,7 +1004,7 @@ function dealCompleteTaskParam(commonEntity, isInit, pageContext, params, operat
|
|
|
1005
1004
|
const completeTaskTipType = completeTaskResult.completeTaskTipType;
|
|
1006
1005
|
if (completeTaskTipType && completeTaskTipType === "MESSAGE") {
|
|
1007
1006
|
const message = completeTaskResult.content;
|
|
1008
|
-
|
|
1007
|
+
ElMessage({
|
|
1009
1008
|
showClose: true,
|
|
1010
1009
|
type: "warning",
|
|
1011
1010
|
message
|
|
@@ -1019,13 +1018,13 @@ function dealCompleteTaskParam(commonEntity, isInit, pageContext, params, operat
|
|
|
1019
1018
|
if (params) {
|
|
1020
1019
|
params.taskId = taskId;
|
|
1021
1020
|
}
|
|
1022
|
-
|
|
1021
|
+
setStoreInfo(pageCode, pageVersion, "_completeTaskParam", completeTaskParam);
|
|
1023
1022
|
pageContext.fieldPermissions = completeTaskParam.fieldPermissions;
|
|
1024
1023
|
pageContext.actionPermissions = completeTaskParam.actionPermissions;
|
|
1025
1024
|
pageContext.workflowButtonComponent = completeTaskParam.buttonComponent;
|
|
1026
1025
|
pageContext.completeTaskParam = completeTaskParam;
|
|
1027
1026
|
}
|
|
1028
|
-
|
|
1027
|
+
setStoreInfo(pageCode, pageVersion, "_currentActivityName", formParam.taskName);
|
|
1029
1028
|
}
|
|
1030
1029
|
if (params) {
|
|
1031
1030
|
params.operationResult = operationResult;
|
|
@@ -1039,13 +1038,13 @@ function submitProcessFunc(params) {
|
|
|
1039
1038
|
return new Promise((resolve, reject) => {
|
|
1040
1039
|
const pageContext = params.pageContext;
|
|
1041
1040
|
const system = pageContext.entity.system;
|
|
1042
|
-
let path =
|
|
1043
|
-
path =
|
|
1041
|
+
let path = getBaseUrl(system) + "/dsc/workflow-commons/submit";
|
|
1042
|
+
path = getRealRestApiPath(path, system);
|
|
1044
1043
|
if (!path) {
|
|
1045
|
-
|
|
1044
|
+
ElMessage({
|
|
1046
1045
|
showClose: true,
|
|
1047
1046
|
type: "warning",
|
|
1048
|
-
message:
|
|
1047
|
+
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1049
1048
|
});
|
|
1050
1049
|
return;
|
|
1051
1050
|
}
|
|
@@ -1058,10 +1057,10 @@ function submitProcessFunc(params) {
|
|
|
1058
1057
|
result = dealCompleteTaskParam(commonEntity, false, pageContext, params, null);
|
|
1059
1058
|
}
|
|
1060
1059
|
if (result === true) {
|
|
1061
|
-
|
|
1060
|
+
ElMessage({
|
|
1062
1061
|
showClose: true,
|
|
1063
1062
|
type: "success",
|
|
1064
|
-
message:
|
|
1063
|
+
message: getI18n().t("superPageRuntimeMessage.successfulSubmit")
|
|
1065
1064
|
});
|
|
1066
1065
|
}
|
|
1067
1066
|
resolve(true);
|
|
@@ -1075,13 +1074,13 @@ function completeTaskFunc(params, operationResult) {
|
|
|
1075
1074
|
return new Promise((resolve, reject) => {
|
|
1076
1075
|
const pageContext = params.pageContext;
|
|
1077
1076
|
const system = pageContext.entity.system;
|
|
1078
|
-
let path =
|
|
1079
|
-
path =
|
|
1077
|
+
let path = getBaseUrl(system) + "/dsc/workflow-commons/complete-tasks";
|
|
1078
|
+
path = getRealRestApiPath(path, system);
|
|
1080
1079
|
if (!path) {
|
|
1081
|
-
|
|
1080
|
+
ElMessage({
|
|
1082
1081
|
showClose: true,
|
|
1083
1082
|
type: "warning",
|
|
1084
|
-
message:
|
|
1083
|
+
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1085
1084
|
});
|
|
1086
1085
|
return;
|
|
1087
1086
|
}
|
|
@@ -1098,10 +1097,10 @@ function completeTaskFunc(params, operationResult) {
|
|
|
1098
1097
|
result = dealCompleteTaskParam(commonEntity, false, pageContext, params, operationResult);
|
|
1099
1098
|
}
|
|
1100
1099
|
if (result === true) {
|
|
1101
|
-
|
|
1100
|
+
ElMessage({
|
|
1102
1101
|
showClose: true,
|
|
1103
1102
|
type: "success",
|
|
1104
|
-
message:
|
|
1103
|
+
message: getI18n().t("superPageRuntimeMessage.successfulCompleteTask")
|
|
1105
1104
|
});
|
|
1106
1105
|
}
|
|
1107
1106
|
resolve(true);
|
|
@@ -1114,20 +1113,20 @@ function assignTask(params) {
|
|
|
1114
1113
|
const pageContext = params.pageContext;
|
|
1115
1114
|
const pagCode = pageContext.code;
|
|
1116
1115
|
const eventPageInfo = pagCode + "_";
|
|
1117
|
-
|
|
1116
|
+
eventBus.$emit(eventPageInfo + "assign-task", params);
|
|
1118
1117
|
}
|
|
1119
1118
|
function doAssign(params, selectNodeInfo) {
|
|
1120
1119
|
if (selectNodeInfo) {
|
|
1121
1120
|
const pageContext = params.pageContext;
|
|
1122
1121
|
const configureObj = params.configureObj;
|
|
1123
1122
|
const system = pageContext.entity.system;
|
|
1124
|
-
const path =
|
|
1123
|
+
const path = getBaseUrl(system) + "/dsc/workflow-commons/assigns";
|
|
1125
1124
|
const assigneeId = selectNodeInfo.id ? selectNodeInfo.id : selectNodeInfo.ID ? selectNodeInfo.ID : null;
|
|
1126
1125
|
const requestParam = getWorkflowSaveParams(params);
|
|
1127
1126
|
requestParam["assigneeId"] = assigneeId;
|
|
1128
1127
|
transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulAssign").then(
|
|
1129
1128
|
(result) => {
|
|
1130
|
-
|
|
1129
|
+
doAfterClickEvent(pageContext, configureObj);
|
|
1131
1130
|
}
|
|
1132
1131
|
);
|
|
1133
1132
|
}
|
|
@@ -1160,20 +1159,20 @@ function addSignerFunc(params) {
|
|
|
1160
1159
|
const pageContext = params.pageContext;
|
|
1161
1160
|
const pagCode = pageContext.code;
|
|
1162
1161
|
const eventPageInfo = pagCode + "_";
|
|
1163
|
-
|
|
1162
|
+
eventBus.$emit(eventPageInfo + "add-signer", params);
|
|
1164
1163
|
}
|
|
1165
1164
|
function doAddSigner(params, selectNodeInfo) {
|
|
1166
1165
|
if (selectNodeInfo) {
|
|
1167
1166
|
const pageContext = params.pageContext;
|
|
1168
1167
|
const buttonConfigureObj = params.configureObj;
|
|
1169
1168
|
const system = pageContext.entity.system;
|
|
1170
|
-
let path =
|
|
1171
|
-
path =
|
|
1169
|
+
let path = getBaseUrl(system) + "/dsc/workflow-commons/add-signers";
|
|
1170
|
+
path = getRealRestApiPath(path, system);
|
|
1172
1171
|
if (!path) {
|
|
1173
|
-
|
|
1172
|
+
ElMessage({
|
|
1174
1173
|
showClose: true,
|
|
1175
1174
|
type: "warning",
|
|
1176
|
-
message:
|
|
1175
|
+
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1177
1176
|
});
|
|
1178
1177
|
return;
|
|
1179
1178
|
}
|
|
@@ -1182,15 +1181,15 @@ function doAddSigner(params, selectNodeInfo) {
|
|
|
1182
1181
|
const request = http.post(path, requestParams);
|
|
1183
1182
|
if (request) {
|
|
1184
1183
|
request.then((commonEntity) => {
|
|
1185
|
-
|
|
1184
|
+
ElMessage({
|
|
1186
1185
|
showClose: true,
|
|
1187
1186
|
type: "success",
|
|
1188
|
-
message:
|
|
1187
|
+
message: getI18n().t("superPageRuntimeMessage.successfulOperation")
|
|
1189
1188
|
});
|
|
1190
1189
|
if (commonEntity.entity) {
|
|
1191
1190
|
dealAfterOperate(pageContext, buttonConfigureObj, commonEntity, null, false);
|
|
1192
1191
|
}
|
|
1193
|
-
|
|
1192
|
+
doAfterClickEvent(pageContext, buttonConfigureObj);
|
|
1194
1193
|
});
|
|
1195
1194
|
}
|
|
1196
1195
|
}
|
|
@@ -1199,20 +1198,20 @@ function createCopyTask(params) {
|
|
|
1199
1198
|
const pageContext = params.pageContext;
|
|
1200
1199
|
const pagCode = pageContext.code;
|
|
1201
1200
|
const eventPageInfo = pagCode + "_";
|
|
1202
|
-
|
|
1201
|
+
eventBus.$emit(eventPageInfo + "copy-task", params);
|
|
1203
1202
|
}
|
|
1204
1203
|
function doCreateCopyTask(params, selectNodeInfo) {
|
|
1205
1204
|
if (selectNodeInfo) {
|
|
1206
1205
|
const pageContext = params.pageContext;
|
|
1207
1206
|
const buttonConfigureObj = params.configureObj;
|
|
1208
1207
|
const system = pageContext.entity.system;
|
|
1209
|
-
let path =
|
|
1210
|
-
path =
|
|
1208
|
+
let path = getBaseUrl(system) + "/dsc/workflow-commons/add-signers";
|
|
1209
|
+
path = getRealRestApiPath(path, system);
|
|
1211
1210
|
if (!path) {
|
|
1212
|
-
|
|
1211
|
+
ElMessage({
|
|
1213
1212
|
showClose: true,
|
|
1214
1213
|
type: "warning",
|
|
1215
|
-
message:
|
|
1214
|
+
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1216
1215
|
});
|
|
1217
1216
|
return;
|
|
1218
1217
|
}
|
|
@@ -1221,12 +1220,12 @@ function doCreateCopyTask(params, selectNodeInfo) {
|
|
|
1221
1220
|
const request = http.post(path, requestParams);
|
|
1222
1221
|
if (request) {
|
|
1223
1222
|
request.then((commonEntity) => {
|
|
1224
|
-
|
|
1223
|
+
ElMessage({
|
|
1225
1224
|
showClose: true,
|
|
1226
1225
|
type: "success",
|
|
1227
|
-
message:
|
|
1226
|
+
message: getI18n().t("superPageRuntimeMessage.successfulOperation")
|
|
1228
1227
|
});
|
|
1229
|
-
|
|
1228
|
+
doAfterClickEvent(pageContext, buttonConfigureObj);
|
|
1230
1229
|
});
|
|
1231
1230
|
}
|
|
1232
1231
|
}
|
|
@@ -1235,12 +1234,12 @@ function transactTask(params, requestParam, path, successMessageTip) {
|
|
|
1235
1234
|
return new Promise((resolve, reject) => {
|
|
1236
1235
|
const pageContext = params.pageContext;
|
|
1237
1236
|
const system = pageContext.entity.system;
|
|
1238
|
-
path =
|
|
1237
|
+
path = getRealRestApiPath(path, system);
|
|
1239
1238
|
if (!path) {
|
|
1240
|
-
|
|
1239
|
+
ElMessage({
|
|
1241
1240
|
showClose: true,
|
|
1242
1241
|
type: "warning",
|
|
1243
|
-
message:
|
|
1242
|
+
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1244
1243
|
});
|
|
1245
1244
|
return;
|
|
1246
1245
|
}
|
|
@@ -1252,10 +1251,10 @@ function transactTask(params, requestParam, path, successMessageTip) {
|
|
|
1252
1251
|
result = dealCompleteTaskParam(commonEntity, false, pageContext, params, null);
|
|
1253
1252
|
}
|
|
1254
1253
|
if (result === true) {
|
|
1255
|
-
|
|
1254
|
+
ElMessage({
|
|
1256
1255
|
showClose: true,
|
|
1257
1256
|
type: "success",
|
|
1258
|
-
message:
|
|
1257
|
+
message: getI18n().t(successMessageTip)
|
|
1259
1258
|
});
|
|
1260
1259
|
}
|
|
1261
1260
|
resolve(true);
|
|
@@ -1268,14 +1267,14 @@ function transactTask(params, requestParam, path, successMessageTip) {
|
|
|
1268
1267
|
function drawTaskFunc(params) {
|
|
1269
1268
|
const pageContext = params.pageContext;
|
|
1270
1269
|
const system = pageContext.entity.system;
|
|
1271
|
-
const path =
|
|
1270
|
+
const path = getBaseUrl(system) + "/dsc/workflow-commons/draw-tasks";
|
|
1272
1271
|
const requestParam = getWorkflowSaveParams(params);
|
|
1273
1272
|
return transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulDrawTask");
|
|
1274
1273
|
}
|
|
1275
1274
|
function abandonReceiveFunc(params) {
|
|
1276
1275
|
const pageContext = params.pageContext;
|
|
1277
1276
|
const system = pageContext.entity.system;
|
|
1278
|
-
const path =
|
|
1277
|
+
const path = getBaseUrl(system) + "/dsc/workflow-commons/abandon-receives";
|
|
1279
1278
|
const requestParam = getWorkflowSaveParams(params);
|
|
1280
1279
|
return transactTask(
|
|
1281
1280
|
params,
|
|
@@ -1287,7 +1286,7 @@ function abandonReceiveFunc(params) {
|
|
|
1287
1286
|
function returnToPreviousTaskFunc(params) {
|
|
1288
1287
|
const pageContext = params.pageContext;
|
|
1289
1288
|
const system = pageContext.entity.system;
|
|
1290
|
-
const path =
|
|
1289
|
+
const path = getBaseUrl(system) + "/dsc/workflow-commons/return-to-previous-tasks";
|
|
1291
1290
|
const requestParam = getWorkflowSaveParams(params);
|
|
1292
1291
|
return transactTask(
|
|
1293
1292
|
params,
|
|
@@ -1299,7 +1298,7 @@ function returnToPreviousTaskFunc(params) {
|
|
|
1299
1298
|
function endInstanceFunc(params) {
|
|
1300
1299
|
const pageContext = params.pageContext;
|
|
1301
1300
|
const system = pageContext.entity.system;
|
|
1302
|
-
const path =
|
|
1301
|
+
const path = getBaseUrl(system) + "/dsc/workflow-commons/end-instance";
|
|
1303
1302
|
const requestParam = getWorkflowSaveParams(params);
|
|
1304
1303
|
return transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulEndInstance");
|
|
1305
1304
|
}
|
|
@@ -1307,19 +1306,19 @@ function returnTaskToFunc(params) {
|
|
|
1307
1306
|
const pageContext = params.pageContext;
|
|
1308
1307
|
const pagCode = pageContext.code;
|
|
1309
1308
|
const eventPageInfo = pagCode + "_";
|
|
1310
|
-
|
|
1309
|
+
eventBus.$emit(eventPageInfo + "choose-return-node", params);
|
|
1311
1310
|
}
|
|
1312
1311
|
function getTaskInformitions(params) {
|
|
1313
1312
|
const pageContext = params.pageContext;
|
|
1314
1313
|
const system = pageContext.entity.system;
|
|
1315
1314
|
const completeTaskParam = pageContext.completeTaskParam;
|
|
1316
|
-
let path =
|
|
1317
|
-
path =
|
|
1315
|
+
let path = getBaseUrl(system) + "/dsc/workflow-commons/returnable-task/" + completeTaskParam.taskId;
|
|
1316
|
+
path = getRealRestApiPath(path, system);
|
|
1318
1317
|
if (!path) {
|
|
1319
|
-
|
|
1318
|
+
ElMessage({
|
|
1320
1319
|
showClose: true,
|
|
1321
1320
|
type: "warning",
|
|
1322
|
-
message:
|
|
1321
|
+
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1323
1322
|
});
|
|
1324
1323
|
return;
|
|
1325
1324
|
}
|
|
@@ -1337,7 +1336,7 @@ function doReturnTaskTo(params, selectTaskNode) {
|
|
|
1337
1336
|
const pageContext = params.pageContext;
|
|
1338
1337
|
const configureObj = params.configureObj;
|
|
1339
1338
|
const system = pageContext.entity.system;
|
|
1340
|
-
const path =
|
|
1339
|
+
const path = getBaseUrl(system) + "/dsc/workflow-commons/returnTaskTo";
|
|
1341
1340
|
const requestParam = getWorkflowSaveParams(params);
|
|
1342
1341
|
if (selectTaskNode.nodeName) {
|
|
1343
1342
|
requestParam["returnToNodeName"] = selectTaskNode.nodeName;
|
|
@@ -1347,7 +1346,7 @@ function doReturnTaskTo(params, selectTaskNode) {
|
|
|
1347
1346
|
}
|
|
1348
1347
|
transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulReturnTaskTo").then(
|
|
1349
1348
|
(result) => {
|
|
1350
|
-
|
|
1349
|
+
doAfterClickEvent(pageContext, configureObj);
|
|
1351
1350
|
}
|
|
1352
1351
|
);
|
|
1353
1352
|
}
|
|
@@ -1355,19 +1354,19 @@ function removeSignerfunc(params) {
|
|
|
1355
1354
|
const pageContext = params.pageContext;
|
|
1356
1355
|
const pagCode = pageContext.code;
|
|
1357
1356
|
const eventPageInfo = pagCode + "_";
|
|
1358
|
-
|
|
1357
|
+
eventBus.$emit(eventPageInfo + "remove-signer", params);
|
|
1359
1358
|
}
|
|
1360
1359
|
function getRemoveSigner(params) {
|
|
1361
1360
|
const pageContext = params.pageContext;
|
|
1362
1361
|
const system = pageContext.entity.system;
|
|
1363
|
-
let path =
|
|
1362
|
+
let path = getBaseUrl(system) + "/dsc/workflow-commons/get-remove-signers";
|
|
1364
1363
|
const requestParam = getWorkflowSaveParams(params);
|
|
1365
|
-
path =
|
|
1364
|
+
path = getRealRestApiPath(path, system);
|
|
1366
1365
|
if (!path) {
|
|
1367
|
-
|
|
1366
|
+
ElMessage({
|
|
1368
1367
|
showClose: true,
|
|
1369
1368
|
type: "warning",
|
|
1370
|
-
message:
|
|
1369
|
+
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1371
1370
|
});
|
|
1372
1371
|
return;
|
|
1373
1372
|
}
|
|
@@ -1378,8 +1377,8 @@ function doRemoveSigners(params, selectRemoveTasks) {
|
|
|
1378
1377
|
const pageContext = params.pageContext;
|
|
1379
1378
|
const configureObj = params.configureObj;
|
|
1380
1379
|
const system = pageContext.entity.system;
|
|
1381
|
-
let path =
|
|
1382
|
-
path =
|
|
1380
|
+
let path = getBaseUrl(system) + "/dsc/workflow-commons/remove-signers";
|
|
1381
|
+
path = getRealRestApiPath(path, system);
|
|
1383
1382
|
if (!path) {
|
|
1384
1383
|
this.$message({
|
|
1385
1384
|
showClose: true,
|
|
@@ -1401,7 +1400,7 @@ function doRemoveSigners(params, selectRemoveTasks) {
|
|
|
1401
1400
|
"superPageRuntimeMessage.successfulOperation",
|
|
1402
1401
|
false
|
|
1403
1402
|
);
|
|
1404
|
-
|
|
1403
|
+
doAfterClickEvent(pageContext, configureObj);
|
|
1405
1404
|
});
|
|
1406
1405
|
}
|
|
1407
1406
|
}
|
|
@@ -1409,14 +1408,14 @@ function doRemoveSigners(params, selectRemoveTasks) {
|
|
|
1409
1408
|
function retrieveTaskFunc(params) {
|
|
1410
1409
|
const pageContext = params.pageContext;
|
|
1411
1410
|
const system = pageContext.entity.system;
|
|
1412
|
-
const path =
|
|
1411
|
+
const path = getBaseUrl(system) + "/dsc/workflow-commons/retrieves";
|
|
1413
1412
|
const requestParam = getWorkflowSaveParams(params);
|
|
1414
1413
|
return transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulRetrieve");
|
|
1415
1414
|
}
|
|
1416
1415
|
function lineEditCreateFunc(params) {
|
|
1417
1416
|
const pageContext = params.pageContext;
|
|
1418
1417
|
const tableUuid = params["tableUuid"];
|
|
1419
|
-
const gridRef =
|
|
1418
|
+
const gridRef = getComponentRef(pageContext, tableUuid);
|
|
1420
1419
|
if (gridRef) {
|
|
1421
1420
|
gridRef.createRow(params);
|
|
1422
1421
|
}
|
|
@@ -1606,18 +1605,20 @@ function isTaskComplete(completeTaskParam) {
|
|
|
1606
1605
|
}
|
|
1607
1606
|
return taskComplete;
|
|
1608
1607
|
}
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1608
|
+
export {
|
|
1609
|
+
dealAfterOperate,
|
|
1610
|
+
dealCompleteTaskParam,
|
|
1611
|
+
doAddSigner,
|
|
1612
|
+
doAssign,
|
|
1613
|
+
doCreateCopyTask,
|
|
1614
|
+
doImportFinally,
|
|
1615
|
+
doRemoveSigners,
|
|
1616
|
+
doReturnTaskTo,
|
|
1617
|
+
exportFormReport,
|
|
1618
|
+
getRemoveSigner,
|
|
1619
|
+
getSaveFormRequest,
|
|
1620
|
+
getTaskInformitions,
|
|
1621
|
+
isVisibleWorkflowButton,
|
|
1622
|
+
judgeDataNumber,
|
|
1623
|
+
standardEvents
|
|
1624
|
+
};
|