super-page-runtime 0.0.2-tmp7 → 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 +2 -9
- 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/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 -25
- 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,526 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
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");
|
|
4
|
+
const standardEvent = require("./standard-event.js");
|
|
5
|
+
const validatorUtil = require("./validator-util.js");
|
|
6
|
+
const globalRefs = require("../global-refs.js");
|
|
7
|
+
const index_mjs = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/index.mjs");
|
|
8
|
+
const util_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/util.js");
|
|
9
|
+
const commonUtil = require("../common-util.js");
|
|
10
|
+
const eventBus = require("../eventBus.js");
|
|
11
|
+
function initPageEvents(pageDesign, pageContext) {
|
|
12
|
+
if (pageDesign && pageDesign.customEvents) {
|
|
13
|
+
pageContext.customEvents = transferToFunction(pageDesign.customEvents);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function removeCustomFuncFromWindow(pageDesign) {
|
|
17
|
+
if (pageDesign && pageDesign.customEvents) {
|
|
18
|
+
const customEvents = pageDesign.customEvents;
|
|
19
|
+
const customFuncs = customEvents.filter((item) => item.name === "customFunc" && item.jsContent);
|
|
20
|
+
if (customFuncs && customFuncs.length > 0) {
|
|
21
|
+
customFuncs.forEach((event) => {
|
|
22
|
+
delete window["$page_" + event.eventName];
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function handleEvent($event, pageContext, configure, eventType, otherParams) {
|
|
28
|
+
return handleEventUtil($event, pageContext, configure, eventType, true, otherParams);
|
|
29
|
+
}
|
|
30
|
+
function getHandleEvent($event, pageContext, configure, eventType, otherParams) {
|
|
31
|
+
return handleEventUtil($event, pageContext, configure, eventType, false, otherParams);
|
|
32
|
+
}
|
|
33
|
+
function handleEventUtil($event, pageContext, configure, eventType, isExecute, otherParams) {
|
|
34
|
+
const pageCode = pageContext.code;
|
|
35
|
+
const pageVersion = pageContext.version;
|
|
36
|
+
const events = configure.events;
|
|
37
|
+
const componentType = configure.name;
|
|
38
|
+
let eventFun;
|
|
39
|
+
if (eventType && eventType === "click" && componentType === "button-detail") {
|
|
40
|
+
const tableUuid = configure.props.base.tableUuid ? configure.props.base.tableUuid : pageContext.tableUuids && pageContext.tableUuids.length > 0 ? pageContext.tableUuids[0] : null;
|
|
41
|
+
if (tableUuid) {
|
|
42
|
+
const gridRef = globalRefs.getComponentRef(pageContext, tableUuid);
|
|
43
|
+
const selections = gridRef.getSelections();
|
|
44
|
+
const selectionIds = gridRef.getSelectionIds();
|
|
45
|
+
if (!otherParams) {
|
|
46
|
+
otherParams = {};
|
|
47
|
+
}
|
|
48
|
+
otherParams["tableUuid"] = tableUuid;
|
|
49
|
+
otherParams["listCode"] = commonUtil.getListCode(pageCode, pageVersion, tableUuid);
|
|
50
|
+
const isListButton = isListPage(pageContext);
|
|
51
|
+
if (isListButton) {
|
|
52
|
+
otherParams["selections"] = selections;
|
|
53
|
+
otherParams["ids"] = selectionIds;
|
|
54
|
+
}
|
|
55
|
+
const tableConfigure = gridRef.getTableConfigure();
|
|
56
|
+
otherParams["tableConfigure"] = tableConfigure;
|
|
57
|
+
}
|
|
58
|
+
const eventParams = packageEventParams(pageContext, configure, $event, otherParams);
|
|
59
|
+
buttonClickEvent(pageContext, configure, eventParams);
|
|
60
|
+
} else {
|
|
61
|
+
eventFun = getEventFuncByType(pageContext, events, eventType);
|
|
62
|
+
if (isExecute) {
|
|
63
|
+
const eventParams = packageEventParams(pageContext, configure, $event, otherParams);
|
|
64
|
+
return callItemEvent(pageContext, configure, eventFun, eventParams);
|
|
65
|
+
} else {
|
|
66
|
+
return eventFun;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function packageEventParams(pageContext, configureObj, $event, otherParams) {
|
|
71
|
+
const params = {};
|
|
72
|
+
if (otherParams) {
|
|
73
|
+
for (const key in otherParams) {
|
|
74
|
+
params[key] = otherParams[key];
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if ($event !== void 0 && $event !== null) {
|
|
78
|
+
params["_value"] = $event;
|
|
79
|
+
}
|
|
80
|
+
params["pageContext"] = pageContext;
|
|
81
|
+
params["configureObj"] = configureObj;
|
|
82
|
+
return params;
|
|
83
|
+
}
|
|
84
|
+
function buttonClickEvent(pageContext, configure, eventParams) {
|
|
85
|
+
const judgeFlag = standardEvent.judgeDataNumber(configure, eventParams["ids"]);
|
|
86
|
+
if (!judgeFlag) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
canExecuteButton(eventParams).then((result) => {
|
|
90
|
+
if (result["canExecute"] === true) {
|
|
91
|
+
const events = configure.events;
|
|
92
|
+
const beforeValidateFormFunc = getEventFuncByType(pageContext, events, "beforeValidateForm");
|
|
93
|
+
let beforeValidateFormResult;
|
|
94
|
+
if (beforeValidateFormFunc) {
|
|
95
|
+
beforeValidateFormResult = callItemEvent(
|
|
96
|
+
pageContext,
|
|
97
|
+
configure,
|
|
98
|
+
beforeValidateFormFunc,
|
|
99
|
+
eventParams
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
if (beforeValidateFormResult === void 0) {
|
|
103
|
+
beforeValidateFormResult = true;
|
|
104
|
+
}
|
|
105
|
+
if (!beforeValidateFormResult) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
if (commonUtil_js.isPromise(beforeValidateFormResult)) {
|
|
109
|
+
beforeValidateFormResult.then((result2) => {
|
|
110
|
+
if (result2 && result2 === true) {
|
|
111
|
+
doValidateForm(pageContext, configure, eventParams);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
} else {
|
|
115
|
+
doValidateForm(pageContext, configure, eventParams);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
function doValidateForm(pageContext, configure, eventParams) {
|
|
121
|
+
const events = configure.events;
|
|
122
|
+
let isEnableRequired;
|
|
123
|
+
const clickEventFunObj = getClickEventFuncByType(pageContext, events, "click");
|
|
124
|
+
if (clickEventFunObj) {
|
|
125
|
+
const isStandardEvent = clickEventFunObj.isStandard;
|
|
126
|
+
const event = clickEventFunObj.event;
|
|
127
|
+
const isNotNeedValidate = isNotNeedValidateRequired(isStandardEvent, event);
|
|
128
|
+
if (isNotNeedValidate) {
|
|
129
|
+
isEnableRequired = false;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
validatorUtil.validateDataModelFunc(pageContext, configure, isEnableRequired).then(() => {
|
|
133
|
+
const beforeClickResult = doBeforeClickEvent(pageContext, configure, eventParams);
|
|
134
|
+
if (!beforeClickResult) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
if (commonUtil_js.isPromise(beforeClickResult)) {
|
|
138
|
+
beforeClickResult.then((result) => {
|
|
139
|
+
if (result) {
|
|
140
|
+
doClickEvent(pageContext, configure, clickEventFunObj, eventParams);
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
} else {
|
|
144
|
+
doClickEvent(pageContext, configure, clickEventFunObj, eventParams);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function doBeforeClickEvent(pageContext, configure, otherParams) {
|
|
149
|
+
let result = true;
|
|
150
|
+
const events = configure.events;
|
|
151
|
+
const beforeClickFunc = getEventFuncByType(pageContext, events, "beforeClick");
|
|
152
|
+
let beforeClickResult;
|
|
153
|
+
if (beforeClickFunc) {
|
|
154
|
+
beforeClickResult = callItemEvent(pageContext, configure, beforeClickFunc, null, otherParams);
|
|
155
|
+
}
|
|
156
|
+
if (beforeClickResult === void 0) {
|
|
157
|
+
result = true;
|
|
158
|
+
}
|
|
159
|
+
return result;
|
|
160
|
+
}
|
|
161
|
+
function doClickJumpPageEvent(pageContext, configure, eventParams) {
|
|
162
|
+
const myPageCode = pageContext.code;
|
|
163
|
+
const eventPageInfo = myPageCode + "_";
|
|
164
|
+
eventBus.$emit(eventPageInfo + "open-dialog", {
|
|
165
|
+
pageContext,
|
|
166
|
+
configureObj: configure,
|
|
167
|
+
eventParams
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
function isListPage(pageContext, configure) {
|
|
171
|
+
return pageContext.pageType && pageContext.pageType === "list" ? true : false;
|
|
172
|
+
}
|
|
173
|
+
function doClickCustomEvent(pageContext, configure, clickEventFuncObj, eventParams) {
|
|
174
|
+
const eventFunObj = clickEventFuncObj;
|
|
175
|
+
if (eventFunObj) {
|
|
176
|
+
const eventFun = eventFunObj["func"];
|
|
177
|
+
const isStandardEvent = eventFunObj["isStandard"];
|
|
178
|
+
const event = eventFunObj["event"];
|
|
179
|
+
const clickResult = callItemEvent(pageContext, configure, eventFun, eventParams);
|
|
180
|
+
const isListButton = isListPage(pageContext);
|
|
181
|
+
if (isNotDoAfterClick(isStandardEvent, event)) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
if (commonUtil_js.isPromise(clickResult)) {
|
|
185
|
+
clickResult.then((result) => {
|
|
186
|
+
if (result) {
|
|
187
|
+
doAfterClickFunc(
|
|
188
|
+
pageContext,
|
|
189
|
+
configure,
|
|
190
|
+
eventParams,
|
|
191
|
+
isStandardEvent,
|
|
192
|
+
result,
|
|
193
|
+
isListButton
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
} else {
|
|
198
|
+
doAfterClickFunc(
|
|
199
|
+
pageContext,
|
|
200
|
+
configure,
|
|
201
|
+
eventParams,
|
|
202
|
+
isStandardEvent,
|
|
203
|
+
clickResult,
|
|
204
|
+
isListButton
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
function isNotDoAfterClick(isStandardEvent, clickEvent) {
|
|
210
|
+
return isStandardEvent && (clickEvent.eventName === "exportForm" || clickEvent.eventName === "exportPDF" || clickEvent.eventName === "import" || clickEvent.eventName === "assign" || clickEvent.eventName === "copyTask" || clickEvent.eventName === "addSigner" || clickEvent.eventName === "returnTaskTo" || clickEvent.eventName === "removeSigner");
|
|
211
|
+
}
|
|
212
|
+
function isNotNeedValidateRequired(isStandardEvent, clickEvent) {
|
|
213
|
+
return isStandardEvent && (clickEvent.eventName === "downloadTemplate" || clickEvent.eventName === "back" || clickEvent.eventName === "exportForm" || clickEvent.eventName === "exportPDF" || clickEvent.eventName === "lineEditCreate");
|
|
214
|
+
}
|
|
215
|
+
function doAfterClickEvent(pageContext, configure, otherParams) {
|
|
216
|
+
const events = configure.events;
|
|
217
|
+
const afterClickFunc = getEventFuncByType(pageContext, events, "afterClick");
|
|
218
|
+
if (afterClickFunc) {
|
|
219
|
+
callItemEvent(pageContext, configure, afterClickFunc, null, otherParams);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
function doAfterClickFunc(pageContext, configure, eventParams, isStandardEvent, result, isListButton) {
|
|
223
|
+
if (!isStandardEvent) {
|
|
224
|
+
standardEvent.dealAfterOperate(
|
|
225
|
+
pageContext,
|
|
226
|
+
configure,
|
|
227
|
+
result,
|
|
228
|
+
"superPageRuntimeMessage.successfulOperation",
|
|
229
|
+
isListButton
|
|
230
|
+
);
|
|
231
|
+
} else {
|
|
232
|
+
pageContext.result = result;
|
|
233
|
+
}
|
|
234
|
+
const events = configure.events;
|
|
235
|
+
const afterClickFunc = getEventFuncByType(pageContext, events, "afterClick");
|
|
236
|
+
if (afterClickFunc) {
|
|
237
|
+
callItemEvent(pageContext, configure, afterClickFunc, eventParams);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
function doClickEvent(pageContext, configure, clickEventFunObj, eventParams) {
|
|
241
|
+
const linkPage = configure.props.linkPage;
|
|
242
|
+
if (linkPage && linkPage.jumpPageUrl) {
|
|
243
|
+
doClickJumpPageEvent(pageContext, configure, eventParams);
|
|
244
|
+
} else {
|
|
245
|
+
doClickCustomEvent(pageContext, configure, clickEventFunObj, eventParams);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
function getEventByEventName(pageContext, eventName) {
|
|
249
|
+
const eventsObj = pageContext.customEvents;
|
|
250
|
+
if (eventsObj && eventsObj[eventName]) {
|
|
251
|
+
return eventsObj[eventName];
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
function getEventFuncByType(pageContext, events, eventType) {
|
|
255
|
+
if (events && eventType) {
|
|
256
|
+
const eventArr = events.filter((item) => item.name === eventType && item.eventName);
|
|
257
|
+
if (eventArr && eventArr.length > 0) {
|
|
258
|
+
const event = eventArr[0];
|
|
259
|
+
if (event.isStandard) {
|
|
260
|
+
return standardEvent.standardEvents[event.eventName];
|
|
261
|
+
} else {
|
|
262
|
+
return getEventByEventName(pageContext, event.eventName);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
function getClickEventFuncByType(pageContext, events, eventType) {
|
|
268
|
+
if (events && eventType) {
|
|
269
|
+
const eventArr = events.filter((item) => item.name === eventType && item.eventName);
|
|
270
|
+
if (eventArr && eventArr.length > 0) {
|
|
271
|
+
const event = eventArr[0];
|
|
272
|
+
if (event.isStandard) {
|
|
273
|
+
return { func: standardEvent.standardEvents[event.eventName], isStandard: true, event };
|
|
274
|
+
} else {
|
|
275
|
+
return {
|
|
276
|
+
func: getEventByEventName(pageContext, event.eventName),
|
|
277
|
+
isStandard: false,
|
|
278
|
+
event
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
function callItemEvent(pageContext, configureObj, eventFun, eventParams, otherParams) {
|
|
285
|
+
if (!eventFun) {
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
if (!eventParams) {
|
|
289
|
+
eventParams = {
|
|
290
|
+
pageContext,
|
|
291
|
+
configureObj
|
|
292
|
+
// 组件配置信息,包含如:跳转页面配置、判重配置等
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
if (otherParams && eventParams) {
|
|
296
|
+
for (const key in otherParams) {
|
|
297
|
+
eventParams[key] = otherParams[key];
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return eventFun(eventParams);
|
|
301
|
+
}
|
|
302
|
+
function transferToFunction(customEvents) {
|
|
303
|
+
const eventsObj = {};
|
|
304
|
+
customEvents.forEach((event) => {
|
|
305
|
+
if (event.jsContent) {
|
|
306
|
+
eventsObj[event.eventName] = new Function("params", event.jsContent);
|
|
307
|
+
if (event.name === "customFunc") {
|
|
308
|
+
if (event.funcParam) {
|
|
309
|
+
window["$page_" + event.eventName] = new Function(event.funcParam, event.jsContent);
|
|
310
|
+
} else {
|
|
311
|
+
window["$page_" + event.eventName] = new Function(event.jsContent);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
return eventsObj;
|
|
317
|
+
}
|
|
318
|
+
function canExecuteButton(params) {
|
|
319
|
+
const pageContext = params.pageContext;
|
|
320
|
+
const configureObj = params.configureObj;
|
|
321
|
+
const isListButton = isListPage(pageContext);
|
|
322
|
+
let entities = [];
|
|
323
|
+
if (isListButton) {
|
|
324
|
+
if (pageContext.editData) {
|
|
325
|
+
entities.push(pageContext.editData);
|
|
326
|
+
} else {
|
|
327
|
+
entities = params.selections;
|
|
328
|
+
}
|
|
329
|
+
} else {
|
|
330
|
+
const dataModel = pageContext.entity.data;
|
|
331
|
+
entities.push(dataModel);
|
|
332
|
+
}
|
|
333
|
+
const executableDataSetting = configureObj.props.base.condition;
|
|
334
|
+
return new Promise((resolve, reject) => {
|
|
335
|
+
if (executableDataSetting === void 0 || executableDataSetting === "" || entities === void 0 || entities.length === 0) {
|
|
336
|
+
resolve({
|
|
337
|
+
canExecute: true
|
|
338
|
+
});
|
|
339
|
+
} else {
|
|
340
|
+
const contextParameter = pageContext.entity.context;
|
|
341
|
+
const additionalParamMap = pageContext.entity.request;
|
|
342
|
+
const isSql = true;
|
|
343
|
+
const tableName = pageContext.tableName;
|
|
344
|
+
let isCanExecute = true;
|
|
345
|
+
let failMessage;
|
|
346
|
+
let failEntity;
|
|
347
|
+
for (let i = 0; i < entities.length; i++) {
|
|
348
|
+
const entity = entities[i];
|
|
349
|
+
for (let n = 0; n < executableDataSetting.length; n++) {
|
|
350
|
+
const conditionSetting = executableDataSetting[n];
|
|
351
|
+
const message = conditionSetting.toolTips;
|
|
352
|
+
const conditionList = conditionSetting.conditionList;
|
|
353
|
+
const canExecute = util_js.analysisCondition(
|
|
354
|
+
conditionList,
|
|
355
|
+
entity,
|
|
356
|
+
additionalParamMap,
|
|
357
|
+
contextParameter,
|
|
358
|
+
isSql,
|
|
359
|
+
tableName,
|
|
360
|
+
null
|
|
361
|
+
);
|
|
362
|
+
if (!canExecute) {
|
|
363
|
+
isCanExecute = false;
|
|
364
|
+
failMessage = message;
|
|
365
|
+
failEntity = entity;
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
if (!isCanExecute) {
|
|
371
|
+
if (failMessage) {
|
|
372
|
+
index_mjs.ElMessage({
|
|
373
|
+
showClose: true,
|
|
374
|
+
type: "warning",
|
|
375
|
+
message: failMessage
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
resolve({
|
|
379
|
+
canExecute: false,
|
|
380
|
+
message: failMessage,
|
|
381
|
+
failEntity
|
|
382
|
+
});
|
|
383
|
+
} else {
|
|
384
|
+
resolve({
|
|
385
|
+
canExecute: true
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
function setTableEvents(options, tableEvents, pageContext, configureObj) {
|
|
392
|
+
if (tableEvents) {
|
|
393
|
+
addTableEvent("loadBeforeSend", loadBeforeSend({ pageContext, configureObj }), options);
|
|
394
|
+
addTableEvent("beforeRequest", beforeRequest({ pageContext, configureObj }), options);
|
|
395
|
+
addTableEvent("gridDataLoaded", gridDataLoaded({ pageContext, configureObj }), options);
|
|
396
|
+
addTableEvent("gridComplete", gridComplete({ pageContext, configureObj }), options);
|
|
397
|
+
addTableEvent("resizeHeight", resizeTableHeight({ pageContext, configureObj }), options);
|
|
398
|
+
if (!options["lineEditOptions"]) {
|
|
399
|
+
options["lineEditOptions"] = {};
|
|
400
|
+
}
|
|
401
|
+
addTableEvent(
|
|
402
|
+
"beforeInsertRow",
|
|
403
|
+
gridBeforeInsertRow({ pageContext, configureObj }),
|
|
404
|
+
options["lineEditOptions"]
|
|
405
|
+
);
|
|
406
|
+
addTableEvent(
|
|
407
|
+
"afterInsertRow",
|
|
408
|
+
gridAfterInsertRow({ pageContext, configureObj }),
|
|
409
|
+
options["lineEditOptions"]
|
|
410
|
+
);
|
|
411
|
+
addTableEvent(
|
|
412
|
+
"beforeDelete",
|
|
413
|
+
gridBeforeRemoveRow({ pageContext, configureObj }),
|
|
414
|
+
options["lineEditOptions"]
|
|
415
|
+
);
|
|
416
|
+
addTableEvent(
|
|
417
|
+
"afterDelete",
|
|
418
|
+
gridAfterRemoveRow({ pageContext, configureObj }),
|
|
419
|
+
options["lineEditOptions"]
|
|
420
|
+
);
|
|
421
|
+
addTableEvent(
|
|
422
|
+
"beforeEdit",
|
|
423
|
+
gridBeforeEdit({ pageContext, configureObj }),
|
|
424
|
+
options["lineEditOptions"]
|
|
425
|
+
);
|
|
426
|
+
addTableEvent(
|
|
427
|
+
"beforeRestore",
|
|
428
|
+
beforeRestore({ pageContext, configureObj }),
|
|
429
|
+
options["lineEditOptions"]
|
|
430
|
+
);
|
|
431
|
+
addTableEvent(
|
|
432
|
+
"beforeRestoreValidate",
|
|
433
|
+
beforeRestoreValidate({ pageContext, configureObj }),
|
|
434
|
+
options["lineEditOptions"]
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
function addTableEvent(gridEventType, eventFunc, options) {
|
|
439
|
+
if (eventFunc) {
|
|
440
|
+
options[gridEventType] = eventFunc;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
function loadBeforeSend(params) {
|
|
444
|
+
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeListLoad", params);
|
|
445
|
+
}
|
|
446
|
+
function beforeRequest(params) {
|
|
447
|
+
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeRequest", params);
|
|
448
|
+
}
|
|
449
|
+
function gridDataLoaded(params) {
|
|
450
|
+
return getHandleEvent(null, params.pageContext, params.configureObj, "onListLoad", params);
|
|
451
|
+
}
|
|
452
|
+
function gridComplete(params) {
|
|
453
|
+
return getHandleEvent(null, params.pageContext, params.configureObj, "afterListLoad", params);
|
|
454
|
+
}
|
|
455
|
+
function resizeTableHeight(params) {
|
|
456
|
+
return getHandleEvent(null, params.pageContext, params.configureObj, "resizeTableHeight", params);
|
|
457
|
+
}
|
|
458
|
+
function beforeRestoreValidate(params) {
|
|
459
|
+
return getHandleEvent(
|
|
460
|
+
null,
|
|
461
|
+
params.pageContext,
|
|
462
|
+
params.configureObj,
|
|
463
|
+
"beforeRestoreValidate",
|
|
464
|
+
params
|
|
465
|
+
);
|
|
466
|
+
}
|
|
467
|
+
function beforeRestore(params) {
|
|
468
|
+
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeRestore", params);
|
|
469
|
+
}
|
|
470
|
+
function gridBeforeEdit(params) {
|
|
471
|
+
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeEdit", params);
|
|
472
|
+
}
|
|
473
|
+
function gridBeforeInsertRow(params) {
|
|
474
|
+
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeAddRow", params);
|
|
475
|
+
}
|
|
476
|
+
function gridAfterInsertRow(params) {
|
|
477
|
+
return getHandleEvent(null, params.pageContext, params.configureObj, "afterAddRow", params);
|
|
478
|
+
}
|
|
479
|
+
function gridBeforeRemoveRow(params) {
|
|
480
|
+
return getHandleEvent(null, params.pageContext, params.configureObj, "beforeRemoveRow", params);
|
|
481
|
+
}
|
|
482
|
+
function gridAfterRemoveRow(params) {
|
|
483
|
+
return getHandleEvent(null, params.pageContext, params.configureObj, "afterRemoveRow", params);
|
|
484
|
+
}
|
|
485
|
+
function gridSelectRecord(pageContext, configureObj, params) {
|
|
486
|
+
return handleEvent(null, pageContext, configureObj, "select", params);
|
|
487
|
+
}
|
|
488
|
+
function gridSelectAllRecords(pageContext, configureObj, params) {
|
|
489
|
+
return handleEvent(null, pageContext, configureObj, "select-all", params);
|
|
490
|
+
}
|
|
491
|
+
function gridSelectionChange(pageContext, configureObj, params) {
|
|
492
|
+
return handleEvent(null, pageContext, configureObj, "selection-change", params);
|
|
493
|
+
}
|
|
494
|
+
function cellClick(pageContext, configureObj, params) {
|
|
495
|
+
return handleEvent(null, pageContext, configureObj, "cell-click", params);
|
|
496
|
+
}
|
|
497
|
+
function cellDblClick(pageContext, configureObj, params) {
|
|
498
|
+
return handleEvent(null, pageContext, configureObj, "cell-dblclick", params);
|
|
499
|
+
}
|
|
500
|
+
function rowClick(pageContext, configureObj, params) {
|
|
501
|
+
return handleEvent(null, pageContext, configureObj, "row-click", params);
|
|
502
|
+
}
|
|
503
|
+
function rowDblClick(pageContext, configureObj, params) {
|
|
504
|
+
return handleEvent(null, pageContext, configureObj, "row-dblclick", params);
|
|
505
|
+
}
|
|
506
|
+
function headerClick(pageContext, configureObj, params) {
|
|
507
|
+
return handleEvent(null, pageContext, configureObj, "header-click", params);
|
|
508
|
+
}
|
|
509
|
+
exports.canExecuteButton = canExecuteButton;
|
|
510
|
+
exports.cellClick = cellClick;
|
|
511
|
+
exports.cellDblClick = cellDblClick;
|
|
512
|
+
exports.doAfterClickEvent = doAfterClickEvent;
|
|
513
|
+
exports.doBeforeClickEvent = doBeforeClickEvent;
|
|
514
|
+
exports.getClickEventFuncByType = getClickEventFuncByType;
|
|
515
|
+
exports.getEventFuncByType = getEventFuncByType;
|
|
516
|
+
exports.getHandleEvent = getHandleEvent;
|
|
517
|
+
exports.gridSelectAllRecords = gridSelectAllRecords;
|
|
518
|
+
exports.gridSelectRecord = gridSelectRecord;
|
|
519
|
+
exports.gridSelectionChange = gridSelectionChange;
|
|
520
|
+
exports.handleEvent = handleEvent;
|
|
521
|
+
exports.headerClick = headerClick;
|
|
522
|
+
exports.initPageEvents = initPageEvents;
|
|
523
|
+
exports.removeCustomFuncFromWindow = removeCustomFuncFromWindow;
|
|
524
|
+
exports.rowClick = rowClick;
|
|
525
|
+
exports.rowDblClick = rowDblClick;
|
|
526
|
+
exports.setTableEvents = setTableEvents;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare const standardEvents: {
|
|
2
|
+
save: (params: any) => Promise<unknown>;
|
|
3
|
+
saveList: (params: any) => Promise<unknown>;
|
|
4
|
+
exportForm: (params: any) => void;
|
|
5
|
+
exportPDF: (params: any) => void;
|
|
6
|
+
submit: (params: any) => Promise<unknown>;
|
|
7
|
+
submitList: (params: any) => Promise<unknown>;
|
|
8
|
+
agree: (params: any) => Promise<unknown>;
|
|
9
|
+
agreeList: (params: any) => Promise<unknown>;
|
|
10
|
+
disagree: (params: any) => Promise<unknown>;
|
|
11
|
+
disagreeList: (params: any) => Promise<unknown>;
|
|
12
|
+
back: (params: any) => void;
|
|
13
|
+
delete: (params: any) => Promise<unknown>;
|
|
14
|
+
downloadTemplate: (params: any) => void;
|
|
15
|
+
import: (params: any) => void;
|
|
16
|
+
export: (params: any) => Promise<unknown>;
|
|
17
|
+
search: (params: any) => void;
|
|
18
|
+
workflowSave: (params: any) => Promise<unknown>;
|
|
19
|
+
submitProcess: (params: any) => Promise<unknown>;
|
|
20
|
+
submitTask: (params: any) => Promise<unknown>;
|
|
21
|
+
approve: (params: any) => Promise<unknown>;
|
|
22
|
+
refuse: (params: any) => Promise<unknown>;
|
|
23
|
+
readed: (params: any) => Promise<unknown>;
|
|
24
|
+
agreement: (params: any) => Promise<unknown>;
|
|
25
|
+
oppose: (params: any) => Promise<unknown>;
|
|
26
|
+
kiken: (params: any) => Promise<unknown>;
|
|
27
|
+
assign: (params: any) => void;
|
|
28
|
+
copyTask: (params: any) => void;
|
|
29
|
+
addSigner: (params: any) => void;
|
|
30
|
+
drawTask: (params: any) => Promise<unknown>;
|
|
31
|
+
abandonReceive: (params: any) => Promise<unknown>;
|
|
32
|
+
returnToPreviousTask: (params: any) => Promise<unknown>;
|
|
33
|
+
endInstance: (params: any) => Promise<unknown>;
|
|
34
|
+
returnTaskTo: (params: any) => void;
|
|
35
|
+
removeSigner: (params: any) => void;
|
|
36
|
+
retrieveTask: (params: any) => Promise<unknown>;
|
|
37
|
+
viewDetail: (params: any) => void;
|
|
38
|
+
lineEditCreate: (params: any) => void;
|
|
39
|
+
};
|
|
40
|
+
export declare function exportFormReport(pageContext: any, configureObj: any, templateFile: any, isPdf: any): void;
|
|
41
|
+
export declare function getSaveFormRequest(pageContext: any, configureObj: any, url: any, isUnControlVersion: any, mainDefaultValueColumns: any, dynamicColumnInfo: any): any;
|
|
42
|
+
/**
|
|
43
|
+
* 按钮执行后页面处理方式:刷新、关闭弹框等等
|
|
44
|
+
* @param pageContext
|
|
45
|
+
* @param configureObj
|
|
46
|
+
* @param data
|
|
47
|
+
* @param successTip
|
|
48
|
+
* @param isListButton
|
|
49
|
+
*/
|
|
50
|
+
export declare function dealAfterOperate(pageContext: any, configureObj: any, data: any, successTip: any, isListButton?: boolean): void;
|
|
51
|
+
export declare function doImportFinally(params: any, fileObj: any): void;
|
|
52
|
+
export declare function judgeDataNumber(buttonConfigureObj: any, ids: any): boolean;
|
|
53
|
+
export declare function dealCompleteTaskParam(commonEntity: any, isInit: any, pageContext: any, params?: any, operationResult?: any): boolean;
|
|
54
|
+
export declare function doAssign(params: any, selectNodeInfo: any): void;
|
|
55
|
+
export declare function doAddSigner(params: any, selectNodeInfo: any): void;
|
|
56
|
+
export declare function doCreateCopyTask(params: any, selectNodeInfo: any): void;
|
|
57
|
+
export declare function getTaskInformitions(params: any): any;
|
|
58
|
+
export declare function doReturnTaskTo(params: any, selectTaskNode: any): void;
|
|
59
|
+
export declare function getRemoveSigner(params: any): any;
|
|
60
|
+
export declare function doRemoveSigners(params: any, selectRemoveTasks: any): void;
|
|
61
|
+
export declare function isVisibleWorkflowButton(standardEventName: any, buttonInfo: any, completeTaskParam: any): boolean;
|