super-page-runtime 1.0.17 → 1.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/es/assets/chart-themes/theme1.d.ts +4 -0
- package/dist/es/assets/chart-themes/theme1.js +4 -0
- package/dist/es/assets/chart-themes/theme2.d.ts +4 -0
- package/dist/es/assets/chart-themes/theme2.js +4 -0
- package/dist/es/assets/chart-themes/theme3.d.ts +4 -0
- package/dist/es/assets/chart-themes/theme3.js +4 -0
- package/dist/es/assets/file.png.js +4 -0
- package/dist/es/assets/folder.png.js +4 -0
- package/dist/es/components/runtime/index.d.ts +5 -0
- package/dist/es/components/runtime/utils/api/api-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/api/api-util.js +4 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +159 -0
- package/dist/es/components/runtime/utils/assemblys-config.js +20 -0
- package/dist/es/components/runtime/utils/barcode-util.d.ts +8 -0
- package/dist/es/components/runtime/utils/barcode-util.js +12 -0
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +140 -0
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +37 -0
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +81 -0
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +55 -0
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +46 -0
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +113 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +274 -0
- package/dist/es/components/runtime/utils/common-util.d.ts +33 -0
- package/dist/es/components/runtime/utils/common-util.js +120 -0
- package/dist/es/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/es/components/runtime/utils/eventBus.js +5 -0
- package/{lib/src → dist/es/components/runtime}/utils/events/event-util.d.ts +45 -1
- package/dist/es/components/runtime/utils/events/event-util.js +403 -0
- package/dist/es/components/runtime/utils/events/print-label.d.ts +5 -0
- package/dist/es/components/runtime/utils/events/print-label.js +100 -0
- package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.d.ts +29 -3
- package/dist/es/components/runtime/utils/events/standard-event.js +971 -0
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +25 -0
- package/dist/es/components/runtime/utils/events/validator-util.js +309 -0
- package/dist/es/components/runtime/utils/form/date-shortcuts.d.ts +7 -0
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +36 -0
- package/dist/es/components/runtime/utils/form/scan-util.js +93 -0
- package/{lib/src → dist/es/components/runtime}/utils/global-refs.d.ts +6 -0
- package/dist/es/components/runtime/utils/global-refs.js +57 -0
- package/dist/es/components/runtime/utils/i18n-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/i18n-util.js +14 -0
- package/{lib/src → dist/es/components/runtime}/utils/interfaces/page-design-types.d.ts +32 -6
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +4 -0
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +174 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +386 -0
- package/{lib/src → dist/es/components/runtime}/utils/page-init-util.d.ts +12 -2
- package/dist/es/components/runtime/utils/page-init-util.js +203 -0
- package/dist/es/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/es/components/runtime/utils/page-permission-util.js +30 -0
- package/dist/es/components/runtime/utils/page-store.d.ts +46 -0
- package/dist/es/components/runtime/utils/page-store.js +26 -0
- package/dist/es/components/runtime/utils/store-util.js +13 -0
- package/dist/es/components/runtime/utils/store.js +4 -0
- package/dist/es/components/runtime/utils/table-utils.d.ts +34 -0
- package/dist/es/components/runtime/utils/table-utils.js +80 -0
- package/dist/es/components/runtime/utils/tree-utils.js +73 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +27 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +21 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +41 -0
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +6 -0
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +21 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +53 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +14 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +13 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +60 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +63 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +46 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +121 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +419 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +6 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +10 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +45 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +15 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +255 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +28 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +36 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +4 -0
- package/{lib → dist/es}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +5 -5
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +24 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +31 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.js +4 -0
- package/{lib → dist/es}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +5 -5
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +19 -0
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +29 -0
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +21 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +18 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +29 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +94 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +81 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +25 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +20 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +14 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +96 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +35 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +69 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +378 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +300 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +82 -0
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +134 -0
- package/{lib → dist/es}/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +5 -0
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +50 -0
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -0
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +69 -0
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +90 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +55 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +24 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +75 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +28 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +82 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +37 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +32 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +16 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +73 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +102 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +97 -0
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +16 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +36 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +44 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +28 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +83 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +129 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +20 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +23 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +24 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +18 -0
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/es/components/runtime/views/home-chart.vue.js +47 -0
- package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
- package/{lib/components/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.d.ts +7 -3
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +26 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue3.js +5 -0
- package/{lib → dist/es}/components/runtime/views/super-page.vue.d.ts +43 -10
- package/dist/es/components/runtime/views/super-page.vue.js +7 -0
- package/dist/es/components/runtime/views/super-page.vue2.js +262 -0
- package/dist/es/i18n/langs/cn.js +4 -0
- package/dist/es/i18n/langs/en.js +4 -0
- package/dist/es/index.d.ts +16 -0
- package/dist/es/index.js +30 -0
- package/dist/es/style.css +633 -0
- package/package.json +74 -71
- package/lib/_virtual/_plugin-vue_export-helper.js +0 -9
- package/lib/components/index.d.ts +0 -5
- package/lib/components/runtime/index.d.ts +0 -3
- package/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/lib/components/super-page-dialog/index.d.ts +0 -3
- package/lib/components/wf-editor/index.d.ts +0 -3
- package/lib/components/wf-editor/wf-editor.vue.d.ts +0 -2
- package/lib/index.js +0 -8
- package/lib/runtime/index.js +0 -3
- package/lib/runtime/utils/assemblys-config.js +0 -258
- package/lib/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
- package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
- package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
- package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -53
- package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -42
- package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -50
- package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -50
- package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -51
- package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -141
- package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
- package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
- package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- package/lib/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
- package/lib/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
- package/lib/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
- package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -73
- package/lib/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -78
- package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -42
- package/lib/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -43
- package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -29
- package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -68
- package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -74
- package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -640
- package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
- package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -452
- package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
- package/lib/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -82
- package/lib/runtime/views/assemblys/error-render.vue.js +0 -22
- package/lib/runtime/views/assemblys/error-render.vue2.js +0 -3
- package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
- package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
- package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -59
- package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
- package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
- package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
- package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
- package/lib/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -133
- package/lib/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
- package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
- package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
- package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -174
- package/lib/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
- package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
- package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
- package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
- package/lib/runtime/views/assemblys/object-render.vue.js +0 -142
- package/lib/runtime/views/assemblys/object-render.vue2.js +0 -3
- package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
- package/lib/runtime/views/super-page.vue.js +0 -479
- package/lib/runtime/views/super-page.vue2.js +0 -3
- package/lib/src/assets/chart-themes/theme1.js +0 -7
- package/lib/src/assets/chart-themes/theme2.js +0 -7
- package/lib/src/assets/chart-themes/theme3.js +0 -7
- package/lib/src/utils/api/api-util.d.ts +0 -11
- package/lib/src/utils/api/api-util.js +0 -128
- package/lib/src/utils/charts/chart-util.js +0 -15
- package/lib/src/utils/common-util.d.ts +0 -11
- package/lib/src/utils/common-util.js +0 -81
- package/lib/src/utils/events/event-util.js +0 -525
- package/lib/src/utils/events/standard-event.js +0 -1623
- package/lib/src/utils/events/validator-util.d.ts +0 -4
- package/lib/src/utils/events/validator-util.js +0 -389
- package/lib/src/utils/global-refs.js +0 -65
- package/lib/src/utils/interfaces/page-design-types.js +0 -9
- package/lib/src/utils/page-helper-util.d.ts +0 -87
- package/lib/src/utils/page-helper-util.js +0 -503
- package/lib/src/utils/page-init-util.js +0 -200
- package/lib/src/utils/store-util.js +0 -17
- package/lib/src/utils/store.js +0 -3
- package/lib/src/utils/table-utils.js +0 -23
- package/lib/super-page-dialog/index.js +0 -3
- package/lib/super-page-dialog/super-page-dialog.vue.js +0 -73
- package/lib/super-page-dialog/super-page-dialog.vue2.js +0 -3
- package/lib/wf-editor/index.js +0 -3
- package/lib/wf-editor/wf-editor.css +0 -4
- package/lib/wf-editor/wf-editor.vue.js +0 -15
- package/src/assets/base.css +0 -86
- package/src/assets/chart-themes/theme1.ts +0 -6
- package/src/assets/chart-themes/theme2.ts +0 -6
- package/src/assets/chart-themes/theme3.ts +0 -6
- package/src/assets/images/button/button-group.png +0 -0
- package/src/assets/images/button/button.png +0 -0
- package/src/assets/images/chart/chart-column.png +0 -0
- package/src/assets/images/chart/chart-gauge.png +0 -0
- package/src/assets/images/chart/chart-pie.png +0 -0
- package/src/assets/images/chart/chart-radar.png +0 -0
- package/src/assets/images/chart/chart-scatter.png +0 -0
- package/src/assets/images/container/container-card.png +0 -0
- package/src/assets/images/container/container-collapse.png +0 -0
- package/src/assets/images/container/container-container.png +0 -0
- package/src/assets/images/container/container-flex.png +0 -0
- package/src/assets/images/container/container-form.png +0 -0
- package/src/assets/images/container/container-iframe.png +0 -0
- package/src/assets/images/container/container-normal.png +0 -0
- package/src/assets/images/container/container-tabs.png +0 -0
- package/src/assets/images/container/container-tools.png +0 -0
- package/src/assets/images/data/data-process.png +0 -0
- package/src/assets/images/data/data-step.png +0 -0
- package/src/assets/images/data/data-table-column.png +0 -0
- package/src/assets/images/data/data-table.png +0 -0
- package/src/assets/images/data/data-timeline.png +0 -0
- package/src/assets/images/data/data-tree.png +0 -0
- package/src/assets/images/form/form-cascader.png +0 -0
- package/src/assets/images/form/form-check.png +0 -0
- package/src/assets/images/form/form-color.png +0 -0
- package/src/assets/images/form/form-count.png +0 -0
- package/src/assets/images/form/form-custom.png +0 -0
- package/src/assets/images/form/form-date.png +0 -0
- package/src/assets/images/form/form-dept.png +0 -0
- package/src/assets/images/form/form-divider.png +0 -0
- package/src/assets/images/form/form-file.png +0 -0
- package/src/assets/images/form/form-image-upload.png +0 -0
- package/src/assets/images/form/form-img.png +0 -0
- package/src/assets/images/form/form-input.png +0 -0
- package/src/assets/images/form/form-label.png +0 -0
- package/src/assets/images/form/form-link.png +0 -0
- package/src/assets/images/form/form-radio.png +0 -0
- package/src/assets/images/form/form-scan.png +0 -0
- package/src/assets/images/form/form-score.png +0 -0
- package/src/assets/images/form/form-select.png +0 -0
- package/src/assets/images/form/form-slider.png +0 -0
- package/src/assets/images/form/form-space.png +0 -0
- package/src/assets/images/form/form-switch.png +0 -0
- package/src/assets/images/form/form-text.png +0 -0
- package/src/assets/images/form/form-textarea.png +0 -0
- package/src/assets/images/form/form-transfer.png +0 -0
- package/src/assets/images/form/form-zoom.png +0 -0
- package/src/assets/images/group-button.png +0 -0
- package/src/assets/images/group-chart.png +0 -0
- package/src/assets/images/group-container.png +0 -0
- package/src/assets/images/group-data.png +0 -0
- package/src/assets/images/group-form.png +0 -0
- package/src/assets/images/group-workflow.png +0 -0
- package/src/assets/images/workflow/workflow-button.png +0 -0
- package/src/assets/images/workflow/workflow-history-texts.png +0 -0
- package/src/assets/images/workflow/workflow-history.png +0 -0
- package/src/assets/images/workflow/workflow-imagehistory.png +0 -0
- package/src/assets/images/workflow/workflow-texthistory .png +0 -0
- package/src/assets/logo.svg +0 -1
- package/src/assets/main.css +0 -1
- package/src/i18n/langs/cn.js +0 -52
- package/src/i18n/langs/en.js +0 -52
- package/src/stores/counter.ts +0 -12
- package/src/utils/api/api-util.ts +0 -176
- package/src/utils/charts/chart-util.ts +0 -41
- package/src/utils/common-util.ts +0 -96
- package/src/utils/container-style-util.ts +0 -237
- package/src/utils/eventBus.ts +0 -14
- package/src/utils/events/event-util.ts +0 -790
- package/src/utils/events/jump-page-util.ts +0 -0
- package/src/utils/events/standard-event.ts +0 -2075
- package/src/utils/events/validator-util.ts +0 -474
- package/src/utils/global-refs.ts +0 -160
- package/src/utils/interfaces/page-design-types.ts +0 -259
- package/src/utils/page-helper-util.ts +0 -850
- package/src/utils/page-init-util.ts +0 -291
- package/src/utils/page-permission-util.ts +0 -521
- package/src/utils/store-util.ts +0 -41
- package/src/utils/store.ts +0 -3
- package/src/utils/table-utils.ts +0 -31
- /package/{lib/src → dist/es/components/runtime}/utils/store-util.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/store.d.ts +0 -0
- /package/{lib → dist/es}/favicon.ico +0 -0
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as l, createElementBlock as a, openBlock as i, createBlock as u, createCommentVNode as r, unref as s } from "vue";
|
|
2
|
+
import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as v, cellDblClick as b, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
|
|
3
|
+
import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
|
|
5
|
+
import P from "../../../../utils/eventBus.js";
|
|
6
|
+
import { popupToPage as R, getOperationButtons as I } from "../../../../utils/table-utils.js";
|
|
7
|
+
import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
|
|
8
|
+
import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
|
|
9
|
+
import { getRowStyleUtil as M, getCellStyleUtil as A, getHeaderCellStyleUtil as F } from "../../chart/table/chart-table-util.js";
|
|
10
|
+
const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: $2, emit: j }) {
|
|
11
|
+
const L = e2, B = L.pageContext;
|
|
12
|
+
let N = L.configure;
|
|
13
|
+
const E = L.configure.runtime ? L.configure.runtime : {};
|
|
14
|
+
B.isTest ? E.value = L.configure.runtime ? L.configure.runtime : {} : B.tableRuntimes && B.tableRuntimes[N.uuid] && (N = JSON.parse(B.tableRuntimes[N.uuid].configure), E.value = N.runtime ? N.runtime : {});
|
|
15
|
+
const G = O(B.code, B.version, N.uuid), H = B.entity.data, V = N.code ? N.code : G, U = k(B), z = E && E.events ? E.events : [], q = t([]), J = B.superGridItems, K = J ? J[N.uuid] : null, Q = E.style, W = E.class, X = L.pageContext.entity ? L.pageContext.entity : {};
|
|
16
|
+
let Y = D(L.configure, V), Z = _(B.backendUrl, B.isTest);
|
|
17
|
+
Z || (Z = window.$vueApp.config.globalProperties.baseURL);
|
|
18
|
+
const ee = t(false);
|
|
19
|
+
let te = t(0);
|
|
20
|
+
const ne = N.props.dataOrigin.principalLinkage, oe = t({ isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: B.code, pageVersion: B.version, pageContext: B, configureObj: N, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!N.props || !N.props.otherSettings || void 0 !== N.props.otherSettings.isBreakLine && false !== N.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
|
|
21
|
+
return A(e3, e3.cellStyle, L);
|
|
22
|
+
}, rowStyleRender: function(e3) {
|
|
23
|
+
return M(e3, null, L);
|
|
24
|
+
}, titleStyleRender: function(e3) {
|
|
25
|
+
const t2 = e3.titleStyle, n2 = L.configure.style.titleStyle;
|
|
26
|
+
return F(e3, { cellTitleStyle: t2, titleStyle: n2 }, L);
|
|
27
|
+
} }), le = j;
|
|
28
|
+
Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W), N.props && N.props.base && true === N.props.base.subPaging ? oe.value.showPageArea = true : oe.value.showPageArea = false, N.props.base.showRowForm && (oe.value.showRowForm = N.props.base.showRowForm);
|
|
29
|
+
const ae = t(null);
|
|
30
|
+
function ie() {
|
|
31
|
+
ae.value && (oe.value.subTableData = null, ae.value.reloadSubTableData(G));
|
|
32
|
+
}
|
|
33
|
+
function ue(e3) {
|
|
34
|
+
if (void 0 === e3 && (e3 = re()), oe.value.isPageInfo = false, oe.value.isFormSubTable = true, oe.value.canRrefreshSubtableData = e3, oe.value.getFormData = se, oe.value.getGridData = ce, oe.value.extraParam.subTableListViewCode = G, oe.value.extraParam.beanName = B.beanName, oe.value.extraParam.subtableSetting = N.props && N.props.otherSettings ? JSON.stringify(N.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = U, oe.value.extraParam.entityMap = B.entity.data, oe.value.extraParam.contextMap = B.entity.context, oe.value.extraParam.taskMap = B.entity.task, !(N.props && N.props.base && N.props.base.showOperation)) {
|
|
35
|
+
let e4 = oe.value.hiddenColumns;
|
|
36
|
+
e4 ? e4.push("operation") : e4 = ["operation"], oe.value.hiddenColumns = e4;
|
|
37
|
+
}
|
|
38
|
+
oe.value.showOperationButton = !(!N.props || !N.props.base) && N.props.base.showOperation, oe.value.isPdfEditor = false, oe.value.tableRecordMaxNum = N.props && N.props.otherSettings ? N.props.otherSettings.tableRecordMaxNum : null;
|
|
39
|
+
let t2 = C(B, N);
|
|
40
|
+
t2 && t2.fixHeight && (oe.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (oe.value.formSetMaxHeight = t2.maxHeight), oe.value.validateEitConditions = Ge;
|
|
41
|
+
}
|
|
42
|
+
function re() {
|
|
43
|
+
if (N.props && N.props.otherSettings) {
|
|
44
|
+
if (N.props.otherSettings.sourceQueryTableData && N.props.otherSettings.timeToInitializeSubTable && N.props.otherSettings.timeToInitializeSubTable.length > 0) {
|
|
45
|
+
let e3 = false;
|
|
46
|
+
if (-1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !H.id && !H.ID), -1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
|
|
47
|
+
const t2 = H[V];
|
|
48
|
+
(!t2 || t2.length <= 0) && (e3 = true);
|
|
49
|
+
}
|
|
50
|
+
return e3;
|
|
51
|
+
}
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function se() {
|
|
56
|
+
return B.entity.data;
|
|
57
|
+
}
|
|
58
|
+
function ce() {
|
|
59
|
+
return x(X, Y);
|
|
60
|
+
}
|
|
61
|
+
let pe, de;
|
|
62
|
+
function fe(e3) {
|
|
63
|
+
ue(e3), oe.value.subTableData = null, ve(), ee.value = false, pe = setTimeout(() => {
|
|
64
|
+
ee.value = true, te.value = te.value + 1, be();
|
|
65
|
+
}, 10);
|
|
66
|
+
}
|
|
67
|
+
function ve() {
|
|
68
|
+
!function() {
|
|
69
|
+
const e4 = B.fieldPermissionMap, t2 = B.actionPermissionMap;
|
|
70
|
+
if (e4 && null != e4) {
|
|
71
|
+
let t3 = e4.get(V);
|
|
72
|
+
if (!t3) {
|
|
73
|
+
const n3 = e4.get("all_fields");
|
|
74
|
+
n3 && (t3 = [n3]);
|
|
75
|
+
}
|
|
76
|
+
oe.value.validateRules = t3 || null;
|
|
77
|
+
}
|
|
78
|
+
if (t2 && null != t2) {
|
|
79
|
+
let e5 = t2.get(V);
|
|
80
|
+
e5 || (e5 = t2.get("all_sub_tables")), oe.value.actionPermission = e5;
|
|
81
|
+
}
|
|
82
|
+
oe.value.operations || (oe.value.operations = {});
|
|
83
|
+
const n2 = function() {
|
|
84
|
+
let e5 = [], t3 = w(L.pageContext, N.props.base.showOperationCondition);
|
|
85
|
+
if (t3 && Se(null, null, null, null, null, true, "canAdd")) {
|
|
86
|
+
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we };
|
|
87
|
+
e5.push(t4);
|
|
88
|
+
}
|
|
89
|
+
if (t3 && Te(null, null, null, null, null, true)) {
|
|
90
|
+
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe };
|
|
91
|
+
e5.push(t4);
|
|
92
|
+
}
|
|
93
|
+
return I(B, N, e5, me), e5;
|
|
94
|
+
}();
|
|
95
|
+
oe.value.operations.operation = n2, oe.value.subTableCanAdd = Se(null, null, null, null, null, true, "canAdd"), oe.value.subTableCanDelete = Se(null, null, null, null, null, true, "canDelete");
|
|
96
|
+
}(), c(oe.value, z, B, N);
|
|
97
|
+
const e3 = B.customEvents;
|
|
98
|
+
e3 && (oe.value.eventCallBack = e3), ee.value = true, be();
|
|
99
|
+
}
|
|
100
|
+
function be() {
|
|
101
|
+
B.tableUuids || (B.tableUuids = []), B.tableUuids.indexOf(N.uuid) < 0 && B.tableUuids.push(N.uuid);
|
|
102
|
+
}
|
|
103
|
+
n(() => {
|
|
104
|
+
const e3 = N.uuid, t2 = B.subTableWatchProps;
|
|
105
|
+
P.$on("_refreshSubTable_" + e3, (n2) => {
|
|
106
|
+
const o2 = n2.propName;
|
|
107
|
+
if (t2 && t2[e3] && t2[e3].length > 0) {
|
|
108
|
+
t2[e3].indexOf(o2) >= 0 && ie();
|
|
109
|
+
}
|
|
110
|
+
}), P.$on("_refreshSubTableHandle_" + e3, (e4) => {
|
|
111
|
+
ie();
|
|
112
|
+
}), P.$on("_refreshChildData_" + e3, (e4) => {
|
|
113
|
+
!function(e5) {
|
|
114
|
+
Ee(e5), de = setTimeout(() => {
|
|
115
|
+
ae.value && (ae.value.refreshChildData(G, e5, N.props && N.props.base && true === N.props.base.subPaging), oe.value.extraParam.entityMap = B.entity.data);
|
|
116
|
+
}, 10);
|
|
117
|
+
}(e4);
|
|
118
|
+
}), P.$on(G + "-pickFileDone", (e4) => {
|
|
119
|
+
ae.value.pickFileDone(e4);
|
|
120
|
+
}), P.$on(G + "-scanDone", (e4) => {
|
|
121
|
+
ae.value.scanDone(e4);
|
|
122
|
+
}), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && le("setSafeDeleteTableCode", oe.value.extraParam.tableName);
|
|
123
|
+
}), o(() => {
|
|
124
|
+
pe && clearTimeout(pe), de && clearTimeout(de);
|
|
125
|
+
const e3 = N.uuid;
|
|
126
|
+
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
|
|
127
|
+
});
|
|
128
|
+
const ge = t({});
|
|
129
|
+
function me(e3) {
|
|
130
|
+
if (!e3) return;
|
|
131
|
+
return ge.value[e3.uuid] = e3, he;
|
|
132
|
+
}
|
|
133
|
+
function he(e3, t2, n2, o2, l2, a2) {
|
|
134
|
+
const i2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: a2, id: n2.ID ? n2.ID : n2.id }, u2 = ge.value[a2.sourceButton.uuid], r2 = N;
|
|
135
|
+
u2.props.base.tableUuid = r2.uuid, S(null, B, u2, "click", i2);
|
|
136
|
+
}
|
|
137
|
+
function Se(e3, t2, n2, o2, l2, a2, i2) {
|
|
138
|
+
i2 || (i2 = "canAdd");
|
|
139
|
+
if (!w(L.pageContext, N.props.base.showOperationCondition)) return false;
|
|
140
|
+
const u2 = B.fieldPermissionMap, r2 = B.actionPermissionMap;
|
|
141
|
+
let s2 = true;
|
|
142
|
+
if (u2 && null !== u2) {
|
|
143
|
+
const e4 = u2.get("all_fields");
|
|
144
|
+
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (s2 = false);
|
|
145
|
+
}
|
|
146
|
+
if (true === s2 && V && r2 && null !== r2) {
|
|
147
|
+
let e4 = r2.get(V);
|
|
148
|
+
e4 || (e4 = r2.get("all_sub_tables")), e4 && void 0 !== e4[i2] && false === e4[i2] && (s2 = false);
|
|
149
|
+
}
|
|
150
|
+
return s2;
|
|
151
|
+
}
|
|
152
|
+
function we(e3, t2, n2, o2, l2, a2) {
|
|
153
|
+
let i2 = Se(0, 0, 0, 0, 0, 0, "canAdd");
|
|
154
|
+
return true === i2 && (i2 = w(L.pageContext, N.props.base.showAddBtnCondition, n2)), i2;
|
|
155
|
+
}
|
|
156
|
+
function Te(e3, t2, n2, o2, l2, a2) {
|
|
157
|
+
const i2 = B.fieldPermissionMap, u2 = B.actionPermissionMap;
|
|
158
|
+
let r2 = true;
|
|
159
|
+
if (i2 && null !== i2) {
|
|
160
|
+
const e4 = i2.get("all_fields");
|
|
161
|
+
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
|
|
162
|
+
}
|
|
163
|
+
if (true === r2 && V && u2 && null !== u2) {
|
|
164
|
+
let e4 = u2.get(V);
|
|
165
|
+
if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (r2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (a2) r2 = true;
|
|
166
|
+
else {
|
|
167
|
+
const t3 = function(e5) {
|
|
168
|
+
return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
|
|
169
|
+
}(n2);
|
|
170
|
+
r2 = void 0 !== t3 && e4.deleteRowIndexes.indexOf(t3) >= 0;
|
|
171
|
+
}
|
|
172
|
+
else r2 = false;
|
|
173
|
+
}
|
|
174
|
+
return r2;
|
|
175
|
+
}
|
|
176
|
+
function xe(e3, t2, n2, o2, l2, a2) {
|
|
177
|
+
let i2 = Te(0, 0, n2, 0, 0, a2);
|
|
178
|
+
return true === i2 && (i2 = w(L.pageContext, N.props.base.showDeleteBtnCondition, n2)), i2;
|
|
179
|
+
}
|
|
180
|
+
function Ce(e3, t2, n2, o2, l2) {
|
|
181
|
+
ae.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 });
|
|
182
|
+
}
|
|
183
|
+
function De(e3, t2, n2, o2, l2) {
|
|
184
|
+
ae.value.deleteRow(l2, G, false);
|
|
185
|
+
}
|
|
186
|
+
function ye(e3) {
|
|
187
|
+
T(X, Y, e3);
|
|
188
|
+
}
|
|
189
|
+
function Pe(e3) {
|
|
190
|
+
B.subTablePageInfo || (B.subTablePageInfo = {}), B.subTablePageInfo[V] || (B.subTablePageInfo[V] = {}), B.subTablePageInfo[V].pageSize = e3;
|
|
191
|
+
}
|
|
192
|
+
function Re(e3) {
|
|
193
|
+
const t2 = e3.key, n2 = e3.value;
|
|
194
|
+
B.selectOptions || (B.selectOptions = {}), B.selectOptions[t2] = n2;
|
|
195
|
+
}
|
|
196
|
+
function Ie(e3) {
|
|
197
|
+
const t2 = B.code + "_";
|
|
198
|
+
P.$emit(t2 + "prohibit-edit", e3);
|
|
199
|
+
}
|
|
200
|
+
function Oe(e3) {
|
|
201
|
+
const t2 = B.entity.data;
|
|
202
|
+
if (e3) for (const n2 in e3) t2[n2] = e3[n2];
|
|
203
|
+
}
|
|
204
|
+
function _e(e3, t2) {
|
|
205
|
+
if (void 0 !== t2) {
|
|
206
|
+
q.value = e3;
|
|
207
|
+
p(B, N, { selection: e3, row: t2 });
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
function ke(e3) {
|
|
211
|
+
q.value = e3;
|
|
212
|
+
d(B, N, { selection: e3 });
|
|
213
|
+
}
|
|
214
|
+
function Me(e3) {
|
|
215
|
+
f(B, N, { newSelection: e3 });
|
|
216
|
+
}
|
|
217
|
+
function Ae(e3, t2, n2, o2) {
|
|
218
|
+
v(B, N, { row: e3, column: t2, cell: n2, event: o2 });
|
|
219
|
+
}
|
|
220
|
+
function Fe(e3, t2, n2, o2) {
|
|
221
|
+
b(B, N, { row: e3, column: t2, cell: n2, event: o2 });
|
|
222
|
+
}
|
|
223
|
+
function $e(e3, t2, n2) {
|
|
224
|
+
g(B, N, { row: e3, column: t2, event: n2 });
|
|
225
|
+
}
|
|
226
|
+
function je(e3, t2, n2) {
|
|
227
|
+
m(B, N, { row: e3, column: t2, event: n2 });
|
|
228
|
+
}
|
|
229
|
+
function Le(e3, t2) {
|
|
230
|
+
h(B, N, { column: e3, event: t2 });
|
|
231
|
+
}
|
|
232
|
+
function Be(e3) {
|
|
233
|
+
B.entity.data = e3;
|
|
234
|
+
}
|
|
235
|
+
function Ne() {
|
|
236
|
+
return x(X, Y);
|
|
237
|
+
}
|
|
238
|
+
function Ee(e3) {
|
|
239
|
+
return T(X, Y, e3);
|
|
240
|
+
}
|
|
241
|
+
function Ge({ row: e3, editConditions: t2 }) {
|
|
242
|
+
let n2 = true;
|
|
243
|
+
return t2 && t2.length > 0 && (n2 = w(L.pageContext, t2, e3)), n2;
|
|
244
|
+
}
|
|
245
|
+
return function() {
|
|
246
|
+
const e3 = re();
|
|
247
|
+
e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Ne(), ve());
|
|
248
|
+
}(), $2({ createRow: function() {
|
|
249
|
+
return ae.value.createRow(G);
|
|
250
|
+
}, getSelections: function() {
|
|
251
|
+
return q.value;
|
|
252
|
+
}, getSelectionIds: function() {
|
|
253
|
+
const e3 = [];
|
|
254
|
+
return q.value && q.value.forEach((t2) => {
|
|
255
|
+
e3.push(t2.id ? t2.id : t2.ID ? t2.ID : null);
|
|
256
|
+
}), e3;
|
|
257
|
+
}, clearSelections: function() {
|
|
258
|
+
q.value = [];
|
|
259
|
+
}, getTableConfigure: function() {
|
|
260
|
+
return N;
|
|
261
|
+
}, validatorSunTableListData: function() {
|
|
262
|
+
return ae.value.validatorSunTableListData();
|
|
263
|
+
}, getValue: Ne, setValue: Ee, getTableSelectOptions: function() {
|
|
264
|
+
if (ae.value) return ae.value.getTableSelectOptions(G);
|
|
265
|
+
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
266
|
+
ae.value && ae.value.dynamicControlTableEdit(e3, t2, n2);
|
|
267
|
+
}, doLayout: function(e3) {
|
|
268
|
+
ae.value && ae.value.doLayout(e3);
|
|
269
|
+
}, changeOperationAddState: function(e3) {
|
|
270
|
+
ae.value && ae.value.changeOperationAddState(e3);
|
|
271
|
+
}, scrollTo: function(e3, t2) {
|
|
272
|
+
ae.value && ae.value.scrollTo(e3, t2);
|
|
273
|
+
}, setScrollTop: function(e3) {
|
|
274
|
+
ae.value && ae.value.setScrollTop(e3);
|
|
275
|
+
}, setScrollLeft: function(e3) {
|
|
276
|
+
ae.value && ae.value.setScrollLeft(e3);
|
|
277
|
+
}, getSuperGridRef: function() {
|
|
278
|
+
return ae.value;
|
|
279
|
+
}, getSuperGridTableRef: function() {
|
|
280
|
+
return ae.value.getSuperGridTableRef();
|
|
281
|
+
}, setCurrentRowIndex: function(e3) {
|
|
282
|
+
var _a;
|
|
283
|
+
(_a = ae.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
|
|
284
|
+
}, setScrollTopByRowIndex: function(e3) {
|
|
285
|
+
var _a;
|
|
286
|
+
(_a = ae.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
|
|
287
|
+
}, getTableData: function() {
|
|
288
|
+
var _a;
|
|
289
|
+
return (_a = ae.value) == null ? void 0 : _a.getTableData();
|
|
290
|
+
}, addRequiredClass: function(e3, t2, n2) {
|
|
291
|
+
var _a;
|
|
292
|
+
(_a = ae.value) == null ? void 0 : _a.addRequiredClass(e3, G, t2, n2);
|
|
293
|
+
} }), (e3, t2) => {
|
|
294
|
+
const n2 = l("super-grid");
|
|
295
|
+
return i(), a("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Ae, onCellDblclick: Fe, onRowClick: $e, onRowDblclick: je, onHeaderClick: Le, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: Be }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
|
|
296
|
+
};
|
|
297
|
+
} });
|
|
298
|
+
export {
|
|
299
|
+
$ as default
|
|
300
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as a, createBlock as o, createCommentVNode as l, unref as r } from "vue";
|
|
2
|
+
import i from "./sub-table-runtime.vue.js";
|
|
3
|
+
import c from "./main-table-runtime.vue.js";
|
|
4
|
+
const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: f2 }) {
|
|
5
|
+
const s = e2, g = s.pageContext.pageType, d = t(null), v = s.configure.uuid, S = s.pageContext.superGridItems, p = S ? S[v] : null;
|
|
6
|
+
d.value = p ? p.configure ? JSON.parse(p.configure) : null : s.configure;
|
|
7
|
+
const T = s.configure.runtime ? s.configure.runtime : {};
|
|
8
|
+
T.style, T.class;
|
|
9
|
+
const C = t(true), b = t(null);
|
|
10
|
+
let m = null;
|
|
11
|
+
function E(e3) {
|
|
12
|
+
s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
|
|
13
|
+
}
|
|
14
|
+
return n(() => {
|
|
15
|
+
m && clearTimeout(m);
|
|
16
|
+
}), f2({ refresh: function(e3, t2, n2, u2) {
|
|
17
|
+
if (g && "list" === g) return b.value.refresh(e3, t2, n2, u2);
|
|
18
|
+
}, createRow: function() {
|
|
19
|
+
return b.value.createRow();
|
|
20
|
+
}, clearSelections: function() {
|
|
21
|
+
return b.value.clearSelections();
|
|
22
|
+
}, getSelections: function() {
|
|
23
|
+
return b.value.getSelections();
|
|
24
|
+
}, getSelectionIds: function() {
|
|
25
|
+
return b.value.getSelectionIds();
|
|
26
|
+
}, getTableConfigure: function() {
|
|
27
|
+
return b.value.getTableConfigure();
|
|
28
|
+
}, isDeleteChange: function(e3) {
|
|
29
|
+
g && "list" === g && b.value.isDeleteChange(e3);
|
|
30
|
+
}, validatorSunTableListData: function() {
|
|
31
|
+
if (g && "form" === g) return b.value.validatorSunTableListData();
|
|
32
|
+
}, showMobileSearch: function() {
|
|
33
|
+
b.value.showMobileSearch();
|
|
34
|
+
}, getTableSelectOptions: function() {
|
|
35
|
+
if (b.value) return b.value.getTableSelectOptions();
|
|
36
|
+
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
37
|
+
b.value && b.value.dynamicControlTableEdit(e3, t2, n2);
|
|
38
|
+
}, getTableUuid: function() {
|
|
39
|
+
return s.configure.uuid;
|
|
40
|
+
}, doLayout: function(e3) {
|
|
41
|
+
b.value && b.value.doLayout(e3);
|
|
42
|
+
}, changeOperationAddState: function(e3) {
|
|
43
|
+
b.value && b.value.changeOperationAddState(e3);
|
|
44
|
+
}, scrollTo: function(e3, t2) {
|
|
45
|
+
var _a;
|
|
46
|
+
(_a = b.value) == null ? void 0 : _a.scrollTo(e3, t2);
|
|
47
|
+
}, setScrollTop: function(e3) {
|
|
48
|
+
var _a;
|
|
49
|
+
(_a = b.value) == null ? void 0 : _a.setScrollTop(e3);
|
|
50
|
+
}, setScrollLeft: function(e3) {
|
|
51
|
+
var _a;
|
|
52
|
+
(_a = b.value) == null ? void 0 : _a.setScrollLeft(e3);
|
|
53
|
+
}, getSuperGridRef: function() {
|
|
54
|
+
var _a;
|
|
55
|
+
return (_a = b.value) == null ? void 0 : _a.getSuperGridRef();
|
|
56
|
+
}, getSuperGridTableRef: function() {
|
|
57
|
+
var _a;
|
|
58
|
+
return (_a = b.value) == null ? void 0 : _a.getSuperGridTableRef();
|
|
59
|
+
}, setCurrentRowIndex: function(e3) {
|
|
60
|
+
var _a;
|
|
61
|
+
(_a = b.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
|
|
62
|
+
}, setScrollTopByRowIndex: function(e3) {
|
|
63
|
+
var _a;
|
|
64
|
+
(_a = b.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
|
|
65
|
+
}, reloadSubTable: function() {
|
|
66
|
+
C.value = false, m = setTimeout(() => {
|
|
67
|
+
C.value = true;
|
|
68
|
+
}, 10);
|
|
69
|
+
}, getTableData: function() {
|
|
70
|
+
var _a;
|
|
71
|
+
return (_a = b.value) == null ? void 0 : _a.getTableData();
|
|
72
|
+
}, addRequiredClass: function(e3, t2, n2) {
|
|
73
|
+
var _a;
|
|
74
|
+
(_a = b.value) == null ? void 0 : _a.addRequiredClass(e3, t2, n2);
|
|
75
|
+
}, handleSearch: function(e3, t2) {
|
|
76
|
+
var _a;
|
|
77
|
+
(_a = b.value) == null ? void 0 : _a.handleSearch(e3, t2);
|
|
78
|
+
} }), (t2, n2) => (a(), u("div", null, [r(g) && "form" === r(g) && C.value ? (a(), o(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (a(), o(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
|
|
79
|
+
} });
|
|
80
|
+
export {
|
|
81
|
+
f as default
|
|
82
|
+
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, computed as a, onMounted as n, nextTick as l, watch as o, resolveComponent as d, createElementBlock as u, openBlock as i, normalizeClass as s, unref as r, createBlock as c, createCommentVNode as p, withDirectives as v, normalizeStyle as f, withCtx as g, createVNode as m, createElementVNode as h, createTextVNode as y, Fragment as C, toDisplayString as x, renderList as k, vShow as N } from "vue";
|
|
2
|
+
import T from "../../../../../../assets/folder.png.js";
|
|
3
|
+
import I from "../../../../../../assets/file.png.js";
|
|
4
|
+
import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
|
|
5
|
+
import { setVariableValue as b, getVariableValue as L } from "../../../../utils/page-helper-util.js";
|
|
6
|
+
import { getMenuTreeData as M, createTreeNode as w, updateTreeNode as E, deleteNode as K } from "../../../../utils/tree-utils.js";
|
|
7
|
+
import { handleAfterInitEvent as _, handleFormEvent as j } from "../../../../utils/events/event-util.js";
|
|
8
|
+
import { ElMessageBox as S, ElMessage as z } from "element-plus";
|
|
9
|
+
import { checkPermission as B } from "agilebuilder-ui/src/utils/permission";
|
|
10
|
+
const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, class: "item-row" }, D = { class: "item-side" }, H = { key: 1, class: "item-side", style: { display: "flex", "align-items": "center" } }, O = ["onClick"], U = e({ __name: "tree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: U2 }) {
|
|
11
|
+
var _a, _b, _c;
|
|
12
|
+
const $ = t(), A = t(false), X = e2, Y = X.pageContext.entity ? X.pageContext.entity : {}, q = t([]);
|
|
13
|
+
((_a = X.configure.props) == null ? void 0 : _a.contextMenus) && (X.pageContext && X.configure && !X.pageContext.isTest ? X.configure.props.contextMenus.forEach((e3) => {
|
|
14
|
+
if (e3.functionCodes && e3.functionCodes.length > 0) for (let t2 = 0; t2 < e3.functionCodes.length; t2++) {
|
|
15
|
+
const a2 = e3.functionCodes[t2];
|
|
16
|
+
if (B(a2, X.pageContext.systemCode)) return void q.value.push(e3);
|
|
17
|
+
}
|
|
18
|
+
else q.value.push(e3);
|
|
19
|
+
}) : q.value = X.configure.props.contextMenus);
|
|
20
|
+
let F = V(X.pageContext, X.configure);
|
|
21
|
+
const G = a({ get: () => L(Y, F), set(e3) {
|
|
22
|
+
b(Y, F, e3);
|
|
23
|
+
} }), J = t(!!((_c = (_b = X.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Q = X.configure.runtime ? X.configure.runtime : {}, Z = Q.style, ee = Q.class, te = t(), ae = t(Q.props ? Q.props : {}), ne = t({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), le = t(false), oe = t([]), de = t(null), ue = t(""), ie = t(false), se = t(""), re = t(""), ce = t("");
|
|
24
|
+
n(() => {
|
|
25
|
+
l(() => {
|
|
26
|
+
const e3 = G.value;
|
|
27
|
+
_(e3, X.pageContext, X.configure, { componentRef: te.value, value: e3, entity: X.pageContext.entity.data, pageData: X.pageContext.entity.page });
|
|
28
|
+
});
|
|
29
|
+
}), J.value ? le.value = true : M(X.pageContext, X.configure).then((e3) => {
|
|
30
|
+
oe.value = e3, le.value = true;
|
|
31
|
+
}), o(ue, (e3) => {
|
|
32
|
+
ie.value = true, te.value.filter(e3);
|
|
33
|
+
});
|
|
34
|
+
const pe = (e3, t2) => !e3 || t2.name.includes(e3);
|
|
35
|
+
function ve(e3, t2, a2) {
|
|
36
|
+
de.value = t2, j(null, X.pageContext, X.configure, "node-click", { data: e3, node: t2, nodeTree: a2 });
|
|
37
|
+
}
|
|
38
|
+
function fe(e3, t2) {
|
|
39
|
+
let a2 = "0";
|
|
40
|
+
a2 = 0 === e3.level ? "0" : e3.data.nodeId, function(e4, t3, a3) {
|
|
41
|
+
const n2 = { parentNodeId: e4, data: t3.data, searchValue: ue, isSearch: ie.value };
|
|
42
|
+
M(X.pageContext, X.configure, e4, t3, n2).then((n3) => {
|
|
43
|
+
if (ie.value = false, a3(n3), "0" === e4) {
|
|
44
|
+
!function(e5, t4) {
|
|
45
|
+
const a4 = { parentNodeId: e5, data: t4.data, searchValue: ue, isSearch: ie.value };
|
|
46
|
+
M(X.pageContext, X.configure, e5, t4, a4).then((t5) => {
|
|
47
|
+
ie.value = false, te.value.updateKeyChildren(e5, t5), te.value.store.nodesMap[e5] && (te.value.store.nodesMap[e5].expanded = true);
|
|
48
|
+
});
|
|
49
|
+
}(n3[0].nodeId, t3);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}(a2, e3, t2);
|
|
53
|
+
}
|
|
54
|
+
const ge = t({}), me = (e3, t2, a2, n2) => {
|
|
55
|
+
if (se.value) return void z.warning("请先保存当前编辑节点!");
|
|
56
|
+
document.removeEventListener("click", he), ge.value = a2, A.value = true;
|
|
57
|
+
const { clientX: l2, clientY: o2 } = e3, d2 = $.value;
|
|
58
|
+
if (d2) {
|
|
59
|
+
const { innerWidth: e4, innerHeight: t3 } = window, { offsetWidth: a3, offsetHeight: n3 } = d2, u2 = l2 + a3 > e4 ? l2 - a3 : l2, i2 = o2 + n3 > t3 ? o2 - n3 : o2;
|
|
60
|
+
d2.style.left = `${u2}px`, d2.style.top = `${i2}px`, d2.style.display = "block";
|
|
61
|
+
}
|
|
62
|
+
document.addEventListener("click", he);
|
|
63
|
+
}, he = () => {
|
|
64
|
+
A.value = false, document.removeEventListener("click", he);
|
|
65
|
+
}, ye = (e3, t2) => {
|
|
66
|
+
if (e3.parent && e3.parent.level > 0) {
|
|
67
|
+
const a2 = e3.parent.data.children.findIndex((t3) => t3.nodeId === e3.data.nodeId);
|
|
68
|
+
e3.parent.data.children[a2] = t2, e3.data = t2;
|
|
69
|
+
} else {
|
|
70
|
+
const a2 = e3.parent.data.findIndex((t3) => t3.nodeId === e3.data.nodeId);
|
|
71
|
+
e3.parent.data[a2] = t2, e3.data = t2;
|
|
72
|
+
}
|
|
73
|
+
}, Ce = () => {
|
|
74
|
+
se.value = "", ce.value = "", re.value = "";
|
|
75
|
+
}, xe = () => ({ nodeId: "primary" + (/* @__PURE__ */ new Date()).getTime(), name: "新增节点", disabled: false, iconType: "custom", isLeaf: true });
|
|
76
|
+
function ke(e3) {
|
|
77
|
+
e3.tipMessage ? S.confirm(e3.tipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
|
|
78
|
+
K(ge.value, X.configure, X.pageContext).then(() => {
|
|
79
|
+
z.success("删除成功!"), Ne(), ge.value = null;
|
|
80
|
+
});
|
|
81
|
+
}).catch(() => {
|
|
82
|
+
ge.value = null;
|
|
83
|
+
}) : K(ge.value, X.configure, X.pageContext).then(() => {
|
|
84
|
+
z.success("删除成功!"), Ne(), ge.value = null;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
const Ne = () => {
|
|
88
|
+
const e3 = ge.value.parent;
|
|
89
|
+
te.value.remove(ge.value), e3.childNodes && 0 === e3.childNodes.length && (e3.data.isLeaf = true), e3.data.children && e3.data.children.length > 0 && (e3.data.children = e3.data.children.filter((e4) => e4.nodeId !== ge.value.data.nodeId));
|
|
90
|
+
};
|
|
91
|
+
return U2({ getSelectNode: function() {
|
|
92
|
+
return de.value;
|
|
93
|
+
}, expandNode: function(e3) {
|
|
94
|
+
e3.loaded = false, e3.expand();
|
|
95
|
+
}, loadTreeNodes: function() {
|
|
96
|
+
M(X.pageContext, X.configure).then((e3) => {
|
|
97
|
+
ie.value = false, oe.value = e3;
|
|
98
|
+
});
|
|
99
|
+
}, getNode: function(e3) {
|
|
100
|
+
te.value.getNode(e3);
|
|
101
|
+
}, getCheckedNodes: (e3, t2) => te.value.getCheckedNodes(e3, t2), setCheckedNodes: (e3) => {
|
|
102
|
+
te.value.setCheckedNodes(e3);
|
|
103
|
+
}, getCheckedKeys: (e3) => te.value.getCheckedKeysleafOnly(), setCheckedKeys: (e3, t2) => {
|
|
104
|
+
te.value.setCheckedKeys(e3, t2);
|
|
105
|
+
}, setChecked: (e3, t2, a2) => {
|
|
106
|
+
te.value.setChecked(e3, t2, a2);
|
|
107
|
+
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, t2 = true) => te.value.setCurrentKey(e3, t2), setCurrentNode: (e3, t2 = true) => te.value.setCurrentNode(e3, t2) }), (t2, a2) => {
|
|
108
|
+
var _a2;
|
|
109
|
+
const n2 = d("el-input"), l2 = d("el-button"), o2 = d("SuperIcon"), V2 = d("el-tree");
|
|
110
|
+
return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(n2, { key: 0, modelValue: ue.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => ue.value = e3), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), c(V2, { key: 1, ref_key: "menuTreeRef", ref: te, style: f(r(Z)), load: fe, data: oe.value, "node-key": "nodeId", props: ne.value, "default-expand-all": ae.value.defaultExpandAll, "expand-on-click-node": ae.value.expandOnClickNode, indent: ae.value.retractWidth ? ae.value.retractWidth : 18, accordion: ae.value.accordion, "show-checkbox": !!ae.value.showCheckbox, "highlight-current": "", lazy: J.value, "filter-node-method": pe, onNodeClick: ve, onNodeContextmenu: me }, { default: g(({ node: t3, data: d2 }) => [d2.nodeId === se.value ? (i(), u("div", P, [m(n2, { modelValue: ce.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => ce.value = e3), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(l2, { type: "primary", link: "", onClick: (e3) => ((e4) => {
|
|
111
|
+
"" !== ce.value ? (e4.data.name = ce.value, re.value && e4.data.nodeId === re.value ? w(e4, X.configure, X.pageContext).then((t4) => {
|
|
112
|
+
ye(e4, t4.currentNode), Ce(), z.success("保存成功!");
|
|
113
|
+
}) : E(e4, X.configure, X.pageContext).then((t4) => {
|
|
114
|
+
ye(e4, t4.currentNode), Ce(), z.success("保存成功!");
|
|
115
|
+
})) : z.warning("请输入节点名称");
|
|
116
|
+
})(t3) }, { default: g(() => [...a2[2] || (a2[2] = [y(" 保存 ", -1)])]), _: 1 }, 8, ["onClick"]), m(l2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (a3) => ((e3) => {
|
|
117
|
+
re.value && e3.data.nodeId === re.value && te.value.remove(e3), Ce();
|
|
118
|
+
})(t3, e2.configure, e2.pageContext) }, { default: g(() => [...a2[3] || (a2[3] = [y(" 撤销 ", -1)])]), _: 1 }, 8, ["onClick"])])])) : (i(), u("span", { key: 1, title: t3.label, class: "ellipsis" }, [d2.iconValue ? (i(), c(o2, { key: 0, iconType: d2.iconType, iconValue: d2.iconValue }, null, 8, ["iconType", "iconValue"])) : ae.value.iconValue ? (i(), c(o2, { key: 1, iconType: ae.value.iconType, iconValue: ae.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), u(C, { key: 2 }, [d2.isLeaf ? (i(), u("div", H, [a2[5] || (a2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])) : (i(), u("div", R, [h("div", D, [a2[4] || (a2[4] = h("img", { src: T, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])]))], 64))], 8, W))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), v(h("div", null, [h("ul", { ref_key: "contxtMenuRef", ref: $, class: "context-menu" }, [(i(true), u(C, null, k(q.value, (e3, t3) => (i(), u("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e4) => {
|
|
119
|
+
if (ge.value && "standard" === e4.type && e4.standardEvent) if ("edit" === e4.standardEvent) se.value = ge.value.data.nodeId, ce.value = ge.value.data.name;
|
|
120
|
+
else if ("delete" === e4.standardEvent) ge.value.childNodes && ge.value.childNodes.length > 0 && e4.deleteParentNodeTip ? (e4.deleteParentNodeTipMessage || (e4.deleteParentNodeTipMessage = "当前节点下有子节点,确认删除?"), S.confirm(e4.deleteParentNodeTipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
|
|
121
|
+
ke(e4);
|
|
122
|
+
}).catch(() => {
|
|
123
|
+
ge.value = null;
|
|
124
|
+
})) : ke(e4);
|
|
125
|
+
else {
|
|
126
|
+
const t5 = xe();
|
|
127
|
+
se.value = t5.nodeId, re.value = t5.nodeId, ce.value = t5.name, "addSiblingNode" === e4.standardEvent ? (t5.isLeaf = ge.value.data.isLeaf, ge.value.parent && ge.value.parent.level > 0 ? te.value.append(t5, ge.value.parent) : oe.value.push(t5)) : "addChildNode" === e4.standardEvent && (t5.isLeaf = true, ge.value.data.isLeaf = false, te.value.append(t5, ge.value), te.value.setCurrentKey(t5.nodeId, true));
|
|
128
|
+
}
|
|
129
|
+
})(e3) }, [h("span", null, x(e3.name), 1)], 8, O))), 128))], 512)], 512), [[N, A.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
|
|
130
|
+
};
|
|
131
|
+
} });
|
|
132
|
+
export {
|
|
133
|
+
U as default
|
|
134
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
configure: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
4
|
default: {
|
|
@@ -7,7 +7,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
7
7
|
};
|
|
8
8
|
selectWidget: ObjectConstructor;
|
|
9
9
|
indexObj: ObjectConstructor;
|
|
10
|
-
}
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
11
|
configure: {
|
|
12
12
|
type: ObjectConstructor;
|
|
13
13
|
default: {
|
|
@@ -16,7 +16,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
16
16
|
};
|
|
17
17
|
selectWidget: ObjectConstructor;
|
|
18
18
|
indexObj: ObjectConstructor;
|
|
19
|
-
}
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
20
|
configure: Record<string, any>;
|
|
21
|
-
}, {}>;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
22
|
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { defineComponent as e, createElementBlock as t, openBlock as r, toDisplayString as n } from "vue";
|
|
2
|
+
const o = { style: { "text-align": "center", color: "red" } }, c = e({ __name: "error-render", props: { configure: { type: Object, default: { name: "未知" } }, selectWidget: Object, indexObj: Object }, setup: (e2) => (c2, a) => (r(), t("div", o, " 不能识别的组件类型【" + n(e2.configure.name) + "】 ", 1)) });
|
|
3
|
+
export {
|
|
4
|
+
c as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, resolveComponent as a, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as c, createVNode as f, createElementBlock as g, Fragment as v, renderList as d, createCommentVNode as m, toDisplayString as h } from "vue";
|
|
2
|
+
import { setVariableValue as y, getVariableValue as x, getOptionDatasFromPage as C, monitorFieldChange as b, autoSetAfterSelect as k, queryOptionDatasources as R } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { getFormModelFields as _ } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { handleFormEvent as j, handleAfterInitEvent as S } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t as q } from "../../../../utils/i18n-util.js";
|
|
6
|
+
import { addRequiredClassUtil as I } from "../../../../utils/common-util.js";
|
|
7
|
+
const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
|
|
8
|
+
const w = e2, z = t(null), D = w.pageContext.entity ? w.pageContext.entity : {};
|
|
9
|
+
let O = _(w.pageContext, w.configure);
|
|
10
|
+
const A = l({ get() {
|
|
11
|
+
let e3 = x(D, O);
|
|
12
|
+
return e3 && "string" == typeof e3 && (e3 = e3.split(",")), e3;
|
|
13
|
+
}, set(e3) {
|
|
14
|
+
e3 && e3.length > 0 && (e3 = e3.join(",")), y(D, O, e3), null != e3 && (z.value = "");
|
|
15
|
+
} }), M = w.configure.runtime ? w.configure.runtime : {}, P = M.style, E = M.class, F = M.headerStyle, T = M.titleExceedStyle, U = t(M.props ? M.props : {}), W = t(U.value.options ? U.value.options : []), B = C(w.pageContext, w.configure);
|
|
16
|
+
B.length > 0 && (W.value = B);
|
|
17
|
+
const G = w.configure.props && w.configure.props.dataOrigin ? w.configure.props.dataOrigin : {}, H = G.optionValueSetType;
|
|
18
|
+
let J = [];
|
|
19
|
+
if (("dynamicData" == H || "dynamicData" == H || "service" == H) && G.autoSets) for (let e3 of G.autoSets) e3.source && J.push(e3);
|
|
20
|
+
w.configure && w.configure.props && w.configure.props.base && w.configure.props.base.optionProp && J.push({ source: "label", target: w.configure.props.base.optionProp }), U.value.changeMethod = function(e3) {
|
|
21
|
+
if (J.length > -1) {
|
|
22
|
+
let t2 = null;
|
|
23
|
+
W.value && null != e3 && null != e3 && (t2 = W.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value)), k(w.configure, w.pageContext, J, t2);
|
|
24
|
+
}
|
|
25
|
+
j(e3, w.pageContext, w.configure, "change");
|
|
26
|
+
};
|
|
27
|
+
const K = U.value.optionconfigInfo ? U.value.optionconfigInfo : {};
|
|
28
|
+
const L = U.value.monitorFields;
|
|
29
|
+
b(w.pageContext, L, function() {
|
|
30
|
+
R(w.pageContext, K, void 0).then((e3) => {
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
const N = t(null), Q = t(null), X = t(null);
|
|
34
|
+
return o(() => {
|
|
35
|
+
n(() => {
|
|
36
|
+
const e3 = A.value;
|
|
37
|
+
S(e3, w.pageContext, w.configure, { formItemRef: N.value, componentRef: Q.value, titleRef: X.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
|
|
38
|
+
});
|
|
39
|
+
}), V2({ updateOptions: function(e3) {
|
|
40
|
+
W.value = e3 || [];
|
|
41
|
+
}, addRequiredClass: function() {
|
|
42
|
+
z.value = I();
|
|
43
|
+
} }), (t2, l2) => {
|
|
44
|
+
const o2 = a("el-checkbox"), n2 = a("el-checkbox-group"), y2 = a("el-form-item");
|
|
45
|
+
return i(), u(y2, { ref_key: "formItemRef", ref: N, class: s(p(E) + (z.value ? " " + z.value : "")), required: !!U.value.required, "label-width": U.value.labelWidth, style: r(p(P)) }, { label: c(() => [U.value.tittleShow ? (i(), g("div", { key: 0, ref_key: "titleRef", ref: X, style: r({ ...p(F), ...p(T) }) }, h(p(q)(U.value.title)), 5)) : m("", true)]), default: c(() => [f(n2, { ref_key: "componentRef", ref: Q, disabled: "disabled" === U.value.state, size: U.value.size, onChange: U.value.changeMethod, modelValue: A.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => A.value = e3) }, { default: c(() => [(i(true), g(v, null, d(W.value, (t3) => (i(), u(o2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => p(j)(t3.value, e2.pageContext, e2.configure, "click", { values: A.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "required", "label-width", "style"]);
|
|
46
|
+
};
|
|
47
|
+
} });
|
|
48
|
+
export {
|
|
49
|
+
V as default
|
|
50
|
+
};
|