super-page-runtime 2.2.29-tmp1 → 2.2.29-tmp2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/_virtual/_plugin-vue_export-helper.js +7 -5
- package/dist/es/assets/chart-themes/theme1.js +6 -2
- package/dist/es/assets/chart-themes/theme2.js +6 -2
- package/dist/es/assets/chart-themes/theme3.js +6 -2
- package/dist/es/components/runtime/utils/api/api-util.js +7 -4
- package/dist/es/components/runtime/utils/api/page-expose-util.js +443 -135
- package/dist/es/components/runtime/utils/assemblys-config.js +369 -13
- package/dist/es/components/runtime/utils/barcode-util.js +33 -9
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +306 -122
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +68 -29
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +152 -69
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +124 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +99 -38
- package/dist/es/components/runtime/utils/charts/chart-util.js +522 -226
- package/dist/es/components/runtime/utils/common-util.js +156 -76
- package/dist/es/components/runtime/utils/eventBus.js +8 -3
- package/dist/es/components/runtime/utils/events/event-util.js +775 -362
- package/dist/es/components/runtime/utils/events/print-label.js +140 -73
- package/dist/es/components/runtime/utils/events/standard-event.js +2320 -820
- package/dist/es/components/runtime/utils/events/validator-util.js +560 -224
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +88 -28
- package/dist/es/components/runtime/utils/form/scan-util.js +162 -62
- package/dist/es/components/runtime/utils/global-refs.js +84 -53
- package/dist/es/components/runtime/utils/i18n-util.js +20 -11
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +7 -2
- package/dist/es/components/runtime/utils/page-helper-util.js +660 -280
- package/dist/es/components/runtime/utils/page-init-util.js +405 -144
- package/dist/es/components/runtime/utils/page-permission-util.js +531 -22
- package/dist/es/components/runtime/utils/page-store.js +68 -23
- package/dist/es/components/runtime/utils/store-util.js +13 -9
- package/dist/es/components/runtime/utils/store.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +81 -40
- package/dist/es/components/runtime/utils/tree-utils.js +37 -17
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +83 -21
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +46 -14
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +132 -36
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +18 -4
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +107 -17
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +198 -54
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +42 -12
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +60 -11
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +203 -54
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +162 -46
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +109 -33
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +166 -44
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +117 -33
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +118 -33
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +599 -253
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +42 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +62 -8
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +160 -29
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +62 -13
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +594 -213
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +139 -33
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +125 -21
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +102 -16
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +81 -18
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +82 -17
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +86 -14
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +79 -21
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +61 -16
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +37 -10
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +127 -38
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +76 -28
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +178 -63
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +810 -305
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +635 -265
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +115 -40
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +215 -56
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +21 -3
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +154 -43
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +98 -34
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +200 -52
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +239 -70
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +109 -31
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +59 -21
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +188 -56
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +103 -22
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +246 -59
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +174 -34
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +107 -29
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +50 -13
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +194 -65
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +249 -89
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +263 -80
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +57 -13
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +155 -30
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +129 -40
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +107 -22
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +188 -89
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +272 -133
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +46 -18
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +49 -21
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +58 -20
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +53 -16
- package/dist/es/components/runtime/views/home-chart.vue.js +160 -41
- package/dist/es/components/runtime/views/home-chart.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +139 -21
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +756 -230
- package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
- package/dist/es/i18n/langs/cn.js +55 -2
- package/dist/es/i18n/langs/en.js +55 -2
- package/package.json +2 -2
|
@@ -1,243 +1,769 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import
|
|
3
|
-
import { updateOptionDatasources
|
|
4
|
-
import { queryPageSuperGrids
|
|
5
|
-
import { addComponentRef
|
|
6
|
-
import { removeCustomFuncFromWindow
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { getTaskInformitions
|
|
1
|
+
import { defineComponent, ref, onMounted, onUpdated, nextTick, onUnmounted, createElementBlock, openBlock, createCommentVNode, normalizeStyle, normalizeClass, createBlock, createElementVNode, Fragment, renderList, unref, watch } from "vue";
|
|
2
|
+
import _sfc_main$1 from "./assemblys/object-render.vue.js";
|
|
3
|
+
import { updateOptionDatasources, updateChartDatasources } from "../utils/page-helper-util.js";
|
|
4
|
+
import { queryPageSuperGrids, queryPageDesignByCode, convertToPageContext, packageAdditionalMapWithLocationSearch, packageAdditionalMapWithRoute, packageAdditionalMapWithPageRequest } from "../utils/page-init-util.js";
|
|
5
|
+
import { addComponentRef, removePageAllRef, initComponentRefState } from "../utils/global-refs.js";
|
|
6
|
+
import { removeCustomFuncFromWindow, handleEvent, initPageEvents, getCustomFunc } from "../utils/events/event-util.js";
|
|
7
|
+
import _sfc_main$2 from "./assemblys/common/export-form-report-dialog.vue.js";
|
|
8
|
+
import _sfc_main$3 from "./assemblys/common/task-informition-dialog.vue.js";
|
|
9
|
+
import _sfc_main$4 from "./assemblys/common/remove-signer-dialog.vue.js";
|
|
10
|
+
import bus from "../utils/eventBus.js";
|
|
11
|
+
import { getTaskInformitions, getRemoveSigner, getFormData, exportFormReport, doImportFinally, doAddSigner, doCreateCopyTask, doAssign, doReturnTaskTo, doRemoveSigners, updateValuesWhenCloseDialog, refreshFormOrListPage, getAdditionalParamMap } from "../utils/events/standard-event.js";
|
|
12
12
|
import "../utils/api/api-util.js";
|
|
13
|
-
import { ElMessage
|
|
14
|
-
import { useI18n
|
|
15
|
-
import { DepartmentUserTree
|
|
16
|
-
import { i18nValidateRulesMessage
|
|
17
|
-
import
|
|
18
|
-
import { useRoute
|
|
19
|
-
import { jumpToPage
|
|
20
|
-
import { setSessionCache
|
|
21
|
-
import { deepCopy
|
|
22
|
-
import { isMobileBrowser
|
|
23
|
-
import { usePageContextStore
|
|
24
|
-
import
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
13
|
+
import { ElMessage } from "element-plus";
|
|
14
|
+
import { useI18n } from "vue-i18n";
|
|
15
|
+
import { DepartmentUserTree } from "agilebuilder-ui";
|
|
16
|
+
import { i18nValidateRulesMessage } from "../utils/events/validator-util.js";
|
|
17
|
+
import _sfc_main$5 from "./super-page-dialog.vue.js";
|
|
18
|
+
import { useRoute, useRouter } from "vue-router";
|
|
19
|
+
import { jumpToPage } from "agilebuilder-ui/src/utils/jump-page-utils";
|
|
20
|
+
import { setSessionCache, getUsername } from "agilebuilder-ui/src/utils/auth";
|
|
21
|
+
import { deepCopy, isNumber, refreshMobileDialogType } from "../utils/common-util.js";
|
|
22
|
+
import { isMobileBrowser } from "agilebuilder-ui/src/utils/common-util";
|
|
23
|
+
import { usePageContextStore } from "../utils/page-store.js";
|
|
24
|
+
import imatrixUiStore from "agilebuilder-ui/src/store";
|
|
25
|
+
const _hoisted_1 = { class: "app-container" };
|
|
26
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
|
+
__name: "super-page",
|
|
28
|
+
props: {
|
|
29
|
+
//页面编码
|
|
30
|
+
pageCode: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: false
|
|
33
|
+
},
|
|
34
|
+
//页面版本
|
|
35
|
+
pageVersion: {
|
|
36
|
+
type: Number,
|
|
37
|
+
required: false
|
|
38
|
+
},
|
|
39
|
+
//页面ID
|
|
40
|
+
pageId: {
|
|
41
|
+
type: Number,
|
|
42
|
+
required: false
|
|
43
|
+
},
|
|
44
|
+
//表单数据ID
|
|
45
|
+
dataId: {
|
|
46
|
+
type: Number,
|
|
47
|
+
required: false
|
|
48
|
+
},
|
|
49
|
+
//测试对象
|
|
50
|
+
pageDesign: {
|
|
51
|
+
type: Object,
|
|
52
|
+
required: false
|
|
53
|
+
},
|
|
54
|
+
//是否测试
|
|
55
|
+
isTest: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
required: false
|
|
58
|
+
},
|
|
59
|
+
dimensions: {
|
|
60
|
+
type: String,
|
|
61
|
+
required: false
|
|
62
|
+
},
|
|
63
|
+
// 系统版本号
|
|
64
|
+
publishVersion: {
|
|
65
|
+
type: Number,
|
|
66
|
+
required: false
|
|
67
|
+
},
|
|
68
|
+
// 任务id。流程表单页面办理任务时任务id
|
|
69
|
+
taskId: {
|
|
70
|
+
type: Number,
|
|
71
|
+
required: false
|
|
72
|
+
},
|
|
73
|
+
// 页面跳转request参数
|
|
74
|
+
pageRequest: {
|
|
75
|
+
type: Object,
|
|
76
|
+
required: false
|
|
77
|
+
},
|
|
78
|
+
// 页面高度
|
|
79
|
+
contentHeight: {
|
|
80
|
+
type: [String, Number],
|
|
81
|
+
default: null
|
|
82
|
+
},
|
|
83
|
+
// 是否是弹框中打开页面
|
|
84
|
+
isDialog: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
required: false
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
emits: ["open", "opened", "close", "closed"],
|
|
90
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
91
|
+
const pageContextUtil = usePageContextStore();
|
|
92
|
+
const { t } = useI18n();
|
|
93
|
+
const props = __props;
|
|
94
|
+
const thisRef = ref(null);
|
|
95
|
+
const pageItems = ref([]);
|
|
96
|
+
const pageClass = ref("");
|
|
97
|
+
const pageStyle = ref({});
|
|
98
|
+
const pageDesignResult = ref(null);
|
|
99
|
+
const buttonParams = ref(null);
|
|
100
|
+
const showExportForm = ref(false);
|
|
101
|
+
const selectAddSignerUser = ref(false);
|
|
102
|
+
const selectCopyUser = ref(false);
|
|
103
|
+
const selectAssignUser = ref(false);
|
|
104
|
+
const isMulti = ref(false);
|
|
105
|
+
const eventPageInfo = ref(null);
|
|
106
|
+
const showTaskInformitions = ref(false);
|
|
107
|
+
const taskInformitions = ref([]);
|
|
108
|
+
const activeTasks = ref([]);
|
|
109
|
+
const showRemoveSigner = ref(false);
|
|
110
|
+
const taskIdVal = ref(null);
|
|
111
|
+
const isShowPage = ref(false);
|
|
112
|
+
const isShowDialog = ref(false);
|
|
113
|
+
const jumpPageSetting = ref(null);
|
|
114
|
+
const parentPageContext = ref(null);
|
|
115
|
+
const parentConfigureObj = ref(null);
|
|
116
|
+
const parentEventParams = ref(null);
|
|
117
|
+
let pageContext = ref(null);
|
|
118
|
+
const buttonConfigure = ref(null);
|
|
119
|
+
const buttonPageContext = ref(null);
|
|
120
|
+
const route = useRoute();
|
|
121
|
+
const pageKey = ref(0);
|
|
122
|
+
const isMobile = isMobileBrowser();
|
|
123
|
+
let initOptionDatasTimer;
|
|
124
|
+
let initChartDatasTimer;
|
|
125
|
+
let initPageTimer;
|
|
126
|
+
function initPageDesign(pageDesign) {
|
|
127
|
+
var _a;
|
|
128
|
+
const tempContext = convertToPageContext(pageDesign);
|
|
129
|
+
tempContext.isTest = props.isTest;
|
|
130
|
+
if (tempContext.isTest && props.dimensions) {
|
|
131
|
+
tempContext.dimensions = props.dimensions;
|
|
132
|
+
}
|
|
133
|
+
if (!props.isDialog) {
|
|
134
|
+
packageAdditionalMapWithLocationSearch(tempContext.entity.request);
|
|
135
|
+
packageAdditionalMapWithRoute(route, tempContext.entity.request);
|
|
136
|
+
}
|
|
137
|
+
packageAdditionalMapWithPageRequest(props.pageRequest, tempContext.entity.request);
|
|
138
|
+
pageContext.value = tempContext;
|
|
139
|
+
if (pageContext.value == null) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
initOptionDatasTimer = setTimeout(() => {
|
|
143
|
+
initOptionDatas(pageContext.value, pageDesign.initOptionConfigs);
|
|
144
|
+
}, 0);
|
|
145
|
+
initChartDatasTimer = setTimeout(() => {
|
|
146
|
+
console.log("pageDesign.initChartServiceConfigs", pageDesign.initChartServiceConfigs);
|
|
147
|
+
initChartDatas(pageContext.value, pageDesign.initChartServiceConfigs);
|
|
148
|
+
}, 200);
|
|
149
|
+
pageContext.value.initDataSources = [];
|
|
150
|
+
initComponentRefState(pageContext.value);
|
|
151
|
+
pageItems.value = pageContext.value.items ? pageContext.value.items : [];
|
|
152
|
+
const runtime = pageContext.value.runtime ? pageContext.value.runtime : {};
|
|
153
|
+
pageClass.value = runtime.class;
|
|
154
|
+
pageStyle.value = runtime.style;
|
|
155
|
+
initPageEvents(pageDesign, pageContext.value);
|
|
156
|
+
i18nValidateRulesMessage(pageContext.value.rules);
|
|
157
|
+
handleEvent(null, pageContext.value, pageDesign, "beforeload");
|
|
158
|
+
const myPageCode = pageContext.value.code;
|
|
159
|
+
pageContextUtil.setPageContext(pageContext.value);
|
|
160
|
+
eventPageInfo.value = myPageCode + "_";
|
|
161
|
+
bus.$on(eventPageInfo.value + "export-form-report", (params) => {
|
|
162
|
+
buttonParams.value = params;
|
|
163
|
+
buttonConfigure.value = params.configureObj;
|
|
164
|
+
buttonPageContext.value = params.pageContext;
|
|
165
|
+
showExportForm.value = true;
|
|
166
|
+
});
|
|
167
|
+
bus.$on(eventPageInfo.value + "export-pdf-report", (params) => {
|
|
168
|
+
buttonParams.value = params;
|
|
169
|
+
buttonConfigure.value = params.configureObj;
|
|
170
|
+
buttonPageContext.value = params.pageContext;
|
|
171
|
+
showExportForm.value = true;
|
|
172
|
+
});
|
|
173
|
+
bus.$on(eventPageInfo.value + "import-file", (params) => {
|
|
174
|
+
buttonParams.value = params;
|
|
175
|
+
clickImport();
|
|
176
|
+
});
|
|
177
|
+
bus.$on(eventPageInfo.value + "assign-task", (params) => {
|
|
178
|
+
buttonParams.value = params;
|
|
179
|
+
selectAssignUser.value = true;
|
|
180
|
+
isMulti.value = false;
|
|
181
|
+
});
|
|
182
|
+
bus.$on(eventPageInfo.value + "copy-task", (params) => {
|
|
183
|
+
buttonParams.value = params;
|
|
184
|
+
selectCopyUser.value = true;
|
|
185
|
+
isMulti.value = true;
|
|
186
|
+
});
|
|
187
|
+
bus.$on(eventPageInfo.value + "add-signer", (params) => {
|
|
188
|
+
buttonParams.value = params;
|
|
189
|
+
selectAddSignerUser.value = true;
|
|
190
|
+
isMulti.value = true;
|
|
191
|
+
});
|
|
192
|
+
bus.$on(eventPageInfo.value + "choose-return-node", (params) => {
|
|
193
|
+
buttonParams.value = params;
|
|
194
|
+
getTaskInformitions(params).then((result) => {
|
|
195
|
+
taskInformitions.value = result;
|
|
196
|
+
showTaskInformitions.value = true;
|
|
197
|
+
}).catch((e) => {
|
|
198
|
+
console.log("显示可选的退回的环节集合异常", e);
|
|
199
|
+
showTaskInformitions.value = false;
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
bus.$on(eventPageInfo.value + "remove-signer", (params) => {
|
|
203
|
+
buttonParams.value = params;
|
|
204
|
+
getRemoveSigner(params).then((result) => {
|
|
205
|
+
taskIdVal.value = params.pageContext.completeTaskParam.taskId;
|
|
206
|
+
activeTasks.value = result;
|
|
207
|
+
showRemoveSigner.value = true;
|
|
208
|
+
}).catch((e) => {
|
|
209
|
+
console.log("显示可减签的环节集合异常", e);
|
|
210
|
+
showRemoveSigner.value = false;
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
bus.$on(eventPageInfo.value + "prohibit-edit", (data) => {
|
|
214
|
+
});
|
|
215
|
+
bus.$on(eventPageInfo.value + "open-dialog", (params) => {
|
|
216
|
+
parentPageContext.value = params.pageContext;
|
|
217
|
+
parentConfigureObj.value = params.configureObj;
|
|
218
|
+
parentEventParams.value = params.eventParams;
|
|
219
|
+
openDialog(parentConfigureObj.value, parentEventParams.value, params.jumpPageSetting);
|
|
220
|
+
});
|
|
221
|
+
bus.$on("pageLoaded", () => {
|
|
222
|
+
const pageDesign2 = {
|
|
223
|
+
runtime: { events: pageContext.value.events },
|
|
224
|
+
systemCode: "",
|
|
225
|
+
systemVersion: 0,
|
|
226
|
+
code: "",
|
|
227
|
+
version: 0,
|
|
228
|
+
workflowCode: "",
|
|
229
|
+
workflowVersion: 0,
|
|
230
|
+
name: "",
|
|
231
|
+
uuid: "",
|
|
232
|
+
label: ""
|
|
233
|
+
};
|
|
234
|
+
handleEvent(null, pageContext.value, pageDesign2, "load");
|
|
235
|
+
});
|
|
236
|
+
watch(
|
|
237
|
+
() => pageContext.value.isRefresh,
|
|
238
|
+
(newValue) => {
|
|
239
|
+
if (newValue) {
|
|
240
|
+
pageKey.value++;
|
|
241
|
+
pageContext.value.isRefresh = false;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
);
|
|
245
|
+
return getFormData(pageContext.value, null, (_a = props.pageRequest) == null ? void 0 : _a.isNeedId);
|
|
246
|
+
}
|
|
247
|
+
function initOptionDatas(pageContext2, optionConfigs) {
|
|
248
|
+
if (!optionConfigs || optionConfigs.length == 0) {
|
|
249
|
+
console.log("无需要初始化的选项组数据");
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
const initOptionConfigs = optionConfigs.filter((item) => {
|
|
253
|
+
return item.filterType != "remote";
|
|
254
|
+
});
|
|
255
|
+
console.log("pageContext.initOptionConfigs:", initOptionConfigs);
|
|
256
|
+
if (initOptionConfigs && initOptionConfigs.length > 0) {
|
|
257
|
+
updateOptionDatasources(pageContext2, initOptionConfigs, void 0);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
function initChartDatas(pageContext2, chartConfigs) {
|
|
261
|
+
if (!chartConfigs || chartConfigs.length == 0) {
|
|
262
|
+
console.log("无需要初始化时统计的统计图数据");
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
pageContext2.initChartData = {};
|
|
266
|
+
pageContext2.initChartData.data = deepCopy(pageContext2.entity.data);
|
|
267
|
+
pageContext2.initChartData.page = deepCopy(pageContext2.entity.page);
|
|
268
|
+
if (chartConfigs && chartConfigs.length > 0) {
|
|
269
|
+
updateChartDatasources(pageContext2, chartConfigs, null, true);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
onMounted(() => {
|
|
273
|
+
initPage();
|
|
274
|
+
});
|
|
275
|
+
function setContextStyle() {
|
|
276
|
+
nextTick(() => {
|
|
277
|
+
const parentNode = thisRef.value.parentNode ? thisRef.value.parentNode : thisRef.value;
|
|
278
|
+
let myContentHeight = props.contentHeight;
|
|
279
|
+
if (!myContentHeight) {
|
|
280
|
+
const rect = parentNode.getBoundingClientRect();
|
|
281
|
+
console.log("setContextStyle-----isMobile=", isMobile);
|
|
282
|
+
if (!isMobile) {
|
|
283
|
+
myContentHeight = window.innerHeight - rect.y - 40;
|
|
284
|
+
} else {
|
|
285
|
+
myContentHeight = window.innerHeight - rect.y - 28;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
let heightStyle = myContentHeight;
|
|
289
|
+
if (isNumber(myContentHeight)) {
|
|
290
|
+
heightStyle = myContentHeight + "px";
|
|
291
|
+
}
|
|
292
|
+
parentNode.style.height = heightStyle;
|
|
293
|
+
parentNode.style["overflow-y"] = "auto";
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
function initPage() {
|
|
297
|
+
if (props.pageDesign != null) {
|
|
298
|
+
pageDesignResult.value = props.pageDesign;
|
|
299
|
+
initPageTimer = setTimeout(() => {
|
|
300
|
+
initPageDesign(props.pageDesign).then(() => {
|
|
301
|
+
if (props.pageDesign.tableRuntimes && Object.keys(props.pageDesign.tableRuntimes).length > 0) {
|
|
302
|
+
queryPageSuperGrids(props.pageDesign, pageContext.value, props.publishVersion).then((result) => {
|
|
303
|
+
pageContext.value.isWorkflowEntity = result.isWorkflowEntity;
|
|
304
|
+
pageContext.value.dataTypeMaps = result.dataTypeMaps;
|
|
305
|
+
pageContext.value.superGridItems = result.superGrids;
|
|
306
|
+
}).catch((error) => {
|
|
307
|
+
console.log("queryPageSuperGrids error", error);
|
|
308
|
+
}).finally(() => {
|
|
309
|
+
isShowPage.value = true;
|
|
310
|
+
setContextStyle();
|
|
95
311
|
});
|
|
96
|
-
} else
|
|
312
|
+
} else {
|
|
313
|
+
isShowPage.value = true;
|
|
314
|
+
setContextStyle();
|
|
315
|
+
}
|
|
316
|
+
sessionCacheDataId();
|
|
317
|
+
});
|
|
318
|
+
}, 0);
|
|
319
|
+
} else if (props.pageCode) {
|
|
320
|
+
queryPageDesignByCode(props.pageCode).then((appPageDesign) => {
|
|
321
|
+
if (appPageDesign && appPageDesign.designJson) {
|
|
322
|
+
const designJson = appPageDesign.designJson;
|
|
323
|
+
const pageConf = JSON.parse(designJson);
|
|
324
|
+
pageDesignResult.value = pageConf;
|
|
325
|
+
initPageDesign(pageConf).then(() => {
|
|
326
|
+
sessionCacheDataId();
|
|
327
|
+
isShowPage.value = true;
|
|
328
|
+
setContextStyle();
|
|
329
|
+
});
|
|
97
330
|
}
|
|
98
331
|
});
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
function sessionCacheDataId() {
|
|
335
|
+
const dataModel = pageContext.value.entity.data;
|
|
336
|
+
const dataIdSessio = dataModel.ID == null ? dataModel.id : dataModel.ID;
|
|
337
|
+
if (route.query && route.query._t_ && dataIdSessio) {
|
|
338
|
+
setSessionCache(route.query._t_ + "_id", dataIdSessio);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
onUpdated(() => {
|
|
342
|
+
nextTick(() => {
|
|
343
|
+
if (pageContext.value && thisRef.value) {
|
|
344
|
+
addComponentRef(pageContext.value, "-1", thisRef);
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
onUnmounted(() => {
|
|
349
|
+
removePageAllRef(pageContext.value);
|
|
350
|
+
if (pageDesignResult.value) {
|
|
351
|
+
removeCustomFuncFromWindow(pageDesignResult.value);
|
|
352
|
+
}
|
|
353
|
+
bus.$off(eventPageInfo.value + "export-form-report");
|
|
354
|
+
bus.$off(eventPageInfo.value + "export-pdf-report");
|
|
355
|
+
bus.$off(eventPageInfo.value + "import-file");
|
|
356
|
+
bus.$off(eventPageInfo.value + "assign-task");
|
|
357
|
+
bus.$off(eventPageInfo.value + "copy-task");
|
|
358
|
+
bus.$off(eventPageInfo.value + "add-signer");
|
|
359
|
+
bus.$off(eventPageInfo.value + "choose-return-node");
|
|
360
|
+
bus.$off(eventPageInfo.value + "remove-signer");
|
|
361
|
+
bus.$off(eventPageInfo.value + "prohibit-edit");
|
|
362
|
+
bus.$off(eventPageInfo.value + "open-dialog");
|
|
363
|
+
bus.$off("pageLoaded");
|
|
364
|
+
if (pageContext.value) {
|
|
365
|
+
handleEvent(null, pageContext.value, pageContext.value, "onUnmounted");
|
|
366
|
+
}
|
|
367
|
+
if (initOptionDatasTimer) {
|
|
368
|
+
clearTimeout(initOptionDatasTimer);
|
|
369
|
+
}
|
|
370
|
+
if (initChartDatasTimer) {
|
|
371
|
+
clearTimeout(initChartDatasTimer);
|
|
372
|
+
}
|
|
373
|
+
if (initPageTimer) {
|
|
374
|
+
clearTimeout(initPageTimer);
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
function closeExportFormDialog() {
|
|
378
|
+
showExportForm.value = false;
|
|
379
|
+
buttonParams.value = null;
|
|
380
|
+
}
|
|
381
|
+
function doExportFormReport(buttonConfigure2, templateFile) {
|
|
382
|
+
let isPdf = false;
|
|
383
|
+
if (buttonConfigure2.name === "export-pdf") {
|
|
384
|
+
isPdf = true;
|
|
385
|
+
}
|
|
386
|
+
exportFormReport(
|
|
387
|
+
buttonParams.value.pageContext,
|
|
388
|
+
buttonParams.value.configureObj,
|
|
389
|
+
templateFile,
|
|
390
|
+
isPdf
|
|
391
|
+
);
|
|
392
|
+
}
|
|
393
|
+
const _selectFile_ = ref(null);
|
|
394
|
+
function clickImport() {
|
|
395
|
+
_selectFile_.value.click();
|
|
396
|
+
}
|
|
397
|
+
function doImport() {
|
|
398
|
+
if (buttonParams.value) {
|
|
399
|
+
if (!_selectFile_.value) {
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
if (_selectFile_.value.value === "" || _selectFile_.value.value === null) return;
|
|
403
|
+
const fileObj = _selectFile_.value.files[0];
|
|
404
|
+
if (fileObj) {
|
|
405
|
+
_selectFile_.value.value = null;
|
|
406
|
+
doImportFinally(buttonParams.value, fileObj);
|
|
407
|
+
} else {
|
|
408
|
+
ElMessage({
|
|
409
|
+
showClose: true,
|
|
410
|
+
type: "warning",
|
|
411
|
+
message: t("superPageRuntimeMessage.noFileSelected")
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
function closeDeptUserTree(selectNodeInfo) {
|
|
417
|
+
if (selectAddSignerUser.value === true) {
|
|
418
|
+
selectAddSignerUser.value = false;
|
|
419
|
+
doAddSigner(buttonParams.value, selectNodeInfo);
|
|
420
|
+
}
|
|
421
|
+
if (selectCopyUser.value === true) {
|
|
422
|
+
selectCopyUser.value = false;
|
|
423
|
+
doCreateCopyTask(buttonParams.value, selectNodeInfo);
|
|
424
|
+
}
|
|
425
|
+
if (selectAssignUser.value === true) {
|
|
426
|
+
selectAssignUser.value = false;
|
|
427
|
+
doAssign(buttonParams.value, selectNodeInfo);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
function myReturnTaskTo(selectTaskNode) {
|
|
431
|
+
taskInformitions.value = [];
|
|
432
|
+
showTaskInformitions.value = false;
|
|
433
|
+
doReturnTaskTo(buttonParams.value, selectTaskNode);
|
|
434
|
+
}
|
|
435
|
+
function myDoRemoveSigners(selectRemoveTasks) {
|
|
436
|
+
activeTasks.value = [];
|
|
437
|
+
showRemoveSigner.value = false;
|
|
438
|
+
doRemoveSigners(buttonParams.value, selectRemoveTasks);
|
|
439
|
+
}
|
|
440
|
+
function getPopPageSetting(configureObj, eventParams, jumpPageSetting2) {
|
|
441
|
+
return new Promise((resolve, reject) => {
|
|
442
|
+
var _a;
|
|
443
|
+
if (jumpPageSetting2) {
|
|
444
|
+
resolve(jumpPageSetting2);
|
|
445
|
+
} else {
|
|
446
|
+
const myJumpPageSetting = configureObj && configureObj["props"] && configureObj["props"].linkPage ? configureObj["props"].linkPage : null;
|
|
447
|
+
if (myJumpPageSetting && myJumpPageSetting.jumpPageUrl) {
|
|
448
|
+
if (myJumpPageSetting.isNewPage !== false && myJumpPageSetting.isNewPage !== true) {
|
|
449
|
+
myJumpPageSetting.isNewPage = true;
|
|
450
|
+
}
|
|
451
|
+
const additionalParamMap = getAdditionalParamMap(pageContext);
|
|
452
|
+
const isNeedId = ((_a = parentConfigureObj.value.props.linkPage) == null ? void 0 : _a.isNeedId) ? true : false;
|
|
453
|
+
console.log(
|
|
454
|
+
"getPopPageSetting---isNeedId=",
|
|
455
|
+
isNeedId,
|
|
456
|
+
"parentConfigureObj.value=",
|
|
457
|
+
parentConfigureObj.value
|
|
458
|
+
);
|
|
459
|
+
let dataId = isNeedId && eventParams ? eventParams.id : null;
|
|
460
|
+
let ids = isNeedId && eventParams ? eventParams.ids : null;
|
|
461
|
+
let selections = eventParams ? eventParams.selections : [];
|
|
462
|
+
let entity = eventParams ? eventParams.row : null;
|
|
463
|
+
if (!entity) {
|
|
464
|
+
entity = {};
|
|
465
|
+
if (selections && selections.length > 0) {
|
|
466
|
+
entity = selections[0];
|
|
467
|
+
} else {
|
|
468
|
+
const dataModel = parentPageContext.value.entity.data;
|
|
469
|
+
const pageModel = parentPageContext.value.entity.page;
|
|
470
|
+
if (pageModel) {
|
|
471
|
+
Object.assign(entity, pageModel);
|
|
472
|
+
}
|
|
473
|
+
if (dataModel) {
|
|
474
|
+
Object.assign(entity, dataModel);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
const copyPageData = deepCopy(parentPageContext.value.entity.page);
|
|
479
|
+
myJumpPageSetting._pageData = copyPageData;
|
|
480
|
+
jumpToPage(myJumpPageSetting, null, dataId, entity, additionalParamMap, ids).then(
|
|
481
|
+
(openPageParams) => {
|
|
482
|
+
openPageParams.isNeedId = isNeedId;
|
|
483
|
+
resolve(openPageParams);
|
|
484
|
+
}
|
|
485
|
+
);
|
|
486
|
+
} else {
|
|
487
|
+
resolve(false);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
function getCurrentUserPermissionsWhenPopPageDiff(popPageSetting, jumpMode) {
|
|
493
|
+
const loginName = getUsername();
|
|
494
|
+
return new Promise((resolve, reject) => {
|
|
495
|
+
if (loginName) {
|
|
496
|
+
if ((jumpMode === "popup" || isMobile) && parentPageContext.value.systemCode !== popPageSetting.customSystem) {
|
|
497
|
+
const systemCode = popPageSetting.customSystem;
|
|
498
|
+
imatrixUiStore.dispatch("getCurrentUserPermissions", { loginName, systemCode }).then(() => {
|
|
499
|
+
resolve(true);
|
|
500
|
+
}).catch(() => {
|
|
501
|
+
console.log("获得用户权限失败");
|
|
502
|
+
resolve(true);
|
|
503
|
+
});
|
|
504
|
+
} else {
|
|
505
|
+
resolve(true);
|
|
506
|
+
}
|
|
507
|
+
} else {
|
|
508
|
+
resolve(true);
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
const router = useRouter();
|
|
513
|
+
function openDialog(configureObj, eventParams, myJumpPageSetting) {
|
|
514
|
+
getPopPageSetting(configureObj, eventParams, myJumpPageSetting).then((openPageParams) => {
|
|
515
|
+
if (openPageParams) {
|
|
516
|
+
const myJumpPageSettingOrg = configureObj && configureObj["props"] && configureObj["props"].linkPage ? configureObj["props"].linkPage : null;
|
|
517
|
+
if (myJumpPageSettingOrg) {
|
|
518
|
+
Object.assign(openPageParams, deepCopy(myJumpPageSettingOrg));
|
|
519
|
+
}
|
|
520
|
+
refreshMobileDialogType(openPageParams, isMobile);
|
|
521
|
+
console.log(
|
|
522
|
+
"getPopPageSetting33-----openPageParams=",
|
|
523
|
+
openPageParams,
|
|
524
|
+
"configureObj=",
|
|
525
|
+
configureObj
|
|
526
|
+
);
|
|
527
|
+
const jumpMode = openPageParams.jumpMode;
|
|
528
|
+
const popPageSetting = openPageParams;
|
|
529
|
+
if (!parentEventParams.value) {
|
|
530
|
+
parentEventParams.value = {};
|
|
531
|
+
}
|
|
532
|
+
parentEventParams.value.paramStoreId = openPageParams.paramStoreId;
|
|
533
|
+
popPageSetting.parentPageCode = parentPageContext.value.code;
|
|
534
|
+
popPageSetting.parentPageVersion = parentPageContext.value.version;
|
|
535
|
+
popPageSetting.isNewPage = true;
|
|
536
|
+
if (jumpMode === "popup" || jumpMode === "refresh") {
|
|
537
|
+
const linkType = popPageSetting.linkType;
|
|
538
|
+
getCurrentUserPermissionsWhenPopPageDiff(popPageSetting, jumpMode).then(() => {
|
|
539
|
+
if (isMobile && (parentPageContext.value.systemCode !== popPageSetting.customSystem || linkType && linkType === "url")) {
|
|
540
|
+
popPageSetting._isIframe = true;
|
|
541
|
+
if (jumpMode === "refresh") {
|
|
542
|
+
popPageSetting.dialogType = "drawer";
|
|
543
|
+
popPageSetting.jumpPageWidth = "100%";
|
|
544
|
+
}
|
|
545
|
+
jumpPageSetting.value = popPageSetting;
|
|
546
|
+
isShowDialog.value = true;
|
|
547
|
+
} else {
|
|
548
|
+
popPageSetting._isIframe = false;
|
|
549
|
+
if (jumpMode === "popup" || isMobile && jumpMode === "refresh") {
|
|
550
|
+
if (jumpMode === "refresh") {
|
|
551
|
+
popPageSetting.dialogType = "drawer";
|
|
552
|
+
popPageSetting.jumpPageWidth = "100%";
|
|
553
|
+
}
|
|
554
|
+
jumpPageSetting.value = popPageSetting;
|
|
555
|
+
isShowDialog.value = true;
|
|
556
|
+
} else if (jumpMode === "refresh") {
|
|
557
|
+
router.push({
|
|
558
|
+
path: "/dsc/page",
|
|
559
|
+
query: popPageSetting
|
|
116
560
|
});
|
|
117
561
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}), R.$on(Ne.value + "close-dialog", (e7) => {
|
|
123
|
-
!function(e8) {
|
|
124
|
-
const l4 = e8.jumpMode;
|
|
125
|
-
l4 && "popup" === l4 || Le && "refresh" === l4 ? ul(e8) : nl.go(-1);
|
|
126
|
-
}(e7);
|
|
562
|
+
}
|
|
563
|
+
});
|
|
564
|
+
bus.$on(eventPageInfo.value + "close-dialog", (params) => {
|
|
565
|
+
closeFunc(params);
|
|
127
566
|
});
|
|
128
567
|
}
|
|
129
|
-
} else
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
const e3 = he.value.parentNode ? he.value.parentNode : he.value;
|
|
141
|
-
let l2 = ye.contentHeight;
|
|
142
|
-
if (!l2) {
|
|
143
|
-
const o3 = e3.getBoundingClientRect();
|
|
144
|
-
console.log("setContextStyle-----isMobile=", Le), l2 = Le ? window.innerHeight - o3.y - 28 : window.innerHeight - o3.y - 40;
|
|
145
|
-
}
|
|
146
|
-
let o2 = l2;
|
|
147
|
-
ie(l2) && (o2 = l2 + "px"), e3.style.height = o2, e3.style["overflow-y"] = "auto";
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
function Ye() {
|
|
151
|
-
const e3 = Be.value.entity.data, l2 = null == e3.ID ? e3.id : e3.ID;
|
|
152
|
-
Je.query && Je.query._t_ && l2 && te(Je.query._t_ + "_id", l2);
|
|
153
|
-
}
|
|
154
|
-
function Ze() {
|
|
155
|
-
De.value = false, ke.value = null;
|
|
156
|
-
}
|
|
157
|
-
function el(e3, l2) {
|
|
158
|
-
let o2 = false;
|
|
159
|
-
"export-pdf" === e3.name && (o2 = true), W(ke.value.pageContext, ke.value.configureObj, l2, o2);
|
|
160
|
-
}
|
|
161
|
-
o(() => {
|
|
162
|
-
null != ye.pageDesign ? (je.value = ye.pageDesign, Ke = setTimeout(() => {
|
|
163
|
-
Qe(ye.pageDesign).then(() => {
|
|
164
|
-
ye.pageDesign.tableRuntimes && Object.keys(ye.pageDesign.tableRuntimes).length > 0 ? C(ye.pageDesign, Be.value, ye.publishVersion).then((e3) => {
|
|
165
|
-
Be.value.isWorkflowEntity = e3.isWorkflowEntity, Be.value.dataTypeMaps = e3.dataTypeMaps, Be.value.superGridItems = e3.superGrids;
|
|
166
|
-
}).catch((e3) => {
|
|
167
|
-
console.log("queryPageSuperGrids error", e3);
|
|
168
|
-
}).finally(() => {
|
|
169
|
-
Fe.value = true, Xe();
|
|
170
|
-
}) : (Fe.value = true, Xe()), Ye();
|
|
171
|
-
});
|
|
172
|
-
}, 0)) : ye.pageCode && b(ye.pageCode).then((e3) => {
|
|
173
|
-
if (e3 && e3.designJson) {
|
|
174
|
-
const l2 = e3.designJson, o2 = JSON.parse(l2);
|
|
175
|
-
je.value = o2, Qe(o2).then(() => {
|
|
176
|
-
Ye(), Fe.value = true, Xe();
|
|
177
|
-
});
|
|
568
|
+
} else {
|
|
569
|
+
console.error("页面配置信息不存在");
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
function closeFunc(params) {
|
|
574
|
+
const jumpMode = params.jumpMode;
|
|
575
|
+
if (jumpMode && jumpMode === "popup" || isMobile && jumpMode === "refresh") {
|
|
576
|
+
closeDialog(params);
|
|
577
|
+
} else {
|
|
578
|
+
router.go(-1);
|
|
178
579
|
}
|
|
580
|
+
}
|
|
581
|
+
function closeDialog(params) {
|
|
582
|
+
var _a, _b;
|
|
583
|
+
const closeEventName = jumpPageSetting.value.closeEvent;
|
|
584
|
+
const isRefreshWhenClosePopup = jumpPageSetting.value.isRefreshWhenClosePopup;
|
|
585
|
+
let dataModel;
|
|
586
|
+
let sourceTableName;
|
|
587
|
+
const targetTableName = parentPageContext.value.tableName;
|
|
588
|
+
let currentParentConfigureObj;
|
|
589
|
+
const columnProp = parentEventParams.value.columnProp ? parentEventParams.value.columnProp : null;
|
|
590
|
+
if (columnProp) {
|
|
591
|
+
const columnConfigures = (_b = (_a = parentConfigureObj.value) == null ? void 0 : _a.items) == null ? void 0 : _b.filter(
|
|
592
|
+
(column) => {
|
|
593
|
+
var _a2, _b2, _c, _d;
|
|
594
|
+
return ((_b2 = (_a2 = column.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.prop) && ((_d = (_c = column.props) == null ? void 0 : _c.base) == null ? void 0 : _d.prop) === columnProp;
|
|
595
|
+
}
|
|
596
|
+
);
|
|
597
|
+
currentParentConfigureObj = columnConfigures && columnConfigures.length > 0 ? columnConfigures[0] : null;
|
|
598
|
+
} else {
|
|
599
|
+
currentParentConfigureObj = parentConfigureObj.value;
|
|
600
|
+
}
|
|
601
|
+
if (params) {
|
|
602
|
+
const isNeedValueMapping = params.isNeedValueMapping;
|
|
603
|
+
dataModel = params.dataModel;
|
|
604
|
+
sourceTableName = params.sourceTableName;
|
|
605
|
+
if (isNeedValueMapping) {
|
|
606
|
+
updateValuesWhenCloseDialog(
|
|
607
|
+
parentPageContext.value,
|
|
608
|
+
currentParentConfigureObj,
|
|
609
|
+
dataModel,
|
|
610
|
+
sourceTableName,
|
|
611
|
+
jumpPageSetting.value ? jumpPageSetting.value.valueMappings : null
|
|
612
|
+
);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
handleEvent(null, parentPageContext.value, currentParentConfigureObj, "closePopup", {
|
|
616
|
+
sourceModel: dataModel,
|
|
617
|
+
sourceTableName,
|
|
618
|
+
jumpPageSetting: jumpPageSetting.value,
|
|
619
|
+
entity: parentPageContext.value.entity.data,
|
|
620
|
+
targetTableName,
|
|
621
|
+
pageContext: pageContext.value,
|
|
622
|
+
parentPageContext: parentPageContext.value,
|
|
623
|
+
parentConfigureObj: currentParentConfigureObj,
|
|
624
|
+
columnProp
|
|
625
|
+
});
|
|
626
|
+
handleCloseDialogEvent(closeEventName, columnProp, currentParentConfigureObj);
|
|
627
|
+
refreshFormOrListPage(
|
|
628
|
+
parentPageContext.value,
|
|
629
|
+
parentConfigureObj.value,
|
|
630
|
+
isRefreshWhenClosePopup,
|
|
631
|
+
isRefreshWhenClosePopup !== void 0 && isRefreshWhenClosePopup === false ? "noOperation" : null
|
|
632
|
+
);
|
|
633
|
+
parentPageContext.value = null;
|
|
634
|
+
parentConfigureObj.value = null;
|
|
635
|
+
parentEventParams.value = null;
|
|
636
|
+
bus.$off(eventPageInfo.value + "close-dialog");
|
|
637
|
+
isShowDialog.value = false;
|
|
638
|
+
}
|
|
639
|
+
function handleCloseDialogEvent(closeEventName, columnProp, currentParentConfigureObj) {
|
|
640
|
+
if (closeEventName) {
|
|
641
|
+
const func = getCustomFunc(parentPageContext.value, closeEventName);
|
|
642
|
+
if (func) {
|
|
643
|
+
func.apply(func, [
|
|
644
|
+
{
|
|
645
|
+
pageContext: pageContext.value,
|
|
646
|
+
parentPageContext: parentPageContext.value,
|
|
647
|
+
parentConfigureObj: currentParentConfigureObj,
|
|
648
|
+
jumpPageSetting: jumpPageSetting.value,
|
|
649
|
+
columnProp
|
|
650
|
+
}
|
|
651
|
+
]);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
function pickFileDone(data) {
|
|
656
|
+
let componentId = data.componentId;
|
|
657
|
+
let listCode = data.listCode;
|
|
658
|
+
console.log("superPage1111---pickFileDone--componentId=", componentId, "data=", data);
|
|
659
|
+
if (!componentId && !listCode) {
|
|
660
|
+
console.log("superPage2222---pickFileDone--componentId=", componentId, "data=", data);
|
|
661
|
+
return;
|
|
662
|
+
}
|
|
663
|
+
console.log("superPage333---pickFileDone--componentId=", componentId, "data=", data);
|
|
664
|
+
if (listCode) {
|
|
665
|
+
bus.$emit(listCode + "-pickFileDone", data);
|
|
666
|
+
} else {
|
|
667
|
+
bus.$emit(componentId + "-pickFileDone", data);
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
function uploadFileDone(data) {
|
|
671
|
+
let componentId = data.componentId;
|
|
672
|
+
let listCode = data.listCode;
|
|
673
|
+
console.log("superPage1111---uploadFileDone--componentId=", componentId, "data=", data);
|
|
674
|
+
if (!componentId && !listCode) {
|
|
675
|
+
console.log("superPage2222---uploadFileDone--componentId=", componentId, "data=", data);
|
|
676
|
+
return;
|
|
677
|
+
}
|
|
678
|
+
console.log("superPage333---uploadFileDone--componentId=", componentId, "data=", data);
|
|
679
|
+
if (listCode) {
|
|
680
|
+
bus.$emit(listCode + "-uploadFileDone", data);
|
|
681
|
+
} else {
|
|
682
|
+
bus.$emit(componentId + "-uploadFileDone", data);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
function scanDone(data) {
|
|
686
|
+
let componentId = data.componentId;
|
|
687
|
+
let listCode = data.listCode;
|
|
688
|
+
console.log("superPage1111---scanDone--componentId=", componentId, "data=", data);
|
|
689
|
+
if (!componentId && !listCode) {
|
|
690
|
+
console.log("superPage2222---scanDone--componentId=", componentId, "data=", data);
|
|
691
|
+
return;
|
|
692
|
+
}
|
|
693
|
+
console.log("superPage3333---scanDone--componentId=", componentId, "data=", data);
|
|
694
|
+
if (listCode) {
|
|
695
|
+
bus.$emit(listCode + "-scanDone", data);
|
|
696
|
+
} else {
|
|
697
|
+
bus.$emit(componentId + "-scanDone", data);
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
__expose({
|
|
701
|
+
pickFileDone,
|
|
702
|
+
uploadFileDone,
|
|
703
|
+
scanDone
|
|
179
704
|
});
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
705
|
+
return (_ctx, _cache) => {
|
|
706
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
707
|
+
isShowPage.value ? (openBlock(), createElementBlock("div", {
|
|
708
|
+
ref_key: "thisRef",
|
|
709
|
+
ref: thisRef,
|
|
710
|
+
key: pageKey.value,
|
|
711
|
+
class: normalizeClass(pageClass.value),
|
|
712
|
+
style: normalizeStyle(pageStyle.value)
|
|
713
|
+
}, [
|
|
714
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(pageItems.value, (element, itemIndex) => {
|
|
715
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
716
|
+
key: element.uuid,
|
|
717
|
+
configure: element,
|
|
718
|
+
pageContext: unref(pageContext)
|
|
719
|
+
}, null, 8, ["configure", "pageContext"]);
|
|
720
|
+
}), 128)),
|
|
721
|
+
showExportForm.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
722
|
+
key: 0,
|
|
723
|
+
configure: buttonConfigure.value,
|
|
724
|
+
pageContext: buttonPageContext.value,
|
|
725
|
+
onClose: closeExportFormDialog,
|
|
726
|
+
onExport: doExportFormReport
|
|
727
|
+
}, null, 8, ["configure", "pageContext"])) : createCommentVNode("", true),
|
|
728
|
+
createElementVNode("input", {
|
|
729
|
+
ref_key: "_selectFile_",
|
|
730
|
+
ref: _selectFile_,
|
|
731
|
+
type: "file",
|
|
732
|
+
name: "_selectFile_",
|
|
733
|
+
style: { "display": "none" },
|
|
734
|
+
onChange: _cache[0] || (_cache[0] = ($event) => doImport())
|
|
735
|
+
}, null, 544),
|
|
736
|
+
selectAddSignerUser.value || selectCopyUser.value || selectAssignUser.value ? (openBlock(), createBlock(unref(DepartmentUserTree), {
|
|
737
|
+
key: 1,
|
|
738
|
+
width: "60%",
|
|
739
|
+
multiple: isMulti.value,
|
|
740
|
+
onClose: closeDeptUserTree
|
|
741
|
+
}, null, 8, ["multiple"])) : createCommentVNode("", true),
|
|
742
|
+
showTaskInformitions.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
743
|
+
key: 2,
|
|
744
|
+
"task-informitions": taskInformitions.value,
|
|
745
|
+
onClose: _cache[1] || (_cache[1] = ($event) => showTaskInformitions.value = false),
|
|
746
|
+
onResult: myReturnTaskTo
|
|
747
|
+
}, null, 8, ["task-informitions"])) : createCommentVNode("", true),
|
|
748
|
+
showRemoveSigner.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
749
|
+
key: 3,
|
|
750
|
+
"task-id": taskIdVal.value,
|
|
751
|
+
"active-tasks": activeTasks.value,
|
|
752
|
+
onClose: _cache[2] || (_cache[2] = ($event) => showRemoveSigner.value = false),
|
|
753
|
+
onResult: myDoRemoveSigners
|
|
754
|
+
}, null, 8, ["task-id", "active-tasks"])) : createCommentVNode("", true),
|
|
755
|
+
isShowDialog.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
756
|
+
key: 4,
|
|
757
|
+
parentPageContext: parentPageContext.value,
|
|
758
|
+
parentPageEventParams: parentEventParams.value,
|
|
759
|
+
jumpPageSetting: jumpPageSetting.value,
|
|
760
|
+
onClose: _cache[3] || (_cache[3] = ($event) => closeDialog())
|
|
761
|
+
}, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : createCommentVNode("", true)
|
|
762
|
+
], 6)) : createCommentVNode("", true)
|
|
763
|
+
]);
|
|
764
|
+
};
|
|
222
765
|
}
|
|
223
|
-
|
|
224
|
-
let l2 = e3.componentId, o2 = e3.listCode;
|
|
225
|
-
console.log("superPage1111---pickFileDone--componentId=", l2, "data=", e3), l2 || o2 ? (console.log("superPage333---pickFileDone--componentId=", l2, "data=", e3), o2 ? R.$emit(o2 + "-pickFileDone", e3) : R.$emit(l2 + "-pickFileDone", e3)) : console.log("superPage2222---pickFileDone--componentId=", l2, "data=", e3);
|
|
226
|
-
}, uploadFileDone: function(e3) {
|
|
227
|
-
let l2 = e3.componentId, o2 = e3.listCode;
|
|
228
|
-
console.log("superPage1111---uploadFileDone--componentId=", l2, "data=", e3), l2 || o2 ? (console.log("superPage333---uploadFileDone--componentId=", l2, "data=", e3), o2 ? R.$emit(o2 + "-uploadFileDone", e3) : R.$emit(l2 + "-uploadFileDone", e3)) : console.log("superPage2222---uploadFileDone--componentId=", l2, "data=", e3);
|
|
229
|
-
}, scanDone: function(e3) {
|
|
230
|
-
let l2 = e3.componentId, o2 = e3.listCode;
|
|
231
|
-
console.log("superPage1111---scanDone--componentId=", l2, "data=", e3), l2 || o2 ? (console.log("superPage3333---scanDone--componentId=", l2, "data=", e3), o2 ? R.$emit(o2 + "-scanDone", e3) : R.$emit(l2 + "-scanDone", e3)) : console.log("superPage2222---scanDone--componentId=", l2, "data=", e3);
|
|
232
|
-
} }), (e3, l2) => (i(), u("div", ge, [Fe.value ? (i(), u("div", { ref_key: "thisRef", ref: he, key: Ue.value, class: p(Ce.value), style: r(be.value) }, [(i(true), u(c, null, m(Pe.value, (e4, l3) => (i(), v(y, { key: e4.uuid, configure: e4, pageContext: d(Be) }, null, 8, ["configure", "pageContext"]))), 128)), De.value ? (i(), v(O, { key: 0, configure: He.value, pageContext: Ge.value, onClose: Ze, onExport: el }, null, 8, ["configure", "pageContext"])) : s("", true), g("input", { ref_key: "_selectFile_", ref: ll, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: l2[0] || (l2[0] = (e4) => function() {
|
|
233
|
-
if (ke.value) {
|
|
234
|
-
if (!ll.value) return;
|
|
235
|
-
if ("" === ll.value.value || null === ll.value.value) return;
|
|
236
|
-
const e5 = ll.value.files[0];
|
|
237
|
-
e5 ? (ll.value.value = null, B(ke.value, e5)) : Q({ showClose: true, type: "warning", message: fe("superPageRuntimeMessage.noFileSelected") });
|
|
238
|
-
}
|
|
239
|
-
}()) }, null, 544), $e.value || xe.value || Ie.value ? (i(), v(d(Y), { key: 1, width: "60%", multiple: we.value, onClose: ol }, null, 8, ["multiple"])) : s("", true), Se.value ? (i(), v(_, { key: 2, "task-informitions": qe.value, onClose: l2[1] || (l2[1] = (e4) => Se.value = false), onResult: al }, null, 8, ["task-informitions"])) : s("", true), Oe.value ? (i(), v(F, { key: 3, "task-id": _e.value, "active-tasks": Te.value, onClose: l2[2] || (l2[2] = (e4) => Oe.value = false), onResult: tl }, null, 8, ["task-id", "active-tasks"])) : s("", true), Re.value ? (i(), v(ee, { key: 4, parentPageContext: Ve.value, parentPageEventParams: We.value, jumpPageSetting: Me.value, onClose: l2[3] || (l2[3] = (e4) => ul()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : s("", true)], 6)) : s("", true)]));
|
|
240
|
-
} });
|
|
766
|
+
});
|
|
241
767
|
export {
|
|
242
|
-
|
|
768
|
+
_sfc_main as default
|
|
243
769
|
};
|