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