super-page-runtime 2.3.20-sit2 → 2.3.21-tmp1
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/components/runtime/utils/api/page-expose-util.js +124 -133
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +26 -25
- package/dist/es/components/runtime/utils/events/standard-event.js +568 -584
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +11 -9
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +8 -8
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +34 -34
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +35 -34
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +17 -15
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +13 -22
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +76 -75
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +76 -76
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +6 -0
- package/dist/lib/assets/chart-themes/bar-theme.js +2 -0
- package/dist/lib/assets/chart-themes/gauge-theme.js +2 -0
- package/dist/lib/assets/chart-themes/pie-theme.js +2 -0
- package/dist/lib/assets/chart-themes/radar-theme.js +2 -0
- package/dist/lib/assets/chart-themes/scatter-theme.js +2 -0
- package/dist/lib/assets/file.png.js +2 -0
- package/dist/lib/assets/folder.png.js +2 -0
- package/dist/lib/components/runtime/utils/ai-chat-util.js +13 -0
- package/dist/lib/components/runtime/utils/anchor-util.js +62 -0
- package/dist/lib/components/runtime/utils/api/api-util.js +3 -0
- package/dist/lib/components/runtime/utils/api/page-expose-util.js +169 -0
- package/dist/lib/components/runtime/utils/assemblys-config.js +16 -0
- package/dist/lib/components/runtime/utils/barcode-util.js +10 -0
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +137 -0
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +34 -0
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +78 -0
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +52 -0
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +43 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.js +244 -0
- package/dist/lib/components/runtime/utils/common-util.js +91 -0
- package/dist/lib/components/runtime/utils/eventBus.js +3 -0
- package/dist/lib/components/runtime/utils/events/event-util.js +345 -0
- package/dist/lib/components/runtime/utils/events/print-label.js +97 -0
- package/dist/lib/components/runtime/utils/events/standard-event.js +1101 -0
- package/dist/lib/components/runtime/utils/events/validator-util.js +296 -0
- package/dist/lib/components/runtime/utils/form/date-shortcuts.js +34 -0
- package/dist/lib/components/runtime/utils/form/scan-util.js +90 -0
- package/dist/lib/components/runtime/utils/global-refs.js +42 -0
- package/dist/lib/components/runtime/utils/i18n-util.js +11 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +4 -0
- package/dist/lib/components/runtime/utils/page-helper-util.js +354 -0
- package/dist/lib/components/runtime/utils/page-init-util.js +244 -0
- package/dist/lib/components/runtime/utils/page-permission-util.js +26 -0
- package/dist/lib/components/runtime/utils/page-store.js +50 -0
- package/dist/lib/components/runtime/utils/store-util.js +11 -0
- package/dist/lib/components/runtime/utils/store.js +3 -0
- package/dist/lib/components/runtime/utils/table-utils.js +68 -0
- package/dist/lib/components/runtime/utils/tree-utils.js +54 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +24 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +17 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +35 -0
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +41 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +11 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +11 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +53 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +48 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +24 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +34 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +24 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +24 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.js +402 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.js +36 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +249 -0
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.js +16 -0
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +32 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.js +32 -0
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +19 -0
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +12 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.js +21 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +13 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +30 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +15 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +21 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +15 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +27 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +79 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +20 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +15 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +12 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +88 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +43 -0
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +59 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +382 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +322 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +81 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +124 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +57 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +35 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +57 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +91 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +47 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +20 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +65 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +20 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +70 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +31 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +26 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +75 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +188 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +130 -0
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +11 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +29 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +38 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +20 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.js +73 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +132 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +23 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +23 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +34 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +17 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +20 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +19 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +14 -0
- package/dist/lib/components/runtime/views/home-chart.vue.js +38 -0
- package/dist/lib/components/runtime/views/home-chart.vue2.js +3 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +23 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue3.js +3 -0
- package/dist/lib/components/runtime/views/super-page.vue.js +5 -0
- package/dist/lib/components/runtime/views/super-page.vue2.js +264 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.js +2 -0
- package/dist/lib/i18n/langs/en.js +2 -0
- package/dist/lib/index.js +6 -0
- package/dist/lib/style.css +996 -0
- package/dist/umd/favicon.ico +0 -0
- package/dist/umd/index.full.min.js +7429 -0
- package/dist/umd/style.css +996 -0
- package/package.json +2 -2
- package/dist/es/components/runtime/utils/events/data-backfill-util.d.ts +0 -27
- package/dist/es/components/runtime/utils/events/data-backfill-util.js +0 -39
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("../../../../utils/events/event-util.js"), n = require("../../../../utils/common-util.js"), o = require("../../../../utils/events/standard-event.js"), i = require("agilebuilder-ui/src/utils/common-util"), a = require("../../../../utils/table-utils.js"), l = require("../../../../utils/eventBus.js"), r = require("../../../../utils/page-init-util.js"), u = require("../../../../utils/page-helper-util.js"), s = require("../../../../utils/global-refs.js"), c = require("../../chart/table/chart-table-util.js"), p = ["id"], d = e.defineComponent({ __name: "main-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(d2, { expose: f, emit: g }) {
|
|
3
|
+
const m = d2, v = m.pageContext;
|
|
4
|
+
let h = m.configure;
|
|
5
|
+
const b = e.ref({});
|
|
6
|
+
v.isTest ? b.value = m.configure.runtime ? m.configure.runtime : {} : v.tableRuntimes && v.tableRuntimes[h.uuid] && (h = JSON.parse(v.tableRuntimes[h.uuid].configure), b.value = h.runtime ? h.runtime : {});
|
|
7
|
+
const C = b.value.style, w = b.value.class, S = v.systemCode, y = v.backendUrl, E = h.props && h.props.dataOrigin && h.props.dataOrigin.tableName;
|
|
8
|
+
let x = n.getBaseUrl(v.backendUrl, v.isTest);
|
|
9
|
+
x || (x = window.$vueApp.config.globalProperties.baseURL);
|
|
10
|
+
const D = e.ref({}), k = [], T = e.ref({});
|
|
11
|
+
T.value = function() {
|
|
12
|
+
var _a;
|
|
13
|
+
const e2 = v.systemCode, l2 = v.code;
|
|
14
|
+
let r2 = h.props && h.props.dataOrigin && "[]" !== h.props.dataOrigin.sqlFilterCondition ? h.props.dataOrigin.sqlFilterCondition : null;
|
|
15
|
+
null == r2 && (r2 = []);
|
|
16
|
+
const u2 = (_a = h.props) == null ? void 0 : _a.dataOrigin.principalLinkage, s2 = { isSql: true, optionTableHeight: 0, rowKeyProp: u2, extraParam: { beanName: v.beanName, functionCode: l2 + ".listData", tableName: E, systemCode: e2, pageCode: v.code, pageVersion: v.version, isMobile: i.isMobileBrowser() }, initSearchForm: r2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: q, esc: G }, indexContinuous: !(!h.props || !h.props.otherSettings) && h.props.otherSettings.serialNumberContinuous, initSearch: !h.props || false !== h.props.dataOrigin.initializationQuery, resizeHeight: Z, pageCode: v.code, pageVersion: v.version, additionalParamMap: o.getAdditionalParamMap(v), showOverflowTooltip: !(!h.props || !h.props.otherSettings || void 0 !== h.props.otherSettings.isBreakLine && false !== h.props.otherSettings.isBreakLine), isEnableEnterEvent: h.props && h.props.otherSettings && h.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(h.props && h.props.otherSettings && h.props.otherSettings.isWithDataPermission) && h.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: n.isWorkflowPage(v), tableClass: w, tableStyle: C, pageContext: v, configureObj: h, backendUrl: x, cellStyleRender: ge, rowStyleRender: fe, titleStyleRender: me, validateEitConditions: Ce };
|
|
17
|
+
return function(e3) {
|
|
18
|
+
var _a2;
|
|
19
|
+
((_a2 = h.props.highOrder) == null ? void 0 : _a2.mergeFields) && h.props.highOrder.mergeFields.length > 0 && (e3.mergeFields = h.props.highOrder.mergeFields.join(","));
|
|
20
|
+
}(s2), function(e3) {
|
|
21
|
+
const t2 = [];
|
|
22
|
+
e3.operations || (e3.operations = {});
|
|
23
|
+
a.getOperationButtons(v, h, t2, $), e3.operations.operation = t2;
|
|
24
|
+
}(s2), function(e3) {
|
|
25
|
+
h.props && h.props.dataOrigin && h.props.dataOrigin.sortField && (e3.initSortInfo = [], h.props.dataOrigin.sortField.forEach((t2) => {
|
|
26
|
+
const n2 = { order: "desc" === t2.type ? "desc" : "asc" };
|
|
27
|
+
n2.prop = t2.name, e3.initSortInfo.push(n2);
|
|
28
|
+
}));
|
|
29
|
+
}(s2), function(e3) {
|
|
30
|
+
const t2 = h.props ? h.props.dataOrigin : {};
|
|
31
|
+
if (t2.treeTable) {
|
|
32
|
+
let n2;
|
|
33
|
+
const o2 = t2.rowKey;
|
|
34
|
+
if (n2 = o2 && o2.indexOf("~~") > 0 ? o2.substring(o2.indexOf("~~") + 2) : o2, e3.parentProp = n2, t2.checkStrictly && (e3.checkStrictly = t2.checkStrictly), e3.parentProp) {
|
|
35
|
+
const o3 = t2.lazy, i2 = t2.defaultExpandAll;
|
|
36
|
+
e3.lazy = null == o3 || o3, e3.defaultExpandAll = null != i2 && i2;
|
|
37
|
+
const a2 = { parentProp: n2, lazy: e3.lazy, defaultExpandAll: e3.defaultExpandAll };
|
|
38
|
+
e3.extraParam.listViewTreeSetting = JSON.stringify(a2), e3.subRowUrl = x + "/dsc/commons/list-subs";
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}(s2), function(e3) {
|
|
42
|
+
const n2 = h.runtime && h.runtime.events ? h.runtime.events : [];
|
|
43
|
+
t.setTableEvents(e3, n2, v, h);
|
|
44
|
+
const o2 = v.customEvents;
|
|
45
|
+
o2 && (e3.eventCallBack = o2);
|
|
46
|
+
}(s2), s2;
|
|
47
|
+
}();
|
|
48
|
+
const R = e.ref(), O = e.ref(), B = function() {
|
|
49
|
+
let e2 = x + "/dsc/commons/list";
|
|
50
|
+
e2 && (e2 = n.getRealRestApiPath(e2, S, y, v.isTest));
|
|
51
|
+
return e2;
|
|
52
|
+
}(), I = n.getListCode(v.code, v.version, h.uuid), V = v.code + "_" + I, P = e.ref([]), j = v.entity.page, N = e.ref({ data: [] }), U = v.superGridItems, A = U ? U[h.uuid] : null, F = e.ref(false), H = g;
|
|
53
|
+
function M() {
|
|
54
|
+
h.props.linkages && h.props.linkages.length > 0 && (h.props.linkages.forEach((e2) => {
|
|
55
|
+
const t2 = u.decomposeVariable(e2.fieldName);
|
|
56
|
+
t2 && t2.length > 1 && k.push(t2[1]);
|
|
57
|
+
}), k.length > 0 && function() {
|
|
58
|
+
let t2 = [];
|
|
59
|
+
m.pageContext.toolsInputComponents && m.pageContext.toolsInputComponents.length > 0 && m.pageContext.toolsInputComponents.forEach((e2) => {
|
|
60
|
+
if (h.props.linkages.some((t3) => t3.fieldName === e2.prop) && e2.defaultValue) {
|
|
61
|
+
const n2 = u.decomposeVariable(e2.prop);
|
|
62
|
+
n2 && n2.length > 1 && t2.push(n2[1]);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
if (0 === t2.length) he();
|
|
66
|
+
else {
|
|
67
|
+
const o2 = ve();
|
|
68
|
+
t2 = t2.filter((e2) => n.isVariableInvalidValue(o2, e2)), 0 === t2.length ? (X(o2), he()) : k.forEach((o3) => {
|
|
69
|
+
e.watch(() => m.pageContext.entity.page[o3], () => {
|
|
70
|
+
const e2 = ve();
|
|
71
|
+
0 === t2.length ? X(e2) : (t2 = t2.filter((t3) => n.isVariableInvalidValue(e2, t3)), 0 === t2.length && X(e2));
|
|
72
|
+
}, { immediate: true });
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}());
|
|
76
|
+
}
|
|
77
|
+
function q({ rowIndex: e2, column: t2, row: n2, orgRow: o2 }) {
|
|
78
|
+
L(null, null, n2, t2, e2);
|
|
79
|
+
}
|
|
80
|
+
function L(e2, n2, o2, i2, a2) {
|
|
81
|
+
const l2 = D.value.lineEditSave, r2 = h;
|
|
82
|
+
l2.props.base.tableUuid = r2.uuid, T.value.lineEditOptions.beforeSave = _, v.editData = o2, t.canExecuteButton({ pageContext: v, configureObj: l2 }).then((r3) => {
|
|
83
|
+
true === r3.canExecute && (T.value.lineEditOptions.saveRow = z, O.value.saveRow(a2, I).then(() => {
|
|
84
|
+
const r4 = { originalValue: e2, formatValue: n2, row: o2, column: i2, rowIndex: a2 };
|
|
85
|
+
t.doAfterClickEvent(v, l2, r4);
|
|
86
|
+
}));
|
|
87
|
+
}).finally(() => {
|
|
88
|
+
v.editData = null;
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function $(e2) {
|
|
92
|
+
if (!e2) return;
|
|
93
|
+
let n2;
|
|
94
|
+
const o2 = t.getEventNameByType(e2.events, "click");
|
|
95
|
+
if (o2) {
|
|
96
|
+
if (D.value[o2] = e2, "lineEditSave" === o2 ? n2 = L : "restoreEdit" === o2 ? n2 = W : "lineEditUpdate" === o2 ? n2 = Q : "lineEditDelete" === o2 && (n2 = J), !n2) {
|
|
97
|
+
n2 = t.getEventFuncByType(v, e2.events, "click");
|
|
98
|
+
}
|
|
99
|
+
} else D.value[e2.uuid] = e2, n2 = te;
|
|
100
|
+
return { onClick: n2, eventName: o2 };
|
|
101
|
+
}
|
|
102
|
+
function _({ row: e2, columns: n2, additionalParamMap: o2 }) {
|
|
103
|
+
const i2 = D.value.lineEditSave, a2 = h;
|
|
104
|
+
i2.props.base.tableUuid = a2.uuid;
|
|
105
|
+
const l2 = { row: e2, columns: n2 };
|
|
106
|
+
return t.doBeforeClickEvent(v, i2, l2);
|
|
107
|
+
}
|
|
108
|
+
function z({ row: e2, columns: t2, dataTypeMap: n2, dynamicColumnInfo: i2, additionalParamMap: a2, mainDefaultValueColumns: l2 }) {
|
|
109
|
+
const r2 = D.value.lineEditSave, u2 = h;
|
|
110
|
+
return r2.props.base.tableUuid = u2.uuid, new Promise((t3, n3) => {
|
|
111
|
+
const a3 = { tableName: u2.props.dataOrigin.tableName };
|
|
112
|
+
o.getSaveFormRequestWithRow(v, r2, "/dsc/commons", false, l2, i2, e2, a3).then((e3) => {
|
|
113
|
+
t3(e3 ? e3.entity : {});
|
|
114
|
+
}).catch((e3) => {
|
|
115
|
+
n3(e3);
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
function G({ rowIndex: e2, column: t2, row: n2, orgRow: o2 }) {
|
|
120
|
+
W(null, null, n2, t2, e2);
|
|
121
|
+
}
|
|
122
|
+
function W(e2, n2, o2, a2, l2) {
|
|
123
|
+
const r2 = D.value.restoreEdit, u2 = h;
|
|
124
|
+
r2.props.base.tableUuid = u2.uuid;
|
|
125
|
+
const s2 = { originalValue: e2, formatValue: n2, row: o2, column: a2, rowIndex: l2 }, c2 = t.doBeforeClickEvent(v, r2, s2);
|
|
126
|
+
if (!c2) return;
|
|
127
|
+
i.isPromise(c2) ? c2.then((e3) => {
|
|
128
|
+
e3 && O.value.restoreRow(l2, I);
|
|
129
|
+
}) : O.value.restoreRow(l2, I);
|
|
130
|
+
const p2 = { originalValue: e2, formatValue: n2, row: o2, column: a2, rowIndex: l2 };
|
|
131
|
+
t.doAfterClickEvent(v, h, p2);
|
|
132
|
+
}
|
|
133
|
+
function Q(e2, n2, o2, a2, l2) {
|
|
134
|
+
const r2 = D.value.lineEditUpdate, u2 = h;
|
|
135
|
+
r2.props.base.tableUuid = u2.uuid;
|
|
136
|
+
const s2 = { originalValue: e2, formatValue: n2, row: o2, column: a2, rowIndex: l2 }, c2 = t.doBeforeClickEvent(v, r2, s2);
|
|
137
|
+
c2 && (i.isPromise(c2) ? c2.then((t2) => {
|
|
138
|
+
t2 && Y(e2, n2, o2, a2, l2, r2);
|
|
139
|
+
}) : Y(e2, n2, o2, a2, l2, r2));
|
|
140
|
+
}
|
|
141
|
+
function Y(e2, n2, o2, i2, a2, l2) {
|
|
142
|
+
v.editData = o2, t.canExecuteButton({ pageContext: v, configureObj: l2 }).then((l3) => {
|
|
143
|
+
if (true === l3.canExecute) {
|
|
144
|
+
O.value.editRow(a2, I);
|
|
145
|
+
const l4 = { originalValue: e2, formatValue: n2, row: o2, column: i2, rowIndex: a2 };
|
|
146
|
+
t.doAfterClickEvent(v, h, l4);
|
|
147
|
+
}
|
|
148
|
+
}).finally(() => {
|
|
149
|
+
v.editData = null;
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
function J(e2, n2, o2, a2, l2) {
|
|
153
|
+
const r2 = D.value.lineEditDelete, u2 = h;
|
|
154
|
+
r2.props.base.tableUuid = u2.uuid;
|
|
155
|
+
const s2 = { originalValue: e2, formatValue: n2, row: o2, column: a2, rowIndex: l2 }, c2 = t.doBeforeClickEvent(v, r2, s2);
|
|
156
|
+
c2 && (i.isPromise(c2) ? c2.then((t2) => {
|
|
157
|
+
t2 && K(e2, n2, o2, a2, l2, r2);
|
|
158
|
+
}) : K(e2, n2, o2, a2, l2, r2));
|
|
159
|
+
}
|
|
160
|
+
function K(e2, n2, i2, a2, l2, r2) {
|
|
161
|
+
if (i2.id || i2.ID) v.editData = i2, t.canExecuteButton({ pageContext: v, configureObj: r2 }).then((e3) => {
|
|
162
|
+
if (true === e3.canExecute) {
|
|
163
|
+
const e4 = [];
|
|
164
|
+
i2.id ? e4.push(i2.id) : e4.push(i2.ID), o.standardEvents.delete({ pageContext: v, configureObj: r2, ids: e4 });
|
|
165
|
+
}
|
|
166
|
+
}).finally(() => {
|
|
167
|
+
v.editData = null;
|
|
168
|
+
});
|
|
169
|
+
else {
|
|
170
|
+
W(e2, n2, i2, a2, l2);
|
|
171
|
+
const o2 = { originalValue: e2, formatValue: n2, row: i2, column: a2, rowIndex: l2 };
|
|
172
|
+
t.doAfterClickEvent(v, h, o2);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
function X(e2) {
|
|
176
|
+
if (!v.dataTypeMaps) return;
|
|
177
|
+
const t2 = v.dataTypeMaps;
|
|
178
|
+
let n2 = [];
|
|
179
|
+
if (e2) for (var o2 in e2) {
|
|
180
|
+
const a2 = e2[o2];
|
|
181
|
+
if (null != a2 && "" !== a2) if (a2 instanceof Array) {
|
|
182
|
+
if (a2.length > 0) {
|
|
183
|
+
const e3 = [];
|
|
184
|
+
for (var i2 = 0; i2 < a2.length; i2++) {
|
|
185
|
+
const n3 = {};
|
|
186
|
+
n3.leftBracket = 0 === i2 ? "((" : "(", n3.propName = o2, n3.propDbName = o2, n3.dataType = t2[o2] ? t2[o2] : "TEXT", n3.operator = "EQ", n3.propValue = a2[i2], i2 === a2.length - 1 ? (n3.rightBracket = "))", n3.joinSign = "and") : (n3.rightBracket = ")", n3.joinSign = "or"), e3.push(n3);
|
|
187
|
+
}
|
|
188
|
+
n2 = n2.concat(e3);
|
|
189
|
+
}
|
|
190
|
+
} else {
|
|
191
|
+
const e3 = { leftBracket: "(" };
|
|
192
|
+
e3.propName = o2, e3.propDbName = o2, e3.dataType = t2[o2] ? t2[o2] : "TEXT", e3.operator = "EQ", e3.propValue = a2, we(e3, o2), e3.rightBracket = ")", e3.joinSign = "and", n2.push(e3);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
O.value.toolbarRefresh(null, null, n2);
|
|
196
|
+
}
|
|
197
|
+
function Z(e2) {
|
|
198
|
+
const t2 = ee();
|
|
199
|
+
if (t2) {
|
|
200
|
+
let n2 = 0;
|
|
201
|
+
return e2.searchHeight && (n2 = e2.searchHeight), t2 - 10 - n2;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
function ee() {
|
|
205
|
+
if (!O.value) return;
|
|
206
|
+
const e2 = u.getSizeConfig(m.pageContext, m.configure);
|
|
207
|
+
if (e2) {
|
|
208
|
+
if (e2.isCalcHeight) {
|
|
209
|
+
let e3 = O.value.$el;
|
|
210
|
+
if (e3 || (e3 = O.value), !e3) return;
|
|
211
|
+
const t2 = e3.getBoundingClientRect();
|
|
212
|
+
return window.innerHeight - t2.y - 90;
|
|
213
|
+
}
|
|
214
|
+
if (e2.fixHeight && O.value && (O.value.tableHeight = e2.fixHeight), e2.maxHeight) return e2.maxHeight;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function te(e2, n2, o2, i2, a2, l2) {
|
|
218
|
+
const r2 = { originalValue: e2, formatValue: n2, row: o2, column: i2, rowIndex: a2, button: l2, id: o2.ID ? o2.ID : o2.id }, u2 = D.value[l2.sourceButton.uuid], s2 = h;
|
|
219
|
+
u2.props.base.tableUuid = s2.uuid, t.getHandleEvent(null, v, u2, "click", r2);
|
|
220
|
+
}
|
|
221
|
+
function ne(e2) {
|
|
222
|
+
"close_open_win" === e2.data && O.value && O.value.refresh();
|
|
223
|
+
}
|
|
224
|
+
function oe(e2, n2) {
|
|
225
|
+
P.value = e2;
|
|
226
|
+
const o2 = { selection: e2, row: n2 };
|
|
227
|
+
t.gridSelectRecord(v, h, o2);
|
|
228
|
+
}
|
|
229
|
+
function ie(e2) {
|
|
230
|
+
P.value = e2;
|
|
231
|
+
const n2 = { selection: e2 };
|
|
232
|
+
t.gridSelectAllRecords(v, h, n2);
|
|
233
|
+
}
|
|
234
|
+
function ae(e2) {
|
|
235
|
+
const n2 = { newSelection: e2 };
|
|
236
|
+
t.gridSelectionChange(v, h, n2);
|
|
237
|
+
}
|
|
238
|
+
function le(e2, n2, o2, i2) {
|
|
239
|
+
const a2 = { row: e2, column: n2, cell: o2, event: i2 };
|
|
240
|
+
t.cellClick(v, h, a2);
|
|
241
|
+
}
|
|
242
|
+
function re(e2, n2, o2, i2) {
|
|
243
|
+
const a2 = { row: e2, column: n2, cell: o2, event: i2 };
|
|
244
|
+
t.cellDblClick(v, h, a2);
|
|
245
|
+
}
|
|
246
|
+
function ue(e2, n2, o2) {
|
|
247
|
+
const i2 = { row: e2, column: n2, event: o2 };
|
|
248
|
+
t.rowClick(v, h, i2);
|
|
249
|
+
}
|
|
250
|
+
function se(e2, n2, o2) {
|
|
251
|
+
const i2 = { row: e2, column: n2, event: o2 };
|
|
252
|
+
t.rowDblClick(v, h, i2);
|
|
253
|
+
}
|
|
254
|
+
function ce(e2, n2) {
|
|
255
|
+
const o2 = { column: e2, event: n2 };
|
|
256
|
+
t.headerClick(v, h, o2);
|
|
257
|
+
}
|
|
258
|
+
function pe() {
|
|
259
|
+
P.value = [];
|
|
260
|
+
}
|
|
261
|
+
function de(e2) {
|
|
262
|
+
F.value = true;
|
|
263
|
+
}
|
|
264
|
+
function fe(e2) {
|
|
265
|
+
return c.getRowStyleUtil(e2, [], m);
|
|
266
|
+
}
|
|
267
|
+
function ge(e2) {
|
|
268
|
+
return c.getCellStyleUtil(e2, e2.cellStyle, m);
|
|
269
|
+
}
|
|
270
|
+
function me(e2) {
|
|
271
|
+
const t2 = e2.titleStyle, n2 = m.configure.style.titleStyle;
|
|
272
|
+
return c.getHeaderCellStyleUtil(e2, { cellTitleStyle: t2, titleStyle: n2 }, m);
|
|
273
|
+
}
|
|
274
|
+
function ve() {
|
|
275
|
+
const e2 = {};
|
|
276
|
+
return k.forEach((t2) => {
|
|
277
|
+
e2[t2] = m.pageContext.entity.page[t2];
|
|
278
|
+
}), e2;
|
|
279
|
+
}
|
|
280
|
+
function he() {
|
|
281
|
+
k.forEach((t2) => {
|
|
282
|
+
e.watch(() => m.pageContext.entity.page[t2], () => {
|
|
283
|
+
X(ve());
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
e.onMounted(() => {
|
|
288
|
+
const e2 = be();
|
|
289
|
+
O.value && e2 && e2.distanceToBottom && (O.value.tableHeight = e2.distanceToBottom - 110), m.pageContext.pageRuntimeStyle && m.pageContext.pageRuntimeStyle.height, window.addEventListener("message", ne), l.$on(V + "-close-component-page-dialog", function({ jumpInfo: e3, popEntity: t2, popPageCode: n2 }) {
|
|
290
|
+
O.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e3 });
|
|
291
|
+
}), l.$on(V + "_close-dialog-get-entity", () => {
|
|
292
|
+
l.$emit(V + "_close-super-dialog");
|
|
293
|
+
}), l.$on(I + "-pickFileDone", (e3) => {
|
|
294
|
+
O.value.pickFileDone(e3);
|
|
295
|
+
}), l.$on(I + "-scanDone", (e3) => {
|
|
296
|
+
O.value.scanDone(e3);
|
|
297
|
+
}), T.value.formSetMaxHeight = ee(), T.value && T.value.configureObj.props.base && T.value.configureObj.props.base.isSafeDelete && H("setSafeDeleteTableCode", T.value.extraParam.tableName);
|
|
298
|
+
}), e.watch(() => m.pageContext.searchFormData, (e2) => {
|
|
299
|
+
N.value.data = e2;
|
|
300
|
+
}), e.watch(() => m.pageContext.entity.data, (e2) => {
|
|
301
|
+
X(m.pageContext.entity.data);
|
|
302
|
+
}), e.onUnmounted(() => {
|
|
303
|
+
window.removeEventListener("message", ne), l.$off(V + "-close-component-page-dialog"), l.$off(V + "_close-dialog-get-entity"), l.$off(I + "-pickFileDone"), l.$off(I + "-scanDone");
|
|
304
|
+
});
|
|
305
|
+
const be = () => {
|
|
306
|
+
if (!R.value) return null;
|
|
307
|
+
let e2 = R.value.closest(".app-container");
|
|
308
|
+
if (!e2) return null;
|
|
309
|
+
const t2 = R.value.getBoundingClientRect(), n2 = e2.getBoundingClientRect(), o2 = window.scrollY;
|
|
310
|
+
return { distanceToTop: t2.top + o2 - n2.top, distanceToBottom: n2.bottom - t2.top };
|
|
311
|
+
};
|
|
312
|
+
function Ce({ row: e2, editConditions: t2 }) {
|
|
313
|
+
let n2 = true;
|
|
314
|
+
return t2 && t2.length > 0 && (n2 = u.caculateShowCondition(m.pageContext, t2, e2)), n2;
|
|
315
|
+
}
|
|
316
|
+
function we(e2, t2) {
|
|
317
|
+
const n2 = s.getComponentRefByCode(m.pageContext, t2);
|
|
318
|
+
if (n2) {
|
|
319
|
+
const t3 = n2.getConfigure();
|
|
320
|
+
if ("datePicker" === t3.name) {
|
|
321
|
+
const n3 = t3.runtime.props.dateType;
|
|
322
|
+
e2.dateFormatType = "year" === n3 ? "YEAR" : "month" === n3 ? "MONTH" : "DAY";
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return f({ refresh: function(e2, t2, n2, o2) {
|
|
327
|
+
return O.value.refresh(e2, t2, n2, o2);
|
|
328
|
+
}, createRow: function() {
|
|
329
|
+
return O.value.createRow(I, {}, { getDefaultValueFunc: r.getDefaultValue });
|
|
330
|
+
}, clearSelections: pe, getSelections: function() {
|
|
331
|
+
return P.value;
|
|
332
|
+
}, getSelectionIds: function() {
|
|
333
|
+
const e2 = [];
|
|
334
|
+
return null !== P.value && P.value.forEach((t2) => {
|
|
335
|
+
e2.push(t2.id ? t2.id : t2.ID ? t2.ID : null);
|
|
336
|
+
}), e2;
|
|
337
|
+
}, getTableConfigure: function() {
|
|
338
|
+
return h;
|
|
339
|
+
}, isDeleteChange: function(e2) {
|
|
340
|
+
O.value.isDeleteChange(e2);
|
|
341
|
+
}, validatorSunTableListData: function() {
|
|
342
|
+
return O.value.validatorSunTableListData();
|
|
343
|
+
}, showMobileSearch: function() {
|
|
344
|
+
F.value && O.value.showMobileSearch();
|
|
345
|
+
}, getTableSelectOptions: function() {
|
|
346
|
+
if (O.value) return O.value.getTableSelectOptions(I);
|
|
347
|
+
}, dynamicControlTableEdit: function(e2, t2, n2) {
|
|
348
|
+
O.value && O.value.dynamicControlTableEdit(e2, t2, n2);
|
|
349
|
+
}, doLayout: function(e2) {
|
|
350
|
+
O.value && O.value.doLayout(e2);
|
|
351
|
+
}, changeOperationAddState: function(e2) {
|
|
352
|
+
}, scrollTo: function(e2, t2) {
|
|
353
|
+
O.value && O.value.scrollTo(e2, t2);
|
|
354
|
+
}, setScrollTop: function(e2) {
|
|
355
|
+
O.value && O.value.setScrollTop(e2);
|
|
356
|
+
}, setScrollLeft: function(e2) {
|
|
357
|
+
O.value && O.value.setScrollLeft(e2);
|
|
358
|
+
}, getSuperGridRef: function() {
|
|
359
|
+
return O.value;
|
|
360
|
+
}, getSuperGridTableRef: function() {
|
|
361
|
+
return O.value.getSuperGridTableRef();
|
|
362
|
+
}, setCurrentRowIndex: function(e2) {
|
|
363
|
+
var _a;
|
|
364
|
+
(_a = O.value) == null ? void 0 : _a.setCurrentRowIndex(e2);
|
|
365
|
+
}, setScrollTopByRowIndex: function(e2) {
|
|
366
|
+
var _a;
|
|
367
|
+
(_a = O.value) == null ? void 0 : _a.setScrollTopByRowIndex(e2);
|
|
368
|
+
}, getTableData: function() {
|
|
369
|
+
var _a;
|
|
370
|
+
return (_a = O.value) == null ? void 0 : _a.getTableData();
|
|
371
|
+
}, handleSearch: function(e2, t2) {
|
|
372
|
+
var _a;
|
|
373
|
+
return (_a = O.value) == null ? void 0 : _a.handleSearch(e2, t2);
|
|
374
|
+
}, getColumns: function() {
|
|
375
|
+
var _a;
|
|
376
|
+
return (_a = O.value) == null ? void 0 : _a.getColumns();
|
|
377
|
+
} }), (t2, n2) => {
|
|
378
|
+
const o2 = e.resolveComponent("super-grid");
|
|
379
|
+
return e.openBlock(), e.createElementBlock("div", { ref_key: "tableDivRef", ref: R, id: e.unref(I) + "_tableDiv" }, [e.createVNode(o2, { ref_key: "gridRef", ref: O, url: e.unref(B), options: T.value, code: e.unref(I), settings: e.unref(A), "search-form-info": N.value, "list-toolbar-form-data": e.unref(j), isDialog: e.unref(v).isDialog, onSelect: oe, onSelectAll: ie, onSelectionChange: ae, onCellClick: le, onCellDblclick: re, onRowClick: ue, onRowDblclick: se, onHeaderClick: ce, onRefresh: pe, onNewOpenGridDialog: e.unref(a.popupToPage), onCanShowMobileSearch: de, onGridOnmounted: M }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "isDialog", "onNewOpenGridDialog"])], 8, p);
|
|
380
|
+
};
|
|
381
|
+
} });
|
|
382
|
+
module.exports = d;
|