super-page-runtime 0.0.2-tmp6 → 1.0.1
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/index.d.ts +1 -3
- package/dist/es/components/runtime/index.js +4 -0
- package/dist/es/components/runtime/utils/api/api-util.js +3 -3
- package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +1 -14
- package/dist/es/components/runtime/utils/common-util.d.ts +0 -5
- package/dist/es/components/runtime/utils/common-util.js +2 -15
- package/dist/es/components/runtime/utils/eventBus.js +1 -1
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/standard-event.js +6 -6
- package/dist/es/components/runtime/utils/events/validator-util.js +3 -3
- package/dist/es/components/runtime/utils/global-refs.js +1 -1
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +0 -2
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +0 -19
- package/dist/es/components/runtime/utils/page-helper-util.js +3 -119
- package/dist/es/components/runtime/utils/page-init-util.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +8 -203
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
- 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-number/input-number-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue.js +8 -22
- package/dist/es/components/super-page-dialog/index.d.ts +3 -0
- package/dist/es/components/{runtime/views → super-page-dialog}/super-page-dialog.vue.js +2 -3
- package/dist/es/components/super-page-dialog/super-page-dialog.vue2.js +4 -0
- package/dist/es/components/wf-editor/index.d.ts +3 -0
- package/dist/es/components/wf-editor/index.js +4 -0
- package/dist/es/components/wf-editor/wf-editor.css +4 -0
- package/dist/es/components/wf-editor/wf-editor.vue.js +16 -0
- package/dist/es/index.d.ts +4 -7
- package/dist/es/index.js +3 -12
- package/dist/favicon.ico +0 -0
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/lib/assets/chart-themes/theme1.js +7 -0
- package/dist/lib/assets/chart-themes/theme2.js +7 -0
- package/dist/lib/assets/chart-themes/theme3.js +7 -0
- package/dist/lib/components/runtime/index.d.ts +3 -0
- package/dist/lib/components/runtime/index.js +3 -0
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +11 -0
- package/dist/lib/components/runtime/utils/api/api-util.js +128 -0
- package/dist/lib/components/runtime/utils/assemblys-config.js +258 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.js +15 -0
- package/dist/lib/components/runtime/utils/common-util.d.ts +11 -0
- package/dist/lib/components/runtime/utils/common-util.js +81 -0
- package/dist/lib/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/lib/components/runtime/utils/eventBus.js +10 -0
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +48 -0
- package/dist/lib/components/runtime/utils/events/event-util.js +526 -0
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +61 -0
- package/dist/lib/components/runtime/utils/events/standard-event.js +1624 -0
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +4 -0
- package/dist/lib/components/runtime/utils/events/validator-util.js +389 -0
- package/dist/lib/components/runtime/utils/global-refs.d.ts +59 -0
- package/dist/lib/components/runtime/utils/global-refs.js +65 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +221 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +9 -0
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +87 -0
- package/dist/lib/components/runtime/utils/page-helper-util.js +503 -0
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +38 -0
- package/dist/lib/components/runtime/utils/page-init-util.js +200 -0
- package/dist/lib/components/runtime/utils/store-util.d.ts +15 -0
- package/dist/lib/components/runtime/utils/store-util.js +17 -0
- package/dist/lib/components/runtime/utils/store.d.ts +2 -0
- package/dist/lib/components/runtime/utils/store.js +3 -0
- package/dist/lib/components/runtime/utils/table-utils.js +24 -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 +54 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +35 -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 +110 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +53 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +49 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +50 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +50 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +51 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +24 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +147 -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/remove-signer-dialog.vue.d.ts +35 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +127 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +26 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +104 -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 +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +72 -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 +74 -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 +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 +43 -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 +44 -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 +30 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +69 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +75 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +642 -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 +453 -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 +87 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +22 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +22 -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 +156 -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 +82 -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 +63 -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 +40 -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 +74 -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 +63 -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 +127 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +127 -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 +77 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +29 -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 +157 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +162 -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 +201 -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 +63 -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 +63 -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 +65 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +142 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +61 -0
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +91 -0
- package/dist/lib/components/runtime/views/super-page.vue.js +481 -0
- package/dist/lib/components/runtime/views/super-page.vue2.js +3 -0
- package/dist/lib/components/super-page-dialog/index.d.ts +3 -0
- package/dist/lib/components/super-page-dialog/index.js +3 -0
- package/dist/lib/components/super-page-dialog/super-page-dialog.vue.d.ts +36 -0
- package/dist/lib/components/super-page-dialog/super-page-dialog.vue.js +73 -0
- package/dist/lib/components/super-page-dialog/super-page-dialog.vue2.js +3 -0
- package/dist/lib/components/wf-editor/index.d.ts +3 -0
- package/dist/lib/components/wf-editor/index.js +3 -0
- package/dist/lib/components/wf-editor/wf-editor.css +4 -0
- package/dist/lib/components/wf-editor/wf-editor.vue.d.ts +2 -0
- package/dist/lib/components/wf-editor/wf-editor.vue.js +15 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/index.d.ts +5 -0
- package/dist/lib/index.js +8 -0
- package/dist/super-page-runtime.umd.js +213932 -0
- package/package.json +68 -70
- package/dist/es/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/es/assets/images/button/button-group.png.js +0 -4
- package/dist/es/assets/images/button/button.png.js +0 -4
- package/dist/es/assets/images/group-button.png.js +0 -4
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +0 -11
- package/dist/es/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/es/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -62
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -57
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -4
- package/dist/es/components/runtime/views/wf-editor.vue.js +0 -7
- package/dist/es/components/runtime/views/wf-editor.vue2.js +0 -33
- package/dist/es/components/runtime/views/wf-editor.vue3.js +0 -1
- package/dist/es/style.css +0 -4
- /package/dist/es/components/{runtime/views/super-page-dialog.vue2.js → super-page-dialog/index.js} +0 -0
- /package/dist/es/components/{runtime/views → super-page-dialog}/super-page-dialog.vue.d.ts +0 -0
- /package/dist/es/components/{runtime/views → wf-editor}/wf-editor.vue.d.ts +0 -0
|
@@ -0,0 +1,642 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue_runtime_esmBundler_js = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue@3.4.21_typescript@5.4.5/node_modules/vue/dist/vue.runtime.esm-bundler.js");
|
|
3
|
+
require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js");
|
|
4
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
5
|
+
const commonUtil = require("../../../../utils/common-util.js");
|
|
6
|
+
const standardEvent = require("../../../../utils/events/standard-event.js");
|
|
7
|
+
const commonUtil_js = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/common-util.js");
|
|
8
|
+
const tableUtils = require("../../../../utils/table-utils.js");
|
|
9
|
+
const eventBus = require("../../../../utils/eventBus.js");
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
11
|
+
__name: "main-table-runtime",
|
|
12
|
+
props: {
|
|
13
|
+
pageContext: {},
|
|
14
|
+
configure: {}
|
|
15
|
+
},
|
|
16
|
+
setup(__props, { expose: __expose }) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const pageContext = props.pageContext;
|
|
19
|
+
const configure = props.configure;
|
|
20
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
21
|
+
const runtimeStyle = runtimeInfo.style;
|
|
22
|
+
const runtimeClass = runtimeInfo.class;
|
|
23
|
+
const system = pageContext.entity.system;
|
|
24
|
+
const tableName = pageContext.tableName;
|
|
25
|
+
const baseURL = window["$vueApp"].config.globalProperties.baseURL;
|
|
26
|
+
const operationButtonObj = vue_runtime_esmBundler_js.ref(null);
|
|
27
|
+
const eventName = vue_runtime_esmBundler_js.ref(null);
|
|
28
|
+
const listOptions = vue_runtime_esmBundler_js.ref({});
|
|
29
|
+
listOptions.value = getOptions();
|
|
30
|
+
const gridRef = vue_runtime_esmBundler_js.ref(null);
|
|
31
|
+
const urlToListData = getUrlToListData(system);
|
|
32
|
+
const listCode = commonUtil.getListCode(pageContext.code, pageContext.version, configure.uuid);
|
|
33
|
+
const myPageCode = pageContext.code;
|
|
34
|
+
const eventPageInfo = myPageCode + "_" + listCode;
|
|
35
|
+
const selections = vue_runtime_esmBundler_js.ref([]);
|
|
36
|
+
const listToolbarFormData = pageContext.entity.page;
|
|
37
|
+
const searchFormInfo = vue_runtime_esmBundler_js.ref({ data: [] });
|
|
38
|
+
const superGridItems = pageContext.superGridItems;
|
|
39
|
+
const superGridSetting = superGridItems ? superGridItems[configure.uuid] : null;
|
|
40
|
+
console.log("superGridSetting1111===", superGridItems, superGridSetting);
|
|
41
|
+
vue_runtime_esmBundler_js.onMounted(() => {
|
|
42
|
+
window.addEventListener("message", recieveMessage);
|
|
43
|
+
eventBus.$on(
|
|
44
|
+
eventPageInfo + "-close-component-page-dialog",
|
|
45
|
+
function({ jumpInfo, popEntity, popPageCode }) {
|
|
46
|
+
gridRef.value.closePageDialog({
|
|
47
|
+
entity: popEntity,
|
|
48
|
+
pageCode: popPageCode,
|
|
49
|
+
jumpInfo
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
eventBus.$on(eventPageInfo + "_close-dialog-get-entity", () => {
|
|
54
|
+
eventBus.$emit(eventPageInfo + "_close-super-dialog");
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
vue_runtime_esmBundler_js.watch(
|
|
58
|
+
() => props.pageContext.searchFormData,
|
|
59
|
+
(searchFormData) => {
|
|
60
|
+
searchFormInfo.value.data = searchFormData;
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
vue_runtime_esmBundler_js.watch(
|
|
64
|
+
() => props.pageContext.entity.data,
|
|
65
|
+
(searchFormData) => {
|
|
66
|
+
searchGridData(props.pageContext.entity.data);
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
vue_runtime_esmBundler_js.watch(
|
|
70
|
+
() => props.pageContext.entity.page,
|
|
71
|
+
(searchFormData) => {
|
|
72
|
+
searchGridData(props.pageContext.entity.page);
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
vue_runtime_esmBundler_js.onUnmounted(() => {
|
|
76
|
+
eventBus.$off(eventPageInfo + "-close-component-page-dialog");
|
|
77
|
+
eventBus.$off(eventPageInfo + "_close-dialog-get-entity");
|
|
78
|
+
});
|
|
79
|
+
function getUrlToListData(system2) {
|
|
80
|
+
let urlToListData2;
|
|
81
|
+
if (!pageContext.isTest) {
|
|
82
|
+
urlToListData2 = baseURL + "/dsc/commons/list";
|
|
83
|
+
if (urlToListData2) {
|
|
84
|
+
urlToListData2 = commonUtil.getRealRestApiPath(urlToListData2, system2);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return urlToListData2;
|
|
88
|
+
}
|
|
89
|
+
function getOptions() {
|
|
90
|
+
const system2 = pageContext.entity.system;
|
|
91
|
+
const permissionPrefix = system2.code + "." + pageContext.code;
|
|
92
|
+
let initSearchForm = configure.props && configure.props.dataOrigin ? configure.props.dataOrigin.sqlFilterCondition : null;
|
|
93
|
+
if (typeof initSearchForm === "undefined" || initSearchForm === null) {
|
|
94
|
+
initSearchForm = [];
|
|
95
|
+
}
|
|
96
|
+
const options = {
|
|
97
|
+
isSql: true,
|
|
98
|
+
extraParam: {
|
|
99
|
+
beanName: pageContext.beanName,
|
|
100
|
+
functionCode: permissionPrefix + ".list",
|
|
101
|
+
tableName,
|
|
102
|
+
systemCode: system2.code
|
|
103
|
+
// 系统编码传给列表数据后台请求
|
|
104
|
+
},
|
|
105
|
+
initSearchForm,
|
|
106
|
+
lineEditOptions: {
|
|
107
|
+
aftersaveIsCreateRow: false,
|
|
108
|
+
autoSave: false,
|
|
109
|
+
enter: enterSave,
|
|
110
|
+
esc: escRestorRow
|
|
111
|
+
},
|
|
112
|
+
indexContinuous: configure.props && configure.props.otherSettings ? configure.props.otherSettings.serialNumberContinuous : false,
|
|
113
|
+
initSearch: configure.props && configure.props.base.initializationQuery ? configure.props.base.initializationQuery : true,
|
|
114
|
+
// 初始化时是否查询,默认是查询
|
|
115
|
+
resizeHeight: resizeListHeight,
|
|
116
|
+
pageCode: pageContext.code,
|
|
117
|
+
pageVersion: pageContext.version,
|
|
118
|
+
// pageHeight: pageHeight, // 页面的高度 //TODO: pageHeight如何获得,页面高度,计算列表高度应该会用
|
|
119
|
+
additionalParamMap: pageContext.entity.request,
|
|
120
|
+
// 将路由参数传给列表组件
|
|
121
|
+
showOverflowTooltip: !!(configure.props && configure.props.otherSettings && (configure.props.otherSettings.isBreakLine === void 0 || configure.props.otherSettings.isBreakLine === false)),
|
|
122
|
+
// 单元格内容是否换行显示
|
|
123
|
+
isEnableEnterEvent: configure.props && configure.props.otherSettings && configure.props.otherSettings.isEnableEnterEvent,
|
|
124
|
+
// 是否启用回车事件
|
|
125
|
+
// 当前系统,表示是当前的自定义系统信息
|
|
126
|
+
system: system2,
|
|
127
|
+
isWithDataPermission: configure.props && configure.props.otherSettings && configure.props.otherSettings.isWithDataPermission ? configure.props.otherSettings.isWithDataPermission : false,
|
|
128
|
+
pageDevMode: false,
|
|
129
|
+
isWorkflowEntity: pageContext.workflowCode ? true : false,
|
|
130
|
+
tableClass: runtimeClass,
|
|
131
|
+
tableStyle: runtimeStyle,
|
|
132
|
+
pageContext,
|
|
133
|
+
configureObj: configure
|
|
134
|
+
};
|
|
135
|
+
setSortInfo(options);
|
|
136
|
+
myGetDataTypeMap(options);
|
|
137
|
+
setTreeSetting(options);
|
|
138
|
+
setGridEvents(options);
|
|
139
|
+
return options;
|
|
140
|
+
}
|
|
141
|
+
function setSortInfo(options) {
|
|
142
|
+
if (configure.props && configure.props.dataOrigin && configure.props.dataOrigin.sortFields) {
|
|
143
|
+
options.initSortInfo = [];
|
|
144
|
+
this.colSetting.options.sortFields.forEach((item) => {
|
|
145
|
+
const sortInfo = {
|
|
146
|
+
order: item.sortOrder
|
|
147
|
+
};
|
|
148
|
+
sortInfo["prop"] = item.propDbName;
|
|
149
|
+
options.initSortInfo.push(sortInfo);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
function myGetDataTypeMap(options) {
|
|
154
|
+
if (!system || !tableName) {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
tableUtils.getDataTypeMap(system, tableName).then((result) => {
|
|
158
|
+
pageContext["dataTypeMaps"][tableName] = result["dataTypeMap"];
|
|
159
|
+
setOperationButtons(options);
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
function setOperationButtons(options) {
|
|
163
|
+
const showOperation = configure.props && configure.props.base ? configure.props.base.showOperation : false;
|
|
164
|
+
const operationButtons = configure.btnList;
|
|
165
|
+
if (showOperation && operationButtons) {
|
|
166
|
+
const operationButtons2 = [];
|
|
167
|
+
operationButtons2.forEach((buttonConfigure) => {
|
|
168
|
+
const myButtonSet = {};
|
|
169
|
+
const myButtonProps = Object.assign({}, buttonConfigure.props.base);
|
|
170
|
+
myButtonProps.elementType = "el-button";
|
|
171
|
+
if (buttonConfigure.isPermission === void 0 || buttonConfigure.isPermission + "" === "true") {
|
|
172
|
+
if (buttonConfigure.functionCode) {
|
|
173
|
+
myButtonProps.permission = buttonConfigure.functionCode;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
myButtonSet["props"] = myButtonProps;
|
|
177
|
+
myButtonSet["onClick"] = getOperationButtonClickEvent(buttonConfigure);
|
|
178
|
+
operationButtons2.push(myButtonSet);
|
|
179
|
+
});
|
|
180
|
+
if (!options.operations) {
|
|
181
|
+
options.operations = {};
|
|
182
|
+
}
|
|
183
|
+
options.operations.operation = operationButtons2;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
function setTreeSetting(options) {
|
|
187
|
+
const dataOrigin = configure.props ? configure.props.dataOrigin : {};
|
|
188
|
+
if (dataOrigin.treeTable) {
|
|
189
|
+
let parentPropDbName;
|
|
190
|
+
const parentPropInfo = dataOrigin.rowKey;
|
|
191
|
+
if (parentPropInfo && parentPropInfo.indexOf("~~") > 0) {
|
|
192
|
+
parentPropDbName = parentPropInfo.substring(parentPropInfo.indexOf("~~") + 2);
|
|
193
|
+
} else {
|
|
194
|
+
parentPropDbName = parentPropInfo;
|
|
195
|
+
}
|
|
196
|
+
options.parentProp = parentPropDbName;
|
|
197
|
+
if (options.parentProp) {
|
|
198
|
+
const isLazy = dataOrigin.lazy;
|
|
199
|
+
const defaultExpandAll = dataOrigin.defaultExpandAll;
|
|
200
|
+
if (isLazy === void 0 || isLazy === null) {
|
|
201
|
+
options.lazy = true;
|
|
202
|
+
} else {
|
|
203
|
+
options.lazy = isLazy;
|
|
204
|
+
}
|
|
205
|
+
if (defaultExpandAll === void 0 || defaultExpandAll === null) {
|
|
206
|
+
options.defaultExpandAll = false;
|
|
207
|
+
} else {
|
|
208
|
+
options.defaultExpandAll = defaultExpandAll;
|
|
209
|
+
}
|
|
210
|
+
const listViewTreeTableSetting = {
|
|
211
|
+
parentProp: parentPropDbName,
|
|
212
|
+
lazy: options.lazy,
|
|
213
|
+
defaultExpandAll: options.defaultExpandAll
|
|
214
|
+
};
|
|
215
|
+
options.extraParam.listViewTreeSetting = JSON.stringify(listViewTreeTableSetting);
|
|
216
|
+
options.subRowUrl = baseURL + "/dsc/commons/list-subs";
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
function setGridEvents(options) {
|
|
221
|
+
const tableEvents = configure.events;
|
|
222
|
+
eventUtil.setTableEvents(options, tableEvents, pageContext, configure);
|
|
223
|
+
const customEvents = pageContext.customEvents;
|
|
224
|
+
if (customEvents) {
|
|
225
|
+
options.eventCallBack = customEvents;
|
|
226
|
+
const rowStyleEvent = eventUtil.getEventFuncByType(pageContext, tableEvents, "rowStyle");
|
|
227
|
+
if (rowStyleEvent) {
|
|
228
|
+
options.rowStyleRender = rowStyleEvent;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
function enterSave(rowIndex, column, row, orgRow) {
|
|
233
|
+
saveRow(null, null, row, column, rowIndex);
|
|
234
|
+
}
|
|
235
|
+
function saveRow(originalValue, formatValue, row, column, rowIndex) {
|
|
236
|
+
const buttonConfigure = operationButtonObj.value[eventName.value];
|
|
237
|
+
listOptions.value["lineEditOptions"]["beforeSave"] = beforeSaveRow;
|
|
238
|
+
pageContext.editData = row;
|
|
239
|
+
eventUtil.canExecuteButton({ pageContext, configureObj: buttonConfigure }).then((result) => {
|
|
240
|
+
if (result["canExecute"] === true) {
|
|
241
|
+
listOptions.value["lineEditOptions"]["saveRow"] = saveLineEditRow;
|
|
242
|
+
gridRef.value.saveRow(rowIndex, listCode).then(() => {
|
|
243
|
+
const otherParams = {
|
|
244
|
+
originalValue,
|
|
245
|
+
formatValue,
|
|
246
|
+
row,
|
|
247
|
+
column,
|
|
248
|
+
rowIndex
|
|
249
|
+
};
|
|
250
|
+
eventUtil.doAfterClickEvent(pageContext, buttonConfigure, otherParams);
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
}).finally(() => {
|
|
254
|
+
pageContext.editData = null;
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
function getOperationButtonClickEvent(buttonConfigure) {
|
|
258
|
+
let onClick;
|
|
259
|
+
eventName.value = buttonConfigure.eventName;
|
|
260
|
+
operationButtonObj.value[eventName.value] = buttonConfigure;
|
|
261
|
+
if (eventName.value === "lineEditSave") {
|
|
262
|
+
onClick = saveRow;
|
|
263
|
+
} else if (eventName.value === "restoreEdit") {
|
|
264
|
+
onClick = restoreRow;
|
|
265
|
+
} else if (eventName.value === "lineEditUpdate") {
|
|
266
|
+
onClick = editRow;
|
|
267
|
+
} else if (eventName.value === "lineEditDelete") {
|
|
268
|
+
onClick = deleteRow;
|
|
269
|
+
} else {
|
|
270
|
+
onClick = customButtonClick;
|
|
271
|
+
}
|
|
272
|
+
if (!onClick) {
|
|
273
|
+
onClick = function() {
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
return onClick;
|
|
277
|
+
}
|
|
278
|
+
function beforeSaveRow(row, columns, dataTypeMap, dynamicColumnInfo, additionalParamMap, mainDefaultValueColumns) {
|
|
279
|
+
const buttonConfigure = operationButtonObj.value[eventName.value];
|
|
280
|
+
const otherParams = {
|
|
281
|
+
dynamicColumnInfo,
|
|
282
|
+
mainDefaultValueColumns,
|
|
283
|
+
dataTypeMap,
|
|
284
|
+
row,
|
|
285
|
+
columns
|
|
286
|
+
};
|
|
287
|
+
return eventUtil.doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
288
|
+
}
|
|
289
|
+
function saveLineEditRow(row, columns, dataTypeMap, dynamicColumnInfo, additionalParamMap, mainDefaultValueColumns) {
|
|
290
|
+
const buttonConfigure = operationButtonObj.value[eventName.value];
|
|
291
|
+
return new Promise((resolve, reject) => {
|
|
292
|
+
standardEvent.getSaveFormRequest(
|
|
293
|
+
pageContext,
|
|
294
|
+
buttonConfigure,
|
|
295
|
+
"/dsc/commons",
|
|
296
|
+
false,
|
|
297
|
+
mainDefaultValueColumns,
|
|
298
|
+
dynamicColumnInfo
|
|
299
|
+
).then((commonEntity) => {
|
|
300
|
+
if (commonEntity) {
|
|
301
|
+
resolve(commonEntity.entity);
|
|
302
|
+
} else {
|
|
303
|
+
resolve({});
|
|
304
|
+
}
|
|
305
|
+
}).catch((error) => {
|
|
306
|
+
reject(error);
|
|
307
|
+
});
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
function escRestorRow(rowIndex, column, row, orgRow) {
|
|
311
|
+
restoreRow(null, null, row, column, rowIndex);
|
|
312
|
+
}
|
|
313
|
+
function restoreRow(originalValue, formatValue, row, column, rowIndex) {
|
|
314
|
+
const buttonConfigure = operationButtonObj.value[eventName.value];
|
|
315
|
+
const otherParams = {
|
|
316
|
+
originalValue,
|
|
317
|
+
formatValue,
|
|
318
|
+
row,
|
|
319
|
+
column,
|
|
320
|
+
rowIndex
|
|
321
|
+
};
|
|
322
|
+
const beforeClickResult = eventUtil.doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
323
|
+
if (!beforeClickResult) {
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
if (commonUtil_js.isPromise(beforeClickResult)) {
|
|
327
|
+
beforeClickResult.then((result) => {
|
|
328
|
+
if (result) {
|
|
329
|
+
gridRef.value.restoreRow(rowIndex, listCode);
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
} else {
|
|
333
|
+
gridRef.value.restoreRow(rowIndex, listCode);
|
|
334
|
+
}
|
|
335
|
+
const afterOtherParams = {
|
|
336
|
+
originalValue,
|
|
337
|
+
formatValue,
|
|
338
|
+
row,
|
|
339
|
+
column,
|
|
340
|
+
rowIndex
|
|
341
|
+
};
|
|
342
|
+
eventUtil.doAfterClickEvent(pageContext, configure, afterOtherParams);
|
|
343
|
+
}
|
|
344
|
+
function editRow(originalValue, formatValue, row, column, rowIndex) {
|
|
345
|
+
const buttonConfigure = operationButtonObj.value[eventName.value];
|
|
346
|
+
const otherParams = {
|
|
347
|
+
originalValue,
|
|
348
|
+
formatValue,
|
|
349
|
+
row,
|
|
350
|
+
column,
|
|
351
|
+
rowIndex
|
|
352
|
+
};
|
|
353
|
+
const beforeClickResult = eventUtil.doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
354
|
+
if (!beforeClickResult) {
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
if (commonUtil_js.isPromise(beforeClickResult)) {
|
|
358
|
+
beforeClickResult.then((result) => {
|
|
359
|
+
if (result) {
|
|
360
|
+
editRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
} else {
|
|
364
|
+
editRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
function editRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure) {
|
|
368
|
+
pageContext.editData = row;
|
|
369
|
+
eventUtil.canExecuteButton({ pageContext, configureObj: buttonConfigure }).then((result) => {
|
|
370
|
+
if (result["canExecute"] === true) {
|
|
371
|
+
gridRef.value.editRow(rowIndex, listCode);
|
|
372
|
+
const afterOtherParams = {
|
|
373
|
+
originalValue,
|
|
374
|
+
formatValue,
|
|
375
|
+
row,
|
|
376
|
+
column,
|
|
377
|
+
rowIndex
|
|
378
|
+
};
|
|
379
|
+
eventUtil.doAfterClickEvent(pageContext, configure, afterOtherParams);
|
|
380
|
+
}
|
|
381
|
+
}).finally(() => {
|
|
382
|
+
pageContext.editData = null;
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
function deleteRow(originalValue, formatValue, row, column, rowIndex) {
|
|
386
|
+
const buttonConfigure = operationButtonObj.value[eventName.value];
|
|
387
|
+
const otherParams = {
|
|
388
|
+
originalValue,
|
|
389
|
+
formatValue,
|
|
390
|
+
row,
|
|
391
|
+
column,
|
|
392
|
+
rowIndex
|
|
393
|
+
};
|
|
394
|
+
const beforeClickResult = eventUtil.doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
395
|
+
if (!beforeClickResult) {
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
if (commonUtil_js.isPromise(beforeClickResult)) {
|
|
399
|
+
beforeClickResult.then((result) => {
|
|
400
|
+
if (result) {
|
|
401
|
+
deleteRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
} else {
|
|
405
|
+
deleteRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
function deleteRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure) {
|
|
409
|
+
if (row.id || row.ID) {
|
|
410
|
+
pageContext.editData = row;
|
|
411
|
+
eventUtil.canExecuteButton({ pageContext, configureObj: buttonConfigure }).then((result) => {
|
|
412
|
+
if (result["canExecute"] === true) {
|
|
413
|
+
const ids = [];
|
|
414
|
+
if (row.id) {
|
|
415
|
+
ids.push(row.id);
|
|
416
|
+
} else {
|
|
417
|
+
ids.push(row.ID);
|
|
418
|
+
}
|
|
419
|
+
standardEvent.standardEvents.delete({
|
|
420
|
+
pageContext,
|
|
421
|
+
configureObj: buttonConfigure,
|
|
422
|
+
ids,
|
|
423
|
+
tableUuid: listCode
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
}).finally(() => {
|
|
427
|
+
pageContext.editData = null;
|
|
428
|
+
});
|
|
429
|
+
} else {
|
|
430
|
+
restoreRow(originalValue, formatValue, row, column, rowIndex);
|
|
431
|
+
const afterOtherParams = {
|
|
432
|
+
originalValue,
|
|
433
|
+
formatValue,
|
|
434
|
+
row,
|
|
435
|
+
column,
|
|
436
|
+
rowIndex
|
|
437
|
+
};
|
|
438
|
+
eventUtil.doAfterClickEvent(pageContext, configure, afterOtherParams);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
function searchGridData(data) {
|
|
442
|
+
if (!pageContext["dataTypeMaps"] || !pageContext["dataTypeMaps"][tableName]) {
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
const dataTypeObj = pageContext["dataTypeMaps"][tableName];
|
|
446
|
+
let toolbarFieldParam = [];
|
|
447
|
+
if (data) {
|
|
448
|
+
for (var key in data) {
|
|
449
|
+
const value = data[key];
|
|
450
|
+
if (value !== null && value !== void 0 && value !== "") {
|
|
451
|
+
if (value instanceof Array) {
|
|
452
|
+
if (value.length > 0) {
|
|
453
|
+
const multipleFieldParam = [];
|
|
454
|
+
for (var i = 0; i < value.length; i++) {
|
|
455
|
+
const fieldParam = {};
|
|
456
|
+
if (i === 0) {
|
|
457
|
+
fieldParam["leftBracket"] = "((";
|
|
458
|
+
} else {
|
|
459
|
+
fieldParam["leftBracket"] = "(";
|
|
460
|
+
}
|
|
461
|
+
fieldParam["propName"] = key;
|
|
462
|
+
fieldParam["propDbName"] = key;
|
|
463
|
+
fieldParam["dataType"] = dataTypeObj[key] ? dataTypeObj[key] : "TEXT";
|
|
464
|
+
fieldParam["operator"] = "EQ";
|
|
465
|
+
fieldParam["propValue"] = value[i];
|
|
466
|
+
if (i === value.length - 1) {
|
|
467
|
+
fieldParam["rightBracket"] = "))";
|
|
468
|
+
fieldParam["joinSign"] = "and";
|
|
469
|
+
} else {
|
|
470
|
+
fieldParam["rightBracket"] = ")";
|
|
471
|
+
fieldParam["joinSign"] = "or";
|
|
472
|
+
}
|
|
473
|
+
multipleFieldParam.push(fieldParam);
|
|
474
|
+
}
|
|
475
|
+
toolbarFieldParam = toolbarFieldParam.concat(multipleFieldParam);
|
|
476
|
+
}
|
|
477
|
+
} else {
|
|
478
|
+
const fieldParam = {};
|
|
479
|
+
fieldParam["leftBracket"] = "(";
|
|
480
|
+
fieldParam["propName"] = key;
|
|
481
|
+
fieldParam["propDbName"] = key;
|
|
482
|
+
fieldParam["dataType"] = dataTypeObj[key] ? dataTypeObj[key] : "TEXT";
|
|
483
|
+
fieldParam["operator"] = "EQ";
|
|
484
|
+
fieldParam["propValue"] = value;
|
|
485
|
+
fieldParam["rightBracket"] = ")";
|
|
486
|
+
fieldParam["joinSign"] = "and";
|
|
487
|
+
toolbarFieldParam.push(fieldParam);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
gridRef.value.toolbarRefresh(null, null, toolbarFieldParam);
|
|
493
|
+
}
|
|
494
|
+
function resizeListHeight(params) {
|
|
495
|
+
}
|
|
496
|
+
function customButtonClick(originalValue, formatValue, row, column, rowIndex, button) {
|
|
497
|
+
const otherParams = {
|
|
498
|
+
originalValue,
|
|
499
|
+
formatValue,
|
|
500
|
+
row,
|
|
501
|
+
column,
|
|
502
|
+
rowIndex,
|
|
503
|
+
button
|
|
504
|
+
};
|
|
505
|
+
const buttonConfigure = operationButtonObj.value[eventName.value];
|
|
506
|
+
eventUtil.getHandleEvent(null, pageContext, buttonConfigure, "click", otherParams);
|
|
507
|
+
}
|
|
508
|
+
function recieveMessage(event) {
|
|
509
|
+
if (event.data === "close_open_win") {
|
|
510
|
+
gridRef.value.refresh();
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
function select(selection, row) {
|
|
514
|
+
selections.value = selection;
|
|
515
|
+
const params = {
|
|
516
|
+
selection,
|
|
517
|
+
row
|
|
518
|
+
};
|
|
519
|
+
eventUtil.gridSelectRecord(pageContext, configure, params);
|
|
520
|
+
}
|
|
521
|
+
function selectAll(selection) {
|
|
522
|
+
selections.value = selection;
|
|
523
|
+
const params = {
|
|
524
|
+
selection
|
|
525
|
+
};
|
|
526
|
+
eventUtil.gridSelectAllRecords(pageContext, configure, params);
|
|
527
|
+
}
|
|
528
|
+
function selectionChange(newSelection) {
|
|
529
|
+
const params = {
|
|
530
|
+
newSelection
|
|
531
|
+
};
|
|
532
|
+
eventUtil.gridSelectionChange(pageContext, configure, params);
|
|
533
|
+
}
|
|
534
|
+
function cellClickEvent(row, column, cell, event) {
|
|
535
|
+
const params = {
|
|
536
|
+
row,
|
|
537
|
+
column,
|
|
538
|
+
cell,
|
|
539
|
+
event
|
|
540
|
+
};
|
|
541
|
+
eventUtil.cellClick(pageContext, configure, params);
|
|
542
|
+
}
|
|
543
|
+
function cellDblClickEvent(row, column, cell, event) {
|
|
544
|
+
const params = {
|
|
545
|
+
row,
|
|
546
|
+
column,
|
|
547
|
+
cell,
|
|
548
|
+
event
|
|
549
|
+
};
|
|
550
|
+
eventUtil.cellDblClick(pageContext, configure, params);
|
|
551
|
+
}
|
|
552
|
+
function rowClickEvent(row, column, event) {
|
|
553
|
+
const params = {
|
|
554
|
+
row,
|
|
555
|
+
column,
|
|
556
|
+
event
|
|
557
|
+
};
|
|
558
|
+
eventUtil.rowClick(pageContext, configure, params);
|
|
559
|
+
}
|
|
560
|
+
function rowDblClickEvent(row, column, event) {
|
|
561
|
+
const params = {
|
|
562
|
+
row,
|
|
563
|
+
column,
|
|
564
|
+
event
|
|
565
|
+
};
|
|
566
|
+
eventUtil.rowDblClick(pageContext, configure, params);
|
|
567
|
+
}
|
|
568
|
+
function headerClickEvent(column, event) {
|
|
569
|
+
const params = {
|
|
570
|
+
column,
|
|
571
|
+
event
|
|
572
|
+
};
|
|
573
|
+
eventUtil.headerClick(pageContext, configure, params);
|
|
574
|
+
}
|
|
575
|
+
function validatorSunTableListData() {
|
|
576
|
+
return gridRef.value.validatorSunTableListData();
|
|
577
|
+
}
|
|
578
|
+
function clearSelections() {
|
|
579
|
+
selections.value = [];
|
|
580
|
+
}
|
|
581
|
+
function refresh() {
|
|
582
|
+
return gridRef.value.refresh();
|
|
583
|
+
}
|
|
584
|
+
function createRow() {
|
|
585
|
+
return gridRef.value.createRow(listCode);
|
|
586
|
+
}
|
|
587
|
+
function getSelections() {
|
|
588
|
+
return selections.value;
|
|
589
|
+
}
|
|
590
|
+
function getSelectionIds() {
|
|
591
|
+
const dataIds = [];
|
|
592
|
+
if (selections.value !== null) {
|
|
593
|
+
selections.value.forEach((item) => {
|
|
594
|
+
dataIds.push(item.id ? item.id : item.ID ? item.ID : null);
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
return dataIds;
|
|
598
|
+
}
|
|
599
|
+
function getTableConfigure() {
|
|
600
|
+
return configure;
|
|
601
|
+
}
|
|
602
|
+
function isDeleteChange(value) {
|
|
603
|
+
gridRef.value.isDeleteChange(value);
|
|
604
|
+
}
|
|
605
|
+
__expose({
|
|
606
|
+
refresh,
|
|
607
|
+
createRow,
|
|
608
|
+
clearSelections,
|
|
609
|
+
getSelections,
|
|
610
|
+
getSelectionIds,
|
|
611
|
+
getTableConfigure,
|
|
612
|
+
isDeleteChange,
|
|
613
|
+
validatorSunTableListData
|
|
614
|
+
});
|
|
615
|
+
return (_ctx, _cache) => {
|
|
616
|
+
const _component_super_grid = vue_runtime_esmBundler_js.resolveComponent("super-grid");
|
|
617
|
+
return vue_runtime_esmBundler_js.openBlock(), vue_runtime_esmBundler_js.createElementBlock("div", null, [
|
|
618
|
+
vue_runtime_esmBundler_js.createVNode(_component_super_grid, {
|
|
619
|
+
ref_key: "gridRef",
|
|
620
|
+
ref: gridRef,
|
|
621
|
+
url: vue_runtime_esmBundler_js.unref(urlToListData),
|
|
622
|
+
options: listOptions.value,
|
|
623
|
+
code: vue_runtime_esmBundler_js.unref(superGridSetting) ? null : vue_runtime_esmBundler_js.unref(listCode),
|
|
624
|
+
settings: vue_runtime_esmBundler_js.unref(superGridSetting),
|
|
625
|
+
"search-form-info": searchFormInfo.value,
|
|
626
|
+
"list-toolbar-form-data": vue_runtime_esmBundler_js.unref(listToolbarFormData),
|
|
627
|
+
onSelect: select,
|
|
628
|
+
onSelectAll: selectAll,
|
|
629
|
+
onSelectionChange: selectionChange,
|
|
630
|
+
onCellClick: cellClickEvent,
|
|
631
|
+
onCellDblclick: cellDblClickEvent,
|
|
632
|
+
onRowClick: rowClickEvent,
|
|
633
|
+
onRowDblclick: rowDblClickEvent,
|
|
634
|
+
onHeaderClick: headerClickEvent,
|
|
635
|
+
onRefresh: clearSelections,
|
|
636
|
+
onNewOpenGridDialog: vue_runtime_esmBundler_js.unref(tableUtils.popupToPage)
|
|
637
|
+
}, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])
|
|
638
|
+
]);
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
module.exports = _sfc_main;
|