super-page-runtime 1.0.15 → 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/App.vue +9 -0
- package/components/index.ts +17 -0
- package/components/runtime/index.ts +2 -0
- package/components/runtime/utils/assemblys-config.js +294 -0
- package/components/runtime/views/assemblys/button/button/button-runtime.vue +49 -0
- 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/common/common-attr-assistant.vue +32 -0
- package/components/runtime/views/assemblys/chart/common/common-attr-base.vue +60 -0
- package/components/runtime/views/assemblys/chart/common/common-attr-drill.vue +39 -0
- package/components/runtime/views/assemblys/chart/common/common-attr-groupby.vue +104 -0
- package/components/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +145 -0
- package/components/runtime/views/assemblys/chart/common/common-attr-sortby.vue +119 -0
- package/components/runtime/views/assemblys/chart/common/common-style-custom.vue +28 -0
- package/components/runtime/views/assemblys/chart/common/common-style-datazoom.vue +45 -0
- package/components/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +78 -0
- package/components/runtime/views/assemblys/chart/common/common-style-font-title.vue +56 -0
- package/components/runtime/views/assemblys/chart/common/common-style-grid.vue +70 -0
- package/components/runtime/views/assemblys/chart/common/common-style-legend.vue +70 -0
- package/components/runtime/views/assemblys/chart/common/common-style-tooltip.vue +140 -0
- package/components/runtime/views/assemblys/chart/common/common-style-xaxis.vue +58 -0
- package/components/runtime/views/assemblys/chart/common/common-style-yaxis.vue +125 -0
- package/components/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +67 -0
- package/components/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +57 -0
- package/components/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +23 -0
- package/components/runtime/views/assemblys/chart/common-series/common-style-label.vue +209 -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/common-attr-cursor.vue +23 -0
- package/components/runtime/views/assemblys/common/common-attr-size.vue +54 -0
- package/components/runtime/views/assemblys/common/common-select-table.vue +287 -0
- package/components/runtime/views/assemblys/common/common-style-background.vue +46 -0
- package/components/runtime/views/assemblys/common/common-style-border.vue +37 -0
- package/components/runtime/views/assemblys/common/common-style-custom.vue +35 -0
- package/components/runtime/views/assemblys/common/common-style-font-head.vue +53 -0
- package/components/runtime/views/assemblys/common/common-style-font.vue +53 -0
- package/components/runtime/views/assemblys/common/common-style-margin.vue +34 -0
- package/components/runtime/views/assemblys/common/common-style-padding.vue +34 -0
- package/components/runtime/views/assemblys/common/common-style-position.vue +39 -0
- package/components/runtime/views/assemblys/common/common-style-shadow.vue +37 -0
- package/components/runtime/views/assemblys/common/export-form-report-dialog.vue +108 -0
- package/components/runtime/views/assemblys/common/remove-signer-dialog.vue +99 -0
- package/components/runtime/views/assemblys/common/task-informition-dialog.vue +69 -0
- package/components/runtime/views/assemblys/common-attr-events.vue +46 -0
- package/components/runtime/views/assemblys/container/card/card-runtime.vue +59 -0
- package/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue +59 -0
- 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/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue +54 -0
- 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-event.vue +14 -0
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +25 -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/components/runtime/views/assemblys/data/component/attr-header.vue +69 -0
- package/components/runtime/views/assemblys/data/component/attr-style.vue +64 -0
- package/components/runtime/views/assemblys/data/component/column-config.vue +171 -0
- package/components/runtime/views/assemblys/data/component/combinedHeader.vue +96 -0
- package/components/runtime/views/assemblys/data/component/composite-header.vue +257 -0
- package/components/runtime/views/assemblys/data/component/configuration-value.vue +206 -0
- package/components/runtime/views/assemblys/data/component/data-origin-tree.vue +117 -0
- package/components/runtime/views/assemblys/data/component/data-origin.vue +260 -0
- package/components/runtime/views/assemblys/data/component/formatting.vue +200 -0
- package/components/runtime/views/assemblys/data/component/in-parameter.vue +56 -0
- package/components/runtime/views/assemblys/data/component/querySetting.vue +52 -0
- package/components/runtime/views/assemblys/data/component/return-set-table.vue +91 -0
- package/components/runtime/views/assemblys/data/component/row-backgroud-color.vue +58 -0
- package/components/runtime/views/assemblys/data/component/select-data-table.vue +86 -0
- package/components/runtime/views/assemblys/data/table/main-table-runtime.vue +858 -0
- package/components/runtime/views/assemblys/data/table/sub-table-runtime.vue +625 -0
- package/components/runtime/views/assemblys/data/table/table-runtime.vue +93 -0
- package/components/runtime/views/assemblys/data/tree/tree-attr-base.vue +137 -0
- package/components/runtime/views/assemblys/data/tree/tree-attr-event.vue +14 -0
- package/components/runtime/views/assemblys/data/tree/tree-attr-style.vue +55 -0
- 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/components/runtime/views/assemblys/error-attr.vue +15 -0
- package/components/runtime/views/assemblys/error-render.vue +17 -0
- package/components/runtime/views/assemblys/form/cascader/cascader-design.vue +288 -0
- package/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +198 -0
- package/components/runtime/views/assemblys/form/colors/colors-design.vue +16 -0
- package/components/runtime/views/assemblys/form/common/analytic-rule.vue +148 -0
- package/components/runtime/views/assemblys/form/common/attr-event.vue +82 -0
- package/components/runtime/views/assemblys/form/common/attr-header.vue +54 -0
- package/components/runtime/views/assemblys/form/common/attr-style.vue +44 -0
- package/components/runtime/views/assemblys/form/common/bar-code-rule.vue +104 -0
- package/components/runtime/views/assemblys/form/common/condition.vue +147 -0
- package/components/runtime/views/assemblys/form/common/data-origin.vue +81 -0
- package/components/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +64 -0
- package/components/runtime/views/assemblys/form/common/dataorigin-input-table.vue +106 -0
- package/components/runtime/views/assemblys/form/common/default-value-setting.vue +362 -0
- package/components/runtime/views/assemblys/form/common/dimension-input.vue +68 -0
- package/components/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +115 -0
- package/components/runtime/views/assemblys/form/common/formatting-label.vue +81 -0
- package/components/runtime/views/assemblys/form/common/grid-num-select.vue +43 -0
- package/components/runtime/views/assemblys/form/common/icon-set-dialog.vue +144 -0
- package/components/runtime/views/assemblys/form/common/linkage.vue +21 -0
- package/components/runtime/views/assemblys/form/common/overall-height.vue +20 -0
- package/components/runtime/views/assemblys/form/common/overall-width.vue +48 -0
- package/components/runtime/views/assemblys/form/common/pre-suffix.vue +33 -0
- package/components/runtime/views/assemblys/form/common/rich-text.vue +100 -0
- package/components/runtime/views/assemblys/form/common/row-ul-li.vue +55 -0
- package/components/runtime/views/assemblys/form/common/setoption-table.vue +86 -0
- package/components/runtime/views/assemblys/form/common/size-input.vue +65 -0
- package/components/runtime/views/assemblys/form/common/suffixmodule.vue +82 -0
- package/components/runtime/views/assemblys/form/common/title.vue +20 -0
- package/components/runtime/views/assemblys/form/common/uploading.vue +34 -0
- package/components/runtime/views/assemblys/form/common/verification.vue +79 -0
- package/components/runtime/views/assemblys/form/common/voluntarily.vue +27 -0
- package/components/runtime/views/assemblys/form/custom/custom-attr-base.vue +81 -0
- package/components/runtime/views/assemblys/form/custom/custom-attr-event.vue +14 -0
- package/components/runtime/views/assemblys/form/custom/custom-attr-style.vue +14 -0
- 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/components/runtime/views/assemblys/form/datetime/datetime-design.vue +19 -0
- package/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +60 -0
- package/components/runtime/views/assemblys/form/divider/divider-runtime.vue +44 -0
- package/components/runtime/views/assemblys/form/file-picture/picture-design.vue +80 -0
- package/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +79 -0
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +142 -0
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +14 -0
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +14 -0
- 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-base.vue +75 -0
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +13 -0
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +14 -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-base.vue +68 -0
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +14 -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/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +142 -0
- 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/components/runtime/views/assemblys/form/radio/radio-runtime.vue +203 -0
- package/components/runtime/views/assemblys/form/rate/rate-design.vue +16 -0
- package/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +169 -0
- package/components/runtime/views/assemblys/form/select/select-runtime.vue +247 -0
- package/components/runtime/views/assemblys/form/slider/slider-design.vue +16 -0
- 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/components/runtime/views/assemblys/form/text/text-design.vue +19 -0
- package/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue +63 -0
- package/components/runtime/views/assemblys/form/transfer/transfer-design.vue +32 -0
- package/components/runtime/views/assemblys/object-render.vue +176 -0
- package/components/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +179 -0
- package/components/runtime/views/assemblys/page/page-attr-base.vue +259 -0
- package/components/runtime/views/assemblys/page/page-attr-events.vue +50 -0
- package/components/runtime/views/assemblys/page/page-attr-style.vue +25 -0
- package/components/runtime/views/assemblys/page/page-attr.vue +84 -0
- package/components/runtime/views/assemblys/page/variable-dialog.vue +242 -0
- package/components/runtime/views/assemblys/workflow/component/combination.vue +206 -0
- package/components/runtime/views/assemblys/workflow/component/condition-dialog.vue +99 -0
- package/components/runtime/views/assemblys/workflow/component/event-dialog.vue +278 -0
- package/components/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +174 -0
- package/components/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +155 -0
- package/components/runtime/views/assemblys/workflow/component/rule-dialog.vue +47 -0
- package/components/runtime/views/assemblys/workflow/component/set-dialog.vue +130 -0
- package/components/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +96 -0
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +43 -0
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +14 -0
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +27 -0
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +28 -0
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +17 -0
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +60 -0
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +14 -0
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +27 -0
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +28 -0
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +17 -0
- package/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +64 -0
- package/components/runtime/views/render/page-view.vue +80 -0
- package/components/runtime/views/super-page copy.vue +61 -0
- package/components/runtime/views/super-page.vue +667 -0
- package/components/super-page-dialog/index.ts +2 -0
- package/components/super-page-dialog/super-page-dialog.vue +267 -0
- package/components/wf-editor/index.ts +2 -0
- package/components/wf-editor/wf-editor.vue +15 -0
- 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/{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 +1 -1
- 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 +1 -1
- package/{dist/lib/components → lib}/runtime/views/assemblys/data/table/main-table-runtime.vue.js +4 -4
- 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/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 -1
- 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 +2 -2
- 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 +2 -2
- 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 +4 -4
- 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 -7
- package/{dist/lib/components → lib}/wf-editor/wf-editor.vue.js +1 -1
- package/main.ts +11 -0
- package/package-ws.json +70 -0
- package/package.json +3 -7
- 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/components/index.js +0 -8
- package/dist/es/components/runtime/index.js +0 -4
- package/dist/es/components/runtime/utils/assemblys-config.js +0 -257
- 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 -43
- 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 -142
- 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 -74
- 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 -79
- 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 -43
- 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 -44
- 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 -30
- 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 -69
- 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 -75
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -641
- 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 -83
- 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 -60
- 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 -134
- 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 -175
- 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.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.js +0 -480
- 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 -74
- 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.vue.js +0 -16
- package/dist/es/src/assets/chart-themes/theme1.js +0 -8
- package/dist/es/src/assets/chart-themes/theme2.js +0 -8
- package/dist/es/src/assets/chart-themes/theme3.js +0 -8
- package/dist/es/src/utils/api/api-util.js +0 -128
- package/dist/es/src/utils/charts/chart-util.js +0 -15
- package/dist/es/src/utils/common-util.js +0 -81
- package/dist/es/src/utils/events/event-util.js +0 -525
- package/dist/es/src/utils/events/standard-event.js +0 -1623
- package/dist/es/src/utils/events/validator-util.js +0 -389
- package/dist/es/src/utils/global-refs.js +0 -65
- package/dist/es/src/utils/interfaces/page-design-types.js +0 -9
- package/dist/es/src/utils/page-helper-util.js +0 -503
- package/dist/es/src/utils/page-init-util.js +0 -200
- package/dist/es/src/utils/store-util.js +0 -17
- package/dist/es/src/utils/store.js +0 -4
- package/dist/es/src/utils/table-utils.js +0 -23
- package/dist/lib/components/index.d.ts +0 -5
- package/dist/lib/components/runtime/index.d.ts +0 -3
- 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/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
- 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/src/utils/api/api-util.d.ts +0 -11
- package/dist/lib/src/utils/common-util.d.ts +0 -11
- package/dist/lib/src/utils/events/event-util.d.ts +0 -48
- package/dist/lib/src/utils/events/standard-event.d.ts +0 -61
- package/dist/lib/src/utils/events/validator-util.d.ts +0 -4
- package/dist/lib/src/utils/global-refs.d.ts +0 -59
- package/dist/lib/src/utils/interfaces/page-design-types.d.ts +0 -221
- package/dist/lib/src/utils/page-helper-util.d.ts +0 -87
- package/dist/lib/src/utils/page-init-util.d.ts +0 -38
- package/dist/lib/src/utils/store-util.d.ts +0 -15
- package/dist/lib/src/utils/store.d.ts +0 -2
- package/lib/components/index.js +0 -8
- /package/{dist/lib → lib}/_virtual/_plugin-vue_export-helper.js +0 -0
- /package/{dist/es → lib}/components/index.d.ts +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/runtime/views/assemblys/object-render.vue.d.ts +0 -0
- /package/{dist/es → lib}/components/runtime/views/super-page.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}/index.js +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/collapse/collapse-runtime.vue2.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/container/container-runtime.vue2.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/flex/flex-runtime.vue2.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/form/form-runtime.vue2.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/iframe/iframe-runtime.vue2.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/tabs/tabs-runtime.vue2.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/container/tools/tools-runtime.vue2.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/data/table/table-runtime.vue2.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 → lib}/src/utils/api/api-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/api/api-util.js +0 -0
- /package/{dist/lib → lib}/src/utils/charts/chart-util.js +0 -0
- /package/{dist/es → lib}/src/utils/common-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/common-util.js +0 -0
- /package/{dist/es → lib}/src/utils/events/event-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/events/event-util.js +0 -0
- /package/{dist/es → lib}/src/utils/events/standard-event.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/events/standard-event.js +0 -0
- /package/{dist/es → lib}/src/utils/events/validator-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/events/validator-util.js +0 -0
- /package/{dist/es → lib}/src/utils/global-refs.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/global-refs.js +0 -0
- /package/{dist/es → lib}/src/utils/interfaces/page-design-types.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/interfaces/page-design-types.js +0 -0
- /package/{dist/es → lib}/src/utils/page-helper-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/page-helper-util.js +0 -0
- /package/{dist/es → lib}/src/utils/page-init-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/page-init-util.js +0 -0
- /package/{dist/es → lib}/src/utils/store-util.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/store-util.js +0 -0
- /package/{dist/es → lib}/src/utils/store.d.ts +0 -0
- /package/{dist/lib → lib}/src/utils/store.js +0 -0
- /package/{dist/lib → 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.vue.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/{dist/es/components → lib}/wf-editor/wf-editor.css +0 -0
- /package/{dist → public}/favicon.ico +0 -0
|
@@ -1,525 +0,0 @@
|
|
|
1
|
-
import { isPromise } from "agilebuilder-ui/src/utils/common-util";
|
|
2
|
-
import { judgeDataNumber, standardEvents, dealAfterOperate } from "./standard-event.js";
|
|
3
|
-
import { validateDataModelFunc } from "./validator-util.js";
|
|
4
|
-
import { getComponentRef } from "../global-refs.js";
|
|
5
|
-
import { ElMessage } from "element-plus";
|
|
6
|
-
import { analysisCondition } from "agilebuilder-ui/src/utils/util";
|
|
7
|
-
import { getListCode } from "../common-util.js";
|
|
8
|
-
function initPageEvents(pageDesign, pageContext) {
|
|
9
|
-
if (pageDesign && pageDesign.customEvents) {
|
|
10
|
-
pageContext.customEvents = transferToFunction(pageDesign.customEvents);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
function removeCustomFuncFromWindow(pageDesign) {
|
|
14
|
-
if (pageDesign && pageDesign.customEvents) {
|
|
15
|
-
const customEvents = pageDesign.customEvents;
|
|
16
|
-
const customFuncs = customEvents.filter((item) => item.name === "customFunc" && item.jsContent);
|
|
17
|
-
if (customFuncs && customFuncs.length > 0) {
|
|
18
|
-
customFuncs.forEach((event) => {
|
|
19
|
-
delete window["$page_" + event.eventName];
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function handleEvent($event, pageContext, configure, eventType, otherParams) {
|
|
25
|
-
return handleEventUtil($event, pageContext, configure, eventType, true, otherParams);
|
|
26
|
-
}
|
|
27
|
-
function getHandleEvent($event, pageContext, configure, eventType, otherParams) {
|
|
28
|
-
return handleEventUtil($event, pageContext, configure, eventType, false, otherParams);
|
|
29
|
-
}
|
|
30
|
-
function handleEventUtil($event, pageContext, configure, eventType, isExecute, otherParams) {
|
|
31
|
-
const pageCode = pageContext.code;
|
|
32
|
-
const pageVersion = pageContext.version;
|
|
33
|
-
const events = configure.events;
|
|
34
|
-
const componentType = configure.name;
|
|
35
|
-
let eventFun;
|
|
36
|
-
if (eventType && eventType === "click" && componentType === "button-detail") {
|
|
37
|
-
const tableUuid = configure.props.base.tableUuid ? configure.props.base.tableUuid : pageContext.tableUuids && pageContext.tableUuids.length > 0 ? pageContext.tableUuids[0] : null;
|
|
38
|
-
if (tableUuid) {
|
|
39
|
-
const gridRef = getComponentRef(pageContext, tableUuid);
|
|
40
|
-
const selections = gridRef.getSelections();
|
|
41
|
-
const selectionIds = gridRef.getSelectionIds();
|
|
42
|
-
if (!otherParams) {
|
|
43
|
-
otherParams = {};
|
|
44
|
-
}
|
|
45
|
-
otherParams["tableUuid"] = tableUuid;
|
|
46
|
-
otherParams["listCode"] = getListCode(pageCode, pageVersion, tableUuid);
|
|
47
|
-
const isListButton = isListPage(pageContext);
|
|
48
|
-
if (isListButton) {
|
|
49
|
-
otherParams["selections"] = selections;
|
|
50
|
-
otherParams["ids"] = selectionIds;
|
|
51
|
-
}
|
|
52
|
-
const tableConfigure = gridRef.getTableConfigure();
|
|
53
|
-
otherParams["tableConfigure"] = tableConfigure;
|
|
54
|
-
}
|
|
55
|
-
const eventParams = packageEventParams(pageContext, configure, $event, otherParams);
|
|
56
|
-
buttonClickEvent(pageContext, configure, eventParams);
|
|
57
|
-
} else {
|
|
58
|
-
eventFun = getEventFuncByType(pageContext, events, eventType);
|
|
59
|
-
if (isExecute) {
|
|
60
|
-
const eventParams = packageEventParams(pageContext, configure, $event, otherParams);
|
|
61
|
-
return callItemEvent(pageContext, configure, eventFun, eventParams);
|
|
62
|
-
} else {
|
|
63
|
-
return eventFun;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
function packageEventParams(pageContext, configureObj, $event, otherParams) {
|
|
68
|
-
const params = {};
|
|
69
|
-
if (otherParams) {
|
|
70
|
-
for (const key in otherParams) {
|
|
71
|
-
params[key] = otherParams[key];
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
if ($event !== void 0 && $event !== null) {
|
|
75
|
-
params["_value"] = $event;
|
|
76
|
-
}
|
|
77
|
-
params["pageContext"] = pageContext;
|
|
78
|
-
params["configureObj"] = configureObj;
|
|
79
|
-
return params;
|
|
80
|
-
}
|
|
81
|
-
function buttonClickEvent(pageContext, configure, eventParams) {
|
|
82
|
-
const judgeFlag = judgeDataNumber(configure, eventParams["ids"]);
|
|
83
|
-
if (!judgeFlag) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
canExecuteButton(eventParams).then((result) => {
|
|
87
|
-
if (result["canExecute"] === true) {
|
|
88
|
-
const events = configure.events;
|
|
89
|
-
const beforeValidateFormFunc = getEventFuncByType(pageContext, events, "beforeValidateForm");
|
|
90
|
-
let beforeValidateFormResult;
|
|
91
|
-
if (beforeValidateFormFunc) {
|
|
92
|
-
beforeValidateFormResult = callItemEvent(
|
|
93
|
-
pageContext,
|
|
94
|
-
configure,
|
|
95
|
-
beforeValidateFormFunc,
|
|
96
|
-
eventParams
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
if (beforeValidateFormResult === void 0) {
|
|
100
|
-
beforeValidateFormResult = true;
|
|
101
|
-
}
|
|
102
|
-
if (!beforeValidateFormResult) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
if (isPromise(beforeValidateFormResult)) {
|
|
106
|
-
beforeValidateFormResult.then((result2) => {
|
|
107
|
-
if (result2 && result2 === true) {
|
|
108
|
-
doValidateForm(pageContext, configure, eventParams);
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
} else {
|
|
112
|
-
doValidateForm(pageContext, configure, eventParams);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
function doValidateForm(pageContext, configure, eventParams) {
|
|
118
|
-
const events = configure.events;
|
|
119
|
-
let isEnableRequired;
|
|
120
|
-
const clickEventFunObj = getClickEventFuncByType(pageContext, events, "click");
|
|
121
|
-
if (clickEventFunObj) {
|
|
122
|
-
const isStandardEvent = clickEventFunObj.isStandard;
|
|
123
|
-
const event = clickEventFunObj.event;
|
|
124
|
-
const isNotNeedValidate = isNotNeedValidateRequired(isStandardEvent, event);
|
|
125
|
-
if (isNotNeedValidate) {
|
|
126
|
-
isEnableRequired = false;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
validateDataModelFunc(pageContext, configure, isEnableRequired).then(() => {
|
|
130
|
-
const beforeClickResult = doBeforeClickEvent(pageContext, configure, eventParams);
|
|
131
|
-
if (!beforeClickResult) {
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
if (isPromise(beforeClickResult)) {
|
|
135
|
-
beforeClickResult.then((result) => {
|
|
136
|
-
if (result) {
|
|
137
|
-
doClickEvent(pageContext, configure, clickEventFunObj, eventParams);
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
} else {
|
|
141
|
-
doClickEvent(pageContext, configure, clickEventFunObj, eventParams);
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
function doBeforeClickEvent(pageContext, configure, otherParams) {
|
|
146
|
-
let result = true;
|
|
147
|
-
const events = configure.events;
|
|
148
|
-
const beforeClickFunc = getEventFuncByType(pageContext, events, "beforeClick");
|
|
149
|
-
let beforeClickResult;
|
|
150
|
-
if (beforeClickFunc) {
|
|
151
|
-
beforeClickResult = callItemEvent(pageContext, configure, beforeClickFunc, null, otherParams);
|
|
152
|
-
}
|
|
153
|
-
if (beforeClickResult === void 0) {
|
|
154
|
-
result = true;
|
|
155
|
-
}
|
|
156
|
-
return result;
|
|
157
|
-
}
|
|
158
|
-
function doClickJumpPageEvent(pageContext, configure, eventParams) {
|
|
159
|
-
const myPageCode = pageContext.code;
|
|
160
|
-
const eventPageInfo = myPageCode + "_";
|
|
161
|
-
window["$eventBus"].$emit(eventPageInfo + "open-dialog", {
|
|
162
|
-
pageContext,
|
|
163
|
-
configureObj: configure,
|
|
164
|
-
eventParams
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
function isListPage(pageContext, configure) {
|
|
168
|
-
return pageContext.pageType && pageContext.pageType === "list" ? true : false;
|
|
169
|
-
}
|
|
170
|
-
function doClickCustomEvent(pageContext, configure, clickEventFuncObj, eventParams) {
|
|
171
|
-
const eventFunObj = clickEventFuncObj;
|
|
172
|
-
if (eventFunObj) {
|
|
173
|
-
const eventFun = eventFunObj["func"];
|
|
174
|
-
const isStandardEvent = eventFunObj["isStandard"];
|
|
175
|
-
const event = eventFunObj["event"];
|
|
176
|
-
const clickResult = callItemEvent(pageContext, configure, eventFun, eventParams);
|
|
177
|
-
const isListButton = isListPage(pageContext);
|
|
178
|
-
if (isNotDoAfterClick(isStandardEvent, event)) {
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
if (isPromise(clickResult)) {
|
|
182
|
-
clickResult.then((result) => {
|
|
183
|
-
if (result) {
|
|
184
|
-
doAfterClickFunc(
|
|
185
|
-
pageContext,
|
|
186
|
-
configure,
|
|
187
|
-
eventParams,
|
|
188
|
-
isStandardEvent,
|
|
189
|
-
result,
|
|
190
|
-
isListButton
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
} else {
|
|
195
|
-
doAfterClickFunc(
|
|
196
|
-
pageContext,
|
|
197
|
-
configure,
|
|
198
|
-
eventParams,
|
|
199
|
-
isStandardEvent,
|
|
200
|
-
clickResult,
|
|
201
|
-
isListButton
|
|
202
|
-
);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
function isNotDoAfterClick(isStandardEvent, clickEvent) {
|
|
207
|
-
return isStandardEvent && (clickEvent.eventName === "exportForm" || clickEvent.eventName === "exportPDF" || clickEvent.eventName === "import" || clickEvent.eventName === "assign" || clickEvent.eventName === "copyTask" || clickEvent.eventName === "addSigner" || clickEvent.eventName === "returnTaskTo" || clickEvent.eventName === "removeSigner");
|
|
208
|
-
}
|
|
209
|
-
function isNotNeedValidateRequired(isStandardEvent, clickEvent) {
|
|
210
|
-
return isStandardEvent && (clickEvent.eventName === "downloadTemplate" || clickEvent.eventName === "back" || clickEvent.eventName === "exportForm" || clickEvent.eventName === "exportPDF" || clickEvent.eventName === "lineEditCreate");
|
|
211
|
-
}
|
|
212
|
-
function doAfterClickEvent(pageContext, configure, otherParams) {
|
|
213
|
-
const events = configure.events;
|
|
214
|
-
const afterClickFunc = getEventFuncByType(pageContext, events, "afterClick");
|
|
215
|
-
if (afterClickFunc) {
|
|
216
|
-
callItemEvent(pageContext, configure, afterClickFunc, null, otherParams);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
function doAfterClickFunc(pageContext, configure, eventParams, isStandardEvent, result, isListButton) {
|
|
220
|
-
if (!isStandardEvent) {
|
|
221
|
-
dealAfterOperate(
|
|
222
|
-
pageContext,
|
|
223
|
-
configure,
|
|
224
|
-
result,
|
|
225
|
-
"superPageRuntimeMessage.successfulOperation",
|
|
226
|
-
isListButton
|
|
227
|
-
);
|
|
228
|
-
} else {
|
|
229
|
-
pageContext.result = result;
|
|
230
|
-
}
|
|
231
|
-
const events = configure.events;
|
|
232
|
-
const afterClickFunc = getEventFuncByType(pageContext, events, "afterClick");
|
|
233
|
-
if (afterClickFunc) {
|
|
234
|
-
callItemEvent(pageContext, configure, afterClickFunc, eventParams);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
function doClickEvent(pageContext, configure, clickEventFunObj, eventParams) {
|
|
238
|
-
const linkPage = configure.props.linkPage;
|
|
239
|
-
if (linkPage && linkPage.jumpPageUrl) {
|
|
240
|
-
doClickJumpPageEvent(pageContext, configure, eventParams);
|
|
241
|
-
} else {
|
|
242
|
-
doClickCustomEvent(pageContext, configure, clickEventFunObj, eventParams);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
function getEventByEventName(pageContext, eventName) {
|
|
246
|
-
const eventsObj = pageContext.customEvents;
|
|
247
|
-
if (eventsObj && eventsObj[eventName]) {
|
|
248
|
-
return eventsObj[eventName];
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
function getEventFuncByType(pageContext, events, eventType) {
|
|
252
|
-
if (events && eventType) {
|
|
253
|
-
const eventArr = events.filter((item) => item.name === eventType && item.eventName);
|
|
254
|
-
if (eventArr && eventArr.length > 0) {
|
|
255
|
-
const event = eventArr[0];
|
|
256
|
-
if (event.isStandard) {
|
|
257
|
-
return standardEvents[event.eventName];
|
|
258
|
-
} else {
|
|
259
|
-
return getEventByEventName(pageContext, event.eventName);
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
function getClickEventFuncByType(pageContext, events, eventType) {
|
|
265
|
-
if (events && eventType) {
|
|
266
|
-
const eventArr = events.filter((item) => item.name === eventType && item.eventName);
|
|
267
|
-
if (eventArr && eventArr.length > 0) {
|
|
268
|
-
const event = eventArr[0];
|
|
269
|
-
if (event.isStandard) {
|
|
270
|
-
return { func: standardEvents[event.eventName], isStandard: true, event };
|
|
271
|
-
} else {
|
|
272
|
-
return {
|
|
273
|
-
func: getEventByEventName(pageContext, event.eventName),
|
|
274
|
-
isStandard: false,
|
|
275
|
-
event
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
function callItemEvent(pageContext, configureObj, eventFun, eventParams, otherParams) {
|
|
282
|
-
if (!eventFun) {
|
|
283
|
-
return;
|
|
284
|
-
}
|
|
285
|
-
if (!eventParams) {
|
|
286
|
-
eventParams = {
|
|
287
|
-
pageContext,
|
|
288
|
-
configureObj
|
|
289
|
-
// 组件配置信息,包含如:跳转页面配置、判重配置等
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
if (otherParams && eventParams) {
|
|
293
|
-
for (const key in otherParams) {
|
|
294
|
-
eventParams[key] = otherParams[key];
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
return eventFun(eventParams);
|
|
298
|
-
}
|
|
299
|
-
function transferToFunction(customEvents) {
|
|
300
|
-
const eventsObj = {};
|
|
301
|
-
customEvents.forEach((event) => {
|
|
302
|
-
if (event.jsContent) {
|
|
303
|
-
eventsObj[event.eventName] = new Function("params", event.jsContent);
|
|
304
|
-
if (event.name === "customFunc") {
|
|
305
|
-
if (event.funcParam) {
|
|
306
|
-
window["$page_" + event.eventName] = new Function(event.funcParam, event.jsContent);
|
|
307
|
-
} else {
|
|
308
|
-
window["$page_" + event.eventName] = new Function(event.jsContent);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
});
|
|
313
|
-
return eventsObj;
|
|
314
|
-
}
|
|
315
|
-
function canExecuteButton(params) {
|
|
316
|
-
const pageContext = params.pageContext;
|
|
317
|
-
const configureObj = params.configureObj;
|
|
318
|
-
const isListButton = isListPage(pageContext);
|
|
319
|
-
let entities = [];
|
|
320
|
-
if (isListButton) {
|
|
321
|
-
if (pageContext.editData) {
|
|
322
|
-
entities.push(pageContext.editData);
|
|
323
|
-
} else {
|
|
324
|
-
entities = params.selections;
|
|
325
|
-
}
|
|
326
|
-
} else {
|
|
327
|
-
const dataModel = pageContext.entity.data;
|
|
328
|
-
entities.push(dataModel);
|
|
329
|
-
}
|
|
330
|
-
const executableDataSetting = configureObj.props.base.condition;
|
|
331
|
-
return new Promise((resolve, reject) => {
|
|
332
|
-
if (executableDataSetting === void 0 || executableDataSetting === "" || entities === void 0 || entities.length === 0) {
|
|
333
|
-
resolve({
|
|
334
|
-
canExecute: true
|
|
335
|
-
});
|
|
336
|
-
} else {
|
|
337
|
-
const contextParameter = pageContext.entity.context;
|
|
338
|
-
const additionalParamMap = pageContext.entity.request;
|
|
339
|
-
const isSql = true;
|
|
340
|
-
const tableName = pageContext.tableName;
|
|
341
|
-
let isCanExecute = true;
|
|
342
|
-
let failMessage;
|
|
343
|
-
let failEntity;
|
|
344
|
-
for (let i = 0; i < entities.length; i++) {
|
|
345
|
-
const entity = entities[i];
|
|
346
|
-
for (let n = 0; n < executableDataSetting.length; n++) {
|
|
347
|
-
const conditionSetting = executableDataSetting[n];
|
|
348
|
-
const message = conditionSetting.toolTips;
|
|
349
|
-
const conditionList = conditionSetting.conditionList;
|
|
350
|
-
const canExecute = analysisCondition(
|
|
351
|
-
conditionList,
|
|
352
|
-
entity,
|
|
353
|
-
additionalParamMap,
|
|
354
|
-
contextParameter,
|
|
355
|
-
isSql,
|
|
356
|
-
tableName,
|
|
357
|
-
null
|
|
358
|
-
);
|
|
359
|
-
if (!canExecute) {
|
|
360
|
-
isCanExecute = false;
|
|
361
|
-
failMessage = message;
|
|
362
|
-
failEntity = entity;
|
|
363
|
-
break;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
if (!isCanExecute) {
|
|
368
|
-
if (failMessage) {
|
|
369
|
-
ElMessage({
|
|
370
|
-
showClose: true,
|
|
371
|
-
type: "warning",
|
|
372
|
-
message: failMessage
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
resolve({
|
|
376
|
-
canExecute: false,
|
|
377
|
-
message: failMessage,
|
|
378
|
-
failEntity
|
|
379
|
-
});
|
|
380
|
-
} else {
|
|
381
|
-
resolve({
|
|
382
|
-
canExecute: true
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
|
-
function setTableEvents(options, tableEvents, pageContext, configureObj) {
|
|
389
|
-
if (tableEvents) {
|
|
390
|
-
addTableEvent("loadBeforeSend", loadBeforeSend({ pageContext, configureObj }), options);
|
|
391
|
-
addTableEvent("beforeRequest", beforeRequest({ pageContext, configureObj }), options);
|
|
392
|
-
addTableEvent("gridDataLoaded", gridDataLoaded({ pageContext, configureObj }), options);
|
|
393
|
-
addTableEvent("gridComplete", gridComplete({ pageContext, configureObj }), options);
|
|
394
|
-
addTableEvent("resizeHeight", resizeTableHeight({ pageContext, configureObj }), options);
|
|
395
|
-
if (!options["lineEditOptions"]) {
|
|
396
|
-
options["lineEditOptions"] = {};
|
|
397
|
-
}
|
|
398
|
-
addTableEvent(
|
|
399
|
-
"beforeInsertRow",
|
|
400
|
-
gridBeforeInsertRow({ pageContext, configureObj }),
|
|
401
|
-
options["lineEditOptions"]
|
|
402
|
-
);
|
|
403
|
-
addTableEvent(
|
|
404
|
-
"afterInsertRow",
|
|
405
|
-
gridAfterInsertRow({ pageContext, configureObj }),
|
|
406
|
-
options["lineEditOptions"]
|
|
407
|
-
);
|
|
408
|
-
addTableEvent(
|
|
409
|
-
"beforeDelete",
|
|
410
|
-
gridBeforeRemoveRow({ pageContext, configureObj }),
|
|
411
|
-
options["lineEditOptions"]
|
|
412
|
-
);
|
|
413
|
-
addTableEvent(
|
|
414
|
-
"afterDelete",
|
|
415
|
-
gridAfterRemoveRow({ pageContext, configureObj }),
|
|
416
|
-
options["lineEditOptions"]
|
|
417
|
-
);
|
|
418
|
-
addTableEvent(
|
|
419
|
-
"beforeEdit",
|
|
420
|
-
gridBeforeEdit({ pageContext, configureObj }),
|
|
421
|
-
options["lineEditOptions"]
|
|
422
|
-
);
|
|
423
|
-
addTableEvent(
|
|
424
|
-
"beforeRestore",
|
|
425
|
-
beforeRestore({ pageContext, configureObj }),
|
|
426
|
-
options["lineEditOptions"]
|
|
427
|
-
);
|
|
428
|
-
addTableEvent(
|
|
429
|
-
"beforeRestoreValidate",
|
|
430
|
-
beforeRestoreValidate({ pageContext, configureObj }),
|
|
431
|
-
options["lineEditOptions"]
|
|
432
|
-
);
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
function addTableEvent(gridEventType, eventFunc, options) {
|
|
436
|
-
if (eventFunc) {
|
|
437
|
-
options[gridEventType] = eventFunc;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
function loadBeforeSend(params) {
|
|
441
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeListLoad", params);
|
|
442
|
-
}
|
|
443
|
-
function beforeRequest(params) {
|
|
444
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeRequest", params);
|
|
445
|
-
}
|
|
446
|
-
function gridDataLoaded(params) {
|
|
447
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "onListLoad", params);
|
|
448
|
-
}
|
|
449
|
-
function gridComplete(params) {
|
|
450
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "afterListLoad", params);
|
|
451
|
-
}
|
|
452
|
-
function resizeTableHeight(params) {
|
|
453
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "resizeTableHeight", params);
|
|
454
|
-
}
|
|
455
|
-
function beforeRestoreValidate(params) {
|
|
456
|
-
return getHandleEvent(
|
|
457
|
-
null,
|
|
458
|
-
params.pageContext,
|
|
459
|
-
params.configureObj,
|
|
460
|
-
"beforeRestoreValidate",
|
|
461
|
-
params
|
|
462
|
-
);
|
|
463
|
-
}
|
|
464
|
-
function beforeRestore(params) {
|
|
465
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeRestore", params);
|
|
466
|
-
}
|
|
467
|
-
function gridBeforeEdit(params) {
|
|
468
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeEdit", params);
|
|
469
|
-
}
|
|
470
|
-
function gridBeforeInsertRow(params) {
|
|
471
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeAddRow", params);
|
|
472
|
-
}
|
|
473
|
-
function gridAfterInsertRow(params) {
|
|
474
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "afterAddRow", params);
|
|
475
|
-
}
|
|
476
|
-
function gridBeforeRemoveRow(params) {
|
|
477
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeRemoveRow", params);
|
|
478
|
-
}
|
|
479
|
-
function gridAfterRemoveRow(params) {
|
|
480
|
-
return getHandleEvent(null, params.pageContext, params.configureObj, "afterRemoveRow", params);
|
|
481
|
-
}
|
|
482
|
-
function gridSelectRecord(pageContext, configureObj, params) {
|
|
483
|
-
return handleEvent(null, pageContext, configureObj, "select", params);
|
|
484
|
-
}
|
|
485
|
-
function gridSelectAllRecords(pageContext, configureObj, params) {
|
|
486
|
-
return handleEvent(null, pageContext, configureObj, "select-all", params);
|
|
487
|
-
}
|
|
488
|
-
function gridSelectionChange(pageContext, configureObj, params) {
|
|
489
|
-
return handleEvent(null, pageContext, configureObj, "selection-change", params);
|
|
490
|
-
}
|
|
491
|
-
function cellClick(pageContext, configureObj, params) {
|
|
492
|
-
return handleEvent(null, pageContext, configureObj, "cell-click", params);
|
|
493
|
-
}
|
|
494
|
-
function cellDblClick(pageContext, configureObj, params) {
|
|
495
|
-
return handleEvent(null, pageContext, configureObj, "cell-dblclick", params);
|
|
496
|
-
}
|
|
497
|
-
function rowClick(pageContext, configureObj, params) {
|
|
498
|
-
return handleEvent(null, pageContext, configureObj, "row-click", params);
|
|
499
|
-
}
|
|
500
|
-
function rowDblClick(pageContext, configureObj, params) {
|
|
501
|
-
return handleEvent(null, pageContext, configureObj, "row-dblclick", params);
|
|
502
|
-
}
|
|
503
|
-
function headerClick(pageContext, configureObj, params) {
|
|
504
|
-
return handleEvent(null, pageContext, configureObj, "header-click", params);
|
|
505
|
-
}
|
|
506
|
-
export {
|
|
507
|
-
canExecuteButton,
|
|
508
|
-
cellClick,
|
|
509
|
-
cellDblClick,
|
|
510
|
-
doAfterClickEvent,
|
|
511
|
-
doBeforeClickEvent,
|
|
512
|
-
getClickEventFuncByType,
|
|
513
|
-
getEventFuncByType,
|
|
514
|
-
getHandleEvent,
|
|
515
|
-
gridSelectAllRecords,
|
|
516
|
-
gridSelectRecord,
|
|
517
|
-
gridSelectionChange,
|
|
518
|
-
handleEvent,
|
|
519
|
-
headerClick,
|
|
520
|
-
initPageEvents,
|
|
521
|
-
removeCustomFuncFromWindow,
|
|
522
|
-
rowClick,
|
|
523
|
-
rowDblClick,
|
|
524
|
-
setTableEvents
|
|
525
|
-
};
|