super-page-runtime 2.0.16 → 2.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/api-util.js +16 -14
- package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +202 -0
- package/dist/es/components/runtime/utils/assemblys-config.js +29 -7
- package/dist/es/components/runtime/utils/common-util.d.ts +3 -2
- package/dist/es/components/runtime/utils/common-util.js +21 -11
- package/dist/es/components/runtime/utils/events/event-util.js +9 -14
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +128 -110
- package/dist/es/components/runtime/utils/events/validator-util.js +4 -3
- package/dist/es/components/runtime/utils/global-refs.js +12 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +3 -1
- package/dist/es/components/runtime/utils/page-helper-util.js +4 -4
- package/dist/es/components/runtime/utils/page-init-util.js +6 -3
- package/dist/es/components/runtime/utils/table-utils.js +4 -5
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +13 -8
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +12 -13
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -1
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +28 -28
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +12 -12
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +7 -5
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +33 -33
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +40 -37
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +91 -39
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +27 -27
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +42 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +14 -14
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +8 -3
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +40 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +40 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/super-page.vue.js +2 -2
- package/package.json +3 -2
- package/dist/lib/_virtual/AttributeMap.js +0 -4
- package/dist/lib/_virtual/Delta.js +0 -4
- package/dist/lib/_virtual/Op.js +0 -4
- package/dist/lib/_virtual/OpIterator.js +0 -4
- package/dist/lib/_virtual/__vite-browser-external.js +0 -3
- package/dist/lib/_virtual/_commonjsHelpers.js +0 -8
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/lib/_virtual/dayjs.min.js +0 -4
- package/dist/lib/_virtual/index.js +0 -4
- package/dist/lib/_virtual/index2.js +0 -4
- package/dist/lib/_virtual/index3.js +0 -4
- package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme1.js +0 -7
- package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme2.js +0 -7
- package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme3.js +0 -7
- package/dist/lib/components/runtime/index.d.ts +0 -4
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/api/api-util.js +0 -128
- package/dist/lib/components/runtime/utils/assemblys-config.js +0 -258
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -28
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -16
- package/dist/lib/components/runtime/utils/common-util.js +0 -94
- package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
- package/dist/lib/components/runtime/utils/eventBus.js +0 -10
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -48
- package/dist/lib/components/runtime/utils/events/event-util.js +0 -526
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -61
- package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1625
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -4
- package/dist/lib/components/runtime/utils/events/validator-util.js +0 -389
- package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
- package/dist/lib/components/runtime/utils/global-refs.js +0 -65
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -223
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -106
- package/dist/lib/components/runtime/utils/page-helper-util.js +0 -622
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -38
- package/dist/lib/components/runtime/utils/page-init-util.js +0 -200
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/lib/components/runtime/utils/store-util.js +0 -17
- package/dist/lib/components/runtime/utils/store.d.ts +0 -2
- package/dist/lib/components/runtime/utils/store.js +0 -3
- package/dist/lib/components/runtime/utils/table-utils.js +0 -24
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -432
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -52
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -56
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -44
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -69
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -642
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -64
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -164
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -142
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -73
- package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
- package/dist/lib/components/runtime/views/super-page.vue.js +0 -496
- package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/index.d.ts +0 -8
- package/dist/lib/index.js +0 -15
|
@@ -2,9 +2,10 @@ import { getSystemBackendUrl } from "agilebuilder-ui/src/utils/common-util";
|
|
|
2
2
|
import { getSessionCache } from "agilebuilder-ui/src/utils/auth";
|
|
3
3
|
import http from "agilebuilder-ui/src/utils/request";
|
|
4
4
|
import { getBaseUrl } from "../common-util.js";
|
|
5
|
-
import { dealCompleteTaskParam } from "../events/standard-event.js";
|
|
5
|
+
import { getAdditionalParamMap, dealCompleteTaskParam } from "../events/standard-event.js";
|
|
6
6
|
import { packageCustomRules, getWorkflowRules } from "../events/validator-util.js";
|
|
7
7
|
import { handleEvent } from "../events/event-util.js";
|
|
8
|
+
import { functions } from "./page-expose-util.js";
|
|
8
9
|
function refreshPage(pageContext) {
|
|
9
10
|
getFormData(pageContext).then((commonEntity) => {
|
|
10
11
|
pageContext.isRefresh = true;
|
|
@@ -28,22 +29,22 @@ function getFormData(pageContext) {
|
|
|
28
29
|
}
|
|
29
30
|
function getCommonFormData(pageContext) {
|
|
30
31
|
return new Promise((resolve, reject) => {
|
|
31
|
-
const
|
|
32
|
+
const systemCode = pageContext.systemCode;
|
|
32
33
|
const pageCode = pageContext.code;
|
|
33
34
|
const pageVersion = pageContext.version;
|
|
34
|
-
const additionalParamMap = pageContext
|
|
35
|
+
const additionalParamMap = getAdditionalParamMap(pageContext);
|
|
35
36
|
const dataId = additionalParamMap ? additionalParamMap.id : null;
|
|
36
37
|
const ids = additionalParamMap ? additionalParamMap.ids : null;
|
|
37
38
|
const taskId = additionalParamMap ? additionalParamMap.taskId : null;
|
|
38
|
-
const permissionPrefix =
|
|
39
|
-
const backendUrl = getSystemBackendUrl(
|
|
39
|
+
const permissionPrefix = systemCode + "." + pageCode;
|
|
40
|
+
const backendUrl = getSystemBackendUrl(pageContext.backendUrl);
|
|
40
41
|
const param = {
|
|
41
42
|
pageCode,
|
|
42
43
|
pageVersion,
|
|
43
44
|
tableName: pageContext.tableName,
|
|
44
45
|
formNoRuleCode: pageContext.formNoRuleCode,
|
|
45
46
|
id: dataId,
|
|
46
|
-
systemCode
|
|
47
|
+
systemCode,
|
|
47
48
|
functionCode: permissionPrefix + ".get",
|
|
48
49
|
tableNames: pageContext.tableNames
|
|
49
50
|
};
|
|
@@ -72,7 +73,7 @@ function getCommonFormData(pageContext) {
|
|
|
72
73
|
pageContext.initFormNo = commonEntity.formNo;
|
|
73
74
|
}
|
|
74
75
|
const customRules = pageContext.customRules;
|
|
75
|
-
|
|
76
|
+
const formRules = pageContext.rules;
|
|
76
77
|
const newFormRules = packageCustomRules(customRules, formRules);
|
|
77
78
|
pageContext.rules = newFormRules;
|
|
78
79
|
const pageDesign = {
|
|
@@ -96,21 +97,21 @@ function getCommonFormData(pageContext) {
|
|
|
96
97
|
}
|
|
97
98
|
function getWorkflowFormData(pageContext) {
|
|
98
99
|
return new Promise((resolve, reject) => {
|
|
99
|
-
const
|
|
100
|
+
const systemCode = pageContext.systemCode;
|
|
100
101
|
const pageCode = pageContext.code;
|
|
101
102
|
const pageVersion = pageContext.version;
|
|
102
|
-
const additionalParamMap = pageContext
|
|
103
|
+
const additionalParamMap = getAdditionalParamMap(pageContext);
|
|
103
104
|
const dataId = additionalParamMap ? additionalParamMap.id : null;
|
|
104
105
|
const ids = additionalParamMap ? additionalParamMap.ids : null;
|
|
105
106
|
const taskId = additionalParamMap ? additionalParamMap.taskId : null;
|
|
106
|
-
const permissionPrefix =
|
|
107
|
+
const permissionPrefix = systemCode + "." + pageCode;
|
|
107
108
|
const param = {
|
|
108
109
|
pageCode,
|
|
109
110
|
pageVersion,
|
|
110
111
|
tableName: pageContext.tableName,
|
|
111
112
|
formNoRuleCode: pageContext.formNoRuleCode,
|
|
112
113
|
isWorkflowEntity: true,
|
|
113
|
-
systemCode
|
|
114
|
+
systemCode,
|
|
114
115
|
functionCode: permissionPrefix + ".get",
|
|
115
116
|
tableNames: pageContext.tableNames
|
|
116
117
|
};
|
|
@@ -135,7 +136,7 @@ function getWorkflowFormData(pageContext) {
|
|
|
135
136
|
if (pageContext.beanName) {
|
|
136
137
|
param["beanName"] = pageContext.beanName;
|
|
137
138
|
}
|
|
138
|
-
const baseUrl = getBaseUrl(
|
|
139
|
+
const baseUrl = getBaseUrl(pageContext.backendUrl);
|
|
139
140
|
const urlForView = baseUrl + "/dsc/workflow-commons/gets";
|
|
140
141
|
http.post(urlForView, param).then((commonEntity) => {
|
|
141
142
|
pageContext.definitionId = commonEntity.definitionId;
|
|
@@ -231,8 +232,8 @@ function changeFieldPermissionToMap(pageContext) {
|
|
|
231
232
|
pageContext.fieldPermissionMap = fieldPermissionMap;
|
|
232
233
|
}
|
|
233
234
|
function changeActionPermissionToMap(pageContext) {
|
|
234
|
-
|
|
235
|
-
|
|
235
|
+
const fieldPermissionMap = pageContext.fieldPermissionMap;
|
|
236
|
+
const actionPermissionMap = pageContext.actionPermissionMap;
|
|
236
237
|
const actionPermissions = pageContext.actionPermissions;
|
|
237
238
|
if (typeof actionPermissions !== "undefined" && actionPermissions !== null) {
|
|
238
239
|
const subModelNames = Object.keys(actionPermissions);
|
|
@@ -260,6 +261,7 @@ function changeActionPermissionToMap(pageContext) {
|
|
|
260
261
|
}
|
|
261
262
|
pageContext.actionPermissionMap = actionPermissionMap;
|
|
262
263
|
}
|
|
264
|
+
window["$PageUtil"] = functions;
|
|
263
265
|
export {
|
|
264
266
|
getFormData,
|
|
265
267
|
refreshPage
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const functions: any;
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { setValueForVariableName } from "../page-helper-util.js";
|
|
2
|
+
import { getComponentRefByCode } from "../global-refs.js";
|
|
3
|
+
import eventBus from "../eventBus.js";
|
|
4
|
+
import http from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { getAdditionalParamMap } from "../events/standard-event.js";
|
|
6
|
+
const functions = {
|
|
7
|
+
/**
|
|
8
|
+
* 展示页面中的某个组件元素
|
|
9
|
+
* @param pageDesign 页面设计对象
|
|
10
|
+
* @param codes 展示组件所绑定的变量或者是绑定的code值, 绑定变量时传递变量名, 如果绑定的变量为${data.xxx}则传递xxx
|
|
11
|
+
*/
|
|
12
|
+
showElement: function(pageContext, codes) {
|
|
13
|
+
codes.forEach((code) => {
|
|
14
|
+
const ref = getComponentRefByCode(pageContext, code);
|
|
15
|
+
if (ref) {
|
|
16
|
+
ref.show();
|
|
17
|
+
} else {
|
|
18
|
+
console.error(`未找到code为${code}的组件`);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* 隐藏页面中的某个组件元素
|
|
24
|
+
* @param pageDesign 页面设计对象
|
|
25
|
+
* @param codes 展示组件所绑定的变量或者是绑定的code值, 绑定变量时传递变量名, 如果绑定的变量为${data.xxx}则传递xxx
|
|
26
|
+
*/
|
|
27
|
+
hideElement: function(pageContext, codes) {
|
|
28
|
+
codes.forEach((code) => {
|
|
29
|
+
const ref = getComponentRefByCode(pageContext, code);
|
|
30
|
+
if (ref) {
|
|
31
|
+
ref.hide();
|
|
32
|
+
} else {
|
|
33
|
+
console.error(`未找到code为${code}的组件`);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* 设置组件元素可用状态
|
|
39
|
+
* @param pageContext
|
|
40
|
+
* @param codes ['name', 'age']
|
|
41
|
+
*/
|
|
42
|
+
enableElement: function(pageContext, codes) {
|
|
43
|
+
codes.forEach((code) => {
|
|
44
|
+
const ref = getComponentRefByCode(pageContext, code);
|
|
45
|
+
if (ref) {
|
|
46
|
+
const configure = ref.getConfigure();
|
|
47
|
+
if (configure && configure.runtime.props) {
|
|
48
|
+
configure.runtime.props.state = "enabled";
|
|
49
|
+
}
|
|
50
|
+
} else {
|
|
51
|
+
console.error(`未找到code为${code}的组件`);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* 禁用页面中的某个组件元素
|
|
57
|
+
* @param pageContext
|
|
58
|
+
* @param codes ['name', 'age']
|
|
59
|
+
*/
|
|
60
|
+
disableElement: function(pageContext, codes) {
|
|
61
|
+
codes.forEach((code) => {
|
|
62
|
+
const ref = getComponentRefByCode(pageContext, code);
|
|
63
|
+
if (ref) {
|
|
64
|
+
const configure = ref.getConfigure();
|
|
65
|
+
if (configure && configure.runtime.props) {
|
|
66
|
+
configure.runtime.props.state = "disabled";
|
|
67
|
+
}
|
|
68
|
+
} else {
|
|
69
|
+
console.error(`未找到code为${code}的组件`);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* 设置值
|
|
75
|
+
* @param pageDesign 页面设计对象
|
|
76
|
+
* @param keyValue {"name":"xxx",age:1,addr:"bj"} 展示组件所绑定的变量或者是绑定的code值, 绑定变量时传递变量名, 如果绑定的变量为${data.xxx}则传递xxx
|
|
77
|
+
*/
|
|
78
|
+
setEntityDataValue: function(pageContext, keyValue) {
|
|
79
|
+
Object.keys(keyValue).forEach((key) => {
|
|
80
|
+
setValueForVariableName(
|
|
81
|
+
pageContext.entity,
|
|
82
|
+
key.startsWith("${") ? key : "${data." + key + "}",
|
|
83
|
+
keyValue[key]
|
|
84
|
+
);
|
|
85
|
+
});
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
* 设置值
|
|
89
|
+
* @param pageDesign 页面设计对象
|
|
90
|
+
* @param keyValue {"name":"xxx",age:1,addr:"bj"} 展示组件所绑定的变量或者是绑定的code值, 绑定变量时传递变量名, 如果绑定的变量为${data.xxx}则传递xxx
|
|
91
|
+
*/
|
|
92
|
+
setEntityPageValue: function(pageContext, keyValue) {
|
|
93
|
+
Object.keys(keyValue).forEach((key) => {
|
|
94
|
+
setValueForVariableName(
|
|
95
|
+
pageContext.entity,
|
|
96
|
+
key.startsWith("${") ? key : "${page." + key + "}",
|
|
97
|
+
keyValue[key]
|
|
98
|
+
);
|
|
99
|
+
});
|
|
100
|
+
},
|
|
101
|
+
setEntityValueByType: function(pageContext, type, keyValue) {
|
|
102
|
+
Object.keys(keyValue).forEach((key) => {
|
|
103
|
+
setValueForVariableName(
|
|
104
|
+
pageContext.entity,
|
|
105
|
+
key.startsWith("${") ? key : "${" + type + "." + key + "}",
|
|
106
|
+
keyValue[key]
|
|
107
|
+
);
|
|
108
|
+
});
|
|
109
|
+
},
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @param pageContext
|
|
113
|
+
* @param keyValue [
|
|
114
|
+
{
|
|
115
|
+
name: 'xxxx',
|
|
116
|
+
show: true,
|
|
117
|
+
readonly: true,
|
|
118
|
+
disabled: true,
|
|
119
|
+
rules: [
|
|
120
|
+
{
|
|
121
|
+
required: true,
|
|
122
|
+
message: 'Please input email address',
|
|
123
|
+
trigger: 'blur'
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
type: 'email',
|
|
127
|
+
message: 'Please input correct email address',
|
|
128
|
+
trigger: ['blur', 'change']
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
*/
|
|
134
|
+
fnProhibitToEdit: function(pageContext, settings) {
|
|
135
|
+
if (!pageContext.customRules) {
|
|
136
|
+
pageContext.customRules = {};
|
|
137
|
+
}
|
|
138
|
+
settings.forEach((item) => {
|
|
139
|
+
if (!item.name) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
if (item.rules) {
|
|
143
|
+
pageContext.customRules[item.name] = item.rules;
|
|
144
|
+
}
|
|
145
|
+
const ref = getComponentRefByCode(pageContext, item.name);
|
|
146
|
+
if (ref) {
|
|
147
|
+
if (item.show !== void 0) {
|
|
148
|
+
item.show ? ref.show() : ref.hide();
|
|
149
|
+
}
|
|
150
|
+
const configure = ref.getConfigure();
|
|
151
|
+
if (item.required !== void 0) {
|
|
152
|
+
configure.runtime.props.required = item.required;
|
|
153
|
+
}
|
|
154
|
+
if (item.readonly !== void 0) {
|
|
155
|
+
item.readonly ? configure.runtime.props.state = "readonly" : configure.runtime.props.state = "enabled";
|
|
156
|
+
}
|
|
157
|
+
if (item.disabled !== void 0) {
|
|
158
|
+
item.disabled ? configure.runtime.props.state = "disabled" : configure.runtime.props.state = "enabled";
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
},
|
|
163
|
+
/**
|
|
164
|
+
* 调用服务流,
|
|
165
|
+
* @param pageContext
|
|
166
|
+
* @param flowCode
|
|
167
|
+
* @returns
|
|
168
|
+
*/
|
|
169
|
+
executeServiceFlow: function(pageContext, flowCode, params) {
|
|
170
|
+
const pageCode = pageContext.code;
|
|
171
|
+
if (!params) {
|
|
172
|
+
params = {
|
|
173
|
+
entity: pageContext.entity.data,
|
|
174
|
+
serviceVariables: {},
|
|
175
|
+
requestParams: getAdditionalParamMap(pageContext),
|
|
176
|
+
taskParamMap: pageContext.entity.task,
|
|
177
|
+
dynamicDimensionValue: [],
|
|
178
|
+
dynamicSortValue: ""
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
if (!params.entity) {
|
|
182
|
+
params.entity = pageContext.entity.data;
|
|
183
|
+
}
|
|
184
|
+
if (!params.requestParams) {
|
|
185
|
+
params.requestParams = getAdditionalParamMap(pageContext);
|
|
186
|
+
}
|
|
187
|
+
if (!params.taskParamMap) {
|
|
188
|
+
params.requestParams = pageContext.entity.task;
|
|
189
|
+
}
|
|
190
|
+
return http.post(`/dsc/service-flow/execute/${pageCode}/${flowCode}`, params);
|
|
191
|
+
},
|
|
192
|
+
openPage: function(pageContext, openParam) {
|
|
193
|
+
eventBus.$emit(pageContext.code + "_open-dialog", {
|
|
194
|
+
pageContext,
|
|
195
|
+
eventParams: {},
|
|
196
|
+
configureObj: { props: { linkPage: openParam } }
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
export {
|
|
201
|
+
functions
|
|
202
|
+
};
|
|
@@ -123,6 +123,12 @@ const assemblyGroups = [
|
|
|
123
123
|
runtimeComponent: defineAsyncComponent(() => {
|
|
124
124
|
return import("../views/assemblys/form/divider/divider-runtime.vue.js");
|
|
125
125
|
})
|
|
126
|
+
}, {
|
|
127
|
+
name: "separatelabel",
|
|
128
|
+
label: "分割标签",
|
|
129
|
+
runtimeComponent: defineAsyncComponent(() => {
|
|
130
|
+
return import("../views/assemblys/form/separatelabel/separatelabel-runtime.vue.js");
|
|
131
|
+
})
|
|
126
132
|
}, {
|
|
127
133
|
name: "placeholder",
|
|
128
134
|
label: "占位符",
|
|
@@ -181,13 +187,29 @@ const assemblyGroups = [
|
|
|
181
187
|
{
|
|
182
188
|
name: "workflow",
|
|
183
189
|
label: "工作流",
|
|
184
|
-
items: [
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
190
|
+
items: [
|
|
191
|
+
{
|
|
192
|
+
name: "workflow-button",
|
|
193
|
+
label: "工作流按钮",
|
|
194
|
+
runtimeComponent: defineAsyncComponent(() => {
|
|
195
|
+
return import("../views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js");
|
|
196
|
+
})
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: "picture-flow",
|
|
200
|
+
label: "图形历史",
|
|
201
|
+
runtimeComponent: defineAsyncComponent(() => {
|
|
202
|
+
return import("../views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js");
|
|
203
|
+
})
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: "text-flow",
|
|
207
|
+
label: "文本历史",
|
|
208
|
+
runtimeComponent: defineAsyncComponent(() => {
|
|
209
|
+
return import("../views/assemblys/workflow/text-history/textflow-runtime.vue.js");
|
|
210
|
+
})
|
|
211
|
+
}
|
|
212
|
+
]
|
|
191
213
|
},
|
|
192
214
|
{
|
|
193
215
|
name: "chart",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare function isArrayFn(value: any): boolean;
|
|
2
|
-
export declare function getBaseUrl(
|
|
3
|
-
export declare function getRealRestApiPath(orgRestApiPath: any,
|
|
2
|
+
export declare function getBaseUrl(backendUrl: any): any;
|
|
3
|
+
export declare function getRealRestApiPath(orgRestApiPath: any, systemCode: any, backendUrl: any): any;
|
|
4
4
|
/**
|
|
5
5
|
* 封装模板文件列表
|
|
6
6
|
* @param templateFiles
|
|
@@ -14,3 +14,4 @@ export declare function getListCode(pageCode: any, pageVersion: any, tableUuid:
|
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
16
|
export declare function deepCopy(srcObj: any): any;
|
|
17
|
+
export declare function getWorkflowId(pageContext: any): any;
|
|
@@ -7,23 +7,19 @@ function isArrayFn(value) {
|
|
|
7
7
|
return Object.prototype.toString.call(value) === "[object Array]";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
function getBaseUrl(
|
|
10
|
+
function getBaseUrl(backendUrl) {
|
|
11
11
|
let baseUrl = window["$vueApp"].config.globalProperties.baseURL;
|
|
12
|
-
if (
|
|
13
|
-
baseUrl = getSystemBackendUrl(
|
|
12
|
+
if (backendUrl) {
|
|
13
|
+
baseUrl = getSystemBackendUrl(backendUrl);
|
|
14
14
|
}
|
|
15
15
|
return baseUrl;
|
|
16
16
|
}
|
|
17
|
-
function getRealRestApiPath(orgRestApiPath,
|
|
17
|
+
function getRealRestApiPath(orgRestApiPath, systemCode, backendUrl) {
|
|
18
18
|
let path = orgRestApiPath;
|
|
19
19
|
if (orgRestApiPath) {
|
|
20
|
-
if (
|
|
21
|
-
const baseUrl = getBaseUrl(
|
|
22
|
-
|
|
23
|
-
path = baseUrl + "/" + system.code + orgRestApiPath;
|
|
24
|
-
} else {
|
|
25
|
-
path = baseUrl + orgRestApiPath;
|
|
26
|
-
}
|
|
20
|
+
if (backendUrl && !isFullPath(orgRestApiPath)) {
|
|
21
|
+
const baseUrl = getBaseUrl(backendUrl);
|
|
22
|
+
path = baseUrl + "/" + systemCode + orgRestApiPath;
|
|
27
23
|
}
|
|
28
24
|
}
|
|
29
25
|
return path;
|
|
@@ -83,11 +79,25 @@ function deepCopy(srcObj) {
|
|
|
83
79
|
}
|
|
84
80
|
return copyObj;
|
|
85
81
|
}
|
|
82
|
+
function getWorkflowId(pageContext) {
|
|
83
|
+
let workflowId;
|
|
84
|
+
if (pageContext.entity && pageContext.entity.data) {
|
|
85
|
+
workflowId = pageContext.entity.data["WORKFLOW_ID"];
|
|
86
|
+
if (!workflowId) {
|
|
87
|
+
workflowId = pageContext.entity.data["workflow_id"];
|
|
88
|
+
}
|
|
89
|
+
if (!workflowId) {
|
|
90
|
+
workflowId = pageContext.entity.data["workflowId"];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return workflowId;
|
|
94
|
+
}
|
|
86
95
|
export {
|
|
87
96
|
deepCopy,
|
|
88
97
|
getBaseUrl,
|
|
89
98
|
getListCode,
|
|
90
99
|
getRealRestApiPath,
|
|
100
|
+
getWorkflowId,
|
|
91
101
|
isArrayFn,
|
|
92
102
|
packageTemplateFiles,
|
|
93
103
|
upperFirstCase
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isPromise } from "agilebuilder-ui/src/utils/common-util";
|
|
2
|
-
import { judgeDataNumber, standardEvents, dealAfterOperate } from "./standard-event.js";
|
|
2
|
+
import { judgeDataNumber, standardEvents, getAdditionalParamMap, dealAfterOperate } from "./standard-event.js";
|
|
3
3
|
import { validateDataModelFunc } from "./validator-util.js";
|
|
4
4
|
import { getComponentRef } from "../global-refs.js";
|
|
5
5
|
import { ElMessage } from "element-plus";
|
|
@@ -36,9 +36,10 @@ function handleEventUtil($event, pageContext, configure, eventType, isExecute, o
|
|
|
36
36
|
const pageCode = pageContext.code;
|
|
37
37
|
const pageVersion = pageContext.version;
|
|
38
38
|
const events = configure.runtime && configure.runtime.events ? configure.runtime.events : [];
|
|
39
|
-
|
|
39
|
+
configure.name;
|
|
40
|
+
debugger;
|
|
40
41
|
let eventFun;
|
|
41
|
-
if (eventType && eventType === "click"
|
|
42
|
+
if (eventType && eventType === "click") {
|
|
42
43
|
const tableUuid = configure.props.base.tableUuid ? configure.props.base.tableUuid : pageContext.tableUuids && pageContext.tableUuids.length > 0 ? pageContext.tableUuids[0] : null;
|
|
43
44
|
if (tableUuid) {
|
|
44
45
|
const gridRef = getComponentRef(pageContext, tableUuid);
|
|
@@ -69,13 +70,6 @@ function handleEventUtil($event, pageContext, configure, eventType, isExecute, o
|
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
|
-
function handleEventByEventName(pageContext, configure, eventName, otherParams) {
|
|
73
|
-
const eventFun = getEventByEventName(pageContext, eventName);
|
|
74
|
-
if (eventFun) {
|
|
75
|
-
const eventParams = packageEventParams(pageContext, configure, null, otherParams);
|
|
76
|
-
return callItemEvent(pageContext, configure, eventFun, eventParams);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
73
|
function packageEventParams(pageContext, configureObj, $event, otherParams) {
|
|
80
74
|
const params = {};
|
|
81
75
|
if (otherParams) {
|
|
@@ -238,7 +232,8 @@ function doAfterClickFunc(pageContext, configure, eventParams, isStandardEvent,
|
|
|
238
232
|
pageContext,
|
|
239
233
|
configure,
|
|
240
234
|
result,
|
|
241
|
-
"
|
|
235
|
+
"",
|
|
236
|
+
// superPageRuntimeMessage.successfulOperation 开发人员自己加事件
|
|
242
237
|
isListButton
|
|
243
238
|
);
|
|
244
239
|
} else {
|
|
@@ -351,7 +346,7 @@ function canExecuteButton(params) {
|
|
|
351
346
|
});
|
|
352
347
|
} else {
|
|
353
348
|
const contextParameter = pageContext.entity.context;
|
|
354
|
-
const additionalParamMap = pageContext
|
|
349
|
+
const additionalParamMap = getAdditionalParamMap(pageContext);
|
|
355
350
|
const isSql = true;
|
|
356
351
|
const tableName = pageContext.tableName;
|
|
357
352
|
let isCanExecute = true;
|
|
@@ -370,7 +365,8 @@ function canExecuteButton(params) {
|
|
|
370
365
|
contextParameter,
|
|
371
366
|
isSql,
|
|
372
367
|
tableName,
|
|
373
|
-
null
|
|
368
|
+
null,
|
|
369
|
+
pageContext
|
|
374
370
|
);
|
|
375
371
|
if (!canExecute) {
|
|
376
372
|
isCanExecute = false;
|
|
@@ -548,7 +544,6 @@ export {
|
|
|
548
544
|
gridSelectRecord,
|
|
549
545
|
gridSelectionChange,
|
|
550
546
|
handleEvent,
|
|
551
|
-
handleEventByEventName,
|
|
552
547
|
headerClick,
|
|
553
548
|
initPageEvents,
|
|
554
549
|
removeCustomFuncFromWindow,
|
|
@@ -53,6 +53,7 @@ export declare function doImportFinally(params: any, fileObj: any): void;
|
|
|
53
53
|
export declare function judgeDataNumber(buttonConfigureObj: any, ids: any): boolean;
|
|
54
54
|
export declare function dealCompleteTaskParam(commonEntity: any, isInit: any, pageContext: any, params?: any, operationResult?: any): boolean;
|
|
55
55
|
export declare function doAssign(params: any, selectNodeInfo: any): void;
|
|
56
|
+
export declare function getAdditionalParamMap(pageContext: any): any;
|
|
56
57
|
export declare function doAddSigner(params: any, selectNodeInfo: any): void;
|
|
57
58
|
export declare function doCreateCopyTask(params: any, selectNodeInfo: any): void;
|
|
58
59
|
export declare function getTaskInformitions(params: any): any;
|