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
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<super-grid
|
|
4
|
+
v-if="listViewShowFlag"
|
|
5
|
+
ref="gridRef"
|
|
6
|
+
:url="baseURL + '/common/super-forms/sub-table'"
|
|
7
|
+
:options="listViewOptions"
|
|
8
|
+
:code="superGridSetting ? null : listCode"
|
|
9
|
+
:settings="superGridSetting"
|
|
10
|
+
@select="select"
|
|
11
|
+
@select-all="selectAll"
|
|
12
|
+
@selection-change="selectionChange"
|
|
13
|
+
@cell-click="cellClickEvent"
|
|
14
|
+
@cell-dblclick="cellDblClickEvent"
|
|
15
|
+
@row-click="rowClickEvent"
|
|
16
|
+
@row-dblclick="rowDblClickEvent"
|
|
17
|
+
@header-click="headerClickEvent"
|
|
18
|
+
@fn-prohibit-to-edit="fnProhibitToEdit"
|
|
19
|
+
@change-grid-data="changeGridData"
|
|
20
|
+
@reload-grid="changeInitializationSubTable"
|
|
21
|
+
@refresMainTableFields="refresMainTableFields"
|
|
22
|
+
@set-select-options="setSelectOptions"
|
|
23
|
+
@change-rows-per-page="changeRowsPerpage"
|
|
24
|
+
@new-open-grid-dialog="popupToPage"
|
|
25
|
+
@change-form-data="changeFormData"
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
<script lang="ts" setup>
|
|
30
|
+
import { computed, onMounted, watch, ref } from 'vue'
|
|
31
|
+
import type {
|
|
32
|
+
Component,
|
|
33
|
+
PageContext
|
|
34
|
+
} from '../../../../../../src/utils/interfaces/page-design-types'
|
|
35
|
+
import {
|
|
36
|
+
gridSelectRecord,
|
|
37
|
+
setTableEvents,
|
|
38
|
+
gridSelectAllRecords,
|
|
39
|
+
gridSelectionChange,
|
|
40
|
+
cellClick,
|
|
41
|
+
cellDblClick,
|
|
42
|
+
rowClick,
|
|
43
|
+
rowDblClick,
|
|
44
|
+
headerClick
|
|
45
|
+
} from '../../../../../../src/utils/events/event-util'
|
|
46
|
+
import { getVariableValue, setVariableValue } from '../../../../../../src/utils/page-helper-util'
|
|
47
|
+
import { getFormModelFields } from '../../../../../../src/utils/page-init-util'
|
|
48
|
+
// import eventBus from '../../../../../../src/utils/eventBus'
|
|
49
|
+
import { popupToPage } from '../../../../../../src/utils/table-utils'
|
|
50
|
+
import { getListCode } from '../../../../../../src/utils/common-util'
|
|
51
|
+
interface MyProps {
|
|
52
|
+
pageContext: PageContext
|
|
53
|
+
configure: Component
|
|
54
|
+
}
|
|
55
|
+
const props = defineProps<MyProps>()
|
|
56
|
+
const pageContext = props.pageContext
|
|
57
|
+
const configure = props.configure
|
|
58
|
+
// 表单的数据
|
|
59
|
+
const dataModel = pageContext.entity.data
|
|
60
|
+
// 绑定变量
|
|
61
|
+
const prop = configure.props && configure.props.base ? configure.props.base.prop : null
|
|
62
|
+
// 附加参数
|
|
63
|
+
const additionalParamMap = pageContext.entity.request
|
|
64
|
+
// 表格事件
|
|
65
|
+
const tableEvents = configure.events
|
|
66
|
+
// 表单子表切换每页显示多少条记录时的事件处理
|
|
67
|
+
const subTablePageInfo = ref({})
|
|
68
|
+
const selections = ref([])
|
|
69
|
+
const superGridItems = pageContext.superGridItems
|
|
70
|
+
const superGridSetting = superGridItems ? superGridItems[configure.uuid] : null
|
|
71
|
+
console.log('superGridSetting===', superGridItems, superGridSetting)
|
|
72
|
+
|
|
73
|
+
//获取默认的样式及配置
|
|
74
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {}
|
|
75
|
+
|
|
76
|
+
const runtimeStyle = runtimeInfo.style
|
|
77
|
+
const runtimeClass = runtimeInfo.class
|
|
78
|
+
|
|
79
|
+
const entity: any = props.pageContext.entity ? props.pageContext.entity : {}
|
|
80
|
+
|
|
81
|
+
let dynamicFields: string[] = getFormModelFields(props.pageContext, props.configure)
|
|
82
|
+
|
|
83
|
+
const listViewShowFlag = ref(false)
|
|
84
|
+
const baseURL = window['$vueApp'].config.globalProperties.baseURL
|
|
85
|
+
const listViewOptions = ref({
|
|
86
|
+
subTableData: null,
|
|
87
|
+
extraParam: {},
|
|
88
|
+
operations: {},
|
|
89
|
+
hiddenColumns: [],
|
|
90
|
+
pageCode: pageContext.code,
|
|
91
|
+
pageVersion: pageContext.version,
|
|
92
|
+
pageContext,
|
|
93
|
+
configureObj: configure,
|
|
94
|
+
showPageArea: false,
|
|
95
|
+
showOverflowTooltip: !!(
|
|
96
|
+
configure.props &&
|
|
97
|
+
configure.props.otherSettings &&
|
|
98
|
+
(configure.props.otherSettings.isBreakLine === undefined ||
|
|
99
|
+
configure.props.otherSettings.isBreakLine === false)
|
|
100
|
+
) // 单元格内容是否换行显示
|
|
101
|
+
})
|
|
102
|
+
|
|
103
|
+
if (runtimeStyle) {
|
|
104
|
+
listViewOptions.value['tableStyle'] = runtimeStyle
|
|
105
|
+
}
|
|
106
|
+
if (runtimeClass) {
|
|
107
|
+
listViewOptions.value['tableClass'] = runtimeClass
|
|
108
|
+
}
|
|
109
|
+
if (
|
|
110
|
+
(configure.props && configure.props.base && configure.props.base.subPaging === undefined) ||
|
|
111
|
+
configure.props.base.subPaging === null ||
|
|
112
|
+
configure.props.base.subPaging === false
|
|
113
|
+
) {
|
|
114
|
+
listViewOptions.value.showPageArea = false
|
|
115
|
+
} else {
|
|
116
|
+
listViewOptions.value.showPageArea = true
|
|
117
|
+
}
|
|
118
|
+
// 获得列表的Ref对象
|
|
119
|
+
const gridRef = ref(null)
|
|
120
|
+
const listCode = getListCode(pageContext.code, pageContext.version, configure.uuid)
|
|
121
|
+
|
|
122
|
+
// 列表设置-通用设置
|
|
123
|
+
function currencyListViewSetting(canRrefreshSubtableData?: boolean) {
|
|
124
|
+
if (canRrefreshSubtableData === undefined) {
|
|
125
|
+
// 表示没有传该参数过来时,重新获得
|
|
126
|
+
canRrefreshSubtableData = judgeInitializationSubTable()
|
|
127
|
+
}
|
|
128
|
+
listViewOptions.value['isFormSubTable'] = true
|
|
129
|
+
listViewOptions.value['canRrefreshSubtableData'] = canRrefreshSubtableData
|
|
130
|
+
listViewOptions.value['getFormData'] = getParentFormData
|
|
131
|
+
listViewOptions.value['getGridData'] = getGridData
|
|
132
|
+
if (!(configure.props && configure.props.base && configure.props.base.showOperation)) {
|
|
133
|
+
let hiddenColumns = listViewOptions.value.hiddenColumns
|
|
134
|
+
if (!hiddenColumns) {
|
|
135
|
+
hiddenColumns = ['operation']
|
|
136
|
+
} else {
|
|
137
|
+
hiddenColumns.push('operation')
|
|
138
|
+
}
|
|
139
|
+
listViewOptions.value['hiddenColumns'] = hiddenColumns
|
|
140
|
+
}
|
|
141
|
+
listViewOptions.value['showOperationButton'] =
|
|
142
|
+
configure.props && configure.props.base ? configure.props.base.showOperation : false
|
|
143
|
+
listViewOptions.value['isPdfEditor'] = false
|
|
144
|
+
listViewOptions.value['tableRecordMaxNum'] =
|
|
145
|
+
configure.props && configure.props.otherSettings
|
|
146
|
+
? configure.props.otherSettings.tableRecordMaxNum
|
|
147
|
+
: null
|
|
148
|
+
// TODO: table组件的”尺寸/高度“要保留
|
|
149
|
+
if (configure.props && configure.props.size && configure.props.size.fixHeight) {
|
|
150
|
+
listViewOptions.value['formSetHeight'] = configure.props.size.fixHeight
|
|
151
|
+
}
|
|
152
|
+
// TODO: table组件的”尺寸“添加”最大高度“
|
|
153
|
+
if (configure.props && configure.props.size && configure.props.size.maxHeight) {
|
|
154
|
+
listViewOptions.value['formSetMaxHeight'] = configure.props.size.maxHeight
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// 是否初始化子表
|
|
159
|
+
function judgeInitializationSubTable() {
|
|
160
|
+
if (!configure.props || !configure.props.otherSettings) {
|
|
161
|
+
return
|
|
162
|
+
}
|
|
163
|
+
// 判断时机
|
|
164
|
+
if (
|
|
165
|
+
configure.props.otherSettings.subtableSetting &&
|
|
166
|
+
configure.props.otherSettings.timeToInitializeSubTable &&
|
|
167
|
+
configure.props.otherSettings.subtableSetting.timeToInitializeSubTable.length > 0
|
|
168
|
+
) {
|
|
169
|
+
let flag = false
|
|
170
|
+
if (
|
|
171
|
+
configure.props.otherSettings.subtableSetting.timeToInitializeSubTable.indexOf('create') !==
|
|
172
|
+
-1
|
|
173
|
+
) {
|
|
174
|
+
if (dataModel.id || dataModel.ID) {
|
|
175
|
+
// 表示有id
|
|
176
|
+
flag = false
|
|
177
|
+
} else {
|
|
178
|
+
flag = true
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
if (
|
|
182
|
+
configure.props.otherSettings.subtableSetting.timeToInitializeSubTable.indexOf('noData') !==
|
|
183
|
+
-1
|
|
184
|
+
) {
|
|
185
|
+
const tableData = dataModel[prop]
|
|
186
|
+
if (!tableData || tableData.length <= 0) {
|
|
187
|
+
// 表示没数据
|
|
188
|
+
flag = true
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return flag
|
|
192
|
+
} else {
|
|
193
|
+
return false
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// 获得表单内容
|
|
198
|
+
function getParentFormData() {
|
|
199
|
+
return pageContext.entity.data
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// 获得表格数据
|
|
203
|
+
function getGridData() {
|
|
204
|
+
return getVariableValue(entity, dynamicFields)
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
function changeInitializationSubTable(canRrefreshSubtableData?: boolean) {
|
|
208
|
+
currencyListViewSetting(canRrefreshSubtableData)
|
|
209
|
+
// TODO:是否区分设计、预览、正常解析
|
|
210
|
+
listViewOptions.value['isPageInfo'] = false
|
|
211
|
+
listViewOptions.value['subTableData'] = null
|
|
212
|
+
listViewOptions.value.extraParam['subTableListViewCode'] = listCode
|
|
213
|
+
listViewOptions.value.extraParam['subtableSetting'] =
|
|
214
|
+
configure.props || !configure.props.otherSettings
|
|
215
|
+
? JSON.stringify(configure.props.otherSettings.subtableSetting)
|
|
216
|
+
: null
|
|
217
|
+
listViewOptions.value.extraParam['additionalParamMap'] = additionalParamMap
|
|
218
|
+
// console.log('主表发生改变', models)
|
|
219
|
+
listViewOptions.value.extraParam['entityMap'] = pageContext.entity.data
|
|
220
|
+
// TODO: formViewCode没找到superGrid组件中使用的地方,后面再看
|
|
221
|
+
// listViewOptions.value.extraParam['formViewCode'] = store.get('formViewCode')
|
|
222
|
+
// 设置子表事件相关配置
|
|
223
|
+
setGridDataEventOptions()
|
|
224
|
+
// console.log('修改表单子表记录前---getElementId(widget)=', getElementId(widget))
|
|
225
|
+
// 重新加载子表记录
|
|
226
|
+
listViewShowFlag.value = false
|
|
227
|
+
setTimeout(() => {
|
|
228
|
+
// console.log('修改表单子表记录前11')
|
|
229
|
+
listViewShowFlag.value = true
|
|
230
|
+
setGridToStore()
|
|
231
|
+
// console.log('修改表单子表记录后')
|
|
232
|
+
}, 10)
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// 初始化列表配置
|
|
236
|
+
changeInitializationSubTable()
|
|
237
|
+
|
|
238
|
+
// 设置子表事件相关配置
|
|
239
|
+
function setGridDataEventOptions() {
|
|
240
|
+
// 设置子表字段权限相关信息
|
|
241
|
+
setSubTableValidateInfo()
|
|
242
|
+
// console.log('fieldPermissionMap', fieldPermissionMap)
|
|
243
|
+
// console.log('actionPermissionMap', actionPermissionMap)
|
|
244
|
+
const tableEvents = configure.events
|
|
245
|
+
setTableEvents(listViewOptions.value, tableEvents, pageContext, configure)
|
|
246
|
+
const customEvents = pageContext.customEvents
|
|
247
|
+
if (customEvents) {
|
|
248
|
+
// 表单页面中子表自定义事件集合
|
|
249
|
+
listViewOptions.value['eventCallBack'] = customEvents
|
|
250
|
+
}
|
|
251
|
+
listViewShowFlag.value = true
|
|
252
|
+
setGridToStore()
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// 设置子表字段编辑权限相关信息
|
|
256
|
+
function setSubTableValidateInfo() {
|
|
257
|
+
// console.log('fieldPermissionMap', fieldPermissionMap)
|
|
258
|
+
// console.log('propName', propName)
|
|
259
|
+
const fieldPermissionMap = pageContext.fieldPermissionMap
|
|
260
|
+
const actionPermissionMap = pageContext.actionPermissionMap
|
|
261
|
+
if (fieldPermissionMap && fieldPermissionMap != null) {
|
|
262
|
+
let validateRules = fieldPermissionMap.get(prop)
|
|
263
|
+
if (!validateRules) {
|
|
264
|
+
const allValidateRules = fieldPermissionMap.get('all_fields')
|
|
265
|
+
if (allValidateRules) {
|
|
266
|
+
validateRules = [allValidateRules]
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
// console.log('validateRules', validateRules)
|
|
270
|
+
if (validateRules) {
|
|
271
|
+
// 表示有子表行编辑验证
|
|
272
|
+
listViewOptions.value['validateRules'] = validateRules
|
|
273
|
+
} else {
|
|
274
|
+
listViewOptions.value['validateRules'] = null
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
if (actionPermissionMap && actionPermissionMap != null) {
|
|
278
|
+
let actionPermission = actionPermissionMap.get(prop)
|
|
279
|
+
if (!actionPermission) {
|
|
280
|
+
actionPermission = actionPermissionMap.get('all_sub_tables')
|
|
281
|
+
}
|
|
282
|
+
listViewOptions.value['actionPermission'] = actionPermission
|
|
283
|
+
}
|
|
284
|
+
// 子表是否可以新增记录
|
|
285
|
+
const subTableOperations = getOperations()
|
|
286
|
+
// 子表操作列按钮集合
|
|
287
|
+
listViewOptions.value['operations']['operation'] = subTableOperations
|
|
288
|
+
listViewOptions.value['subTableCanAdd'] = isShowAdd()
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
function setGridToStore() {
|
|
292
|
+
if (!pageContext.tableUuids) {
|
|
293
|
+
pageContext.tableUuids = []
|
|
294
|
+
}
|
|
295
|
+
pageContext.tableUuids.push(configure.uuid)
|
|
296
|
+
// TODO: 数据表子表集合如何获得??选择服务时没有对应的数据表
|
|
297
|
+
// if(!pageContext.tableNames){
|
|
298
|
+
// pageContext.tableNames = []
|
|
299
|
+
// }
|
|
300
|
+
// pageContext.tableNames.push(configure.props.dataOrigin.)
|
|
301
|
+
}
|
|
302
|
+
// 获得子表操作列按钮
|
|
303
|
+
function getOperations() {
|
|
304
|
+
let operations = []
|
|
305
|
+
if (isShowAdd()) {
|
|
306
|
+
// 新增按钮
|
|
307
|
+
const addButton = {
|
|
308
|
+
props: {
|
|
309
|
+
elementType: 'el-button',
|
|
310
|
+
icon: 'Plus',
|
|
311
|
+
type: 'primary',
|
|
312
|
+
circle: true,
|
|
313
|
+
size: 'mini',
|
|
314
|
+
permission: 'true'
|
|
315
|
+
},
|
|
316
|
+
onClick: addSubTableData
|
|
317
|
+
}
|
|
318
|
+
operations.push(addButton)
|
|
319
|
+
// console.log('子表有创建权限')
|
|
320
|
+
}
|
|
321
|
+
if (isShowDelete(null, null, null, null, null, true)) {
|
|
322
|
+
// 删除按钮
|
|
323
|
+
const removeButton = {
|
|
324
|
+
props: {
|
|
325
|
+
elementType: 'el-button',
|
|
326
|
+
icon: 'Minus',
|
|
327
|
+
type: 'danger',
|
|
328
|
+
circle: true,
|
|
329
|
+
size: 'mini',
|
|
330
|
+
permission: 'true'
|
|
331
|
+
},
|
|
332
|
+
onClick: removeSubTableData,
|
|
333
|
+
isShow: isShowDelete
|
|
334
|
+
}
|
|
335
|
+
operations.push(removeButton)
|
|
336
|
+
// console.log('子表有删除权限')
|
|
337
|
+
}
|
|
338
|
+
return operations
|
|
339
|
+
}
|
|
340
|
+
function getEntityId(row) {
|
|
341
|
+
if (row && row.id) {
|
|
342
|
+
return row.id
|
|
343
|
+
} else if (row && row.ID) {
|
|
344
|
+
return row.ID
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
// 是否有新增权限
|
|
348
|
+
function isShowAdd() {
|
|
349
|
+
const fieldPermissionMap = pageContext.fieldPermissionMap
|
|
350
|
+
const actionPermissionMap = pageContext.actionPermissionMap
|
|
351
|
+
|
|
352
|
+
let canAdd = true
|
|
353
|
+
if (fieldPermissionMap && fieldPermissionMap !== null) {
|
|
354
|
+
const allFieldPermission = fieldPermissionMap.get('all_fields')
|
|
355
|
+
if (
|
|
356
|
+
typeof allFieldPermission !== 'undefined' &&
|
|
357
|
+
allFieldPermission.canEdit === false &&
|
|
358
|
+
(allFieldPermission.rowIndexes === undefined ||
|
|
359
|
+
allFieldPermission.rowIndexes === null ||
|
|
360
|
+
allFieldPermission.rowIndexes.length === 0)
|
|
361
|
+
) {
|
|
362
|
+
// 表示所有字段都禁止编辑,则表示子表也不能删除
|
|
363
|
+
canAdd = false
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
if (canAdd === true && prop && actionPermissionMap && actionPermissionMap !== null) {
|
|
367
|
+
let oneTableActionPermission = actionPermissionMap.get(prop)
|
|
368
|
+
if (!oneTableActionPermission) {
|
|
369
|
+
oneTableActionPermission = actionPermissionMap.get('all_sub_tables')
|
|
370
|
+
}
|
|
371
|
+
if (
|
|
372
|
+
oneTableActionPermission &&
|
|
373
|
+
oneTableActionPermission.canAdd !== undefined &&
|
|
374
|
+
oneTableActionPermission.canAdd === false
|
|
375
|
+
) {
|
|
376
|
+
canAdd = false
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
return canAdd
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
// 是否有删除权限
|
|
383
|
+
function isShowDelete(originalValue, formatValue, row, column, rowIndex, isFormJudge) {
|
|
384
|
+
// console.log('isShowDelete', originalValue, formatValue, row, column, rowIndex)
|
|
385
|
+
const fieldPermissionMap = pageContext.fieldPermissionMap
|
|
386
|
+
const actionPermissionMap = pageContext.actionPermissionMap
|
|
387
|
+
let canDelete = true
|
|
388
|
+
if (fieldPermissionMap && fieldPermissionMap !== null) {
|
|
389
|
+
const allFieldPermission = fieldPermissionMap.get('all_fields')
|
|
390
|
+
if (
|
|
391
|
+
typeof allFieldPermission !== 'undefined' &&
|
|
392
|
+
allFieldPermission.canEdit === false &&
|
|
393
|
+
(allFieldPermission.rowIndexes === undefined ||
|
|
394
|
+
allFieldPermission.rowIndexes === null ||
|
|
395
|
+
allFieldPermission.rowIndexes.length === 0)
|
|
396
|
+
) {
|
|
397
|
+
// 表示所有字段都禁止编辑,则表示子表也不能删除
|
|
398
|
+
canDelete = false
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
if (canDelete === true && prop && actionPermissionMap && actionPermissionMap !== null) {
|
|
402
|
+
let oneTableActionPermission = actionPermissionMap.get(prop)
|
|
403
|
+
if (!oneTableActionPermission) {
|
|
404
|
+
oneTableActionPermission = actionPermissionMap.get('all_sub_tables')
|
|
405
|
+
}
|
|
406
|
+
if (
|
|
407
|
+
oneTableActionPermission &&
|
|
408
|
+
oneTableActionPermission.canDelete !== undefined &&
|
|
409
|
+
oneTableActionPermission.canDelete === false
|
|
410
|
+
) {
|
|
411
|
+
canDelete = false
|
|
412
|
+
}
|
|
413
|
+
if (
|
|
414
|
+
oneTableActionPermission &&
|
|
415
|
+
oneTableActionPermission.canDelete !== undefined &&
|
|
416
|
+
oneTableActionPermission.canDelete === true
|
|
417
|
+
) {
|
|
418
|
+
if (oneTableActionPermission.deleteRowIndexes) {
|
|
419
|
+
// 表示配置了可删除行记录
|
|
420
|
+
if (oneTableActionPermission.deleteRowIndexes.length > 0) {
|
|
421
|
+
if (isFormJudge) {
|
|
422
|
+
canDelete = true
|
|
423
|
+
} else {
|
|
424
|
+
// 表示配置了可删除,并且有满足条件的行记录,那就判断是否是当前行
|
|
425
|
+
const rowId = getEntityId(row)
|
|
426
|
+
if (
|
|
427
|
+
rowId !== undefined &&
|
|
428
|
+
oneTableActionPermission.deleteRowIndexes.indexOf(rowId) >= 0
|
|
429
|
+
) {
|
|
430
|
+
canDelete = true
|
|
431
|
+
} else {
|
|
432
|
+
canDelete = false
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
} else {
|
|
436
|
+
// 表示没有配置行删除获取没有符合执行条件的记录,直接返回false
|
|
437
|
+
canDelete = false
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
// console.log('canDelete', canDelete)
|
|
443
|
+
return canDelete
|
|
444
|
+
}
|
|
445
|
+
function addSubTableData(originalValue, formatValue, row, column, rowIndex) {
|
|
446
|
+
gridRef.value.createRow(listCode)
|
|
447
|
+
}
|
|
448
|
+
function removeSubTableData(originalValue, formatValue, row, column, rowIndex) {
|
|
449
|
+
gridRef.value.deleteRow(rowIndex, listCode, false)
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
function changeGridData(gridData) {
|
|
453
|
+
setVariableValue(entity, dynamicFields, gridData)
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
// 捕获改变列表每页显示多少条记录事件处理
|
|
457
|
+
function changeRowsPerpage(pageSize) {
|
|
458
|
+
console.log('表单组件--Item--changeRowsPerpage==pageSize=', pageSize)
|
|
459
|
+
if (!pageContext.subTablePageInfo) {
|
|
460
|
+
pageContext.subTablePageInfo = {}
|
|
461
|
+
}
|
|
462
|
+
pageContext.subTablePageInfo[prop] = { pageSize: pageSize }
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
// 下拉选集合初始化事件
|
|
466
|
+
function setSelectOptions(valueSetOptions) {
|
|
467
|
+
const propName = valueSetOptions.key
|
|
468
|
+
const options = valueSetOptions.value
|
|
469
|
+
if (!pageContext.selectOptions) {
|
|
470
|
+
pageContext.selectOptions = {}
|
|
471
|
+
}
|
|
472
|
+
pageContext.selectOptions[propName] = options
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
// 设置禁止编辑字段
|
|
476
|
+
function fnProhibitToEdit(data) {
|
|
477
|
+
const myPageCode = pageContext.code
|
|
478
|
+
const eventPageInfo = myPageCode + '_'
|
|
479
|
+
window['$eventBus'].$emit(eventPageInfo + 'prohibit-edit', data)
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// 更新主表字段的值
|
|
483
|
+
function refresMainTableFields(entity) {
|
|
484
|
+
const dataModel = pageContext.entity.data
|
|
485
|
+
if (entity) {
|
|
486
|
+
for (const key in entity) {
|
|
487
|
+
dataModel[key] = entity[key]
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
// 选择记录时
|
|
493
|
+
function select(selection, row) {
|
|
494
|
+
selections.value = selection
|
|
495
|
+
const params = {
|
|
496
|
+
selection,
|
|
497
|
+
row
|
|
498
|
+
}
|
|
499
|
+
gridSelectRecord(pageContext, configure, params)
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
function selectAll(selection) {
|
|
503
|
+
selections.value = selection
|
|
504
|
+
const params = {
|
|
505
|
+
selection
|
|
506
|
+
}
|
|
507
|
+
gridSelectAllRecords(pageContext, configure, params)
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
function selectionChange(newSelection) {
|
|
511
|
+
const params = {
|
|
512
|
+
newSelection
|
|
513
|
+
}
|
|
514
|
+
gridSelectionChange(pageContext, configure, params)
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
function cellClickEvent(row: any, column: any, cell: HTMLTableCellElement, event: Event) {
|
|
518
|
+
const params = {
|
|
519
|
+
row,
|
|
520
|
+
column,
|
|
521
|
+
cell,
|
|
522
|
+
event
|
|
523
|
+
}
|
|
524
|
+
cellClick(pageContext, configure, params)
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
function cellDblClickEvent(row: any, column: any, cell: HTMLTableCellElement, event: Event) {
|
|
528
|
+
const params = {
|
|
529
|
+
row,
|
|
530
|
+
column,
|
|
531
|
+
cell,
|
|
532
|
+
event
|
|
533
|
+
}
|
|
534
|
+
cellDblClick(pageContext, configure, params)
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
function rowClickEvent(row: any, column: any, event: Event) {
|
|
538
|
+
const params = {
|
|
539
|
+
row,
|
|
540
|
+
column,
|
|
541
|
+
event
|
|
542
|
+
}
|
|
543
|
+
rowClick(pageContext, configure, params)
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
function rowDblClickEvent(row: any, column: any, event: Event) {
|
|
547
|
+
const params = {
|
|
548
|
+
row,
|
|
549
|
+
column,
|
|
550
|
+
event
|
|
551
|
+
}
|
|
552
|
+
rowDblClick(pageContext, configure, params)
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
function headerClickEvent(column: any, event: Event) {
|
|
556
|
+
const params = {
|
|
557
|
+
column,
|
|
558
|
+
event
|
|
559
|
+
}
|
|
560
|
+
headerClick(pageContext, configure, params)
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
// TODO: pageModel更新如何更新
|
|
564
|
+
function changeFormData(formData) {
|
|
565
|
+
pageContext.entity.data = formData
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
// api:子表保存时验证子表记录必填
|
|
569
|
+
function validatorSunTableListData() {
|
|
570
|
+
return gridRef.value.validatorSunTableListData()
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
// api:行编辑新建记录
|
|
574
|
+
function createRow() {
|
|
575
|
+
return gridRef.value.createRow(listCode)
|
|
576
|
+
}
|
|
577
|
+
// api:获得选中记录集合
|
|
578
|
+
function getSelections() {
|
|
579
|
+
return selections.value
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
// api:获得选中记录id集合
|
|
583
|
+
function getSelectionIds() {
|
|
584
|
+
const dataIds = []
|
|
585
|
+
if (selections.value !== null) {
|
|
586
|
+
selections.value.forEach((item) => {
|
|
587
|
+
dataIds.push(item.id ? item.id : item.ID ? item.ID : null)
|
|
588
|
+
})
|
|
589
|
+
}
|
|
590
|
+
return dataIds
|
|
591
|
+
}
|
|
592
|
+
// api:列表组件内容刷新后的回调事件
|
|
593
|
+
function clearSelections() {
|
|
594
|
+
selections.value = []
|
|
595
|
+
}
|
|
596
|
+
// api:获得表格配置
|
|
597
|
+
function getTableConfigure() {
|
|
598
|
+
return configure
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
*api: 获取值
|
|
603
|
+
*/
|
|
604
|
+
function getValue() {
|
|
605
|
+
return getVariableValue(entity, dynamicFields)
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* api:设置值
|
|
610
|
+
*/
|
|
611
|
+
function setValue(value: any) {
|
|
612
|
+
return setVariableValue(entity, dynamicFields, value)
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
defineExpose({
|
|
616
|
+
createRow,
|
|
617
|
+
getSelections,
|
|
618
|
+
getSelectionIds,
|
|
619
|
+
clearSelections,
|
|
620
|
+
getTableConfigure,
|
|
621
|
+
validatorSunTableListData,
|
|
622
|
+
getValue,
|
|
623
|
+
setValue
|
|
624
|
+
})
|
|
625
|
+
</script>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<SubTable
|
|
4
|
+
v-if="pageType && pageType === 'form'"
|
|
5
|
+
ref="gridRef"
|
|
6
|
+
:pageContext="pageContext"
|
|
7
|
+
:configure="configure"
|
|
8
|
+
/>
|
|
9
|
+
<MainTable v-else ref="gridRef" :pageContext="pageContext" :configure="tableConfigure" />
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
<script lang="ts" setup>
|
|
13
|
+
import { SuperIcon } from 'agilebuilder-ui'
|
|
14
|
+
import { computed, onMounted, watch, ref } from 'vue'
|
|
15
|
+
import { Component, PageContext } from '../../../../../../src/utils/interfaces/page-design-types'
|
|
16
|
+
import { getVariableValue, setVariableValue } from '../../../../../../src/utils/page-helper-util'
|
|
17
|
+
import SubTable from './sub-table-runtime.vue'
|
|
18
|
+
import MainTable from './main-table-runtime.vue'
|
|
19
|
+
interface MyProps {
|
|
20
|
+
pageContext: PageContext
|
|
21
|
+
configure: Component
|
|
22
|
+
}
|
|
23
|
+
const props = defineProps<MyProps>()
|
|
24
|
+
const pageType = props.pageContext.pageType
|
|
25
|
+
const tableConfigure = ref(null)
|
|
26
|
+
const tableUuid = props.configure.uuid
|
|
27
|
+
const superGridItems = props.pageContext.superGridItems
|
|
28
|
+
const superGridSetting = superGridItems ? superGridItems[tableUuid] : null
|
|
29
|
+
tableConfigure.value = superGridSetting.configure ? JSON.parse(superGridSetting.configure) : null
|
|
30
|
+
|
|
31
|
+
//获取默认的样式及配置
|
|
32
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {}
|
|
33
|
+
|
|
34
|
+
const runtimeStyle = runtimeInfo.style
|
|
35
|
+
const runtimeClass = runtimeInfo.class
|
|
36
|
+
const gridRef = ref(null)
|
|
37
|
+
// api:子表保存时验证子表记录必填
|
|
38
|
+
function validatorSunTableListData() {
|
|
39
|
+
if (pageType && pageType === 'form') {
|
|
40
|
+
return gridRef.value.validatorSunTableListData()
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// api:列表组件内容刷新后的回调事件
|
|
45
|
+
function clearSelections() {
|
|
46
|
+
return gridRef.value.clearSelections()
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// api:刷新列表数据
|
|
50
|
+
function refresh() {
|
|
51
|
+
if (pageType && pageType === 'list') {
|
|
52
|
+
return gridRef.value.refresh()
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// api:行编辑新建记录
|
|
57
|
+
function createRow() {
|
|
58
|
+
return gridRef.value.createRow()
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// api:获得选中记录集合
|
|
62
|
+
function getSelections() {
|
|
63
|
+
return gridRef.value.getSelections()
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// api:获得选中记录id集合
|
|
67
|
+
function getSelectionIds() {
|
|
68
|
+
return gridRef.value.getSelectionIds()
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// api:获得表格配置
|
|
72
|
+
function getTableConfigure() {
|
|
73
|
+
return gridRef.value.getTableConfigure()
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// api: 是否是执行了删除操作
|
|
77
|
+
function isDeleteChange(value) {
|
|
78
|
+
if (pageType && pageType === 'list') {
|
|
79
|
+
gridRef.value.isDeleteChange(value)
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
defineExpose({
|
|
84
|
+
refresh,
|
|
85
|
+
createRow,
|
|
86
|
+
clearSelections,
|
|
87
|
+
getSelections,
|
|
88
|
+
getSelectionIds,
|
|
89
|
+
getTableConfigure,
|
|
90
|
+
isDeleteChange,
|
|
91
|
+
validatorSunTableListData
|
|
92
|
+
})
|
|
93
|
+
</script>
|