super-page-runtime 2.0.19 → 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.
Files changed (189) hide show
  1. package/dist/es/components/runtime/utils/api/api-util.js +16 -14
  2. package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
  3. package/dist/es/components/runtime/utils/api/page-expose-util.js +202 -0
  4. package/dist/es/components/runtime/utils/common-util.d.ts +2 -2
  5. package/dist/es/components/runtime/utils/common-util.js +7 -11
  6. package/dist/es/components/runtime/utils/events/event-util.js +9 -14
  7. package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
  8. package/dist/es/components/runtime/utils/events/standard-event.js +124 -110
  9. package/dist/es/components/runtime/utils/events/validator-util.js +4 -3
  10. package/dist/es/components/runtime/utils/global-refs.js +12 -0
  11. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  12. package/dist/es/components/runtime/utils/page-helper-util.js +4 -4
  13. package/dist/es/components/runtime/utils/page-init-util.js +5 -3
  14. package/dist/es/components/runtime/utils/table-utils.js +4 -5
  15. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +17 -17
  16. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +17 -17
  17. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +1 -1
  18. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +1 -1
  19. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +5 -5
  20. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +12 -13
  21. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -1
  22. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +11 -11
  23. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +28 -28
  24. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +12 -12
  25. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +7 -5
  26. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
  27. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +15 -15
  28. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +40 -37
  29. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
  30. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +13 -13
  31. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +91 -39
  32. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  33. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +13 -13
  34. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +10 -10
  35. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +14 -14
  36. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +2 -2
  37. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +5 -7
  38. package/dist/es/components/runtime/views/super-page.vue.js +2 -2
  39. package/package.json +3 -2
  40. package/dist/lib/_virtual/AttributeMap.js +0 -4
  41. package/dist/lib/_virtual/Delta.js +0 -4
  42. package/dist/lib/_virtual/Op.js +0 -4
  43. package/dist/lib/_virtual/OpIterator.js +0 -4
  44. package/dist/lib/_virtual/__vite-browser-external.js +0 -3
  45. package/dist/lib/_virtual/_commonjsHelpers.js +0 -8
  46. package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
  47. package/dist/lib/_virtual/dayjs.min.js +0 -4
  48. package/dist/lib/_virtual/index.js +0 -4
  49. package/dist/lib/_virtual/index2.js +0 -4
  50. package/dist/lib/_virtual/index3.js +0 -4
  51. package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
  52. package/dist/lib/assets/chart-themes/theme1.js +0 -7
  53. package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
  54. package/dist/lib/assets/chart-themes/theme2.js +0 -7
  55. package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
  56. package/dist/lib/assets/chart-themes/theme3.js +0 -7
  57. package/dist/lib/components/runtime/index.d.ts +0 -4
  58. package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -11
  59. package/dist/lib/components/runtime/utils/api/api-util.js +0 -128
  60. package/dist/lib/components/runtime/utils/assemblys-config.js +0 -258
  61. package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
  62. package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -28
  63. package/dist/lib/components/runtime/utils/common-util.d.ts +0 -16
  64. package/dist/lib/components/runtime/utils/common-util.js +0 -94
  65. package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
  66. package/dist/lib/components/runtime/utils/eventBus.js +0 -10
  67. package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -48
  68. package/dist/lib/components/runtime/utils/events/event-util.js +0 -526
  69. package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -61
  70. package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1625
  71. package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -4
  72. package/dist/lib/components/runtime/utils/events/validator-util.js +0 -389
  73. package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
  74. package/dist/lib/components/runtime/utils/global-refs.js +0 -65
  75. package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -223
  76. package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
  77. package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -106
  78. package/dist/lib/components/runtime/utils/page-helper-util.js +0 -622
  79. package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -38
  80. package/dist/lib/components/runtime/utils/page-init-util.js +0 -200
  81. package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
  82. package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
  83. package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
  84. package/dist/lib/components/runtime/utils/store-util.js +0 -17
  85. package/dist/lib/components/runtime/utils/store.d.ts +0 -2
  86. package/dist/lib/components/runtime/utils/store.js +0 -3
  87. package/dist/lib/components/runtime/utils/table-utils.js +0 -24
  88. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
  89. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
  90. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
  91. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
  92. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
  93. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
  94. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
  95. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -432
  96. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
  97. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
  98. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
  99. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
  100. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
  101. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
  102. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
  103. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -52
  104. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
  105. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -54
  106. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
  107. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -54
  108. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
  109. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -56
  110. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
  111. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
  112. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
  113. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
  114. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
  115. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
  116. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
  117. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
  118. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
  119. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
  120. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
  121. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
  122. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
  123. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
  124. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
  125. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
  126. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -43
  127. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
  128. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -44
  129. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
  130. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
  131. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
  132. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -69
  133. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
  134. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
  135. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -642
  136. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
  137. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
  138. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
  139. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
  140. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
  141. package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
  142. package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
  143. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
  144. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
  145. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
  146. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
  147. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
  148. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
  149. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -64
  150. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
  151. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
  152. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
  153. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
  154. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
  155. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
  156. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
  157. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
  158. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
  159. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -127
  160. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
  161. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
  162. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
  163. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
  164. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
  165. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
  166. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
  167. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -164
  168. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
  169. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
  170. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
  171. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
  172. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
  173. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
  174. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
  175. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
  176. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
  177. package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -142
  178. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
  179. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
  180. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
  181. package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
  182. package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -73
  183. package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
  184. package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
  185. package/dist/lib/components/runtime/views/super-page.vue.js +0 -496
  186. package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
  187. package/dist/lib/favicon.ico +0 -0
  188. package/dist/lib/index.d.ts +0 -8
  189. package/dist/lib/index.js +0 -15
@@ -1,4 +1,4 @@
1
- import { getBaseUrl, getRealRestApiPath, isArrayFn, upperFirstCase, packageTemplateFiles } from "../common-util.js";
1
+ import { getBaseUrl, getRealRestApiPath, upperFirstCase, packageTemplateFiles, isArrayFn } from "../common-util.js";
2
2
  import http from "agilebuilder-ui/src/utils/request";
3
3
  import { getI18n } from "agilebuilder-ui/src/utils/util";
4
4
  import { ElMessage, ElMessageBox } from "element-plus";
@@ -7,7 +7,7 @@ import { setSessionCache, getToken } from "agilebuilder-ui/src/utils/auth";
7
7
  import { getComponentRef } from "../global-refs.js";
8
8
  import eventBus from "../eventBus.js";
9
9
  import axios from "axios";
10
- import { doAfterClickEvent, handleEventByEventName } from "./event-util.js";
10
+ import { doAfterClickEvent, handleEvent } from "./event-util.js";
11
11
  import { setStoreInfo } from "../store-util.js";
12
12
  import { refreshPage } from "../api/api-util.js";
13
13
  import { updateWithPageValue } from "agilebuilder-ui/src/utils/jump-page-utils";
@@ -210,13 +210,13 @@ const standardEvents = {
210
210
  function exportFormReport(pageContext, configureObj, templateFile, isPdf) {
211
211
  const templateUUID = templateFile.templateUUID;
212
212
  const fileName = templateFile.templateShowPath;
213
- const system = pageContext.system;
213
+ const systemCode = pageContext.systemCode;
214
214
  const logSetting = configureObj.props.logSetting;
215
- const additionalParamMap = pageContext.entity.request;
216
215
  const isWorkflowForm = pageContext.workflowCode ? true : false;
217
216
  const beanName = pageContext.beanName;
218
217
  const button = configureObj.props.base;
219
218
  const tableName = configureObj.tableName;
219
+ const backendUrl = pageContext.backendUrl;
220
220
  const viewModels = pageContext.entity.data;
221
221
  const isPermission = button.isPermission === void 0 || button.isPermission === "true" || button.isPermission;
222
222
  const param = {
@@ -231,20 +231,19 @@ function exportFormReport(pageContext, configureObj, templateFile, isPdf) {
231
231
  functionCode: button.functionCode,
232
232
  tableName,
233
233
  isPermission: isPermission + "",
234
- systemCode: system.code,
234
+ systemCode,
235
235
  tableNames: pageContext.tableNames
236
236
  };
237
237
  if (logSetting) {
238
238
  param["logSettingText"] = logSetting;
239
239
  }
240
- if (additionalParamMap) {
241
- param["additionalParamMap"] = additionalParamMap;
242
- }
240
+ let additionalParamMap = getAdditionalParamMap(pageContext);
241
+ param["additionalParamMap"] = additionalParamMap;
243
242
  let exportResult;
244
243
  if (isPdf) {
245
- exportResult = exportFormPdf(fileName, system, param);
244
+ exportResult = exportFormPdf(fileName, backendUrl, param);
246
245
  } else {
247
- exportResult = exportFormReportSuccess(fileName, system, param);
246
+ exportResult = exportFormReportSuccess(fileName, backendUrl, param);
248
247
  }
249
248
  if (exportResult) {
250
249
  exportResult.then(() => {
@@ -252,9 +251,9 @@ function exportFormReport(pageContext, configureObj, templateFile, isPdf) {
252
251
  });
253
252
  }
254
253
  }
255
- function exportFormReportSuccess(fileName, system, param) {
254
+ function exportFormReportSuccess(fileName, backendUrl, param) {
256
255
  return new Promise((resolve, reject) => {
257
- const baseUrl = getBaseUrl(system);
256
+ const baseUrl = getBaseUrl(backendUrl);
258
257
  const path = baseUrl + "/dsc/commons/export-reports";
259
258
  axios.defaults.headers.common.Authorization = getToken();
260
259
  const request = axios.post(path, param, {
@@ -284,9 +283,9 @@ function exportFormReportSuccess(fileName, system, param) {
284
283
  });
285
284
  });
286
285
  }
287
- function exportFormPdf(fileName, system, param) {
286
+ function exportFormPdf(fileName, backendUrl, param) {
288
287
  return new Promise((resolve, reject) => {
289
- const baseUrl = getBaseUrl(system);
288
+ const baseUrl = getBaseUrl(backendUrl);
290
289
  const path = baseUrl + "/dsc/commons/export-pdf";
291
290
  axios.defaults.headers.common.Authorization = getToken();
292
291
  const request = axios.post(path, param, {
@@ -351,7 +350,7 @@ function saveFunc(params, isListButton) {
351
350
  }
352
351
  function getCommonFormRequestParam(pageContext, configureObj, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo, ids) {
353
352
  const isWorkflow = pageContext.workflowCode ? true : false;
354
- const system = pageContext.system;
353
+ const systemCode = pageContext.systemCode;
355
354
  const isPermission = configureObj.props.base.isPermission === void 0 || configureObj.props.base.isPermission === "true" || configureObj.props.base.isPermission;
356
355
  const param = {
357
356
  entity: pageContext.entity.data,
@@ -394,7 +393,7 @@ function getCommonFormRequestParam(pageContext, configureObj, isUnControlVersion
394
393
  param["logSettingText"] = logSetting;
395
394
  }
396
395
  if (!param["systemCode"]) {
397
- param["systemCode"] = system.code;
396
+ param["systemCode"] = systemCode;
398
397
  }
399
398
  const beanName = configureObj.props.base.beanName;
400
399
  if (beanName) {
@@ -406,17 +405,16 @@ function getCommonFormRequestParam(pageContext, configureObj, isUnControlVersion
406
405
  if (mainDefaultValueColumns) {
407
406
  param["mainDefaultValueColumns"] = mainDefaultValueColumns;
408
407
  }
409
- const additionalParamMap = pageContext.entity.request;
410
- if (additionalParamMap) {
411
- param["additionalParamMap"] = additionalParamMap;
412
- }
408
+ let additionalParamMap = getAdditionalParamMap(pageContext);
409
+ param["additionalParamMap"] = additionalParamMap;
413
410
  if (isUnControlVersion !== void 0) {
414
411
  param["unControlVersion"] = isUnControlVersion;
415
412
  }
416
413
  return param;
417
414
  }
418
415
  function getSaveFormRequest(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo) {
419
- const system = pageContext.system;
416
+ const systemCode = pageContext.systemCode;
417
+ const backendUrl = pageContext.backendUrl;
420
418
  const param = getCommonFormRequestParam(
421
419
  pageContext,
422
420
  configureObj,
@@ -425,12 +423,12 @@ function getSaveFormRequest(pageContext, configureObj, url, isUnControlVersion,
425
423
  dynamicColumnInfo,
426
424
  null
427
425
  );
428
- return getSaveFormRequestByParam(system, param, url, pageContext.entity.data);
426
+ return getSaveFormRequestByParam(systemCode, backendUrl, param, url, pageContext.entity.data);
429
427
  }
430
- function getSaveFormRequestByParam(system, param, url, formData) {
431
- const baseUrl = getBaseUrl(system);
428
+ function getSaveFormRequestByParam(systemCode, backendUrl, param, url, formData) {
429
+ const baseUrl = getBaseUrl(backendUrl);
432
430
  let path = baseUrl + url;
433
- path = getRealRestApiPath(path, system);
431
+ path = getRealRestApiPath(path, systemCode, backendUrl);
434
432
  let request;
435
433
  if (formData && (formData.id || formData.ID)) {
436
434
  request = http.put(path, param);
@@ -471,16 +469,10 @@ function dealAfterWithForm(pageContext, configureObj, data, successTip) {
471
469
  }
472
470
  function afterSuccessOperateInForm(pageContext, configureObj, dataModel) {
473
471
  let successOperation = configureObj.props.base.successOperation;
474
- const isNeedValueMapping = configureObj.props.base.isNeedValueMapping;
475
- console.log(
476
- "afterSuccessOperateInForm---successOperation=-",
477
- successOperation,
478
- dataModel,
479
- isNeedValueMapping
480
- );
481
- if (!successOperation || successOperation === "" || successOperation === null) {
482
- successOperation = "refresh";
472
+ if (!successOperation || successOperation === null) {
473
+ return;
483
474
  }
475
+ const isNeedValueMapping = configureObj.props.base.isNeedValueMapping;
484
476
  if (successOperation === "noOperation") {
485
477
  if (dataModel) {
486
478
  pageContext.entity.data = dataModel;
@@ -529,8 +521,7 @@ function updateValuesWhenCloseDialog(parentPageContext, parentConfigureObj, sour
529
521
  parentPageContext.entity.data,
530
522
  targetTableName
531
523
  );
532
- const updateValueEventName = jumpPageSetting && jumpPageSetting.updateValueEvent ? jumpPageSetting.updateValueEvent : null;
533
- handleEventByEventName(parentPageContext, parentConfigureObj, updateValueEventName, {
524
+ handleEvent(null, parentPageContext, parentConfigureObj, "setValueCallback", {
534
525
  sourceModel,
535
526
  sourceTableName,
536
527
  jumpPageSetting,
@@ -617,7 +608,8 @@ function getSubmitFormRequest(pageContext, configureObj, url, isUnControlVersion
617
608
  type: "warning"
618
609
  }
619
610
  ).then(() => {
620
- const system = pageContext.system;
611
+ const systemCode = pageContext.systemCode;
612
+ const backendUrl = pageContext.backendUrl;
621
613
  const param = getCommonFormRequestParam(
622
614
  pageContext,
623
615
  configureObj,
@@ -626,7 +618,7 @@ function getSubmitFormRequest(pageContext, configureObj, url, isUnControlVersion
626
618
  dynamicColumnInfo,
627
619
  ids
628
620
  );
629
- getSaveFormRequestByParam(system, param, url, pageContext.entity.data).then((result) => {
621
+ getSaveFormRequestByParam(systemCode, backendUrl, param, url, pageContext.entity.data).then((result) => {
630
622
  resolve(result);
631
623
  }).catch((error) => {
632
624
  reject(error);
@@ -658,19 +650,20 @@ function deleteFunc(params) {
658
650
  ).then(() => {
659
651
  const pageContext = params.pageContext;
660
652
  const configureObj = params.configureObj;
661
- const system = pageContext.entity.system;
662
653
  const tableName = pageContext.tableName;
663
654
  const configureBase = configureObj.props.base;
664
- const baseUrl = getBaseUrl(system);
655
+ const systemCode = pageContext.systemCode;
656
+ const backendUrl = pageContext.backendUrl;
657
+ const baseUrl = getBaseUrl(backendUrl);
665
658
  let path = baseUrl + "/dsc/commons/" + tableName;
666
- path = getRealRestApiPath(path, system);
659
+ path = getRealRestApiPath(path, systemCode, backendUrl);
667
660
  const isPermission = configureBase.isPermission === void 0 || configureBase.isPermission === "true" || configureBase.isPermission;
668
661
  const isWorkflow = pageContext.workflowCode ? true : false;
669
662
  const param = {
670
663
  ids,
671
664
  functionCode: configureBase.functionCode,
672
665
  isPermission: isPermission + "",
673
- systemCode: system.code,
666
+ systemCode,
674
667
  isWorkflowEntity: isWorkflow,
675
668
  tableNames: pageContext.tableNames
676
669
  };
@@ -728,7 +721,8 @@ function downloadTemplateFunc(params) {
728
721
  templateUUID = templateFilesResult[0].templateUUID;
729
722
  templateShowPath = templateFilesResult[0].templateShowPath;
730
723
  }
731
- const system = pageContext.system;
724
+ const systemCode = pageContext.systemCode;
725
+ const backendUrl = pageContext.backendUrl;
732
726
  const showName = templateShowPath;
733
727
  let param = "?1=1";
734
728
  if (templateUUID && showName && templateUUID !== "undefined" && showName !== "undefined" && templateUUID !== "null" && showName !== "null") {
@@ -740,8 +734,8 @@ function downloadTemplateFunc(params) {
740
734
  if (logSetting && logSetting !== "") {
741
735
  param += "&logSettingText=" + logSetting;
742
736
  }
743
- if (system && system.code) {
744
- param += "&systemCode=" + system.code;
737
+ if (systemCode) {
738
+ param += "&systemCode=" + systemCode;
745
739
  }
746
740
  const listCode = params.listCode;
747
741
  if (listCode) {
@@ -760,7 +754,7 @@ function downloadTemplateFunc(params) {
760
754
  const isPermission = configureBase.isPermission === void 0 || configureBase.isPermission === "true" || configureBase.isPermission;
761
755
  param += "&isPermission=" + isPermission;
762
756
  }
763
- const baseUrl = getBaseUrl(system);
757
+ const baseUrl = getBaseUrl(backendUrl);
764
758
  window.open(baseUrl + "/dsc/commons/download-files" + param);
765
759
  }
766
760
  function doImportFinally(params, fileObj) {
@@ -811,16 +805,15 @@ function doImportFinally(params, fileObj) {
811
805
  if (buttonConfigureBase.functionCode) {
812
806
  param.append("functionCode", buttonConfigureBase.functionCode);
813
807
  }
814
- const additionalParamMap = pageContext.entity.request;
815
- if (additionalParamMap) {
816
- param.append("additionalParamMapStr", JSON.stringify(additionalParamMap));
817
- }
808
+ let additionalParamMap = getAdditionalParamMap(pageContext);
809
+ param.append("additionalParamMapStr", JSON.stringify(additionalParamMap));
818
810
  const isPermission = buttonConfigureBase.isPermission === void 0 || buttonConfigureBase.isPermission === "true" || buttonConfigureBase.isPermission;
819
811
  param.append("isPermission", isPermission + "");
820
- const system = pageContext.entity.system;
821
- const baseUrl = getBaseUrl(system);
812
+ const systemCode = pageContext.systemCode;
813
+ const backendUrl = pageContext.backendUrl;
814
+ const baseUrl = getBaseUrl(backendUrl);
822
815
  let path = baseUrl + "/dsc/commons/import-data";
823
- path = getRealRestApiPath(path, system);
816
+ path = getRealRestApiPath(path, systemCode, backendUrl);
824
817
  http.post(path, param).then((data) => {
825
818
  if (isAsync) {
826
819
  ElMessage({
@@ -922,8 +915,8 @@ function getWorkflowSaveParams(params) {
922
915
  const pageContext = params.pageContext;
923
916
  const configureObj = params.configureObj;
924
917
  const dataModel = pageContext.entity.data;
925
- const system = pageContext.entity.system;
926
- const permissionPrefix = system.code + "." + pageContext.code;
918
+ const systemCode = pageContext.systemCode;
919
+ const permissionPrefix = systemCode + "." + pageContext.code;
927
920
  let functionCode = configureObj.props.base.functionCode;
928
921
  if (!functionCode) {
929
922
  functionCode = permissionPrefix + ".xxx";
@@ -940,7 +933,7 @@ function getWorkflowSaveParams(params) {
940
933
  emailTemplateCode: pageContext.emailTemplateCode,
941
934
  definitionId: pageContext.definitionId,
942
935
  functionCode,
943
- systemCode: system.code,
936
+ systemCode,
944
937
  tableNames: pageContext.tableNames
945
938
  };
946
939
  if (pageContext.completeTaskParam) {
@@ -980,14 +973,12 @@ function getWorkflowSaveParams(params) {
980
973
  param["logSettingText"] = logSetting;
981
974
  }
982
975
  if (!param.systemCode) {
983
- param.systemCode = system.code;
976
+ param.systemCode = systemCode;
984
977
  }
985
- const additionalParamMap = pageContext.entity.request;
986
- if (additionalParamMap) {
987
- param["additionalParamMap"] = additionalParamMap;
988
- if (additionalParamMap.ids && additionalParamMap.ids.length > 0) {
989
- param["ids"] = additionalParamMap.ids;
990
- }
978
+ let additionalParamMap = getAdditionalParamMap(pageContext);
979
+ param["additionalParamMap"] = additionalParamMap;
980
+ if (additionalParamMap.ids && additionalParamMap.ids.length > 0) {
981
+ param["ids"] = additionalParamMap.ids;
991
982
  }
992
983
  const successOperation = configureObj.props.base.successOperation;
993
984
  if (successOperation && successOperation === "noOperation") {
@@ -1000,9 +991,10 @@ function workflowSaveFunc(params) {
1000
991
  return new Promise((resolve, reject) => {
1001
992
  const pageContext = params.pageContext;
1002
993
  const dataModel = pageContext.entity.data;
1003
- const system = pageContext.entity.system;
1004
- let path = getBaseUrl(system) + "/dsc/workflow-commons";
1005
- path = getRealRestApiPath(path, system);
994
+ const systemCode = pageContext.systemCode;
995
+ const backendUrl = pageContext.backendUrl;
996
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons";
997
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1006
998
  if (!path) {
1007
999
  ElMessage({
1008
1000
  showClose: true,
@@ -1089,9 +1081,10 @@ function dealCompleteTaskParam(commonEntity, isInit, pageContext, params, operat
1089
1081
  function submitProcessFunc(params) {
1090
1082
  return new Promise((resolve, reject) => {
1091
1083
  const pageContext = params.pageContext;
1092
- const system = pageContext.entity.system;
1093
- let path = getBaseUrl(system) + "/dsc/workflow-commons/submit";
1094
- path = getRealRestApiPath(path, system);
1084
+ const systemCode = pageContext.systemCode;
1085
+ const backendUrl = pageContext.backendUrl;
1086
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/submit";
1087
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1095
1088
  if (!path) {
1096
1089
  ElMessage({
1097
1090
  showClose: true,
@@ -1125,9 +1118,10 @@ function submitProcessFunc(params) {
1125
1118
  function completeTaskFunc(params, operationResult) {
1126
1119
  return new Promise((resolve, reject) => {
1127
1120
  const pageContext = params.pageContext;
1128
- const system = pageContext.entity.system;
1129
- let path = getBaseUrl(system) + "/dsc/workflow-commons/complete-tasks";
1130
- path = getRealRestApiPath(path, system);
1121
+ const systemCode = pageContext.systemCode;
1122
+ const backendUrl = pageContext.backendUrl;
1123
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/complete-tasks";
1124
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1131
1125
  if (!path) {
1132
1126
  ElMessage({
1133
1127
  showClose: true,
@@ -1171,8 +1165,8 @@ function doAssign(params, selectNodeInfo) {
1171
1165
  if (selectNodeInfo) {
1172
1166
  const pageContext = params.pageContext;
1173
1167
  const configureObj = params.configureObj;
1174
- const system = pageContext.entity.system;
1175
- const path = getBaseUrl(system) + "/dsc/workflow-commons/assigns";
1168
+ const backendUrl = pageContext.backendUrl;
1169
+ const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/assigns";
1176
1170
  const assigneeId = selectNodeInfo.id ? selectNodeInfo.id : selectNodeInfo.ID ? selectNodeInfo.ID : null;
1177
1171
  const requestParam = getWorkflowSaveParams(params);
1178
1172
  requestParam["assigneeId"] = assigneeId;
@@ -1187,9 +1181,9 @@ function getTransactTaskParam(params) {
1187
1181
  const pageContext = params.pageContext;
1188
1182
  const dataModel = pageContext.entity.data;
1189
1183
  const pageModel = pageContext.entity.page;
1190
- const system = pageContext.entity.system;
1191
- const permissionPrefix = system.code + "." + pageContext.code;
1192
- const additionalParamMap = pageContext.entity.request;
1184
+ const systemCode = pageContext.systemCode;
1185
+ const permissionPrefix = systemCode + "." + pageContext.code;
1186
+ const additionalParamMap = getAdditionalParamMap(pageContext);
1193
1187
  const dataId = dataModel.ID !== void 0 && dataModel.ID !== null ? dataModel.ID : dataModel.id;
1194
1188
  ({
1195
1189
  beanName: pageContext.beanName,
@@ -1204,9 +1198,22 @@ function getTransactTaskParam(params) {
1204
1198
  });
1205
1199
  ({
1206
1200
  taskId: pageContext.completeTaskParam.taskId,
1207
- systemCode: system.code
1201
+ systemCode
1208
1202
  });
1209
1203
  }
1204
+ function getAdditionalParamMap(pageContext) {
1205
+ if (pageContext.entity) {
1206
+ let additionalParamMap = pageContext.entity.page;
1207
+ if (!additionalParamMap) {
1208
+ additionalParamMap = {};
1209
+ }
1210
+ const requestMap = pageContext.entity.request;
1211
+ if (requestMap) {
1212
+ Object.assign(additionalParamMap, requestMap);
1213
+ }
1214
+ return additionalParamMap;
1215
+ }
1216
+ }
1210
1217
  function addSignerFunc(params) {
1211
1218
  const pageContext = params.pageContext;
1212
1219
  const pagCode = pageContext.code;
@@ -1217,9 +1224,10 @@ function doAddSigner(params, selectNodeInfo) {
1217
1224
  if (selectNodeInfo) {
1218
1225
  const pageContext = params.pageContext;
1219
1226
  const buttonConfigureObj = params.configureObj;
1220
- const system = pageContext.entity.system;
1221
- let path = getBaseUrl(system) + "/dsc/workflow-commons/add-signers";
1222
- path = getRealRestApiPath(path, system);
1227
+ const systemCode = pageContext.systemCode;
1228
+ const backendUrl = pageContext.backendUrl;
1229
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/add-signers";
1230
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1223
1231
  if (!path) {
1224
1232
  ElMessage({
1225
1233
  showClose: true,
@@ -1256,9 +1264,10 @@ function doCreateCopyTask(params, selectNodeInfo) {
1256
1264
  if (selectNodeInfo) {
1257
1265
  const pageContext = params.pageContext;
1258
1266
  const buttonConfigureObj = params.configureObj;
1259
- const system = pageContext.entity.system;
1260
- let path = getBaseUrl(system) + "/dsc/workflow-commons/add-signers";
1261
- path = getRealRestApiPath(path, system);
1267
+ const systemCode = pageContext.systemCode;
1268
+ const backendUrl = pageContext.backendUrl;
1269
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/add-signers";
1270
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1262
1271
  if (!path) {
1263
1272
  ElMessage({
1264
1273
  showClose: true,
@@ -1285,8 +1294,9 @@ function doCreateCopyTask(params, selectNodeInfo) {
1285
1294
  function transactTask(params, requestParam, path, successMessageTip) {
1286
1295
  return new Promise((resolve, reject) => {
1287
1296
  const pageContext = params.pageContext;
1288
- const system = pageContext.entity.system;
1289
- path = getRealRestApiPath(path, system);
1297
+ const systemCode = pageContext.systemCode;
1298
+ const backendUrl = pageContext.backendUrl;
1299
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1290
1300
  if (!path) {
1291
1301
  ElMessage({
1292
1302
  showClose: true,
@@ -1318,15 +1328,15 @@ function transactTask(params, requestParam, path, successMessageTip) {
1318
1328
  }
1319
1329
  function drawTaskFunc(params) {
1320
1330
  const pageContext = params.pageContext;
1321
- const system = pageContext.entity.system;
1322
- const path = getBaseUrl(system) + "/dsc/workflow-commons/draw-tasks";
1331
+ const backendUrl = pageContext.backendUrl;
1332
+ const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/draw-tasks";
1323
1333
  const requestParam = getWorkflowSaveParams(params);
1324
1334
  return transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulDrawTask");
1325
1335
  }
1326
1336
  function abandonReceiveFunc(params) {
1327
1337
  const pageContext = params.pageContext;
1328
- const system = pageContext.entity.system;
1329
- const path = getBaseUrl(system) + "/dsc/workflow-commons/abandon-receives";
1338
+ const backendUrl = pageContext.backendUrl;
1339
+ const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/abandon-receives";
1330
1340
  const requestParam = getWorkflowSaveParams(params);
1331
1341
  return transactTask(
1332
1342
  params,
@@ -1337,8 +1347,8 @@ function abandonReceiveFunc(params) {
1337
1347
  }
1338
1348
  function returnToPreviousTaskFunc(params) {
1339
1349
  const pageContext = params.pageContext;
1340
- const system = pageContext.entity.system;
1341
- const path = getBaseUrl(system) + "/dsc/workflow-commons/return-to-previous-tasks";
1350
+ const backendUrl = pageContext.backendUrl;
1351
+ const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/return-to-previous-tasks";
1342
1352
  const requestParam = getWorkflowSaveParams(params);
1343
1353
  return transactTask(
1344
1354
  params,
@@ -1349,8 +1359,8 @@ function returnToPreviousTaskFunc(params) {
1349
1359
  }
1350
1360
  function endInstanceFunc(params) {
1351
1361
  const pageContext = params.pageContext;
1352
- const system = pageContext.entity.system;
1353
- const path = getBaseUrl(system) + "/dsc/workflow-commons/end-instance";
1362
+ const backendUrl = pageContext.backendUrl;
1363
+ const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/end-instance";
1354
1364
  const requestParam = getWorkflowSaveParams(params);
1355
1365
  return transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulEndInstance");
1356
1366
  }
@@ -1362,10 +1372,11 @@ function returnTaskToFunc(params) {
1362
1372
  }
1363
1373
  function getTaskInformitions(params) {
1364
1374
  const pageContext = params.pageContext;
1365
- const system = pageContext.entity.system;
1375
+ const systemCode = pageContext.systemCode;
1376
+ const backendUrl = pageContext.backendUrl;
1366
1377
  const completeTaskParam = pageContext.completeTaskParam;
1367
- let path = getBaseUrl(system) + "/dsc/workflow-commons/returnable-task/" + completeTaskParam.taskId;
1368
- path = getRealRestApiPath(path, system);
1378
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/returnable-task/" + completeTaskParam.taskId;
1379
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1369
1380
  if (!path) {
1370
1381
  ElMessage({
1371
1382
  showClose: true,
@@ -1374,8 +1385,8 @@ function getTaskInformitions(params) {
1374
1385
  });
1375
1386
  return;
1376
1387
  }
1377
- const permissionPrefix = system.code + "." + pageContext.code;
1378
- const additionalParamMap = pageContext.entity.request;
1388
+ const permissionPrefix = systemCode + "." + pageContext.code;
1389
+ let additionalParamMap = getAdditionalParamMap(pageContext);
1379
1390
  const requestParams = {
1380
1391
  beanName: pageContext.beanName,
1381
1392
  additionalParamMap,
@@ -1387,8 +1398,8 @@ function getTaskInformitions(params) {
1387
1398
  function doReturnTaskTo(params, selectTaskNode) {
1388
1399
  const pageContext = params.pageContext;
1389
1400
  const configureObj = params.configureObj;
1390
- const system = pageContext.entity.system;
1391
- const path = getBaseUrl(system) + "/dsc/workflow-commons/returnTaskTo";
1401
+ const backendUrl = pageContext.backendUrl;
1402
+ const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/returnTaskTo";
1392
1403
  const requestParam = getWorkflowSaveParams(params);
1393
1404
  if (selectTaskNode.nodeName) {
1394
1405
  requestParam["returnToNodeName"] = selectTaskNode.nodeName;
@@ -1410,10 +1421,11 @@ function removeSignerfunc(params) {
1410
1421
  }
1411
1422
  function getRemoveSigner(params) {
1412
1423
  const pageContext = params.pageContext;
1413
- const system = pageContext.entity.system;
1414
- let path = getBaseUrl(system) + "/dsc/workflow-commons/get-remove-signers";
1424
+ const systemCode = pageContext.systemCode;
1425
+ const backendUrl = pageContext.backendUrl;
1426
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/get-remove-signers";
1415
1427
  const requestParam = getWorkflowSaveParams(params);
1416
- path = getRealRestApiPath(path, system);
1428
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1417
1429
  if (!path) {
1418
1430
  ElMessage({
1419
1431
  showClose: true,
@@ -1428,9 +1440,10 @@ function doRemoveSigners(params, selectRemoveTasks) {
1428
1440
  if (selectRemoveTasks) {
1429
1441
  const pageContext = params.pageContext;
1430
1442
  const configureObj = params.configureObj;
1431
- const system = pageContext.entity.system;
1432
- let path = getBaseUrl(system) + "/dsc/workflow-commons/remove-signers";
1433
- path = getRealRestApiPath(path, system);
1443
+ const systemCode = pageContext.systemCode;
1444
+ const backendUrl = pageContext.backendUrl;
1445
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/remove-signers";
1446
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1434
1447
  if (!path) {
1435
1448
  this.$message({
1436
1449
  showClose: true,
@@ -1459,8 +1472,8 @@ function doRemoveSigners(params, selectRemoveTasks) {
1459
1472
  }
1460
1473
  function retrieveTaskFunc(params) {
1461
1474
  const pageContext = params.pageContext;
1462
- const system = pageContext.entity.system;
1463
- const path = getBaseUrl(system) + "/dsc/workflow-commons/retrieves";
1475
+ const backendUrl = pageContext.backendUrl;
1476
+ const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/retrieves";
1464
1477
  const requestParam = getWorkflowSaveParams(params);
1465
1478
  return transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulRetrieve");
1466
1479
  }
@@ -1473,7 +1486,7 @@ function lineEditCreateFunc(params) {
1473
1486
  }
1474
1487
  }
1475
1488
  function isVisibleWorkflowButton(standardEventName, buttonInfo, completeTaskParam) {
1476
- let isVisible = false;
1489
+ let isVisible = true;
1477
1490
  if (standardEventName && buttonInfo) {
1478
1491
  if (standardEventName === "workflowSave") {
1479
1492
  isVisible = isVisibleWorkflowSave(buttonInfo);
@@ -1667,6 +1680,7 @@ export {
1667
1680
  doRemoveSigners,
1668
1681
  doReturnTaskTo,
1669
1682
  exportFormReport,
1683
+ getAdditionalParamMap,
1670
1684
  getRemoveSigner,
1671
1685
  getSaveFormRequest,
1672
1686
  getTaskInformitions,
@@ -2,6 +2,7 @@ import Validator from "async-validator";
2
2
  import { ElMessage } from "element-plus";
3
3
  import { getComponentRef } from "../global-refs.js";
4
4
  import { getI18n } from "agilebuilder-ui/src/utils/util";
5
+ import { getAdditionalParamMap } from "./standard-event.js";
5
6
  function setObjectPropRule(prop, rules, leafRule) {
6
7
  const rule = {};
7
8
  if (!rules) {
@@ -169,7 +170,7 @@ function validateDataModelFunc(pageContext, configureObj, isEnableRequired) {
169
170
  const data = { ...pageModel, ...dataModel };
170
171
  const rules = pageContext.rules;
171
172
  if (isEnableRequired === void 0 || isEnableRequired === null) {
172
- isEnableRequired = configureObj.props.verification.required;
173
+ isEnableRequired = configureObj.props.verification ? configureObj.props.verification.required : false;
173
174
  if (typeof isEnableRequired === "undefined") {
174
175
  isEnableRequired = false;
175
176
  }
@@ -192,7 +193,7 @@ function validateDataModel(isEnableRequired, dataModel, rules, pageContext) {
192
193
  }
193
194
  function validateWorkflowFormDataModel(dataModel, pageContext) {
194
195
  return new Promise((resolve, reject) => {
195
- const additionalParamMap = pageContext.entity.request;
196
+ const additionalParamMap = getAdditionalParamMap(pageContext);
196
197
  const contextParameter = pageContext.entity.context;
197
198
  const taskParamMap = pageContext.entity.task;
198
199
  const isSql = true;
@@ -389,7 +390,7 @@ function getWorkflowRules(pageContext) {
389
390
  const dataModel = pageContext.entity.data;
390
391
  const pageModel = pageContext.entity.page;
391
392
  const data = { ...pageModel, ...dataModel };
392
- const additionalParamMap = pageContext.entity.request;
393
+ const additionalParamMap = getAdditionalParamMap(pageContext);
393
394
  const contextParameter = pageContext.entity.context;
394
395
  const taskParamMap = pageContext.entity.task;
395
396
  const isSql = true;
@@ -36,6 +36,17 @@ function getComponentRef(pageContext, componentUuid) {
36
36
  const objRef = globalRefs[cacheKey][componentUuid];
37
37
  return objRef ? objRef.value : objRef;
38
38
  }
39
+ function getComponentRefByCode(pageContext, componentCode) {
40
+ if (!pageContext) {
41
+ return;
42
+ }
43
+ const cacheKey = getPageRefKeyByCode(pageContext.code, pageContext.version);
44
+ if (!globalRefs[cacheKey]) {
45
+ globalRefs[cacheKey] = {};
46
+ }
47
+ const objRef = globalRefs[cacheKey][componentCode];
48
+ return objRef ? objRef.value : objRef;
49
+ }
39
50
  function removePageAllRef(pageContext) {
40
51
  if (!pageContext) {
41
52
  return;
@@ -60,6 +71,7 @@ export {
60
71
  addComponentRef,
61
72
  addComponentRefByCode,
62
73
  getComponentRef,
74
+ getComponentRefByCode,
63
75
  initComponentRefState,
64
76
  removePageAllRef
65
77
  };
@@ -68,6 +68,7 @@ export interface PageDesign extends Component {
68
68
  notIdInitializationList?: Array<any>;
69
69
  subTablePageInfo?: object;
70
70
  customEvents?: Array<any>;
71
+ contextParam?: object;
71
72
  }
72
73
  /**
73
74
  * 运行时页面对象
@@ -76,6 +77,7 @@ export interface PageContext extends Component {
76
77
  isTest?: boolean;
77
78
  systemCode?: string;
78
79
  systemVersion?: number;
80
+ backendUrl?: string;
79
81
  code: string;
80
82
  version: number;
81
83
  dimensions: string;