super-page-runtime 1.0.14 → 1.0.16
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/.eslintrc.cjs +26 -0
- package/.prettierrc.json +8 -0
- package/{src → components}/index.ts +3 -3
- package/{src/components → components}/runtime/views/assemblys/button/button/button-runtime.vue +5 -2
- package/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +26 -0
- package/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +93 -0
- package/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +59 -0
- package/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +46 -0
- package/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +56 -0
- package/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +55 -0
- package/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +57 -0
- package/components/runtime/views/assemblys/common/export-form-report-dialog.vue +108 -0
- package/{src/components → components}/runtime/views/assemblys/container/card/card-runtime.vue +4 -1
- package/{src/components → components}/runtime/views/assemblys/container/collapse/collapse-runtime.vue +5 -2
- package/components/runtime/views/assemblys/container/container/container-runtime.vue +41 -0
- package/components/runtime/views/assemblys/container/flex/flex-runtime.vue +35 -0
- package/components/runtime/views/assemblys/container/form/form-runtime.vue +37 -0
- package/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +32 -0
- package/{src/components → components}/runtime/views/assemblys/container/tabs/tabs-runtime.vue +5 -2
- package/components/runtime/views/assemblys/container/tools/tools-runtime.vue +99 -0
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +117 -0
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +28 -0
- package/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +103 -0
- package/{src/components → components}/runtime/views/assemblys/data/table/main-table-runtime.vue +12 -6
- package/{src/components → components}/runtime/views/assemblys/data/table/sub-table-runtime.vue +10 -7
- package/{src/components → components}/runtime/views/assemblys/data/table/table-runtime.vue +2 -2
- package/components/runtime/views/assemblys/data/tree/tree-attr.vue +28 -0
- package/components/runtime/views/assemblys/data/tree/tree-design.vue +125 -0
- package/{src/components → components}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +10 -4
- package/components/runtime/views/assemblys/form/custom/custom-attr.vue +28 -0
- package/components/runtime/views/assemblys/form/custom/custom-design.vue +57 -0
- package/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +80 -0
- package/{src/components → components}/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +6 -3
- package/components/runtime/views/assemblys/form/divider/divider-runtime.vue +44 -0
- package/{src/components → components}/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +5 -2
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +28 -0
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +104 -0
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +28 -0
- package/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +76 -0
- package/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +62 -0
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +70 -0
- package/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +28 -0
- package/components/runtime/views/assemblys/form/input-show/input-show-design.vue +155 -0
- package/{src/components → components}/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +7 -4
- package/components/runtime/views/assemblys/form/label/label-runtime.vue +143 -0
- package/components/runtime/views/assemblys/form/link/link-runtime.vue +70 -0
- package/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +24 -0
- package/{src/components → components}/runtime/views/assemblys/form/radio/radio-runtime.vue +10 -4
- package/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +169 -0
- package/{src/components → components}/runtime/views/assemblys/form/select/select-runtime.vue +11 -5
- package/components/runtime/views/assemblys/form/switch/switch-runtime.vue +63 -0
- package/components/runtime/views/assemblys/form/tag/tag-runtime.vue +65 -0
- package/{src/components → components}/runtime/views/assemblys/form/textarea/textarea-runtime.vue +6 -3
- package/{src/components → components}/runtime/views/assemblys/object-render.vue +6 -6
- package/{src/components → components}/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +1 -1
- package/components/runtime/views/assemblys/page/page-attr-base.vue +259 -0
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +28 -0
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +28 -0
- package/{src/components → components}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +20 -17
- package/{src/components → components}/runtime/views/super-page.vue +13 -8
- package/cypress/e2e/example.cy.ts +8 -0
- package/cypress/e2e/tsconfig.json +10 -0
- package/cypress/fixtures/example.json +5 -0
- package/cypress/support/commands.ts +39 -0
- package/cypress/support/e2e.ts +20 -0
- package/cypress.config.ts +8 -0
- package/env.d.ts +1 -0
- package/index.html +13 -0
- package/lib/components/index.d.ts +5 -0
- package/{dist/lib → lib}/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
- package/{dist/lib → lib}/components/runtime/views/super-page.vue.d.ts +1 -1
- package/{dist/lib → lib}/index.js +3 -3
- package/{dist/lib/components → lib}/runtime/views/assemblys/button/button/button-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +2 -9
- package/{dist/lib/components → lib}/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/common/export-form-report-dialog.vue.js +3 -9
- package/{dist/lib/components → lib}/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/main-table-runtime.vue.js +4 -5
- package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +5 -5
- package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -5
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +1 -5
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +3 -3
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/label/label-runtime.vue2.js +10 -4
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -3
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/select/select-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/assemblys/object-render.vue.js +5 -5
- package/{dist/lib/components → lib}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +2 -2
- package/{dist/lib/components → lib}/runtime/views/super-page.vue.js +7 -8
- package/lib/src/utils/charts/chart-util.js +15 -0
- package/{dist/es/components/runtime → lib/src}/utils/events/event-util.d.ts +1 -1
- package/{dist/lib/components → lib}/super-page-dialog/super-page-dialog.vue.js +0 -1
- package/lib/wf-editor/wf-editor.css +4 -0
- package/{dist/lib/components → lib}/wf-editor/wf-editor.vue.js +3 -3
- package/package-ws.json +70 -0
- package/package.json +3 -7
- package/src/utils/charts/chart-util.ts +41 -0
- package/src/utils/container-style-util.ts +237 -0
- package/src/{components/runtime/utils → utils}/events/event-util.ts +2 -3
- package/src/{components/runtime/utils → utils}/events/standard-event.ts +1 -1
- package/src/{components/runtime/utils → utils}/events/validator-util.ts +1 -1
- package/tsconfig copy.json +17 -0
- package/tsconfig.app copy.json +14 -0
- package/tsconfig.app.json +14 -0
- package/tsconfig.json +17 -0
- package/tsconfig.node copy.json +19 -0
- package/tsconfig.node.json +19 -0
- package/tsconfig.vitest copy.json +11 -0
- package/tsconfig.vitest.json +11 -0
- package/vite.config copy.ts +109 -0
- package/vite.config.ts +86 -0
- package/vitest.config.ts +14 -0
- package/dist/es/_virtual/_plugin-vue_export-helper.js +0 -10
- package/dist/es/assets/chart-themes/theme1.js +0 -8
- package/dist/es/assets/chart-themes/theme2.js +0 -8
- package/dist/es/assets/chart-themes/theme3.js +0 -8
- package/dist/es/components/runtime/index.js +0 -4
- package/dist/es/components/runtime/utils/api/api-util.js +0 -128
- package/dist/es/components/runtime/utils/assemblys-config.js +0 -257
- package/dist/es/components/runtime/utils/charts/chart-util.js +0 -15
- package/dist/es/components/runtime/utils/common-util.js +0 -81
- package/dist/es/components/runtime/utils/events/event-util.js +0 -525
- package/dist/es/components/runtime/utils/events/standard-event.js +0 -1623
- package/dist/es/components/runtime/utils/events/validator-util.js +0 -389
- package/dist/es/components/runtime/utils/global-refs.js +0 -65
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +0 -9
- package/dist/es/components/runtime/utils/page-helper-util.js +0 -503
- package/dist/es/components/runtime/utils/page-init-util.js +0 -200
- package/dist/es/components/runtime/utils/store-util.js +0 -17
- package/dist/es/components/runtime/utils/store.js +0 -4
- package/dist/es/components/runtime/utils/table-utils.js +0 -23
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -55
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -36
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -111
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -54
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -50
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -51
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -51
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -52
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -148
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -128
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -105
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -73
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -75
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -80
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -44
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -45
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -31
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -70
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -76
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -642
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +0 -23
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -157
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -83
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -64
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -41
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -75
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -64
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -128
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -128
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -78
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -30
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -158
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -163
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -202
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -64
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -64
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -66
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +0 -143
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -62
- package/dist/es/components/runtime/views/super-page.vue.d.ts +0 -91
- package/dist/es/components/runtime/views/super-page.vue.js +0 -481
- package/dist/es/components/runtime/views/super-page.vue2.js +0 -4
- package/dist/es/components/super-page-dialog/index.js +0 -4
- package/dist/es/components/super-page-dialog/super-page-dialog.vue.js +0 -75
- package/dist/es/components/super-page-dialog/super-page-dialog.vue2.js +0 -4
- package/dist/es/components/wf-editor/index.js +0 -4
- package/dist/es/components/wf-editor/wf-editor.css +0 -4
- package/dist/es/components/wf-editor/wf-editor.vue.js +0 -16
- package/dist/es/index.d.ts +0 -5
- package/dist/es/index.js +0 -8
- package/dist/lib/components/runtime/index.d.ts +0 -3
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -15
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -48
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -61
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -4
- package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -221
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -87
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -38
- package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/lib/components/runtime/utils/store.d.ts +0 -2
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/super-page-dialog/index.d.ts +0 -3
- package/dist/lib/components/super-page-dialog/super-page-dialog.vue.d.ts +0 -36
- package/dist/lib/components/wf-editor/index.d.ts +0 -3
- package/dist/lib/components/wf-editor/wf-editor.css +0 -4
- package/dist/lib/components/wf-editor/wf-editor.vue.d.ts +0 -2
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/index.d.ts +0 -5
- package/src/components/runtime/utils/charts/chart-util.ts +0 -37
- package/src/components/runtime/utils/container-style-util.ts +0 -223
- package/src/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +0 -27
- package/src/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +0 -85
- package/src/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +0 -61
- package/src/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +0 -54
- package/src/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +0 -57
- package/src/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +0 -56
- package/src/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +0 -58
- package/src/components/runtime/views/assemblys/common/export-form-report-dialog.vue +0 -118
- package/src/components/runtime/views/assemblys/container/container/container-runtime.vue +0 -50
- package/src/components/runtime/views/assemblys/container/flex/flex-runtime.vue +0 -33
- package/src/components/runtime/views/assemblys/container/form/form-runtime.vue +0 -35
- package/src/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +0 -28
- package/src/components/runtime/views/assemblys/container/tools/tools-runtime.vue +0 -97
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +0 -110
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +0 -29
- package/src/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +0 -95
- package/src/components/runtime/views/assemblys/data/tree/tree-attr.vue +0 -29
- package/src/components/runtime/views/assemblys/data/tree/tree-design.vue +0 -114
- package/src/components/runtime/views/assemblys/form/custom/custom-attr.vue +0 -29
- package/src/components/runtime/views/assemblys/form/custom/custom-design.vue +0 -46
- package/src/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +0 -74
- package/src/components/runtime/views/assemblys/form/divider/divider-runtime.vue +0 -40
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +0 -29
- package/src/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +0 -84
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +0 -29
- package/src/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +0 -66
- package/src/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +0 -57
- package/src/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +0 -58
- package/src/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +0 -29
- package/src/components/runtime/views/assemblys/form/input-show/input-show-design.vue +0 -132
- package/src/components/runtime/views/assemblys/form/label/label-runtime.vue +0 -115
- package/src/components/runtime/views/assemblys/form/link/link-runtime.vue +0 -67
- package/src/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +0 -23
- package/src/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +0 -153
- package/src/components/runtime/views/assemblys/form/switch/switch-runtime.vue +0 -58
- package/src/components/runtime/views/assemblys/form/tag/tag-runtime.vue +0 -60
- package/src/components/runtime/views/assemblys/page/page-attr-base.vue +0 -252
- package/src/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +0 -29
- package/src/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +0 -29
- /package/{src/App.vue → App.vue} +0 -0
- /package/{src/components → components}/runtime/index.ts +0 -0
- /package/{src/components → components}/runtime/utils/assemblys-config.js +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common/common-attr-assistant.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common/common-attr-base.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common/common-attr-drill.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common/common-attr-groupby.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common/common-attr-sortby.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-custom.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-datazoom.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-font-title.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-grid.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-legend.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-tooltip.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-xaxis.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common/common-style-yaxis.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/chart/common-series/common-style-label.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/common/common-attr-cursor.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/common/common-attr-size.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/common/common-select-table.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/common/common-style-background.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/common/common-style-border.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/common/common-style-custom.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/common/common-style-font-head.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/common/common-style-font.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/common/common-style-margin.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/common/common-style-padding.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/common/common-style-position.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/common/common-style-shadow.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/common/remove-signer-dialog.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/common/task-informition-dialog.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/common-attr-events.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/bar-code/barcode-attr-event.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/component/attr-header.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/component/attr-style.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/component/column-config.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/component/combinedHeader.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/component/composite-header.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/component/configuration-value.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/component/data-origin-tree.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/component/data-origin.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/component/formatting.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/component/in-parameter.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/component/querySetting.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/component/return-set-table.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/component/row-backgroud-color.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/component/select-data-table.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/tree/tree-attr-base.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/tree/tree-attr-event.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/data/tree/tree-attr-style.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/error-attr.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/error-render.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/cascader/cascader-design.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/colors/colors-design.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/analytic-rule.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/attr-event.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/attr-header.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/attr-style.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/bar-code-rule.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/condition.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/data-origin.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/dataorigin-input-table.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/default-value-setting.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/dimension-input.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/formatting-label.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/grid-num-select.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/icon-set-dialog.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/linkage.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/overall-height.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/overall-width.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/pre-suffix.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/rich-text.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/row-ul-li.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/setoption-table.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/size-input.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/suffixmodule.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/title.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/uploading.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/verification.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/common/voluntarily.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/custom/custom-attr-base.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/custom/custom-attr-event.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/custom/custom-attr-style.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/datetime/datetime-design.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/file-picture/picture-design.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/image-upload/imageupload-attr-base.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/input-show/input-show-attr-base.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/rate/rate-design.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/slider/slider-design.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/text/text-design.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/form/transfer/transfer-design.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/page/page-attr-events.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/page/page-attr-style.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/page/page-attr.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/page/variable-dialog.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/component/combination.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/component/condition-dialog.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/component/event-dialog.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/component/rule-dialog.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/component/set-dialog.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +0 -0
- /package/{src/components → components}/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +0 -0
- /package/{src/components → components}/runtime/views/render/page-view.vue +0 -0
- /package/{src/components → components}/runtime/views/super-page copy.vue +0 -0
- /package/{src/components → components}/super-page-dialog/index.ts +0 -0
- /package/{src/components → components}/super-page-dialog/super-page-dialog.vue +0 -0
- /package/{src/components → components}/wf-editor/index.ts +0 -0
- /package/{src/components → components}/wf-editor/wf-editor.vue +0 -0
- /package/{dist/lib → lib}/_virtual/_plugin-vue_export-helper.js +0 -0
- /package/{dist/es → lib}/components/runtime/index.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/assemblys/error-render.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/super-page-dialog/index.d.ts +0 -0
- /package/{dist/es → lib}/components/super-page-dialog/super-page-dialog.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/wf-editor/index.d.ts +0 -0
- /package/{dist/es → lib}/components/wf-editor/wf-editor.vue.d.ts +0 -0
- /package/{dist/es → lib}/favicon.ico +0 -0
- /package/{dist/lib/components → lib}/runtime/index.js +0 -0
- /package/{dist/lib/components → lib}/runtime/utils/assemblys-config.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/error-render.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/error-render.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/object-render.vue2.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -0
- /package/{dist/lib/components → lib}/runtime/views/super-page.vue2.js +0 -0
- /package/{dist/lib → lib/src}/assets/chart-themes/theme1.js +0 -0
- /package/{dist/lib → lib/src}/assets/chart-themes/theme2.js +0 -0
- /package/{dist/lib → lib/src}/assets/chart-themes/theme3.js +0 -0
- /package/{dist/es/components/runtime → lib/src}/utils/api/api-util.d.ts +0 -0
- /package/{dist/lib/components/runtime → lib/src}/utils/api/api-util.js +0 -0
- /package/{dist/es/components/runtime → lib/src}/utils/common-util.d.ts +0 -0
- /package/{dist/lib/components/runtime → lib/src}/utils/common-util.js +0 -0
- /package/{dist/lib/components/runtime → lib/src}/utils/events/event-util.js +0 -0
- /package/{dist/es/components/runtime → lib/src}/utils/events/standard-event.d.ts +0 -0
- /package/{dist/lib/components/runtime → lib/src}/utils/events/standard-event.js +0 -0
- /package/{dist/es/components/runtime → lib/src}/utils/events/validator-util.d.ts +0 -0
- /package/{dist/lib/components/runtime → lib/src}/utils/events/validator-util.js +0 -0
- /package/{dist/es/components/runtime → lib/src}/utils/global-refs.d.ts +0 -0
- /package/{dist/lib/components/runtime → lib/src}/utils/global-refs.js +0 -0
- /package/{dist/es/components/runtime → lib/src}/utils/interfaces/page-design-types.d.ts +0 -0
- /package/{dist/lib/components/runtime → lib/src}/utils/interfaces/page-design-types.js +0 -0
- /package/{dist/es/components/runtime → lib/src}/utils/page-helper-util.d.ts +0 -0
- /package/{dist/lib/components/runtime → lib/src}/utils/page-helper-util.js +0 -0
- /package/{dist/es/components/runtime → lib/src}/utils/page-init-util.d.ts +0 -0
- /package/{dist/lib/components/runtime → lib/src}/utils/page-init-util.js +0 -0
- /package/{dist/es/components/runtime → lib/src}/utils/store-util.d.ts +0 -0
- /package/{dist/lib/components/runtime → lib/src}/utils/store-util.js +0 -0
- /package/{dist/es/components/runtime → lib/src}/utils/store.d.ts +0 -0
- /package/{dist/lib/components/runtime → lib/src}/utils/store.js +0 -0
- /package/{dist/lib/components/runtime → lib/src}/utils/table-utils.js +0 -0
- /package/{dist/lib/components → lib}/super-page-dialog/index.js +0 -0
- /package/{dist/lib/components → lib}/super-page-dialog/super-page-dialog.vue2.js +0 -0
- /package/{dist/lib/components → lib}/wf-editor/index.js +0 -0
- /package/{src/main.ts → main.ts} +0 -0
- /package/{dist → public}/favicon.ico +0 -0
- /package/src/{components/runtime/utils → utils}/api/api-util.ts +0 -0
- /package/src/{components/runtime/utils → utils}/common-util.ts +0 -0
- /package/src/{components/runtime/utils → utils}/eventBus.ts +0 -0
- /package/src/{components/runtime/utils → utils}/events/jump-page-util.ts +0 -0
- /package/src/{components/runtime/utils → utils}/global-refs.ts +0 -0
- /package/src/{components/runtime/utils → utils}/interfaces/page-design-types.ts +0 -0
- /package/src/{components/runtime/utils → utils}/page-helper-util.ts +0 -0
- /package/src/{components/runtime/utils → utils}/page-init-util.ts +0 -0
- /package/src/{components/runtime/utils → utils}/page-permission-util.ts +0 -0
- /package/src/{components/runtime/utils → utils}/store-util.ts +0 -0
- /package/src/{components/runtime/utils → utils}/store.ts +0 -0
- /package/src/{components/runtime/utils → utils}/table-utils.ts +0 -0
|
@@ -1,1623 +0,0 @@
|
|
|
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 axios from "axios";
|
|
9
|
-
import { doAfterClickEvent } from "./event-util.js";
|
|
10
|
-
import { setStoreInfo } from "../store-util.js";
|
|
11
|
-
const standardEvents = {
|
|
12
|
-
// 表单标准事件保存save
|
|
13
|
-
save: function(params) {
|
|
14
|
-
console.log("表单标准事件保存save--params=", params);
|
|
15
|
-
return saveFunc(params, false);
|
|
16
|
-
},
|
|
17
|
-
// 列表标准事件保存saveList
|
|
18
|
-
saveList: function(params) {
|
|
19
|
-
console.log("列表标准事件保存saveList--params=", params);
|
|
20
|
-
return saveFunc(params, true);
|
|
21
|
-
},
|
|
22
|
-
// 表单标准事件导出报告exportForm
|
|
23
|
-
exportForm: function(params) {
|
|
24
|
-
console.log("表单标准事件导出报告exportForm--params=", params);
|
|
25
|
-
const pageContext = params.pageContext;
|
|
26
|
-
const pagCode = pageContext.code;
|
|
27
|
-
const eventPageInfo = pagCode + "_";
|
|
28
|
-
window["$eventBus"].$emit(eventPageInfo + "export-form-report", params);
|
|
29
|
-
},
|
|
30
|
-
// 表单标准事件导出报告exportPDF
|
|
31
|
-
exportPDF: function(params) {
|
|
32
|
-
console.log("表单标准事件导出报告exportPDF--params=", params);
|
|
33
|
-
const pageContext = params.pageContext;
|
|
34
|
-
pageContext.code;
|
|
35
|
-
},
|
|
36
|
-
// 表单标准事件提交submit
|
|
37
|
-
submit: function(params) {
|
|
38
|
-
console.log("表单标准事件提交submit--params=", params);
|
|
39
|
-
return submitForm(params, false, "submit", "/dsc/commons/submits");
|
|
40
|
-
},
|
|
41
|
-
// 列表标准事件提交submitList
|
|
42
|
-
submitList: function(params) {
|
|
43
|
-
console.log("列表标准事件提交submitList--params=", params);
|
|
44
|
-
return submitForm(params, true, "submit", "/dsc/commons/batch-submits");
|
|
45
|
-
},
|
|
46
|
-
// 表单标准事件同意agree
|
|
47
|
-
agree: function(params) {
|
|
48
|
-
console.log("表单标准事件同意agree--params=", params);
|
|
49
|
-
return submitForm(params, false, "agree", "/dsc/commons/approves");
|
|
50
|
-
},
|
|
51
|
-
// 列表标准事件同意agreeList
|
|
52
|
-
agreeList: function(params) {
|
|
53
|
-
console.log("列表标准事件同意agreeList--params=", params);
|
|
54
|
-
return submitForm(params, true, "agree", "/dsc/commons/batch-approves");
|
|
55
|
-
},
|
|
56
|
-
// 表单标准事件不同意disagree
|
|
57
|
-
disagree: function(params) {
|
|
58
|
-
console.log("表单标准事件不同意disagree--params=", params);
|
|
59
|
-
return submitForm(params, false, "disagree", "/dsc/commons/refuses");
|
|
60
|
-
},
|
|
61
|
-
// 列表标准事件不同意disagreeList
|
|
62
|
-
disagreeList: function(params) {
|
|
63
|
-
console.log("列表标准事件不同意disagreeList--params=", params);
|
|
64
|
-
return submitForm(params, true, "disagree", "/dsc/commons/batch-refuses");
|
|
65
|
-
},
|
|
66
|
-
// TODO: 待页面跳转功能完善后再实现
|
|
67
|
-
back: function(params) {
|
|
68
|
-
console.log("表单标准事件返回back--params=", params);
|
|
69
|
-
},
|
|
70
|
-
// 列表标准事件删除delete
|
|
71
|
-
delete: function(params) {
|
|
72
|
-
console.log("列表标准事件删除delete--params=", params);
|
|
73
|
-
return deleteFunc(params);
|
|
74
|
-
},
|
|
75
|
-
// 列表标准事件下载导入模板downloadTemplate
|
|
76
|
-
downloadTemplate: function(params) {
|
|
77
|
-
console.log("列表标准事件下载导入模板downloadTemplate--params=", params);
|
|
78
|
-
downloadTemplateFunc(params);
|
|
79
|
-
},
|
|
80
|
-
// 列表标准事件 导入import
|
|
81
|
-
import: function(params) {
|
|
82
|
-
console.log("列表标准事件 导入import--params=", params);
|
|
83
|
-
const pageContext = params.pageContext;
|
|
84
|
-
const pagCode = pageContext.code;
|
|
85
|
-
const eventPageInfo = pagCode + "_";
|
|
86
|
-
window["$eventBus"].$emit(eventPageInfo + "import-file", params);
|
|
87
|
-
},
|
|
88
|
-
// 列表标准事件 导出export
|
|
89
|
-
export: function(params) {
|
|
90
|
-
console.log("列表标准事件 导出export--params=", params);
|
|
91
|
-
return exportFunc(params);
|
|
92
|
-
},
|
|
93
|
-
// 列表标准事件 查询search
|
|
94
|
-
search: function(params) {
|
|
95
|
-
console.log("列表标准事件 查询search--params=", params);
|
|
96
|
-
const pageContext = params.pageContext;
|
|
97
|
-
const tableUuid = params.tableUuid;
|
|
98
|
-
const gridRef = getComponentRef(pageContext, tableUuid);
|
|
99
|
-
gridRef.refresh();
|
|
100
|
-
},
|
|
101
|
-
// 流程表单标准事件 暂存workflowSave
|
|
102
|
-
workflowSave: function(params) {
|
|
103
|
-
console.log("流程表单标准事件 暂存workflowSave--params=", params);
|
|
104
|
-
return workflowSaveFunc(params);
|
|
105
|
-
},
|
|
106
|
-
// 流程表单标准事件 提交流程submitProcess
|
|
107
|
-
submitProcess: function(params) {
|
|
108
|
-
console.log("流程表单标准事件 提交流程submitProcess--params=", params);
|
|
109
|
-
return submitProcessFunc(params);
|
|
110
|
-
},
|
|
111
|
-
// 流程表单标准事件 提交任务submitTask
|
|
112
|
-
submitTask: function(params) {
|
|
113
|
-
console.log("流程表单标准事件 提交任务submitTask--params=", params);
|
|
114
|
-
return completeTaskFunc(params, "SUBMIT");
|
|
115
|
-
},
|
|
116
|
-
// 流程表单标准事件 同意approve
|
|
117
|
-
approve: function(params) {
|
|
118
|
-
console.log("流程表单标准事件 同意approve--params=", params);
|
|
119
|
-
return completeTaskFunc(params, "APPROVE");
|
|
120
|
-
},
|
|
121
|
-
// 流程表单标准事件 不同意refuse
|
|
122
|
-
refuse: function(params) {
|
|
123
|
-
console.log("流程表单标准事件 不同意refuse--params=", params);
|
|
124
|
-
return completeTaskFunc(params, "REFUSE");
|
|
125
|
-
},
|
|
126
|
-
// 流程表单标准事件 已阅readed
|
|
127
|
-
readed: function(params) {
|
|
128
|
-
console.log("流程表单标准事件 已阅readed--params=", params);
|
|
129
|
-
return completeTaskFunc(params, "READED");
|
|
130
|
-
},
|
|
131
|
-
// 流程表单标准事件 赞成agreemen
|
|
132
|
-
agreement: function(params) {
|
|
133
|
-
console.log("流程表单标准事件 赞成agreement--params=", params);
|
|
134
|
-
return completeTaskFunc(params, "AGREEMENT");
|
|
135
|
-
},
|
|
136
|
-
// 流程表单标准事件 反对oppose
|
|
137
|
-
oppose: function(params) {
|
|
138
|
-
console.log("流程表单标准事件 反对oppose--params=", params);
|
|
139
|
-
return completeTaskFunc(params, "OPPOSE");
|
|
140
|
-
},
|
|
141
|
-
// 流程表单标准事件 弃权kiken
|
|
142
|
-
kiken: function(params) {
|
|
143
|
-
console.log("流程表单标准事件 弃权kiken--params=", params);
|
|
144
|
-
return completeTaskFunc(params, "KIKEN");
|
|
145
|
-
},
|
|
146
|
-
// 流程表单标准事件 指派assign
|
|
147
|
-
assign: function(params) {
|
|
148
|
-
console.log("流程表单标准事件 指派assign--params=", params);
|
|
149
|
-
return assignTask(params);
|
|
150
|
-
},
|
|
151
|
-
// 流程表单标准事件 抄送copyTask
|
|
152
|
-
copyTask: function(params) {
|
|
153
|
-
console.log("流程表单标准事件 抄送copyTask--params=", params);
|
|
154
|
-
return createCopyTask(params);
|
|
155
|
-
},
|
|
156
|
-
// 流程表单标准事件 加签addSigner
|
|
157
|
-
addSigner: function(params) {
|
|
158
|
-
console.log("流程表单标准事件 加签addSigner--params=", params);
|
|
159
|
-
return addSignerFunc(params);
|
|
160
|
-
},
|
|
161
|
-
// 流程表单标准事件 领取drawTask
|
|
162
|
-
drawTask: function(params) {
|
|
163
|
-
console.log("流程表单标准事件 领取drawTask--params=", params);
|
|
164
|
-
return drawTaskFunc(params);
|
|
165
|
-
},
|
|
166
|
-
// 放弃领取abandonReceive
|
|
167
|
-
abandonReceive: function(params) {
|
|
168
|
-
console.log("流程表单标准事件 放弃领取abandonReceive--params=", params);
|
|
169
|
-
return abandonReceiveFunc(params);
|
|
170
|
-
},
|
|
171
|
-
// 流程表单标准事件 驳回returnToPreviousTask
|
|
172
|
-
returnToPreviousTask: function(params) {
|
|
173
|
-
console.log("流程表单标准事件 驳回returnToPreviousTask--params=", params);
|
|
174
|
-
return returnToPreviousTaskFunc(params);
|
|
175
|
-
},
|
|
176
|
-
// 流程表单标准事件 强制结束endInstance
|
|
177
|
-
endInstance: function(params) {
|
|
178
|
-
console.log("流程表单标准事件 强制结束endInstance--params=", params);
|
|
179
|
-
return endInstanceFunc(params);
|
|
180
|
-
},
|
|
181
|
-
// 流程表单标准事件 退回returnTaskTo
|
|
182
|
-
returnTaskTo: function(params) {
|
|
183
|
-
console.log("流程表单标准事件 退回returnTaskTo--params=", params);
|
|
184
|
-
return returnTaskToFunc(params);
|
|
185
|
-
},
|
|
186
|
-
// 流程表单标准事件 减签removeSigner
|
|
187
|
-
removeSigner: function(params) {
|
|
188
|
-
console.log("流程表单标准事件 减签removeSigner--params=", params);
|
|
189
|
-
return removeSignerfunc(params);
|
|
190
|
-
},
|
|
191
|
-
// 流程表单标准事件 取回retrieveTask
|
|
192
|
-
retrieveTask: function(params) {
|
|
193
|
-
console.log("流程表单标准事件 取回retrieveTask--params=", params);
|
|
194
|
-
return retrieveTaskFunc(params);
|
|
195
|
-
},
|
|
196
|
-
viewDetail: function(params) {
|
|
197
|
-
},
|
|
198
|
-
lineEditCreate: function(params) {
|
|
199
|
-
console.log("列表行编辑 新建lineEditCreate--params=", params);
|
|
200
|
-
return lineEditCreateFunc(params);
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
function exportFormReport(pageContext, configureObj, templateFile, isPdf) {
|
|
204
|
-
const templateUUID = templateFile.templateUUID;
|
|
205
|
-
const fileName = templateFile.templateShowPath;
|
|
206
|
-
const system = pageContext.system;
|
|
207
|
-
const logSetting = configureObj.props.logSetting;
|
|
208
|
-
const additionalParamMap = pageContext.entity.request;
|
|
209
|
-
const isWorkflowForm = pageContext.workflowCode ? true : false;
|
|
210
|
-
const beanName = pageContext.beanName;
|
|
211
|
-
const button = configureObj.props.base;
|
|
212
|
-
const tableName = configureObj.tableName;
|
|
213
|
-
const viewModels = pageContext.entity.data;
|
|
214
|
-
const isPermission = button.isPermission === void 0 || button.isPermission === "true" || button.isPermission;
|
|
215
|
-
const param = {
|
|
216
|
-
entity: viewModels,
|
|
217
|
-
fileName: templateUUID,
|
|
218
|
-
// uuid
|
|
219
|
-
showName: fileName,
|
|
220
|
-
// 下载的文件名称
|
|
221
|
-
beanName,
|
|
222
|
-
isWorkflowForm,
|
|
223
|
-
// 是否是流程表单
|
|
224
|
-
functionCode: button.functionCode,
|
|
225
|
-
tableName,
|
|
226
|
-
isPermission: isPermission + "",
|
|
227
|
-
systemCode: system.code,
|
|
228
|
-
tableNames: pageContext.tableNames
|
|
229
|
-
};
|
|
230
|
-
if (logSetting) {
|
|
231
|
-
param["logSettingText"] = logSetting;
|
|
232
|
-
}
|
|
233
|
-
if (additionalParamMap) {
|
|
234
|
-
param["additionalParamMap"] = additionalParamMap;
|
|
235
|
-
}
|
|
236
|
-
let exportResult;
|
|
237
|
-
if (isPdf) {
|
|
238
|
-
exportResult = exportFormPdf(fileName, system, param);
|
|
239
|
-
} else {
|
|
240
|
-
exportResult = exportFormReportSuccess(fileName, system, param);
|
|
241
|
-
}
|
|
242
|
-
if (exportResult) {
|
|
243
|
-
exportResult.then(() => {
|
|
244
|
-
doAfterClickEvent(pageContext, configureObj);
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
function exportFormReportSuccess(fileName, system, param) {
|
|
249
|
-
return new Promise((resolve, reject) => {
|
|
250
|
-
const baseUrl = getBaseUrl(system);
|
|
251
|
-
const path = baseUrl + "/dsc/commons/export-reports";
|
|
252
|
-
axios.defaults.headers.common.Authorization = getToken();
|
|
253
|
-
const request = axios.post(path, param, {
|
|
254
|
-
headers: {
|
|
255
|
-
"content-type": "application/x-www-form-urlencoded"
|
|
256
|
-
},
|
|
257
|
-
responseType: "blob"
|
|
258
|
-
});
|
|
259
|
-
request.then((response) => {
|
|
260
|
-
const blob = new Blob([response.data]);
|
|
261
|
-
let fileNameTwo = "报告.xlsx";
|
|
262
|
-
if (fileName) {
|
|
263
|
-
fileNameTwo = fileName;
|
|
264
|
-
}
|
|
265
|
-
const elink = document.createElement("a");
|
|
266
|
-
elink.download = fileNameTwo;
|
|
267
|
-
elink.style.display = "none";
|
|
268
|
-
elink.target = "_blank";
|
|
269
|
-
elink.href = URL.createObjectURL(blob);
|
|
270
|
-
document.body.appendChild(elink);
|
|
271
|
-
elink.click();
|
|
272
|
-
URL.revokeObjectURL(elink.href);
|
|
273
|
-
document.body.removeChild(elink);
|
|
274
|
-
resolve(true);
|
|
275
|
-
}).catch((error) => {
|
|
276
|
-
reject(error);
|
|
277
|
-
});
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
function exportFormPdf(fileName, system, param) {
|
|
281
|
-
return new Promise((resolve, reject) => {
|
|
282
|
-
const baseUrl = getBaseUrl(system);
|
|
283
|
-
const path = baseUrl + "/dsc/commons/export-pdf";
|
|
284
|
-
axios.defaults.headers.common.Authorization = getToken();
|
|
285
|
-
const request = axios.post(path, param, {
|
|
286
|
-
headers: {
|
|
287
|
-
"content-type": "application/x-www-form-urlencoded"
|
|
288
|
-
},
|
|
289
|
-
responseType: "blob"
|
|
290
|
-
});
|
|
291
|
-
request.then((response) => {
|
|
292
|
-
const blob = new Blob([response.data]);
|
|
293
|
-
const elink = document.createElement("a");
|
|
294
|
-
elink.download = fileName.substring(0, fileName.lastIndexOf(".")) + ".pdf";
|
|
295
|
-
elink.style.display = "none";
|
|
296
|
-
elink.target = "_blank";
|
|
297
|
-
elink.href = URL.createObjectURL(blob);
|
|
298
|
-
document.body.appendChild(elink);
|
|
299
|
-
elink.click();
|
|
300
|
-
URL.revokeObjectURL(elink.href);
|
|
301
|
-
document.body.removeChild(elink);
|
|
302
|
-
resolve(true);
|
|
303
|
-
}).catch((error) => {
|
|
304
|
-
reject(error);
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
function saveFunc(params, isListButton) {
|
|
309
|
-
return new Promise((resolve, reject) => {
|
|
310
|
-
const pageContext = params.pageContext;
|
|
311
|
-
const configureObj = params.configureObj;
|
|
312
|
-
const mainDefaultValueColumns = params.mainDefaultValueColumns;
|
|
313
|
-
const dynamicColumnInfo = params.dynamicColumnInfo;
|
|
314
|
-
const successOperation = configureObj.props.base.successOperation;
|
|
315
|
-
let isUnControlVersion = false;
|
|
316
|
-
if (successOperation && successOperation === "noOperation") {
|
|
317
|
-
isUnControlVersion = true;
|
|
318
|
-
}
|
|
319
|
-
const request = getSaveFormRequest(
|
|
320
|
-
pageContext,
|
|
321
|
-
configureObj,
|
|
322
|
-
"/dsc/commons",
|
|
323
|
-
isUnControlVersion,
|
|
324
|
-
mainDefaultValueColumns,
|
|
325
|
-
dynamicColumnInfo
|
|
326
|
-
);
|
|
327
|
-
if (request) {
|
|
328
|
-
request.then((data) => {
|
|
329
|
-
dealAfterOperate(
|
|
330
|
-
pageContext,
|
|
331
|
-
configureObj,
|
|
332
|
-
data,
|
|
333
|
-
"superPageRuntimeMessage.successfulSave",
|
|
334
|
-
isListButton
|
|
335
|
-
);
|
|
336
|
-
resolve(data);
|
|
337
|
-
}).catch((error) => {
|
|
338
|
-
reject(error);
|
|
339
|
-
});
|
|
340
|
-
} else {
|
|
341
|
-
reject("保存时request不存在");
|
|
342
|
-
}
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
function getCommonFormRequestParam(pageContext, configureObj, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo, ids) {
|
|
346
|
-
const isWorkflow = pageContext.workflowCode ? true : false;
|
|
347
|
-
const system = pageContext.system;
|
|
348
|
-
const isPermission = configureObj.props.base.isPermission === void 0 || configureObj.props.base.isPermission === "true" || configureObj.props.base.isPermission;
|
|
349
|
-
const param = {
|
|
350
|
-
entity: pageContext.entity.data,
|
|
351
|
-
pageModel: pageContext.entity.page,
|
|
352
|
-
tableName: pageContext.tableName,
|
|
353
|
-
formNoRuleCode: pageContext.formNoRuleCode,
|
|
354
|
-
isWorkflowEntity: isWorkflow,
|
|
355
|
-
functionCode: configureObj.props.base.functionCode,
|
|
356
|
-
isPermission: isPermission + "",
|
|
357
|
-
tableNames: pageContext.tableNames
|
|
358
|
-
};
|
|
359
|
-
if (ids) {
|
|
360
|
-
param["ids"] = ids;
|
|
361
|
-
}
|
|
362
|
-
if (pageContext.judgeHeavyList) {
|
|
363
|
-
if (isArrayFn(pageContext.judgeHeavyList)) {
|
|
364
|
-
param["judgeHeavyList"] = JSON.stringify(pageContext.judgeHeavyList);
|
|
365
|
-
} else {
|
|
366
|
-
param["judgeHeavyList"] = pageContext.judgeHeavyList;
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
const conversionCodes = configureObj.props.base.conversionCodes;
|
|
370
|
-
if (conversionCodes) {
|
|
371
|
-
if (isArrayFn(conversionCodes)) {
|
|
372
|
-
param["dataConversionRule"] = conversionCodes.join(",");
|
|
373
|
-
} else if (typeof conversionCodes === "string") {
|
|
374
|
-
param["dataConversionRule"] = conversionCodes;
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
const autoSetValueData = configureObj.props.base.setValueList;
|
|
378
|
-
if (autoSetValueData) {
|
|
379
|
-
if (isArrayFn(autoSetValueData)) {
|
|
380
|
-
param["autoSetValueData"] = autoSetValueData.join(",");
|
|
381
|
-
} else if (typeof autoSetValueData === "string") {
|
|
382
|
-
param["autoSetValueData"] = autoSetValueData;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
const logSetting = configureObj.props.logSetting;
|
|
386
|
-
if (logSetting) {
|
|
387
|
-
param["logSettingText"] = logSetting;
|
|
388
|
-
}
|
|
389
|
-
if (!param["systemCode"]) {
|
|
390
|
-
param["systemCode"] = system.code;
|
|
391
|
-
}
|
|
392
|
-
const beanName = configureObj.props.base.beanName;
|
|
393
|
-
if (beanName) {
|
|
394
|
-
param["beanName"] = beanName;
|
|
395
|
-
}
|
|
396
|
-
if (dynamicColumnInfo) {
|
|
397
|
-
param["dynamicColumnInfo"] = dynamicColumnInfo;
|
|
398
|
-
}
|
|
399
|
-
if (mainDefaultValueColumns) {
|
|
400
|
-
param["mainDefaultValueColumns"] = mainDefaultValueColumns;
|
|
401
|
-
}
|
|
402
|
-
const additionalParamMap = pageContext.entity.request;
|
|
403
|
-
if (additionalParamMap) {
|
|
404
|
-
param["additionalParamMap"] = additionalParamMap;
|
|
405
|
-
}
|
|
406
|
-
if (isUnControlVersion !== void 0) {
|
|
407
|
-
param["unControlVersion"] = isUnControlVersion;
|
|
408
|
-
}
|
|
409
|
-
return param;
|
|
410
|
-
}
|
|
411
|
-
function getSaveFormRequest(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo) {
|
|
412
|
-
const system = pageContext.system;
|
|
413
|
-
const param = getCommonFormRequestParam(
|
|
414
|
-
pageContext,
|
|
415
|
-
configureObj,
|
|
416
|
-
isUnControlVersion,
|
|
417
|
-
mainDefaultValueColumns,
|
|
418
|
-
dynamicColumnInfo,
|
|
419
|
-
null
|
|
420
|
-
);
|
|
421
|
-
return getSaveFormRequestByParam(system, param, url, pageContext.entity.data);
|
|
422
|
-
}
|
|
423
|
-
function getSaveFormRequestByParam(system, param, url, formData) {
|
|
424
|
-
const baseUrl = getBaseUrl(system);
|
|
425
|
-
let path = baseUrl + url;
|
|
426
|
-
path = getRealRestApiPath(path, system);
|
|
427
|
-
let request;
|
|
428
|
-
if (formData && (formData.id || formData.ID)) {
|
|
429
|
-
request = http.put(path, param);
|
|
430
|
-
} else {
|
|
431
|
-
request = http.post(path, param);
|
|
432
|
-
}
|
|
433
|
-
return request;
|
|
434
|
-
}
|
|
435
|
-
function dealAfterOperate(pageContext, configureObj, data, successTip, isListButton) {
|
|
436
|
-
if (isListButton === void 0) {
|
|
437
|
-
isListButton = configureObj.props.base.tableUuid ? true : false;
|
|
438
|
-
}
|
|
439
|
-
if (isListButton) {
|
|
440
|
-
dealAfterWithList(pageContext, configureObj, data, successTip);
|
|
441
|
-
} else {
|
|
442
|
-
dealAfterWithForm(pageContext, configureObj, data, successTip);
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
function dealAfterWithForm(pageContext, configureObj, data, successTip) {
|
|
446
|
-
if (data) {
|
|
447
|
-
const commonEntity = data;
|
|
448
|
-
let dataModel;
|
|
449
|
-
if (commonEntity.entity) {
|
|
450
|
-
dataModel = commonEntity.entity;
|
|
451
|
-
}
|
|
452
|
-
if (commonEntity.formNo) {
|
|
453
|
-
pageContext.initFormNo = commonEntity.formNo;
|
|
454
|
-
}
|
|
455
|
-
afterSuccessOperateInForm(pageContext, configureObj, dataModel);
|
|
456
|
-
}
|
|
457
|
-
if (successTip) {
|
|
458
|
-
ElMessage({
|
|
459
|
-
message: getI18n().t(successTip),
|
|
460
|
-
type: "success",
|
|
461
|
-
showClose: true
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
function afterSuccessOperateInForm(pageContext, configureObj, dataModel) {
|
|
466
|
-
let successOperation = configureObj.props.base.successOperation;
|
|
467
|
-
const isNeedValueMapping = configureObj.props.base.isNeedValueMapping;
|
|
468
|
-
console.log(
|
|
469
|
-
"afterSuccessOperateInForm---successOperation=-",
|
|
470
|
-
successOperation,
|
|
471
|
-
dataModel,
|
|
472
|
-
isNeedValueMapping
|
|
473
|
-
);
|
|
474
|
-
pageContext.workflowCode ? true : false;
|
|
475
|
-
if (!successOperation || successOperation === "" || successOperation === null) {
|
|
476
|
-
successOperation = "refresh";
|
|
477
|
-
}
|
|
478
|
-
if (successOperation === "noOperation") {
|
|
479
|
-
if (dataModel) {
|
|
480
|
-
pageContext.entity.data = dataModel;
|
|
481
|
-
}
|
|
482
|
-
} else if (successOperation === "refresh") {
|
|
483
|
-
if (dataModel && (dataModel.id || dataModel.ID)) {
|
|
484
|
-
const dataIdSessio = dataModel.ID == null ? dataModel.id : dataModel.ID;
|
|
485
|
-
const route = useRoute();
|
|
486
|
-
if (route.query._t_) {
|
|
487
|
-
setSessionCache(route.query._t_ + "_id", dataIdSessio);
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
} else if (successOperation === "closeWindow" || successOperation === "closeWindowAndRefresh") {
|
|
491
|
-
console.log("afterSuccessOperateInForm--successOperation=--", successOperation);
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
function dealAfterWithList(pageContext, configureObj, row, successTip) {
|
|
495
|
-
let successOperation = configureObj.props.base.successOperation;
|
|
496
|
-
configureObj.props.base.isNeedValueMapping;
|
|
497
|
-
const tableUuid = configureObj.props.base.tableUuid;
|
|
498
|
-
if (!successOperation) {
|
|
499
|
-
successOperation = "refresh";
|
|
500
|
-
}
|
|
501
|
-
console.log("dealAfterWithList--");
|
|
502
|
-
if (successOperation === "refresh") {
|
|
503
|
-
if (tableUuid) {
|
|
504
|
-
const gridRef = getComponentRef(pageContext, tableUuid);
|
|
505
|
-
gridRef.refresh();
|
|
506
|
-
} else {
|
|
507
|
-
console.error("tableUuid is empty");
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
if (successTip) {
|
|
511
|
-
ElMessage({
|
|
512
|
-
message: getI18n().t(successTip),
|
|
513
|
-
type: "success",
|
|
514
|
-
showClose: true
|
|
515
|
-
});
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
function submitForm(params, isListButton, eventName, url) {
|
|
519
|
-
return new Promise((resolve, reject) => {
|
|
520
|
-
const pageContext = params.pageContext;
|
|
521
|
-
const configureObj = params.configureObj;
|
|
522
|
-
const mainDefaultValueColumns = params.mainDefaultValueColumns;
|
|
523
|
-
const dynamicColumnInfo = params.dynamicColumnInfo;
|
|
524
|
-
const ids = params.ids;
|
|
525
|
-
const successOperation = configureObj.props.base.successOperation;
|
|
526
|
-
let isUnControlVersion = false;
|
|
527
|
-
if (successOperation && successOperation === "noOperation") {
|
|
528
|
-
isUnControlVersion = true;
|
|
529
|
-
}
|
|
530
|
-
const request = getSubmitFormRequest(
|
|
531
|
-
pageContext,
|
|
532
|
-
configureObj,
|
|
533
|
-
url,
|
|
534
|
-
isUnControlVersion,
|
|
535
|
-
mainDefaultValueColumns,
|
|
536
|
-
dynamicColumnInfo,
|
|
537
|
-
eventName,
|
|
538
|
-
ids
|
|
539
|
-
);
|
|
540
|
-
if (request) {
|
|
541
|
-
request.then((data) => {
|
|
542
|
-
dealAfterOperate(
|
|
543
|
-
pageContext,
|
|
544
|
-
configureObj,
|
|
545
|
-
data,
|
|
546
|
-
"superPageRuntimeMessage.successfulSave",
|
|
547
|
-
isListButton
|
|
548
|
-
);
|
|
549
|
-
resolve(data);
|
|
550
|
-
}).catch((error) => {
|
|
551
|
-
reject(error);
|
|
552
|
-
});
|
|
553
|
-
} else {
|
|
554
|
-
reject("request不存在");
|
|
555
|
-
}
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
function getSubmitFormRequest(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo, eventName, ids) {
|
|
559
|
-
return new Promise((resolve, reject) => {
|
|
560
|
-
const buttonName = configureObj.props.base.title;
|
|
561
|
-
const operationI18nTip = "superPageRuntimeMessage.whetherToConfirm" + upperFirstCase(eventName);
|
|
562
|
-
ElMessageBox.confirm(
|
|
563
|
-
getI18n().t(operationI18nTip, { name: buttonName }),
|
|
564
|
-
getI18n().t("superPageRuntimeMessage.tips"),
|
|
565
|
-
{
|
|
566
|
-
confirmButtonText: getI18n().t("superPageRuntimeMessage.sure"),
|
|
567
|
-
cancelButtonText: getI18n().t("superPageRuntimeMessage.cancel"),
|
|
568
|
-
type: "warning"
|
|
569
|
-
}
|
|
570
|
-
).then(() => {
|
|
571
|
-
const system = pageContext.system;
|
|
572
|
-
const param = getCommonFormRequestParam(
|
|
573
|
-
pageContext,
|
|
574
|
-
configureObj,
|
|
575
|
-
isUnControlVersion,
|
|
576
|
-
mainDefaultValueColumns,
|
|
577
|
-
dynamicColumnInfo,
|
|
578
|
-
ids
|
|
579
|
-
);
|
|
580
|
-
getSaveFormRequestByParam(system, param, url, pageContext.entity.data).then((result) => {
|
|
581
|
-
resolve(result);
|
|
582
|
-
}).catch((error) => {
|
|
583
|
-
reject(error);
|
|
584
|
-
});
|
|
585
|
-
}).catch(() => {
|
|
586
|
-
reject("点击了取消按钮");
|
|
587
|
-
});
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
function deleteFunc(params) {
|
|
591
|
-
return new Promise((resolve, reject) => {
|
|
592
|
-
const ids = params.ids;
|
|
593
|
-
if (!ids || ids.length === 0) {
|
|
594
|
-
ElMessage({
|
|
595
|
-
showClose: true,
|
|
596
|
-
type: "warning",
|
|
597
|
-
message: getI18n().t("superPageRuntimeMessage.pleaseSelectRecord")
|
|
598
|
-
});
|
|
599
|
-
return;
|
|
600
|
-
}
|
|
601
|
-
ElMessageBox.confirm(
|
|
602
|
-
getI18n().t("superPageRuntimeMessage.whetherToConfirmDeletion"),
|
|
603
|
-
getI18n().t("superPageRuntimeMessage.tips"),
|
|
604
|
-
{
|
|
605
|
-
confirmButtonText: getI18n().t("superPageRuntimeMessage.sure"),
|
|
606
|
-
cancelButtonText: getI18n().t("superPageRuntimeMessage.cancel"),
|
|
607
|
-
type: "warning"
|
|
608
|
-
}
|
|
609
|
-
).then(() => {
|
|
610
|
-
const pageContext = params.pageContext;
|
|
611
|
-
const configureObj = params.configureObj;
|
|
612
|
-
const system = pageContext.entity.system;
|
|
613
|
-
const tableName = pageContext.tableName;
|
|
614
|
-
const configureBase = configureObj.props.base;
|
|
615
|
-
const baseUrl = getBaseUrl(system);
|
|
616
|
-
let path = baseUrl + "/dsc/commons/" + tableName;
|
|
617
|
-
path = getRealRestApiPath(path, system);
|
|
618
|
-
const isPermission = configureBase.isPermission === void 0 || configureBase.isPermission === "true" || configureBase.isPermission;
|
|
619
|
-
const isWorkflow = pageContext.workflowCode ? true : false;
|
|
620
|
-
const param = {
|
|
621
|
-
ids,
|
|
622
|
-
functionCode: configureBase.functionCode,
|
|
623
|
-
isPermission: isPermission + "",
|
|
624
|
-
systemCode: system.code,
|
|
625
|
-
isWorkflowEntity: isWorkflow,
|
|
626
|
-
tableNames: pageContext.tableNames
|
|
627
|
-
};
|
|
628
|
-
if (configureBase.beanName) {
|
|
629
|
-
param["beanName"] = configureBase.beanName;
|
|
630
|
-
}
|
|
631
|
-
const deleteLogicSetting = configureObj.props.deleteLogicSetting;
|
|
632
|
-
if (deleteLogicSetting) {
|
|
633
|
-
if (typeof deleteLogicSetting === "object") {
|
|
634
|
-
param["deleteLogicSetting"] = JSON.stringify(deleteLogicSetting);
|
|
635
|
-
} else if (typeof deleteLogicSetting === "string") {
|
|
636
|
-
param["deleteLogicSetting"] = deleteLogicSetting;
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
const logSetting = configureObj.props.logSetting;
|
|
640
|
-
if (logSetting) {
|
|
641
|
-
param["logSettingText"] = logSetting;
|
|
642
|
-
}
|
|
643
|
-
const isSafeDelete = configureObj.props.base.isSafeDelete;
|
|
644
|
-
if (isSafeDelete) {
|
|
645
|
-
param["isSafeDelete"] = isSafeDelete;
|
|
646
|
-
}
|
|
647
|
-
http.delete(path, {
|
|
648
|
-
data: param
|
|
649
|
-
}).then((data) => {
|
|
650
|
-
const gridRef = getComponentRef(pageContext, params.tableUuid);
|
|
651
|
-
if (gridRef) {
|
|
652
|
-
gridRef.isDeleteChange(true);
|
|
653
|
-
gridRef.clearSelections();
|
|
654
|
-
}
|
|
655
|
-
dealAfterOperate(
|
|
656
|
-
pageContext,
|
|
657
|
-
configureObj,
|
|
658
|
-
data,
|
|
659
|
-
"superPageRuntimeMessage.successfulDelete",
|
|
660
|
-
true
|
|
661
|
-
);
|
|
662
|
-
resolve(true);
|
|
663
|
-
}).catch((e) => {
|
|
664
|
-
reject(e);
|
|
665
|
-
});
|
|
666
|
-
}).catch(() => {
|
|
667
|
-
reject();
|
|
668
|
-
});
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
function downloadTemplateFunc(params) {
|
|
672
|
-
const pageContext = params.pageContext;
|
|
673
|
-
const configureObj = params.configureObj;
|
|
674
|
-
const configureBase = configureObj.props.base;
|
|
675
|
-
const templateFilesResult = packageTemplateFiles(configureBase.templateFiles);
|
|
676
|
-
let templateUUID;
|
|
677
|
-
let templateShowPath;
|
|
678
|
-
if (templateFilesResult && templateFilesResult.length > 0) {
|
|
679
|
-
templateUUID = templateFilesResult[0].templateUUID;
|
|
680
|
-
templateShowPath = templateFilesResult[0].templateShowPath;
|
|
681
|
-
}
|
|
682
|
-
const system = pageContext.system;
|
|
683
|
-
const showName = templateShowPath;
|
|
684
|
-
let param = "?1=1";
|
|
685
|
-
if (templateUUID && showName && templateUUID !== "undefined" && showName !== "undefined" && templateUUID !== "null" && showName !== "null") {
|
|
686
|
-
param += "&fileName=" + encodeURI(templateUUID) + "&showName=" + encodeURI(showName);
|
|
687
|
-
} else if (showName) {
|
|
688
|
-
param += "&showName=" + encodeURI(showName);
|
|
689
|
-
}
|
|
690
|
-
const logSetting = configureObj.props.logSetting;
|
|
691
|
-
if (logSetting && logSetting !== "") {
|
|
692
|
-
param += "&logSettingText=" + logSetting;
|
|
693
|
-
}
|
|
694
|
-
if (system && system.code) {
|
|
695
|
-
param += "&systemCode=" + system.code;
|
|
696
|
-
}
|
|
697
|
-
const listCode = params.listCode;
|
|
698
|
-
if (listCode) {
|
|
699
|
-
param += "&listCode=" + listCode;
|
|
700
|
-
}
|
|
701
|
-
if (pageContext.beanName) {
|
|
702
|
-
param += "&beanName=" + pageContext.beanName;
|
|
703
|
-
}
|
|
704
|
-
if (configureBase.functionCode) {
|
|
705
|
-
param += "&functionCode=" + configureBase.functionCode;
|
|
706
|
-
}
|
|
707
|
-
if (pageContext.tableName) {
|
|
708
|
-
param += "&tableName=" + pageContext.tableName;
|
|
709
|
-
}
|
|
710
|
-
if (configureBase) {
|
|
711
|
-
const isPermission = configureBase.isPermission === void 0 || configureBase.isPermission === "true" || configureBase.isPermission;
|
|
712
|
-
param += "&isPermission=" + isPermission;
|
|
713
|
-
}
|
|
714
|
-
const baseUrl = getBaseUrl(system);
|
|
715
|
-
window.open(baseUrl + "/dsc/commons/download-files" + param);
|
|
716
|
-
}
|
|
717
|
-
function doImportFinally(params, fileObj) {
|
|
718
|
-
const pageContext = params.pageContext;
|
|
719
|
-
const buttonConfigureObj = params.configureObj;
|
|
720
|
-
const tableConfigure = params.tableConfigure;
|
|
721
|
-
const tableName = pageContext.tableName;
|
|
722
|
-
const buttonConfigureBase = buttonConfigureObj.props.base;
|
|
723
|
-
const param = new FormData();
|
|
724
|
-
param.append("multipartFile", fileObj);
|
|
725
|
-
if (tableName) {
|
|
726
|
-
param.append("tableName", tableName);
|
|
727
|
-
}
|
|
728
|
-
if (pageContext.importBeanName) {
|
|
729
|
-
param.append("importBeanName", pageContext.importBeanName);
|
|
730
|
-
}
|
|
731
|
-
if (pageContext.beanName) {
|
|
732
|
-
param.append("beanName", pageContext.beanName);
|
|
733
|
-
}
|
|
734
|
-
const listViewImportDuplicate = tableConfigure.props.listViewImportDuplicate;
|
|
735
|
-
if (listViewImportDuplicate) {
|
|
736
|
-
param.append("importDuplicateRule", listViewImportDuplicate);
|
|
737
|
-
}
|
|
738
|
-
const judgeHeavyList = pageContext.judgeHeavyList;
|
|
739
|
-
if (judgeHeavyList) {
|
|
740
|
-
param.append("judgeHeavyList", JSON.stringify(judgeHeavyList));
|
|
741
|
-
}
|
|
742
|
-
const formNoRuleCode = pageContext.formNoRuleCode;
|
|
743
|
-
if (formNoRuleCode) {
|
|
744
|
-
param.append("formNoRuleCode", formNoRuleCode);
|
|
745
|
-
}
|
|
746
|
-
const listCode = params.listCode;
|
|
747
|
-
if (listCode) {
|
|
748
|
-
param.append("listCode", listCode);
|
|
749
|
-
}
|
|
750
|
-
let isAsync = false;
|
|
751
|
-
if (buttonConfigureBase["isAsync"] !== void 0 && buttonConfigureBase["isAsync"] !== null) {
|
|
752
|
-
isAsync = buttonConfigureBase.isAsync;
|
|
753
|
-
} else {
|
|
754
|
-
isAsync = false;
|
|
755
|
-
}
|
|
756
|
-
param.append("isAsync", isAsync + "");
|
|
757
|
-
param.append("pageCode", pageContext.code);
|
|
758
|
-
const isWorkflowEntity = pageContext.workflowCode ? true : false;
|
|
759
|
-
if (isWorkflowEntity !== null && isWorkflowEntity !== void 0) {
|
|
760
|
-
param.append("isWorkflowEntity", isWorkflowEntity + "");
|
|
761
|
-
}
|
|
762
|
-
if (buttonConfigureBase.functionCode) {
|
|
763
|
-
param.append("functionCode", buttonConfigureBase.functionCode);
|
|
764
|
-
}
|
|
765
|
-
const additionalParamMap = pageContext.entity.request;
|
|
766
|
-
if (additionalParamMap) {
|
|
767
|
-
param.append("additionalParamMapStr", JSON.stringify(additionalParamMap));
|
|
768
|
-
}
|
|
769
|
-
const isPermission = buttonConfigureBase.isPermission === void 0 || buttonConfigureBase.isPermission === "true" || buttonConfigureBase.isPermission;
|
|
770
|
-
param.append("isPermission", isPermission + "");
|
|
771
|
-
const system = pageContext.entity.system;
|
|
772
|
-
const baseUrl = getBaseUrl(system);
|
|
773
|
-
let path = baseUrl + "/dsc/commons/import-data";
|
|
774
|
-
path = getRealRestApiPath(path, system);
|
|
775
|
-
http.post(path, param).then((data) => {
|
|
776
|
-
if (isAsync) {
|
|
777
|
-
ElMessage({
|
|
778
|
-
showClose: true,
|
|
779
|
-
type: "success",
|
|
780
|
-
message: getI18n().t("superPageRuntimeMessage.asyncImport")
|
|
781
|
-
});
|
|
782
|
-
} else {
|
|
783
|
-
let isSuccess = false;
|
|
784
|
-
if (data) {
|
|
785
|
-
isSuccess = false;
|
|
786
|
-
ElMessage({
|
|
787
|
-
dangerouslyUseHTMLString: true,
|
|
788
|
-
showClose: true,
|
|
789
|
-
type: "warning",
|
|
790
|
-
message: data
|
|
791
|
-
});
|
|
792
|
-
} else {
|
|
793
|
-
ElMessage({
|
|
794
|
-
showClose: true,
|
|
795
|
-
type: "success",
|
|
796
|
-
message: getI18n().t("superPageRuntimeMessage.successfulImport")
|
|
797
|
-
});
|
|
798
|
-
isSuccess = true;
|
|
799
|
-
}
|
|
800
|
-
dealAfterOperate(pageContext, buttonConfigureObj, data, null, true);
|
|
801
|
-
pageContext.result = isSuccess;
|
|
802
|
-
doAfterClickEvent(pageContext, buttonConfigureObj);
|
|
803
|
-
}
|
|
804
|
-
}).catch((error) => {
|
|
805
|
-
console.log("error==", error);
|
|
806
|
-
});
|
|
807
|
-
}
|
|
808
|
-
function judgeDataNumber(buttonConfigureObj, ids) {
|
|
809
|
-
const buttonConfigureBase = buttonConfigureObj.props.base;
|
|
810
|
-
if (buttonConfigureBase.conditionsForExecution && buttonConfigureBase.conditionsForExecution !== "") {
|
|
811
|
-
if (buttonConfigureBase.conditionsForExecution === "one") {
|
|
812
|
-
if (!ids || ids.length !== 1) {
|
|
813
|
-
ElMessage({
|
|
814
|
-
showClose: true,
|
|
815
|
-
type: "warning",
|
|
816
|
-
message: getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", {
|
|
817
|
-
message: getI18n().t("superPageRuntimeMessage.onlyOneRecordCanBeselected")
|
|
818
|
-
})
|
|
819
|
-
});
|
|
820
|
-
return false;
|
|
821
|
-
}
|
|
822
|
-
} else if (buttonConfigureBase.conditionsForExecution === "more") {
|
|
823
|
-
if (!ids || ids.length <= 0) {
|
|
824
|
-
ElMessage({
|
|
825
|
-
showClose: true,
|
|
826
|
-
type: "warning",
|
|
827
|
-
message: getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", {
|
|
828
|
-
message: getI18n().t("superPageRuntimeMessage.selectAtLeastOneRecord")
|
|
829
|
-
})
|
|
830
|
-
});
|
|
831
|
-
return false;
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
return true;
|
|
836
|
-
}
|
|
837
|
-
function exportFunc(params) {
|
|
838
|
-
return new Promise((resolve, reject) => {
|
|
839
|
-
const pageContext = params.pageContext;
|
|
840
|
-
const configureBase = params.configureObj.props.base;
|
|
841
|
-
const listCode = params.listCode;
|
|
842
|
-
const selections = params.selections;
|
|
843
|
-
const dataParam = {};
|
|
844
|
-
if (selections && selections.length > 0) {
|
|
845
|
-
dataParam["data"] = selections;
|
|
846
|
-
}
|
|
847
|
-
let pageName = pageContext.label;
|
|
848
|
-
if (!pageName) {
|
|
849
|
-
pageName = pageContext.code;
|
|
850
|
-
}
|
|
851
|
-
let isAsync = false;
|
|
852
|
-
if (configureBase["isAsync"] !== void 0 && configureBase["isAsync"] !== null) {
|
|
853
|
-
isAsync = configureBase.isAsync;
|
|
854
|
-
} else {
|
|
855
|
-
isAsync = false;
|
|
856
|
-
}
|
|
857
|
-
const isPermission = configureBase.isPermission === void 0 || configureBase.isPermission === "true" || configureBase.isPermission;
|
|
858
|
-
const exportFileName = pageName;
|
|
859
|
-
window["$vueApp"].config.globalProperties.$exportDataNew(
|
|
860
|
-
dataParam,
|
|
861
|
-
exportFileName,
|
|
862
|
-
listCode,
|
|
863
|
-
configureBase.functionCode,
|
|
864
|
-
null,
|
|
865
|
-
null,
|
|
866
|
-
isAsync,
|
|
867
|
-
pageContext.code,
|
|
868
|
-
isPermission
|
|
869
|
-
);
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
|
-
function getWorkflowSaveParams(params) {
|
|
873
|
-
const pageContext = params.pageContext;
|
|
874
|
-
const configureObj = params.configureObj;
|
|
875
|
-
const dataModel = pageContext.entity.data;
|
|
876
|
-
const system = pageContext.entity.system;
|
|
877
|
-
const permissionPrefix = system.code + "." + pageContext.code;
|
|
878
|
-
let functionCode = configureObj.props.base.functionCode;
|
|
879
|
-
if (!functionCode) {
|
|
880
|
-
functionCode = permissionPrefix + ".xxx";
|
|
881
|
-
}
|
|
882
|
-
if (!dataModel.id && !dataModel.ID) {
|
|
883
|
-
dataModel["pageCode"] = pageContext.code;
|
|
884
|
-
dataModel["pageVersion"] = pageContext.version;
|
|
885
|
-
}
|
|
886
|
-
const param = {
|
|
887
|
-
entity: dataModel,
|
|
888
|
-
pageMoel: pageContext.entity.page,
|
|
889
|
-
formNoRuleCode: pageContext.formNoRuleCode,
|
|
890
|
-
tableName: pageContext.tableName,
|
|
891
|
-
emailTemplateCode: pageContext.emailTemplateCode,
|
|
892
|
-
definitionId: pageContext.definitionId,
|
|
893
|
-
functionCode,
|
|
894
|
-
systemCode: system.code,
|
|
895
|
-
tableNames: pageContext.tableNames
|
|
896
|
-
};
|
|
897
|
-
if (pageContext.completeTaskParam) {
|
|
898
|
-
param["completeTaskParam"] = {
|
|
899
|
-
taskId: pageContext.completeTaskParam.taskId,
|
|
900
|
-
opinion: pageContext.completeTaskParam.opinion
|
|
901
|
-
};
|
|
902
|
-
}
|
|
903
|
-
if (pageContext.judgeHeavyList) {
|
|
904
|
-
if (isArrayFn(pageContext.judgeHeavyList)) {
|
|
905
|
-
param["judgeHeavyList"] = JSON.stringify(pageContext.judgeHeavyList);
|
|
906
|
-
} else {
|
|
907
|
-
param["judgeHeavyList"] = pageContext.judgeHeavyList;
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
const conversionCodes = configureObj.props.base.conversionCodes;
|
|
911
|
-
if (conversionCodes) {
|
|
912
|
-
if (isArrayFn(conversionCodes)) {
|
|
913
|
-
param["dataConversionRule"] = conversionCodes.join(",");
|
|
914
|
-
} else if (typeof conversionCodes === "string") {
|
|
915
|
-
param["dataConversionRule"] = conversionCodes;
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
const autoSetValueData = configureObj.props.base.setValueList;
|
|
919
|
-
if (autoSetValueData) {
|
|
920
|
-
if (isArrayFn(autoSetValueData)) {
|
|
921
|
-
param["autoSetValueData"] = autoSetValueData.join(",");
|
|
922
|
-
} else if (typeof autoSetValueData === "string") {
|
|
923
|
-
param["autoSetValueData"] = autoSetValueData;
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
if (pageContext.beanName) {
|
|
927
|
-
param["beanName"] = pageContext.beanName;
|
|
928
|
-
}
|
|
929
|
-
const logSetting = configureObj.props.logSetting;
|
|
930
|
-
if (logSetting) {
|
|
931
|
-
param["logSettingText"] = logSetting;
|
|
932
|
-
}
|
|
933
|
-
if (!param.systemCode) {
|
|
934
|
-
param.systemCode = system.code;
|
|
935
|
-
}
|
|
936
|
-
const additionalParamMap = pageContext.entity.request;
|
|
937
|
-
if (additionalParamMap) {
|
|
938
|
-
param["additionalParamMap"] = additionalParamMap;
|
|
939
|
-
if (additionalParamMap.ids && additionalParamMap.ids.length > 0) {
|
|
940
|
-
param["ids"] = additionalParamMap.ids;
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
const successOperation = configureObj.props.base.successOperation;
|
|
944
|
-
if (successOperation && successOperation === "noOperation") {
|
|
945
|
-
param["unControlVersion"] = true;
|
|
946
|
-
}
|
|
947
|
-
param["isWorkflowEntity"] = true;
|
|
948
|
-
return param;
|
|
949
|
-
}
|
|
950
|
-
function workflowSaveFunc(params) {
|
|
951
|
-
return new Promise((resolve, reject) => {
|
|
952
|
-
const pageContext = params.pageContext;
|
|
953
|
-
const dataModel = pageContext.entity.data;
|
|
954
|
-
const system = pageContext.entity.system;
|
|
955
|
-
let path = getBaseUrl(system) + "/dsc/workflow-commons";
|
|
956
|
-
path = getRealRestApiPath(path, system);
|
|
957
|
-
if (!path) {
|
|
958
|
-
ElMessage({
|
|
959
|
-
showClose: true,
|
|
960
|
-
type: "warning",
|
|
961
|
-
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
962
|
-
});
|
|
963
|
-
return;
|
|
964
|
-
}
|
|
965
|
-
const param = getWorkflowSaveParams(params);
|
|
966
|
-
let request;
|
|
967
|
-
if (dataModel.id || dataModel.ID) {
|
|
968
|
-
request = http.put(path, param);
|
|
969
|
-
} else {
|
|
970
|
-
request = http.post(path, param);
|
|
971
|
-
}
|
|
972
|
-
request.then((commonEntity) => {
|
|
973
|
-
let result = true;
|
|
974
|
-
if (commonEntity) {
|
|
975
|
-
result = dealCompleteTaskParam(commonEntity, false, pageContext, params, null);
|
|
976
|
-
}
|
|
977
|
-
if (result === true) {
|
|
978
|
-
ElMessage({
|
|
979
|
-
showClose: true,
|
|
980
|
-
type: "success",
|
|
981
|
-
message: getI18n().t("superPageRuntimeMessage.successfulSave")
|
|
982
|
-
});
|
|
983
|
-
}
|
|
984
|
-
resolve(true);
|
|
985
|
-
}).catch((error) => {
|
|
986
|
-
reject(error);
|
|
987
|
-
});
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
function dealCompleteTaskParam(commonEntity, isInit, pageContext, params, operationResult) {
|
|
991
|
-
const pageCode = pageContext.code;
|
|
992
|
-
const pageVersion = pageContext.version;
|
|
993
|
-
const formParam = commonEntity;
|
|
994
|
-
let taskId;
|
|
995
|
-
if (formParam) {
|
|
996
|
-
if (isInit && formParam.entity) {
|
|
997
|
-
pageContext.entity.data = formParam.entity;
|
|
998
|
-
pageContext.initFormNo = commonEntity.formNo;
|
|
999
|
-
pageContext.emailTemplateCode = commonEntity.emailTemplateCode;
|
|
1000
|
-
}
|
|
1001
|
-
const completeTaskResult = formParam.completeTaskResult;
|
|
1002
|
-
if (completeTaskResult) {
|
|
1003
|
-
const completeTaskTipType = completeTaskResult.completeTaskTipType;
|
|
1004
|
-
if (completeTaskTipType && completeTaskTipType === "MESSAGE") {
|
|
1005
|
-
const message = completeTaskResult.content;
|
|
1006
|
-
ElMessage({
|
|
1007
|
-
showClose: true,
|
|
1008
|
-
type: "warning",
|
|
1009
|
-
message
|
|
1010
|
-
});
|
|
1011
|
-
return false;
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
if (formParam.completeTaskParam) {
|
|
1015
|
-
const completeTaskParam = formParam.completeTaskParam;
|
|
1016
|
-
taskId = completeTaskParam.taskId;
|
|
1017
|
-
if (params) {
|
|
1018
|
-
params.taskId = taskId;
|
|
1019
|
-
}
|
|
1020
|
-
setStoreInfo(pageCode, pageVersion, "_completeTaskParam", completeTaskParam);
|
|
1021
|
-
pageContext.fieldPermissions = completeTaskParam.fieldPermissions;
|
|
1022
|
-
pageContext.actionPermissions = completeTaskParam.actionPermissions;
|
|
1023
|
-
pageContext.workflowButtonComponent = completeTaskParam.buttonComponent;
|
|
1024
|
-
pageContext.completeTaskParam = completeTaskParam;
|
|
1025
|
-
}
|
|
1026
|
-
setStoreInfo(pageCode, pageVersion, "_currentActivityName", formParam.taskName);
|
|
1027
|
-
}
|
|
1028
|
-
if (params) {
|
|
1029
|
-
params.operationResult = operationResult;
|
|
1030
|
-
}
|
|
1031
|
-
if (!isInit) {
|
|
1032
|
-
dealAfterOperate(pageContext, params.configureObj, commonEntity, null, false);
|
|
1033
|
-
}
|
|
1034
|
-
return true;
|
|
1035
|
-
}
|
|
1036
|
-
function submitProcessFunc(params) {
|
|
1037
|
-
return new Promise((resolve, reject) => {
|
|
1038
|
-
const pageContext = params.pageContext;
|
|
1039
|
-
const system = pageContext.entity.system;
|
|
1040
|
-
let path = getBaseUrl(system) + "/dsc/workflow-commons/submit";
|
|
1041
|
-
path = getRealRestApiPath(path, system);
|
|
1042
|
-
if (!path) {
|
|
1043
|
-
ElMessage({
|
|
1044
|
-
showClose: true,
|
|
1045
|
-
type: "warning",
|
|
1046
|
-
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1047
|
-
});
|
|
1048
|
-
return;
|
|
1049
|
-
}
|
|
1050
|
-
const param = getWorkflowSaveParams(params);
|
|
1051
|
-
const request = http.post(path, param);
|
|
1052
|
-
if (request) {
|
|
1053
|
-
request.then((commonEntity) => {
|
|
1054
|
-
let result = true;
|
|
1055
|
-
if (commonEntity) {
|
|
1056
|
-
result = dealCompleteTaskParam(commonEntity, false, pageContext, params, null);
|
|
1057
|
-
}
|
|
1058
|
-
if (result === true) {
|
|
1059
|
-
ElMessage({
|
|
1060
|
-
showClose: true,
|
|
1061
|
-
type: "success",
|
|
1062
|
-
message: getI18n().t("superPageRuntimeMessage.successfulSubmit")
|
|
1063
|
-
});
|
|
1064
|
-
}
|
|
1065
|
-
resolve(true);
|
|
1066
|
-
}).catch((error) => {
|
|
1067
|
-
reject(error);
|
|
1068
|
-
});
|
|
1069
|
-
}
|
|
1070
|
-
});
|
|
1071
|
-
}
|
|
1072
|
-
function completeTaskFunc(params, operationResult) {
|
|
1073
|
-
return new Promise((resolve, reject) => {
|
|
1074
|
-
const pageContext = params.pageContext;
|
|
1075
|
-
const system = pageContext.entity.system;
|
|
1076
|
-
let path = getBaseUrl(system) + "/dsc/workflow-commons/complete-tasks";
|
|
1077
|
-
path = getRealRestApiPath(path, system);
|
|
1078
|
-
if (!path) {
|
|
1079
|
-
ElMessage({
|
|
1080
|
-
showClose: true,
|
|
1081
|
-
type: "warning",
|
|
1082
|
-
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1083
|
-
});
|
|
1084
|
-
return;
|
|
1085
|
-
}
|
|
1086
|
-
const param = getWorkflowSaveParams(params);
|
|
1087
|
-
param["completeTaskParam"] = {
|
|
1088
|
-
operationResult,
|
|
1089
|
-
taskId: pageContext.completeTaskParam ? pageContext.completeTaskParam.taskId : null,
|
|
1090
|
-
opinion: pageContext.completeTaskParam ? pageContext.completeTaskParam.opinion : null
|
|
1091
|
-
};
|
|
1092
|
-
const request = http.post(path, param);
|
|
1093
|
-
request.then((commonEntity) => {
|
|
1094
|
-
let result = true;
|
|
1095
|
-
if (commonEntity) {
|
|
1096
|
-
result = dealCompleteTaskParam(commonEntity, false, pageContext, params, operationResult);
|
|
1097
|
-
}
|
|
1098
|
-
if (result === true) {
|
|
1099
|
-
ElMessage({
|
|
1100
|
-
showClose: true,
|
|
1101
|
-
type: "success",
|
|
1102
|
-
message: getI18n().t("superPageRuntimeMessage.successfulCompleteTask")
|
|
1103
|
-
});
|
|
1104
|
-
}
|
|
1105
|
-
resolve(true);
|
|
1106
|
-
}).catch((error) => {
|
|
1107
|
-
reject(error);
|
|
1108
|
-
});
|
|
1109
|
-
});
|
|
1110
|
-
}
|
|
1111
|
-
function assignTask(params) {
|
|
1112
|
-
const pageContext = params.pageContext;
|
|
1113
|
-
const pagCode = pageContext.code;
|
|
1114
|
-
const eventPageInfo = pagCode + "_";
|
|
1115
|
-
window["$eventBus"].$emit(eventPageInfo + "assign-task", params);
|
|
1116
|
-
}
|
|
1117
|
-
function doAssign(params, selectNodeInfo) {
|
|
1118
|
-
if (selectNodeInfo) {
|
|
1119
|
-
const pageContext = params.pageContext;
|
|
1120
|
-
const configureObj = params.configureObj;
|
|
1121
|
-
const system = pageContext.entity.system;
|
|
1122
|
-
const path = getBaseUrl(system) + "/dsc/workflow-commons/assigns";
|
|
1123
|
-
const assigneeId = selectNodeInfo.id ? selectNodeInfo.id : selectNodeInfo.ID ? selectNodeInfo.ID : null;
|
|
1124
|
-
const requestParam = getWorkflowSaveParams(params);
|
|
1125
|
-
requestParam["assigneeId"] = assigneeId;
|
|
1126
|
-
transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulAssign").then(
|
|
1127
|
-
(result) => {
|
|
1128
|
-
doAfterClickEvent(pageContext, configureObj);
|
|
1129
|
-
}
|
|
1130
|
-
);
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
function getTransactTaskParam(params) {
|
|
1134
|
-
const pageContext = params.pageContext;
|
|
1135
|
-
const dataModel = pageContext.entity.data;
|
|
1136
|
-
const pageModel = pageContext.entity.page;
|
|
1137
|
-
const system = pageContext.entity.system;
|
|
1138
|
-
const permissionPrefix = system.code + "." + pageContext.code;
|
|
1139
|
-
const additionalParamMap = pageContext.entity.request;
|
|
1140
|
-
const dataId = dataModel.ID !== void 0 && dataModel.ID !== null ? dataModel.ID : dataModel.id;
|
|
1141
|
-
({
|
|
1142
|
-
beanName: pageContext.beanName,
|
|
1143
|
-
id: dataId,
|
|
1144
|
-
entity: dataModel,
|
|
1145
|
-
pageModel,
|
|
1146
|
-
additionalParamMap,
|
|
1147
|
-
tableName: pageContext.tableName,
|
|
1148
|
-
functionCode: permissionPrefix + ".xxx",
|
|
1149
|
-
isWorkflowEntity: true,
|
|
1150
|
-
tableNames: pageContext.tableNames
|
|
1151
|
-
});
|
|
1152
|
-
({
|
|
1153
|
-
taskId: pageContext.completeTaskParam.taskId,
|
|
1154
|
-
systemCode: system.code
|
|
1155
|
-
});
|
|
1156
|
-
}
|
|
1157
|
-
function addSignerFunc(params) {
|
|
1158
|
-
const pageContext = params.pageContext;
|
|
1159
|
-
const pagCode = pageContext.code;
|
|
1160
|
-
const eventPageInfo = pagCode + "_";
|
|
1161
|
-
window["$eventBus"].$emit(eventPageInfo + "add-signer", params);
|
|
1162
|
-
}
|
|
1163
|
-
function doAddSigner(params, selectNodeInfo) {
|
|
1164
|
-
if (selectNodeInfo) {
|
|
1165
|
-
const pageContext = params.pageContext;
|
|
1166
|
-
const buttonConfigureObj = params.configureObj;
|
|
1167
|
-
const system = pageContext.entity.system;
|
|
1168
|
-
let path = getBaseUrl(system) + "/dsc/workflow-commons/add-signers";
|
|
1169
|
-
path = getRealRestApiPath(path, system);
|
|
1170
|
-
if (!path) {
|
|
1171
|
-
ElMessage({
|
|
1172
|
-
showClose: true,
|
|
1173
|
-
type: "warning",
|
|
1174
|
-
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1175
|
-
});
|
|
1176
|
-
return;
|
|
1177
|
-
}
|
|
1178
|
-
const requestParams = getTransactTaskParam(params);
|
|
1179
|
-
requestParams["completeTaskParam"].transactors = selectNodeInfo.loginNames.join(",").split(",");
|
|
1180
|
-
const request = http.post(path, requestParams);
|
|
1181
|
-
if (request) {
|
|
1182
|
-
request.then((commonEntity) => {
|
|
1183
|
-
ElMessage({
|
|
1184
|
-
showClose: true,
|
|
1185
|
-
type: "success",
|
|
1186
|
-
message: getI18n().t("superPageRuntimeMessage.successfulOperation")
|
|
1187
|
-
});
|
|
1188
|
-
if (commonEntity.entity) {
|
|
1189
|
-
dealAfterOperate(pageContext, buttonConfigureObj, commonEntity, null, false);
|
|
1190
|
-
}
|
|
1191
|
-
doAfterClickEvent(pageContext, buttonConfigureObj);
|
|
1192
|
-
});
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
function createCopyTask(params) {
|
|
1197
|
-
const pageContext = params.pageContext;
|
|
1198
|
-
const pagCode = pageContext.code;
|
|
1199
|
-
const eventPageInfo = pagCode + "_";
|
|
1200
|
-
window["$eventBus"].$emit(eventPageInfo + "copy-task", params);
|
|
1201
|
-
}
|
|
1202
|
-
function doCreateCopyTask(params, selectNodeInfo) {
|
|
1203
|
-
if (selectNodeInfo) {
|
|
1204
|
-
const pageContext = params.pageContext;
|
|
1205
|
-
const buttonConfigureObj = params.configureObj;
|
|
1206
|
-
const system = pageContext.entity.system;
|
|
1207
|
-
let path = getBaseUrl(system) + "/dsc/workflow-commons/add-signers";
|
|
1208
|
-
path = getRealRestApiPath(path, system);
|
|
1209
|
-
if (!path) {
|
|
1210
|
-
ElMessage({
|
|
1211
|
-
showClose: true,
|
|
1212
|
-
type: "warning",
|
|
1213
|
-
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1214
|
-
});
|
|
1215
|
-
return;
|
|
1216
|
-
}
|
|
1217
|
-
const requestParams = getTransactTaskParam(params);
|
|
1218
|
-
requestParams["completeTaskParam"].transactors = selectNodeInfo.userIds.join(",").split(",");
|
|
1219
|
-
const request = http.post(path, requestParams);
|
|
1220
|
-
if (request) {
|
|
1221
|
-
request.then((commonEntity) => {
|
|
1222
|
-
ElMessage({
|
|
1223
|
-
showClose: true,
|
|
1224
|
-
type: "success",
|
|
1225
|
-
message: getI18n().t("superPageRuntimeMessage.successfulOperation")
|
|
1226
|
-
});
|
|
1227
|
-
doAfterClickEvent(pageContext, buttonConfigureObj);
|
|
1228
|
-
});
|
|
1229
|
-
}
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
function transactTask(params, requestParam, path, successMessageTip) {
|
|
1233
|
-
return new Promise((resolve, reject) => {
|
|
1234
|
-
const pageContext = params.pageContext;
|
|
1235
|
-
const system = pageContext.entity.system;
|
|
1236
|
-
path = getRealRestApiPath(path, system);
|
|
1237
|
-
if (!path) {
|
|
1238
|
-
ElMessage({
|
|
1239
|
-
showClose: true,
|
|
1240
|
-
type: "warning",
|
|
1241
|
-
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1242
|
-
});
|
|
1243
|
-
return;
|
|
1244
|
-
}
|
|
1245
|
-
const request = http.post(path, requestParam);
|
|
1246
|
-
if (request) {
|
|
1247
|
-
request.then((commonEntity) => {
|
|
1248
|
-
let result = true;
|
|
1249
|
-
if (commonEntity) {
|
|
1250
|
-
result = dealCompleteTaskParam(commonEntity, false, pageContext, params, null);
|
|
1251
|
-
}
|
|
1252
|
-
if (result === true) {
|
|
1253
|
-
ElMessage({
|
|
1254
|
-
showClose: true,
|
|
1255
|
-
type: "success",
|
|
1256
|
-
message: getI18n().t(successMessageTip)
|
|
1257
|
-
});
|
|
1258
|
-
}
|
|
1259
|
-
resolve(true);
|
|
1260
|
-
}).catch((error) => {
|
|
1261
|
-
reject(error);
|
|
1262
|
-
});
|
|
1263
|
-
}
|
|
1264
|
-
});
|
|
1265
|
-
}
|
|
1266
|
-
function drawTaskFunc(params) {
|
|
1267
|
-
const pageContext = params.pageContext;
|
|
1268
|
-
const system = pageContext.entity.system;
|
|
1269
|
-
const path = getBaseUrl(system) + "/dsc/workflow-commons/draw-tasks";
|
|
1270
|
-
const requestParam = getWorkflowSaveParams(params);
|
|
1271
|
-
return transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulDrawTask");
|
|
1272
|
-
}
|
|
1273
|
-
function abandonReceiveFunc(params) {
|
|
1274
|
-
const pageContext = params.pageContext;
|
|
1275
|
-
const system = pageContext.entity.system;
|
|
1276
|
-
const path = getBaseUrl(system) + "/dsc/workflow-commons/abandon-receives";
|
|
1277
|
-
const requestParam = getWorkflowSaveParams(params);
|
|
1278
|
-
return transactTask(
|
|
1279
|
-
params,
|
|
1280
|
-
requestParam,
|
|
1281
|
-
path,
|
|
1282
|
-
"superPageRuntimeMessage.successfulAbandonReceive"
|
|
1283
|
-
);
|
|
1284
|
-
}
|
|
1285
|
-
function returnToPreviousTaskFunc(params) {
|
|
1286
|
-
const pageContext = params.pageContext;
|
|
1287
|
-
const system = pageContext.entity.system;
|
|
1288
|
-
const path = getBaseUrl(system) + "/dsc/workflow-commons/return-to-previous-tasks";
|
|
1289
|
-
const requestParam = getWorkflowSaveParams(params);
|
|
1290
|
-
return transactTask(
|
|
1291
|
-
params,
|
|
1292
|
-
requestParam,
|
|
1293
|
-
path,
|
|
1294
|
-
"superPageRuntimeMessage.successfulReturnToPreviousTask"
|
|
1295
|
-
);
|
|
1296
|
-
}
|
|
1297
|
-
function endInstanceFunc(params) {
|
|
1298
|
-
const pageContext = params.pageContext;
|
|
1299
|
-
const system = pageContext.entity.system;
|
|
1300
|
-
const path = getBaseUrl(system) + "/dsc/workflow-commons/end-instance";
|
|
1301
|
-
const requestParam = getWorkflowSaveParams(params);
|
|
1302
|
-
return transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulEndInstance");
|
|
1303
|
-
}
|
|
1304
|
-
function returnTaskToFunc(params) {
|
|
1305
|
-
const pageContext = params.pageContext;
|
|
1306
|
-
const pagCode = pageContext.code;
|
|
1307
|
-
const eventPageInfo = pagCode + "_";
|
|
1308
|
-
window["$eventBus"].$emit(eventPageInfo + "choose-return-node", params);
|
|
1309
|
-
}
|
|
1310
|
-
function getTaskInformitions(params) {
|
|
1311
|
-
const pageContext = params.pageContext;
|
|
1312
|
-
const system = pageContext.entity.system;
|
|
1313
|
-
const completeTaskParam = pageContext.completeTaskParam;
|
|
1314
|
-
let path = getBaseUrl(system) + "/dsc/workflow-commons/returnable-task/" + completeTaskParam.taskId;
|
|
1315
|
-
path = getRealRestApiPath(path, system);
|
|
1316
|
-
if (!path) {
|
|
1317
|
-
ElMessage({
|
|
1318
|
-
showClose: true,
|
|
1319
|
-
type: "warning",
|
|
1320
|
-
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1321
|
-
});
|
|
1322
|
-
return;
|
|
1323
|
-
}
|
|
1324
|
-
const permissionPrefix = system.code + "." + pageContext.code;
|
|
1325
|
-
const additionalParamMap = pageContext.entity.request;
|
|
1326
|
-
const requestParams = {
|
|
1327
|
-
beanName: pageContext.beanName,
|
|
1328
|
-
additionalParamMap,
|
|
1329
|
-
tableName: pageContext.tableName,
|
|
1330
|
-
functionCode: permissionPrefix + ".xxx"
|
|
1331
|
-
};
|
|
1332
|
-
return http.post(path, requestParams);
|
|
1333
|
-
}
|
|
1334
|
-
function doReturnTaskTo(params, selectTaskNode) {
|
|
1335
|
-
const pageContext = params.pageContext;
|
|
1336
|
-
const configureObj = params.configureObj;
|
|
1337
|
-
const system = pageContext.entity.system;
|
|
1338
|
-
const path = getBaseUrl(system) + "/dsc/workflow-commons/returnTaskTo";
|
|
1339
|
-
const requestParam = getWorkflowSaveParams(params);
|
|
1340
|
-
if (selectTaskNode.nodeName) {
|
|
1341
|
-
requestParam["returnToNodeName"] = selectTaskNode.nodeName;
|
|
1342
|
-
}
|
|
1343
|
-
if (selectTaskNode.nodeId) {
|
|
1344
|
-
requestParam["returnToNodeId"] = selectTaskNode.nodeId;
|
|
1345
|
-
}
|
|
1346
|
-
transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulReturnTaskTo").then(
|
|
1347
|
-
(result) => {
|
|
1348
|
-
doAfterClickEvent(pageContext, configureObj);
|
|
1349
|
-
}
|
|
1350
|
-
);
|
|
1351
|
-
}
|
|
1352
|
-
function removeSignerfunc(params) {
|
|
1353
|
-
const pageContext = params.pageContext;
|
|
1354
|
-
const pagCode = pageContext.code;
|
|
1355
|
-
const eventPageInfo = pagCode + "_";
|
|
1356
|
-
window["$eventBus"].$emit(eventPageInfo + "remove-signer", params);
|
|
1357
|
-
}
|
|
1358
|
-
function getRemoveSigner(params) {
|
|
1359
|
-
const pageContext = params.pageContext;
|
|
1360
|
-
const system = pageContext.entity.system;
|
|
1361
|
-
let path = getBaseUrl(system) + "/dsc/workflow-commons/get-remove-signers";
|
|
1362
|
-
const requestParam = getWorkflowSaveParams(params);
|
|
1363
|
-
path = getRealRestApiPath(path, system);
|
|
1364
|
-
if (!path) {
|
|
1365
|
-
ElMessage({
|
|
1366
|
-
showClose: true,
|
|
1367
|
-
type: "warning",
|
|
1368
|
-
message: getI18n().t("superPageRuntimeMessage.requestPathEmpty")
|
|
1369
|
-
});
|
|
1370
|
-
return;
|
|
1371
|
-
}
|
|
1372
|
-
return http.post(path, requestParam);
|
|
1373
|
-
}
|
|
1374
|
-
function doRemoveSigners(params, selectRemoveTasks) {
|
|
1375
|
-
if (selectRemoveTasks) {
|
|
1376
|
-
const pageContext = params.pageContext;
|
|
1377
|
-
const configureObj = params.configureObj;
|
|
1378
|
-
const system = pageContext.entity.system;
|
|
1379
|
-
let path = getBaseUrl(system) + "/dsc/workflow-commons/remove-signers";
|
|
1380
|
-
path = getRealRestApiPath(path, system);
|
|
1381
|
-
if (!path) {
|
|
1382
|
-
this.$message({
|
|
1383
|
-
showClose: true,
|
|
1384
|
-
type: "warning",
|
|
1385
|
-
message: this.$t("superPageRuntimeMessage.requestPathEmpty")
|
|
1386
|
-
});
|
|
1387
|
-
return;
|
|
1388
|
-
}
|
|
1389
|
-
const taskIds = selectRemoveTasks.map((task) => task.id ? task.id : task.ID ? task.ID : null);
|
|
1390
|
-
const requestParam = getWorkflowSaveParams(params);
|
|
1391
|
-
requestParam["ids"] = taskIds;
|
|
1392
|
-
const request = http.post(path, requestParam);
|
|
1393
|
-
if (request) {
|
|
1394
|
-
request.then((commonEntity) => {
|
|
1395
|
-
dealAfterOperate(
|
|
1396
|
-
pageContext,
|
|
1397
|
-
configureObj,
|
|
1398
|
-
commonEntity,
|
|
1399
|
-
"superPageRuntimeMessage.successfulOperation",
|
|
1400
|
-
false
|
|
1401
|
-
);
|
|
1402
|
-
doAfterClickEvent(pageContext, configureObj);
|
|
1403
|
-
});
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
}
|
|
1407
|
-
function retrieveTaskFunc(params) {
|
|
1408
|
-
const pageContext = params.pageContext;
|
|
1409
|
-
const system = pageContext.entity.system;
|
|
1410
|
-
const path = getBaseUrl(system) + "/dsc/workflow-commons/retrieves";
|
|
1411
|
-
const requestParam = getWorkflowSaveParams(params);
|
|
1412
|
-
return transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulRetrieve");
|
|
1413
|
-
}
|
|
1414
|
-
function lineEditCreateFunc(params) {
|
|
1415
|
-
const pageContext = params.pageContext;
|
|
1416
|
-
const tableUuid = params["tableUuid"];
|
|
1417
|
-
const gridRef = getComponentRef(pageContext, tableUuid);
|
|
1418
|
-
if (gridRef) {
|
|
1419
|
-
gridRef.createRow(params);
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
function isVisibleWorkflowButton(standardEventName, buttonInfo, completeTaskParam) {
|
|
1423
|
-
let isVisible = false;
|
|
1424
|
-
if (standardEventName && buttonInfo) {
|
|
1425
|
-
if (standardEventName === "workflowSave") {
|
|
1426
|
-
isVisible = isVisibleWorkflowSave(buttonInfo);
|
|
1427
|
-
} else if (standardEventName === "submitProcess") {
|
|
1428
|
-
isVisible = isVisibleSubmitProcess(buttonInfo);
|
|
1429
|
-
} else if (standardEventName === "submitTask") {
|
|
1430
|
-
isVisible = isVisibleSubmitTask(buttonInfo);
|
|
1431
|
-
} else if (standardEventName === "drawTask") {
|
|
1432
|
-
isVisible = isVisibleDrawTask(buttonInfo);
|
|
1433
|
-
} else if (standardEventName === "abandonReceive") {
|
|
1434
|
-
isVisible = isVisibleAbandonReceive(buttonInfo);
|
|
1435
|
-
} else if (standardEventName === "approve" || standardEventName === "refuse") {
|
|
1436
|
-
isVisible = isVisibleApproveOrRefuse(buttonInfo);
|
|
1437
|
-
} else if (standardEventName === "readed") {
|
|
1438
|
-
isVisible = isVisibleReaded(buttonInfo);
|
|
1439
|
-
} else if (standardEventName === "assign") {
|
|
1440
|
-
isVisible = isVisibleAssignTask(buttonInfo);
|
|
1441
|
-
} else if (standardEventName === "copyTask") {
|
|
1442
|
-
isVisible = isVisibleCopyTask(buttonInfo);
|
|
1443
|
-
} else if (standardEventName === "addSigner") {
|
|
1444
|
-
isVisible = isVisibleAddSigner(buttonInfo);
|
|
1445
|
-
} else if (standardEventName === "removeSigner") {
|
|
1446
|
-
isVisible = isVisibleRemoveSigner(buttonInfo);
|
|
1447
|
-
} else if (standardEventName === "retrieveTask") {
|
|
1448
|
-
isVisible = isVisibleRetrieveTask(buttonInfo);
|
|
1449
|
-
} else if (standardEventName === "agreement" || standardEventName === "oppose") {
|
|
1450
|
-
isVisible = isVisibleAgreementOrOppose(buttonInfo);
|
|
1451
|
-
} else if (standardEventName === "kiken") {
|
|
1452
|
-
isVisible = isVisibleKiken(buttonInfo);
|
|
1453
|
-
} else if (isShowOtherWorkflowBtn(buttonInfo, completeTaskParam)) {
|
|
1454
|
-
if (standardEventName === "returnToPreviousTask") {
|
|
1455
|
-
isVisible = isVisibleReturnToPreviousTask(buttonInfo);
|
|
1456
|
-
} else {
|
|
1457
|
-
isVisible = true;
|
|
1458
|
-
}
|
|
1459
|
-
}
|
|
1460
|
-
}
|
|
1461
|
-
return isVisible;
|
|
1462
|
-
}
|
|
1463
|
-
function isVisibleWorkflowSave(buttonInfo) {
|
|
1464
|
-
if (typeof buttonInfo["processState"] === "undefined" || buttonInfo["processState"] === null || buttonInfo["processState"] === "UNSUBMIT" && buttonInfo["active"] === "WAIT_TRANSACT") {
|
|
1465
|
-
if (typeof buttonInfo["processState"] === "undefined" || buttonInfo["showButtonSave"] === true) {
|
|
1466
|
-
return true;
|
|
1467
|
-
}
|
|
1468
|
-
}
|
|
1469
|
-
if (buttonInfo["processState"] && buttonInfo["processState"] === "SUBMIT") {
|
|
1470
|
-
if (buttonInfo["processingMode"] !== "TYPE_READ" && buttonInfo["showButtonSave"] && (buttonInfo["active"] === "WAIT_TRANSACT" || buttonInfo["active"] === "WAIT_DESIGNATE_TRANSACTOR" || buttonInfo["active"] === "WAIT_CHOICE_TACHE" || buttonInfo["active"] === "DRAW_WAIT")) {
|
|
1471
|
-
return true;
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
return false;
|
|
1475
|
-
}
|
|
1476
|
-
function isVisibleSubmitProcess(buttonInfo) {
|
|
1477
|
-
if (typeof buttonInfo["processState"] === "undefined" || buttonInfo["processState"] === null || buttonInfo["processState"] === "UNSUBMIT" && buttonInfo["active"] === "WAIT_TRANSACT") {
|
|
1478
|
-
if (typeof buttonInfo["processState"] === "undefined" || buttonInfo["showButtonSave"] === true) {
|
|
1479
|
-
return true;
|
|
1480
|
-
}
|
|
1481
|
-
}
|
|
1482
|
-
return false;
|
|
1483
|
-
}
|
|
1484
|
-
function isVisibleSubmitTask(buttonInfo) {
|
|
1485
|
-
if (buttonInfo["processState"] && buttonInfo["processState"] === "SUBMIT") {
|
|
1486
|
-
if (buttonInfo["active"] === "WAIT_TRANSACT" && buttonInfo["processingMode"] === "EDIT") {
|
|
1487
|
-
return true;
|
|
1488
|
-
}
|
|
1489
|
-
}
|
|
1490
|
-
return false;
|
|
1491
|
-
}
|
|
1492
|
-
function isVisibleDrawTask(buttonInfo) {
|
|
1493
|
-
if (buttonInfo["processState"] && buttonInfo["processState"] === "SUBMIT") {
|
|
1494
|
-
if (buttonInfo["active"] && (buttonInfo["active"] === "DRAW_WAIT" || buttonInfo["active"] === "DEPT_DRAW_WAIT") && buttonInfo["showButtonDraw"]) {
|
|
1495
|
-
return true;
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
return false;
|
|
1499
|
-
}
|
|
1500
|
-
function isVisibleAbandonReceive(buttonInfo) {
|
|
1501
|
-
if (buttonInfo["processState"] && buttonInfo["processState"] === "SUBMIT") {
|
|
1502
|
-
if ((buttonInfo["drawTask"] && buttonInfo["active"] === "WAIT_TRANSACT" || buttonInfo["canAbandonDeptTask"] && buttonInfo["active"] === "WAIT_TRANSACT") && buttonInfo["showButtonAbandon"]) {
|
|
1503
|
-
return true;
|
|
1504
|
-
}
|
|
1505
|
-
}
|
|
1506
|
-
return false;
|
|
1507
|
-
}
|
|
1508
|
-
function isVisibleApproveOrRefuse(buttonInfo) {
|
|
1509
|
-
if (buttonInfo["processState"] && buttonInfo["processState"] === "SUBMIT") {
|
|
1510
|
-
if (buttonInfo["active"] === "WAIT_TRANSACT" && (buttonInfo["processingMode"] === "APPROVE" || buttonInfo["processingMode"] === "COUNTERSIGN")) {
|
|
1511
|
-
return true;
|
|
1512
|
-
}
|
|
1513
|
-
}
|
|
1514
|
-
return false;
|
|
1515
|
-
}
|
|
1516
|
-
function isVisibleAddSigner(buttonInfo) {
|
|
1517
|
-
if (buttonInfo["processState"] && buttonInfo["processState"] === "SUBMIT") {
|
|
1518
|
-
if (buttonInfo["active"] === "WAIT_TRANSACT" && (buttonInfo["processingMode"] === "APPROVE" || buttonInfo["processingMode"] === "COUNTERSIGN") && buttonInfo["processingMode"] === "COUNTERSIGN" && buttonInfo["showButtonAddCounter"]) {
|
|
1519
|
-
return true;
|
|
1520
|
-
}
|
|
1521
|
-
}
|
|
1522
|
-
return false;
|
|
1523
|
-
}
|
|
1524
|
-
function isVisibleRemoveSigner(buttonInfo) {
|
|
1525
|
-
if (buttonInfo["processState"] && buttonInfo["processState"] === "SUBMIT") {
|
|
1526
|
-
if (buttonInfo["active"] === "WAIT_TRANSACT" && (buttonInfo["processingMode"] === "APPROVE" || buttonInfo["processingMode"] === "COUNTERSIGN") && buttonInfo["processingMode"] === "COUNTERSIGN" && buttonInfo["showButtonDelCounter"]) {
|
|
1527
|
-
return true;
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
return false;
|
|
1531
|
-
}
|
|
1532
|
-
function isVisibleAgreementOrOppose(buttonInfo) {
|
|
1533
|
-
if (buttonInfo["processState"] && buttonInfo["processState"] === "SUBMIT") {
|
|
1534
|
-
if (buttonInfo["active"] === "WAIT_TRANSACT" && buttonInfo["processingMode"] === "VOTE") {
|
|
1535
|
-
return true;
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
return false;
|
|
1539
|
-
}
|
|
1540
|
-
function isVisibleKiken(buttonInfo) {
|
|
1541
|
-
if (buttonInfo["processState"] && buttonInfo["processState"] === "SUBMIT") {
|
|
1542
|
-
if (buttonInfo["active"] === "WAIT_TRANSACT" && buttonInfo["processingMode"] === "VOTE" && buttonInfo["showButtonKiken"]) {
|
|
1543
|
-
return true;
|
|
1544
|
-
}
|
|
1545
|
-
}
|
|
1546
|
-
return false;
|
|
1547
|
-
}
|
|
1548
|
-
function isVisibleCopyTask(buttonInfo) {
|
|
1549
|
-
if (buttonInfo["processState"] && buttonInfo["processState"] === "SUBMIT") {
|
|
1550
|
-
if (buttonInfo["active"] === "WAIT_TRANSACT" && buttonInfo["processingMode"] !== "TYPE_READ" && buttonInfo["showButtonCopy"]) {
|
|
1551
|
-
return true;
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1554
|
-
return false;
|
|
1555
|
-
}
|
|
1556
|
-
function isVisibleAssignTask(buttonInfo) {
|
|
1557
|
-
if (buttonInfo["processState"] && buttonInfo["processState"] === "SUBMIT") {
|
|
1558
|
-
if (buttonInfo["processingMode"] !== "TYPE_READ" && (buttonInfo["active"] === "WAIT_TRANSACT" || buttonInfo["active"] === "DRAW_WAIT")) {
|
|
1559
|
-
return true;
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
return false;
|
|
1563
|
-
}
|
|
1564
|
-
function isVisibleRetrieveTask(buttonInfo) {
|
|
1565
|
-
if (buttonInfo["processState"] && buttonInfo["processState"] === "SUBMIT") {
|
|
1566
|
-
if (showRetrieve(buttonInfo)) {
|
|
1567
|
-
return true;
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
return false;
|
|
1571
|
-
}
|
|
1572
|
-
function showRetrieve(buttonInfo) {
|
|
1573
|
-
if (buttonInfo["active"] !== "COMPLETED") {
|
|
1574
|
-
return false;
|
|
1575
|
-
}
|
|
1576
|
-
if (buttonInfo["processingMode"] === "TYPE_READ") {
|
|
1577
|
-
return false;
|
|
1578
|
-
}
|
|
1579
|
-
if (!buttonInfo["showButtonGetBack"]) {
|
|
1580
|
-
return false;
|
|
1581
|
-
}
|
|
1582
|
-
return true;
|
|
1583
|
-
}
|
|
1584
|
-
function isVisibleReaded(buttonInfo) {
|
|
1585
|
-
if (buttonInfo["active"] === "WAIT_TRANSACT" && buttonInfo["processingMode"] === "TYPE_READ") {
|
|
1586
|
-
return true;
|
|
1587
|
-
}
|
|
1588
|
-
return false;
|
|
1589
|
-
}
|
|
1590
|
-
function isVisibleReturnToPreviousTask(buttonInfo) {
|
|
1591
|
-
if (buttonInfo["rebuttable"]) {
|
|
1592
|
-
return true;
|
|
1593
|
-
}
|
|
1594
|
-
return false;
|
|
1595
|
-
}
|
|
1596
|
-
function isShowOtherWorkflowBtn(buttonInfo, completeTaskParam) {
|
|
1597
|
-
return buttonInfo["processState"] && buttonInfo["processState"] === "SUBMIT" && buttonInfo["processingMode"] !== "TYPE_READ" && !isTaskComplete(completeTaskParam);
|
|
1598
|
-
}
|
|
1599
|
-
function isTaskComplete(completeTaskParam) {
|
|
1600
|
-
const taskParam = completeTaskParam;
|
|
1601
|
-
let taskComplete = true;
|
|
1602
|
-
if (taskParam) {
|
|
1603
|
-
taskComplete = taskParam.taskComplete;
|
|
1604
|
-
}
|
|
1605
|
-
return taskComplete;
|
|
1606
|
-
}
|
|
1607
|
-
export {
|
|
1608
|
-
dealAfterOperate,
|
|
1609
|
-
dealCompleteTaskParam,
|
|
1610
|
-
doAddSigner,
|
|
1611
|
-
doAssign,
|
|
1612
|
-
doCreateCopyTask,
|
|
1613
|
-
doImportFinally,
|
|
1614
|
-
doRemoveSigners,
|
|
1615
|
-
doReturnTaskTo,
|
|
1616
|
-
exportFormReport,
|
|
1617
|
-
getRemoveSigner,
|
|
1618
|
-
getSaveFormRequest,
|
|
1619
|
-
getTaskInformitions,
|
|
1620
|
-
isVisibleWorkflowButton,
|
|
1621
|
-
judgeDataNumber,
|
|
1622
|
-
standardEvents
|
|
1623
|
-
};
|