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,242 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog v-model="dialogTableVisible" title="自定义参数" width="800">
|
|
3
|
+
<el-table
|
|
4
|
+
:data="pageDesign.variables"
|
|
5
|
+
row-key="code"
|
|
6
|
+
style="width: 100%;margin-bottom: 20px"
|
|
7
|
+
size="small"
|
|
8
|
+
@row-dblclick="rowDblclick"
|
|
9
|
+
border
|
|
10
|
+
:tree-props="{ children: 'items' }"
|
|
11
|
+
default-expand-all
|
|
12
|
+
>
|
|
13
|
+
<el-table-column type="index" width="60" label="序号" />
|
|
14
|
+
<el-table-column prop="name" width="200" label="变量名">
|
|
15
|
+
<template #default="scope">
|
|
16
|
+
<span v-if="!scope.row.$editing">{{ scope.row.name }}</span>
|
|
17
|
+
<el-input v-else style="width:120px;" :disabled="scope.row.disabled" v-model="scope.row.name" placeholder="" />
|
|
18
|
+
</template>
|
|
19
|
+
</el-table-column>
|
|
20
|
+
<el-table-column prop="alias" width="140" label="别名">
|
|
21
|
+
<template #default="scope">
|
|
22
|
+
<span v-if="!scope.row.$editing">{{ scope.row.alias }}</span>
|
|
23
|
+
<el-input v-else :disabled="scope.row.disabled" v-model="scope.row.alias" placeholder="" />
|
|
24
|
+
</template>
|
|
25
|
+
</el-table-column>
|
|
26
|
+
<el-table-column prop="type" width="130" label="类型">
|
|
27
|
+
<template #default="scope">
|
|
28
|
+
<span v-if="!scope.row.$editing">{{ scope.row.type }}</span>
|
|
29
|
+
<el-select
|
|
30
|
+
v-else
|
|
31
|
+
v-model="scope.row.type"
|
|
32
|
+
@change="typeChange($event, scope.$index, scope.row)"
|
|
33
|
+
placeholder=""
|
|
34
|
+
>
|
|
35
|
+
<el-option v-for="item in typeOptions" :key="item" :label="item" :value="item" />
|
|
36
|
+
</el-select>
|
|
37
|
+
</template>
|
|
38
|
+
</el-table-column>
|
|
39
|
+
<el-table-column align="right" :width="90">
|
|
40
|
+
<template #header>
|
|
41
|
+
<el-tooltip class="box-item" effect="dark" content="添加变量" placement="top">
|
|
42
|
+
<el-button type="primary" size="small" :icon="Plus" circle @click="addRootRow" />
|
|
43
|
+
</el-tooltip>
|
|
44
|
+
</template>
|
|
45
|
+
<template #default="scope">
|
|
46
|
+
<span>
|
|
47
|
+
<el-dropdown size="small" style="margin-right: 10px">
|
|
48
|
+
<el-button type="primary" :icon="Plus" size="small" circle />
|
|
49
|
+
<template #dropdown>
|
|
50
|
+
<el-dropdown-menu>
|
|
51
|
+
<el-dropdown-item
|
|
52
|
+
v-if="scope.row.type === 'object'"
|
|
53
|
+
size="small"
|
|
54
|
+
@click="addChildrenItem(scope.$index, scope.row)"
|
|
55
|
+
>添加下级节点</el-dropdown-item
|
|
56
|
+
>
|
|
57
|
+
<el-dropdown-item
|
|
58
|
+
v-if="!scope.row.isArrayElement"
|
|
59
|
+
size="small"
|
|
60
|
+
@click="addAdjacentNode(scope.$index, scope.row)"
|
|
61
|
+
>添加相邻节点</el-dropdown-item
|
|
62
|
+
>
|
|
63
|
+
</el-dropdown-menu>
|
|
64
|
+
</template>
|
|
65
|
+
</el-dropdown>
|
|
66
|
+
<el-tooltip class="box-item" effect="dark" content="删除" placement="top">
|
|
67
|
+
<el-button
|
|
68
|
+
type="danger"
|
|
69
|
+
size="small"
|
|
70
|
+
:disabled="scope.row.isArrayElement"
|
|
71
|
+
:icon="Minus"
|
|
72
|
+
circle
|
|
73
|
+
@click="handleDelete(scope.$index, scope.row)"
|
|
74
|
+
/>
|
|
75
|
+
</el-tooltip>
|
|
76
|
+
</span>
|
|
77
|
+
</template>
|
|
78
|
+
</el-table-column>
|
|
79
|
+
</el-table>
|
|
80
|
+
</el-dialog>
|
|
81
|
+
</template>
|
|
82
|
+
<script lang='ts' setup>
|
|
83
|
+
import {reactive,ref} from 'vue';
|
|
84
|
+
import {Search,Plus,Minus} from '@element-plus/icons';
|
|
85
|
+
import http from 'agilebuilder-ui/src/utils/request';
|
|
86
|
+
import type { PageDesign,CustomVariable} from '../../../utils/interfaces/page-design-types';
|
|
87
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
88
|
+
import { deepCopy } from '../../../utils/common-util';
|
|
89
|
+
|
|
90
|
+
interface MyProps{
|
|
91
|
+
pageDesign:PageDesign
|
|
92
|
+
}
|
|
93
|
+
const props = defineProps<MyProps>();
|
|
94
|
+
//初始化
|
|
95
|
+
if(props.pageDesign.variables==undefined||props.pageDesign.variables==null){
|
|
96
|
+
props.pageDesign.variables = [];
|
|
97
|
+
}
|
|
98
|
+
//定义事件
|
|
99
|
+
const emits = defineEmits([""]);
|
|
100
|
+
//表格高度
|
|
101
|
+
const tableHeight = ref(300);
|
|
102
|
+
//弹框是否打开的标识
|
|
103
|
+
const dialogTableVisible = ref(false);
|
|
104
|
+
const typeOptions = ['string', 'int', 'boolean', 'array', 'object', 'number'];
|
|
105
|
+
|
|
106
|
+
// 必须设置编辑状态--- 不然列表加载时都是编辑状态时,会导致页面加载过慢
|
|
107
|
+
function rowDblclick(row: any, column: any, event: Event) {
|
|
108
|
+
row.$editing = true
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function addRootRow() {
|
|
112
|
+
if(props.pageDesign.variables){
|
|
113
|
+
props.pageDesign.variables.push(getNewItem())
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function getNewItem():CustomVariable{
|
|
118
|
+
return {
|
|
119
|
+
level: 0,
|
|
120
|
+
code: uuidv4(),
|
|
121
|
+
name: '',
|
|
122
|
+
alias: '',
|
|
123
|
+
type: 'string',
|
|
124
|
+
defaultValue: '',
|
|
125
|
+
items: [],
|
|
126
|
+
$editing: true
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function handleDelete(index: number, row:any) {
|
|
131
|
+
deleteClidNode(props.pageDesign.variables, row)
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function deleteClidNode(tableData: any, clickRow: any) {
|
|
135
|
+
for (let index = 0; index < tableData.length; index++) {
|
|
136
|
+
const row = tableData[index]
|
|
137
|
+
if (row.items && row.items.length > 0) {
|
|
138
|
+
deleteClidNode(row.items, clickRow)
|
|
139
|
+
} else {
|
|
140
|
+
if (row.code === clickRow.code) {
|
|
141
|
+
tableData.splice(index, 1)
|
|
142
|
+
return
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* 添加相邻节点
|
|
150
|
+
* @param index
|
|
151
|
+
* @param row
|
|
152
|
+
*/
|
|
153
|
+
function addAdjacentNode(index: number, row: any) {
|
|
154
|
+
clidNodeAddAdjacentNode(props.pageDesign.variables, row)
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* 子节点添加相邻节点
|
|
159
|
+
* @param tableData
|
|
160
|
+
* @param clickRow
|
|
161
|
+
*/
|
|
162
|
+
function clidNodeAddAdjacentNode(tableData:any, clickRow: any) {
|
|
163
|
+
tableData.forEach((row: any, index: number) => {
|
|
164
|
+
if (row.code === clickRow.code) {
|
|
165
|
+
const item = getNewItem()
|
|
166
|
+
item.level = row.level
|
|
167
|
+
tableData.splice(index + 1, 0, item)
|
|
168
|
+
} else {
|
|
169
|
+
if (row.items && row.items.length > 0) {
|
|
170
|
+
clidNodeAddAdjacentNode(row.items, clickRow)
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
})
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* 添加下级节点
|
|
178
|
+
* @param index
|
|
179
|
+
* @param row
|
|
180
|
+
*/
|
|
181
|
+
function addChildrenItem(index: number, row: any) {
|
|
182
|
+
if (!row.items) {
|
|
183
|
+
row.items = []
|
|
184
|
+
}
|
|
185
|
+
const item = getNewItem()
|
|
186
|
+
item.level = row.level + 1
|
|
187
|
+
row.items.push(item)
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function typeChange(value: string, index: number, row: any) {
|
|
191
|
+
if (value === 'array') {
|
|
192
|
+
row.items = []
|
|
193
|
+
row.items.push({
|
|
194
|
+
level: row.level + 1,
|
|
195
|
+
code: uuidv4(),
|
|
196
|
+
name: 'items',
|
|
197
|
+
disabled: true,
|
|
198
|
+
isArrayElement: true,
|
|
199
|
+
alias: '',
|
|
200
|
+
type: 'object',
|
|
201
|
+
defaultValue: '',
|
|
202
|
+
items: []
|
|
203
|
+
})
|
|
204
|
+
} else if (row.items && row.items.length > 0) {
|
|
205
|
+
row.items = []
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
function showJson() {
|
|
210
|
+
alert(JSON.stringify(props.pageDesign.variables))
|
|
211
|
+
console.log(JSON.stringify(props.pageDesign.variables))
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
let firstInited = false;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* 打开对象框
|
|
218
|
+
*/
|
|
219
|
+
function openDialog(){
|
|
220
|
+
//计算高度
|
|
221
|
+
let tempHeight = window.innerHeight-140-176;
|
|
222
|
+
if(tempHeight>500){
|
|
223
|
+
tempHeight = 500;
|
|
224
|
+
}else if(tempHeight<100){
|
|
225
|
+
tempHeight = 100;
|
|
226
|
+
}
|
|
227
|
+
tableHeight.value = tempHeight;
|
|
228
|
+
|
|
229
|
+
dialogTableVisible.value = true;
|
|
230
|
+
|
|
231
|
+
firstInited = true;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* 定义打开窗口的方法
|
|
236
|
+
*/
|
|
237
|
+
defineExpose({
|
|
238
|
+
openDialog
|
|
239
|
+
});
|
|
240
|
+
</script>
|
|
241
|
+
|
|
242
|
+
../../../utils/interfaces/page-runtime-types
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
model-value
|
|
4
|
+
title="组合条件"
|
|
5
|
+
width="70%"
|
|
6
|
+
@before-close="$emit('close')"
|
|
7
|
+
>
|
|
8
|
+
<el-row style="padding-bottom: 8px">
|
|
9
|
+
<el-button
|
|
10
|
+
:icon="CirclePlus"
|
|
11
|
+
plain
|
|
12
|
+
type="primary"
|
|
13
|
+
@click="add"
|
|
14
|
+
>
|
|
15
|
+
添加
|
|
16
|
+
</el-button>
|
|
17
|
+
<el-button
|
|
18
|
+
:icon="Delete"
|
|
19
|
+
plain
|
|
20
|
+
type="primary"
|
|
21
|
+
@click="remove"
|
|
22
|
+
>
|
|
23
|
+
删除
|
|
24
|
+
</el-button>
|
|
25
|
+
</el-row>
|
|
26
|
+
<el-table highlight-current-row @current-change="handleCurrentChange" :data="list" style="width: 100%">
|
|
27
|
+
<el-table-column prop="date" label="(">
|
|
28
|
+
<template #default="scope">
|
|
29
|
+
<el-select
|
|
30
|
+
v-model="scope.row.leftBracket"
|
|
31
|
+
clearable
|
|
32
|
+
size="default"
|
|
33
|
+
>
|
|
34
|
+
<el-option label="" value=""/>
|
|
35
|
+
<el-option label="(" value="("/>
|
|
36
|
+
<el-option label="((" value="(("/>
|
|
37
|
+
<el-option label="(((" value="((("/>
|
|
38
|
+
</el-select>
|
|
39
|
+
</template>
|
|
40
|
+
</el-table-column>
|
|
41
|
+
<el-table-column prop="name" label="字段名(*)">
|
|
42
|
+
<template #default="scope">
|
|
43
|
+
<el-select
|
|
44
|
+
v-model="scope.row.propName"
|
|
45
|
+
clearable
|
|
46
|
+
size="default"
|
|
47
|
+
>
|
|
48
|
+
<el-option
|
|
49
|
+
v-for="(Ttime,index) in fieldNameList"
|
|
50
|
+
:key="index"
|
|
51
|
+
:label="Ttime.alias"
|
|
52
|
+
:value="Ttime.name"></el-option>
|
|
53
|
+
</el-select>
|
|
54
|
+
</template>
|
|
55
|
+
</el-table-column>
|
|
56
|
+
<el-table-column prop="address" label="操作符">
|
|
57
|
+
<template #default="scope">
|
|
58
|
+
<el-select
|
|
59
|
+
v-model="scope.row.operator"
|
|
60
|
+
clearable
|
|
61
|
+
size="default"
|
|
62
|
+
>
|
|
63
|
+
<el-option label="操作符1" value="1"/>
|
|
64
|
+
<el-option label="操作符1" value="2"/>
|
|
65
|
+
<el-option label="操作符1" value="3"/>
|
|
66
|
+
</el-select>
|
|
67
|
+
</template>
|
|
68
|
+
</el-table-column>
|
|
69
|
+
<el-table-column prop="address" label="值(*)">
|
|
70
|
+
<template #default="scope">
|
|
71
|
+
<el-select
|
|
72
|
+
v-model="scope.row.propValueType"
|
|
73
|
+
clearable
|
|
74
|
+
size="default"
|
|
75
|
+
>
|
|
76
|
+
<el-option label="值1" value="1"/>
|
|
77
|
+
<el-option label="值2" value="2"/>
|
|
78
|
+
<el-option label="值3" value="3"/>
|
|
79
|
+
</el-select>
|
|
80
|
+
</template>
|
|
81
|
+
</el-table-column>
|
|
82
|
+
<el-table-column prop="address" label="日期格式">
|
|
83
|
+
<template #default="scope">
|
|
84
|
+
<el-select
|
|
85
|
+
v-model="scope.row.date"
|
|
86
|
+
clearable
|
|
87
|
+
size="default"
|
|
88
|
+
>
|
|
89
|
+
<el-option label="年份" value="year"/>
|
|
90
|
+
<el-option label="季度" value="quarter"/>
|
|
91
|
+
<el-option label="月份" value="month"/>
|
|
92
|
+
<el-option label="日" value="day"/>
|
|
93
|
+
</el-select>
|
|
94
|
+
</template>
|
|
95
|
+
</el-table-column>
|
|
96
|
+
<el-table-column prop="address" label=")">
|
|
97
|
+
<template #default="scope">
|
|
98
|
+
<el-select
|
|
99
|
+
v-model="scope.row.rightBracket"
|
|
100
|
+
clearable
|
|
101
|
+
size="default"
|
|
102
|
+
>
|
|
103
|
+
<el-option label="" value=""/>
|
|
104
|
+
<el-option label=")" value=")"/>
|
|
105
|
+
<el-option label="))" value="))"/>
|
|
106
|
+
<el-option label=")))" value=")))"/>
|
|
107
|
+
</el-select>
|
|
108
|
+
</template>
|
|
109
|
+
</el-table-column>
|
|
110
|
+
<el-table-column prop="address" label="并且/或者">
|
|
111
|
+
<template #default="scope">
|
|
112
|
+
<el-select
|
|
113
|
+
v-model="scope.row.joinSign"
|
|
114
|
+
clearable
|
|
115
|
+
size="default"
|
|
116
|
+
>
|
|
117
|
+
<el-option
|
|
118
|
+
label="或者"
|
|
119
|
+
value="or"
|
|
120
|
+
/>
|
|
121
|
+
<el-option
|
|
122
|
+
label="并且"
|
|
123
|
+
value="and"
|
|
124
|
+
/>
|
|
125
|
+
<el-option label="并且" value="and"/>
|
|
126
|
+
</el-select>
|
|
127
|
+
</template>
|
|
128
|
+
</el-table-column>
|
|
129
|
+
<el-table-column prop="address" label="变量为空时">
|
|
130
|
+
<template #default="scope">
|
|
131
|
+
<el-select
|
|
132
|
+
v-model="scope.row.joinSign"
|
|
133
|
+
clearable
|
|
134
|
+
size="default"
|
|
135
|
+
>
|
|
136
|
+
<el-option
|
|
137
|
+
label="Null"
|
|
138
|
+
value="null"
|
|
139
|
+
/>
|
|
140
|
+
<el-option
|
|
141
|
+
label="忽略(1=1)"
|
|
142
|
+
value="1=1"
|
|
143
|
+
/>
|
|
144
|
+
<el-option
|
|
145
|
+
label="不符合(1<>1)"
|
|
146
|
+
value="1<>1"
|
|
147
|
+
/>
|
|
148
|
+
<el-option label="并且" value="and"/>
|
|
149
|
+
</el-select>
|
|
150
|
+
</template>
|
|
151
|
+
</el-table-column>
|
|
152
|
+
</el-table>
|
|
153
|
+
<template #footer>
|
|
154
|
+
<div class="dialog-footer">
|
|
155
|
+
<el-button @click="$emit('close')">取消</el-button>
|
|
156
|
+
<el-button type="primary" @click="$emit('close')">确定</el-button>
|
|
157
|
+
</div>
|
|
158
|
+
</template>
|
|
159
|
+
</el-dialog>
|
|
160
|
+
</template>
|
|
161
|
+
|
|
162
|
+
<script setup lang="ts">
|
|
163
|
+
import {CirclePlus,Delete} from '@element-plus/icons-vue'
|
|
164
|
+
import {ref} from "vue";
|
|
165
|
+
const props = defineProps({
|
|
166
|
+
list:{
|
|
167
|
+
type:Array,
|
|
168
|
+
default:() =>{[]}
|
|
169
|
+
},
|
|
170
|
+
fieldNameList:{
|
|
171
|
+
type:Array,
|
|
172
|
+
default:() =>{[]}
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
const $emit = defineEmits(['remove'])
|
|
176
|
+
const currentRow = ref({})
|
|
177
|
+
|
|
178
|
+
function remove(){
|
|
179
|
+
$emit('remove',currentRow.value)
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function handleCurrentChange(val){
|
|
183
|
+
currentRow.value = val
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function add(){
|
|
187
|
+
props.list.push({
|
|
188
|
+
leftBracket:'',
|
|
189
|
+
propName:'',
|
|
190
|
+
operator:'',
|
|
191
|
+
propValueType:'',
|
|
192
|
+
rightBracket:'',
|
|
193
|
+
joinSign:''
|
|
194
|
+
})
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
function confirm(){
|
|
198
|
+
|
|
199
|
+
}
|
|
200
|
+
</script>
|
|
201
|
+
|
|
202
|
+
<style>
|
|
203
|
+
.el-select__selection{
|
|
204
|
+
display: flex;
|
|
205
|
+
}
|
|
206
|
+
</style>
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
model-value
|
|
4
|
+
title="可执行条件"
|
|
5
|
+
append-to-body
|
|
6
|
+
@before-close="$emit('close')"
|
|
7
|
+
>
|
|
8
|
+
<el-row style="padding-bottom: 8px">
|
|
9
|
+
<el-button
|
|
10
|
+
:icon="CirclePlus"
|
|
11
|
+
plain
|
|
12
|
+
type="primary"
|
|
13
|
+
@click="add"
|
|
14
|
+
>
|
|
15
|
+
添加
|
|
16
|
+
</el-button>
|
|
17
|
+
<el-button
|
|
18
|
+
:icon="Delete"
|
|
19
|
+
plain
|
|
20
|
+
type="primary"
|
|
21
|
+
@click="remove"
|
|
22
|
+
>
|
|
23
|
+
删除
|
|
24
|
+
</el-button>
|
|
25
|
+
</el-row>
|
|
26
|
+
<el-table highlight-current-row @current-change="handleCurrentChange" :data="list" style="width: 100%">
|
|
27
|
+
<el-table-column prop="date" label="组合条件" align="center">
|
|
28
|
+
<template #default="scope">
|
|
29
|
+
<el-input size="default" @click="opencombinationDialog(scope.row)" />
|
|
30
|
+
</template>
|
|
31
|
+
</el-table-column>
|
|
32
|
+
<el-table-column prop="name" label="提示信息" align="center">
|
|
33
|
+
<template #default="scope">
|
|
34
|
+
<el-input size="default" v-model="scope.row.name" />
|
|
35
|
+
</template>
|
|
36
|
+
</el-table-column>
|
|
37
|
+
<el-table-column prop="address" label="国际化key" align="center">
|
|
38
|
+
<template #default="scope">
|
|
39
|
+
<el-input size="default" v-model="scope.row.type" />
|
|
40
|
+
</template>
|
|
41
|
+
</el-table-column>
|
|
42
|
+
</el-table>
|
|
43
|
+
<template #footer>
|
|
44
|
+
<div class="dialog-footer">
|
|
45
|
+
<el-button @click="$emit('close')">取消</el-button>
|
|
46
|
+
<el-button type="primary" @click="$emit('close')">
|
|
47
|
+
确定
|
|
48
|
+
</el-button>
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
51
|
+
<combinationDialog
|
|
52
|
+
:list="combinationList"
|
|
53
|
+
@close="closeCombination"
|
|
54
|
+
v-if="combinationVisible" />
|
|
55
|
+
</el-dialog>
|
|
56
|
+
</template>
|
|
57
|
+
|
|
58
|
+
<script setup lang="ts">
|
|
59
|
+
import {CirclePlus,Delete} from '@element-plus/icons-vue'
|
|
60
|
+
import combinationDialog from './combination.vue'
|
|
61
|
+
import {ref} from "vue";
|
|
62
|
+
|
|
63
|
+
const props = defineProps({
|
|
64
|
+
list:Array
|
|
65
|
+
});
|
|
66
|
+
const currentRow = ref({})
|
|
67
|
+
const combinationVisible = ref(false)
|
|
68
|
+
const combinationList = ref({})
|
|
69
|
+
|
|
70
|
+
function closeCombination(){
|
|
71
|
+
combinationVisible.value = false
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function opencombinationDialog(row:object){
|
|
75
|
+
combinationList.value = row.combination
|
|
76
|
+
combinationVisible.value = true
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function remove(){
|
|
80
|
+
props.list = props.list.filter(item => item !== currentRow.value)
|
|
81
|
+
}
|
|
82
|
+
function handleCurrentChange(val){
|
|
83
|
+
currentRow.value = val
|
|
84
|
+
}
|
|
85
|
+
function add(){
|
|
86
|
+
props.list.push({
|
|
87
|
+
leftBracket:'',
|
|
88
|
+
propName:'',
|
|
89
|
+
operator:'',
|
|
90
|
+
propValueType:'',
|
|
91
|
+
rightBracket:'',
|
|
92
|
+
joinSign:''
|
|
93
|
+
})
|
|
94
|
+
}
|
|
95
|
+
</script>
|
|
96
|
+
|
|
97
|
+
<style scoped>
|
|
98
|
+
|
|
99
|
+
</style>
|