super-page-runtime 2.0.19 → 2.0.25

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 (195) hide show
  1. package/dist/es/components/runtime/utils/api/api-util.js +18 -16
  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 +206 -0
  4. package/dist/es/components/runtime/utils/assemblys-config.js +16 -7
  5. package/dist/es/components/runtime/utils/common-util.d.ts +2 -2
  6. package/dist/es/components/runtime/utils/common-util.js +8 -12
  7. package/dist/es/components/runtime/utils/events/event-util.d.ts +14 -0
  8. package/dist/es/components/runtime/utils/events/event-util.js +101 -32
  9. package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -0
  10. package/dist/es/components/runtime/utils/events/standard-event.js +189 -133
  11. package/dist/es/components/runtime/utils/events/validator-util.js +4 -3
  12. package/dist/es/components/runtime/utils/form/scan-util.js +191 -0
  13. package/dist/es/components/runtime/utils/global-refs.js +12 -0
  14. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  15. package/dist/es/components/runtime/utils/page-helper-util.js +20 -4
  16. package/dist/es/components/runtime/utils/page-init-util.js +9 -15
  17. package/dist/es/components/runtime/utils/table-utils.js +4 -5
  18. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +17 -17
  19. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +17 -17
  20. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +1 -1
  21. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +1 -1
  22. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +5 -5
  23. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
  24. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +207 -0
  25. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +99 -68
  26. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +3 -2
  27. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +11 -11
  28. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +28 -28
  29. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +12 -12
  30. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +7 -5
  31. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
  32. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +15 -15
  33. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +24 -1
  34. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +40 -37
  35. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
  36. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +13 -13
  37. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +96 -26
  38. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  39. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +13 -13
  40. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +10 -10
  41. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +14 -14
  42. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -2
  43. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +5 -7
  44. package/dist/es/components/runtime/views/super-page.vue.js +18 -7
  45. package/package.json +3 -2
  46. package/dist/lib/_virtual/AttributeMap.js +0 -4
  47. package/dist/lib/_virtual/Delta.js +0 -4
  48. package/dist/lib/_virtual/Op.js +0 -4
  49. package/dist/lib/_virtual/OpIterator.js +0 -4
  50. package/dist/lib/_virtual/__vite-browser-external.js +0 -3
  51. package/dist/lib/_virtual/_commonjsHelpers.js +0 -8
  52. package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
  53. package/dist/lib/_virtual/dayjs.min.js +0 -4
  54. package/dist/lib/_virtual/index.js +0 -4
  55. package/dist/lib/_virtual/index2.js +0 -4
  56. package/dist/lib/_virtual/index3.js +0 -4
  57. package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
  58. package/dist/lib/assets/chart-themes/theme1.js +0 -7
  59. package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
  60. package/dist/lib/assets/chart-themes/theme2.js +0 -7
  61. package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
  62. package/dist/lib/assets/chart-themes/theme3.js +0 -7
  63. package/dist/lib/components/runtime/index.d.ts +0 -4
  64. package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -11
  65. package/dist/lib/components/runtime/utils/api/api-util.js +0 -128
  66. package/dist/lib/components/runtime/utils/assemblys-config.js +0 -258
  67. package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
  68. package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -28
  69. package/dist/lib/components/runtime/utils/common-util.d.ts +0 -16
  70. package/dist/lib/components/runtime/utils/common-util.js +0 -94
  71. package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
  72. package/dist/lib/components/runtime/utils/eventBus.js +0 -10
  73. package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -48
  74. package/dist/lib/components/runtime/utils/events/event-util.js +0 -526
  75. package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -61
  76. package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1625
  77. package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -4
  78. package/dist/lib/components/runtime/utils/events/validator-util.js +0 -389
  79. package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
  80. package/dist/lib/components/runtime/utils/global-refs.js +0 -65
  81. package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -223
  82. package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
  83. package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -106
  84. package/dist/lib/components/runtime/utils/page-helper-util.js +0 -622
  85. package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -38
  86. package/dist/lib/components/runtime/utils/page-init-util.js +0 -200
  87. package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
  88. package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
  89. package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
  90. package/dist/lib/components/runtime/utils/store-util.js +0 -17
  91. package/dist/lib/components/runtime/utils/store.d.ts +0 -2
  92. package/dist/lib/components/runtime/utils/store.js +0 -3
  93. package/dist/lib/components/runtime/utils/table-utils.js +0 -24
  94. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
  95. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
  96. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
  97. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
  98. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
  99. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
  100. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
  101. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -432
  102. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
  103. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
  104. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
  105. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
  106. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
  107. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
  108. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
  109. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -52
  110. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
  111. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -54
  112. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
  113. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -54
  114. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
  115. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -56
  116. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
  117. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
  118. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
  119. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
  120. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
  121. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
  122. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
  123. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
  124. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
  125. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
  126. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
  127. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
  128. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
  129. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
  130. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
  131. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
  132. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -43
  133. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
  134. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -44
  135. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
  136. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
  137. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
  138. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -69
  139. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
  140. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
  141. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -642
  142. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
  143. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
  144. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
  145. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
  146. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
  147. package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
  148. package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
  149. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
  150. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
  151. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
  152. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
  153. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
  154. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
  155. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -64
  156. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
  157. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
  158. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
  159. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
  160. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
  161. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
  162. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
  163. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
  164. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
  165. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -127
  166. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
  167. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
  168. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
  169. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
  170. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
  171. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
  172. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
  173. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -164
  174. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
  175. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
  176. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
  177. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
  178. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
  179. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
  180. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
  181. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
  182. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
  183. package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -142
  184. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
  185. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
  186. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
  187. package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
  188. package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -73
  189. package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
  190. package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
  191. package/dist/lib/components/runtime/views/super-page.vue.js +0 -496
  192. package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
  193. package/dist/lib/favicon.ico +0 -0
  194. package/dist/lib/index.d.ts +0 -8
  195. 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,10 +7,11 @@ 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";
14
+ import { getPermissionCodes } from "../page-init-util.js";
14
15
  const standardEvents = {
15
16
  // 表单标准事件保存save
16
17
  save: function(params) {
@@ -210,15 +211,16 @@ const standardEvents = {
210
211
  function exportFormReport(pageContext, configureObj, templateFile, isPdf) {
211
212
  const templateUUID = templateFile.templateUUID;
212
213
  const fileName = templateFile.templateShowPath;
213
- const system = pageContext.system;
214
+ const systemCode = pageContext.systemCode;
214
215
  const logSetting = configureObj.props.logSetting;
215
- const additionalParamMap = pageContext.entity.request;
216
216
  const isWorkflowForm = pageContext.workflowCode ? true : false;
217
217
  const beanName = pageContext.beanName;
218
218
  const button = configureObj.props.base;
219
219
  const tableName = configureObj.tableName;
220
+ const backendUrl = pageContext.backendUrl;
220
221
  const viewModels = pageContext.entity.data;
221
222
  const isPermission = button.isPermission === void 0 || button.isPermission === "true" || button.isPermission;
223
+ const functionCodes = getPermissionCodes(configureObj, pageContext);
222
224
  const param = {
223
225
  entity: viewModels,
224
226
  fileName: templateUUID,
@@ -228,23 +230,24 @@ function exportFormReport(pageContext, configureObj, templateFile, isPdf) {
228
230
  beanName,
229
231
  isWorkflowForm,
230
232
  // 是否是流程表单
231
- functionCode: button.functionCode,
233
+ functionCode: functionCodes,
232
234
  tableName,
233
235
  isPermission: isPermission + "",
234
- systemCode: system.code,
235
- tableNames: pageContext.tableNames
236
+ systemCode,
237
+ tableNames: pageContext.tableNames,
238
+ pageCode: pageContext.code,
239
+ pageVersion: pageContext.version
236
240
  };
237
241
  if (logSetting) {
238
242
  param["logSettingText"] = logSetting;
239
243
  }
240
- if (additionalParamMap) {
241
- param["additionalParamMap"] = additionalParamMap;
242
- }
244
+ let additionalParamMap = getAdditionalParamMap(pageContext);
245
+ param["additionalParamMap"] = additionalParamMap;
243
246
  let exportResult;
244
247
  if (isPdf) {
245
- exportResult = exportFormPdf(fileName, system, param);
248
+ exportResult = exportFormPdf(fileName, backendUrl, param);
246
249
  } else {
247
- exportResult = exportFormReportSuccess(fileName, system, param);
250
+ exportResult = exportFormReportSuccess(fileName, backendUrl, param);
248
251
  }
249
252
  if (exportResult) {
250
253
  exportResult.then(() => {
@@ -252,9 +255,9 @@ function exportFormReport(pageContext, configureObj, templateFile, isPdf) {
252
255
  });
253
256
  }
254
257
  }
255
- function exportFormReportSuccess(fileName, system, param) {
258
+ function exportFormReportSuccess(fileName, backendUrl, param) {
256
259
  return new Promise((resolve, reject) => {
257
- const baseUrl = getBaseUrl(system);
260
+ const baseUrl = getBaseUrl(backendUrl);
258
261
  const path = baseUrl + "/dsc/commons/export-reports";
259
262
  axios.defaults.headers.common.Authorization = getToken();
260
263
  const request = axios.post(path, param, {
@@ -284,9 +287,9 @@ function exportFormReportSuccess(fileName, system, param) {
284
287
  });
285
288
  });
286
289
  }
287
- function exportFormPdf(fileName, system, param) {
290
+ function exportFormPdf(fileName, backendUrl, param) {
288
291
  return new Promise((resolve, reject) => {
289
- const baseUrl = getBaseUrl(system);
292
+ const baseUrl = getBaseUrl(backendUrl);
290
293
  const path = baseUrl + "/dsc/commons/export-pdf";
291
294
  axios.defaults.headers.common.Authorization = getToken();
292
295
  const request = axios.post(path, param, {
@@ -349,19 +352,26 @@ function saveFunc(params, isListButton) {
349
352
  }
350
353
  });
351
354
  }
352
- function getCommonFormRequestParam(pageContext, configureObj, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo, ids) {
355
+ function getCommonFormRequestParam(pageContext, configureObj, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo, ids, row) {
353
356
  const isWorkflow = pageContext.workflowCode ? true : false;
354
- const system = pageContext.system;
357
+ const systemCode = pageContext.systemCode;
355
358
  const isPermission = configureObj.props.base.isPermission === void 0 || configureObj.props.base.isPermission === "true" || configureObj.props.base.isPermission;
359
+ const functionCodes = getPermissionCodes(configureObj, pageContext);
360
+ let entity = row;
361
+ if (!entity) {
362
+ entity = pageContext.entity.data;
363
+ }
356
364
  const param = {
357
- entity: pageContext.entity.data,
365
+ entity,
358
366
  pageModel: pageContext.entity.page,
359
367
  tableName: pageContext.tableName,
360
368
  formNoRuleCode: pageContext.formNoRuleCode,
361
369
  isWorkflowEntity: isWorkflow,
362
- functionCode: configureObj.props.base.functionCode,
370
+ functionCode: functionCodes,
363
371
  isPermission: isPermission + "",
364
- tableNames: pageContext.tableNames
372
+ tableNames: pageContext.tableNames,
373
+ pageCode: pageContext.code,
374
+ pageVersion: pageContext.version
365
375
  };
366
376
  if (ids) {
367
377
  param["ids"] = ids;
@@ -394,7 +404,7 @@ function getCommonFormRequestParam(pageContext, configureObj, isUnControlVersion
394
404
  param["logSettingText"] = logSetting;
395
405
  }
396
406
  if (!param["systemCode"]) {
397
- param["systemCode"] = system.code;
407
+ param["systemCode"] = systemCode;
398
408
  }
399
409
  const beanName = configureObj.props.base.beanName;
400
410
  if (beanName) {
@@ -406,31 +416,42 @@ function getCommonFormRequestParam(pageContext, configureObj, isUnControlVersion
406
416
  if (mainDefaultValueColumns) {
407
417
  param["mainDefaultValueColumns"] = mainDefaultValueColumns;
408
418
  }
409
- const additionalParamMap = pageContext.entity.request;
410
- if (additionalParamMap) {
411
- param["additionalParamMap"] = additionalParamMap;
412
- }
419
+ let additionalParamMap = getAdditionalParamMap(pageContext);
420
+ param["additionalParamMap"] = additionalParamMap;
413
421
  if (isUnControlVersion !== void 0) {
414
422
  param["unControlVersion"] = isUnControlVersion;
415
423
  }
416
424
  return param;
417
425
  }
418
- function getSaveFormRequest(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo) {
419
- const system = pageContext.system;
426
+ function getSaveFormRequestWithRow(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo, row) {
427
+ const systemCode = pageContext.systemCode;
428
+ const backendUrl = pageContext.backendUrl;
420
429
  const param = getCommonFormRequestParam(
421
430
  pageContext,
422
431
  configureObj,
423
432
  isUnControlVersion,
424
433
  mainDefaultValueColumns,
425
434
  dynamicColumnInfo,
435
+ null,
436
+ row
437
+ );
438
+ return getSaveFormRequestByParam(systemCode, backendUrl, param, url, pageContext.entity.data);
439
+ }
440
+ function getSaveFormRequest(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo) {
441
+ return getSaveFormRequestWithRow(
442
+ pageContext,
443
+ configureObj,
444
+ url,
445
+ isUnControlVersion,
446
+ mainDefaultValueColumns,
447
+ dynamicColumnInfo,
426
448
  null
427
449
  );
428
- return getSaveFormRequestByParam(system, param, url, pageContext.entity.data);
429
450
  }
430
- function getSaveFormRequestByParam(system, param, url, formData) {
431
- const baseUrl = getBaseUrl(system);
451
+ function getSaveFormRequestByParam(systemCode, backendUrl, param, url, formData) {
452
+ const baseUrl = getBaseUrl(backendUrl);
432
453
  let path = baseUrl + url;
433
- path = getRealRestApiPath(path, system);
454
+ path = getRealRestApiPath(path, systemCode, backendUrl);
434
455
  let request;
435
456
  if (formData && (formData.id || formData.ID)) {
436
457
  request = http.put(path, param);
@@ -471,16 +492,10 @@ function dealAfterWithForm(pageContext, configureObj, data, successTip) {
471
492
  }
472
493
  function afterSuccessOperateInForm(pageContext, configureObj, dataModel) {
473
494
  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";
495
+ if (!successOperation || successOperation === null) {
496
+ return;
483
497
  }
498
+ const isNeedValueMapping = configureObj.props.base.isNeedValueMapping;
484
499
  if (successOperation === "noOperation") {
485
500
  if (dataModel) {
486
501
  pageContext.entity.data = dataModel;
@@ -529,8 +544,7 @@ function updateValuesWhenCloseDialog(parentPageContext, parentConfigureObj, sour
529
544
  parentPageContext.entity.data,
530
545
  targetTableName
531
546
  );
532
- const updateValueEventName = jumpPageSetting && jumpPageSetting.updateValueEvent ? jumpPageSetting.updateValueEvent : null;
533
- handleEventByEventName(parentPageContext, parentConfigureObj, updateValueEventName, {
547
+ handleEvent(null, parentPageContext, parentConfigureObj, "setValueCallback", {
534
548
  sourceModel,
535
549
  sourceTableName,
536
550
  jumpPageSetting,
@@ -541,7 +555,7 @@ function updateValuesWhenCloseDialog(parentPageContext, parentConfigureObj, sour
541
555
  function dealAfterWithList(pageContext, configureObj, row, successTip) {
542
556
  let successOperation = configureObj.props.base.successOperation;
543
557
  const isNeedValueMapping = configureObj.props.base.isNeedValueMapping;
544
- const tableUuid = configureObj.props.base.tableUuid;
558
+ let tableUuid = configureObj.props.base.tableUuid;
545
559
  if (!successOperation) {
546
560
  successOperation = "refresh";
547
561
  }
@@ -617,16 +631,18 @@ function getSubmitFormRequest(pageContext, configureObj, url, isUnControlVersion
617
631
  type: "warning"
618
632
  }
619
633
  ).then(() => {
620
- const system = pageContext.system;
634
+ const systemCode = pageContext.systemCode;
635
+ const backendUrl = pageContext.backendUrl;
621
636
  const param = getCommonFormRequestParam(
622
637
  pageContext,
623
638
  configureObj,
624
639
  isUnControlVersion,
625
640
  mainDefaultValueColumns,
626
641
  dynamicColumnInfo,
627
- ids
642
+ ids,
643
+ null
628
644
  );
629
- getSaveFormRequestByParam(system, param, url, pageContext.entity.data).then((result) => {
645
+ getSaveFormRequestByParam(systemCode, backendUrl, param, url, pageContext.entity.data).then((result) => {
630
646
  resolve(result);
631
647
  }).catch((error) => {
632
648
  reject(error);
@@ -658,21 +674,25 @@ function deleteFunc(params) {
658
674
  ).then(() => {
659
675
  const pageContext = params.pageContext;
660
676
  const configureObj = params.configureObj;
661
- const system = pageContext.entity.system;
662
677
  const tableName = pageContext.tableName;
663
678
  const configureBase = configureObj.props.base;
664
- const baseUrl = getBaseUrl(system);
679
+ const systemCode = pageContext.systemCode;
680
+ const backendUrl = pageContext.backendUrl;
681
+ const baseUrl = getBaseUrl(backendUrl);
665
682
  let path = baseUrl + "/dsc/commons/" + tableName;
666
- path = getRealRestApiPath(path, system);
683
+ path = getRealRestApiPath(path, systemCode, backendUrl);
667
684
  const isPermission = configureBase.isPermission === void 0 || configureBase.isPermission === "true" || configureBase.isPermission;
668
685
  const isWorkflow = pageContext.workflowCode ? true : false;
686
+ const functionCodes = getPermissionCodes(configureObj, pageContext);
669
687
  const param = {
670
688
  ids,
671
- functionCode: configureBase.functionCode,
689
+ functionCode: functionCodes,
672
690
  isPermission: isPermission + "",
673
- systemCode: system.code,
691
+ systemCode,
674
692
  isWorkflowEntity: isWorkflow,
675
- tableNames: pageContext.tableNames
693
+ tableNames: pageContext.tableNames,
694
+ pageCode: pageContext.code,
695
+ pageVersion: pageContext.version
676
696
  };
677
697
  if (configureBase.beanName) {
678
698
  param["beanName"] = configureBase.beanName;
@@ -696,7 +716,8 @@ function deleteFunc(params) {
696
716
  http.delete(path, {
697
717
  data: param
698
718
  }).then((data) => {
699
- const gridRef = getComponentRef(pageContext, params.tableUuid);
719
+ const tableUuid = configureObj.props.base.tableUuid;
720
+ const gridRef = getComponentRef(pageContext, tableUuid);
700
721
  if (gridRef) {
701
722
  gridRef.isDeleteChange(true);
702
723
  gridRef.clearSelections();
@@ -728,7 +749,8 @@ function downloadTemplateFunc(params) {
728
749
  templateUUID = templateFilesResult[0].templateUUID;
729
750
  templateShowPath = templateFilesResult[0].templateShowPath;
730
751
  }
731
- const system = pageContext.system;
752
+ const systemCode = pageContext.systemCode;
753
+ const backendUrl = pageContext.backendUrl;
732
754
  const showName = templateShowPath;
733
755
  let param = "?1=1";
734
756
  if (templateUUID && showName && templateUUID !== "undefined" && showName !== "undefined" && templateUUID !== "null" && showName !== "null") {
@@ -740,8 +762,8 @@ function downloadTemplateFunc(params) {
740
762
  if (logSetting && logSetting !== "") {
741
763
  param += "&logSettingText=" + logSetting;
742
764
  }
743
- if (system && system.code) {
744
- param += "&systemCode=" + system.code;
765
+ if (systemCode) {
766
+ param += "&systemCode=" + systemCode;
745
767
  }
746
768
  const listCode = params.listCode;
747
769
  if (listCode) {
@@ -750,17 +772,24 @@ function downloadTemplateFunc(params) {
750
772
  if (pageContext.beanName) {
751
773
  param += "&beanName=" + pageContext.beanName;
752
774
  }
753
- if (configureBase.functionCode) {
754
- param += "&functionCode=" + configureBase.functionCode;
775
+ const functionCodes = getPermissionCodes(configureObj, pageContext);
776
+ if (functionCodes) {
777
+ param += "&functionCode=" + functionCodes;
755
778
  }
756
779
  if (pageContext.tableName) {
757
780
  param += "&tableName=" + pageContext.tableName;
758
781
  }
782
+ if (pageContext.code) {
783
+ param += "&pageCode=" + pageContext.code;
784
+ }
785
+ if (pageContext.version) {
786
+ param += "&pageVersion=" + pageContext.version;
787
+ }
759
788
  if (configureBase) {
760
789
  const isPermission = configureBase.isPermission === void 0 || configureBase.isPermission === "true" || configureBase.isPermission;
761
790
  param += "&isPermission=" + isPermission;
762
791
  }
763
- const baseUrl = getBaseUrl(system);
792
+ const baseUrl = getBaseUrl(backendUrl);
764
793
  window.open(baseUrl + "/dsc/commons/download-files" + param);
765
794
  }
766
795
  function doImportFinally(params, fileObj) {
@@ -808,19 +837,19 @@ function doImportFinally(params, fileObj) {
808
837
  if (isWorkflowEntity !== null && isWorkflowEntity !== void 0) {
809
838
  param.append("isWorkflowEntity", isWorkflowEntity + "");
810
839
  }
811
- if (buttonConfigureBase.functionCode) {
812
- param.append("functionCode", buttonConfigureBase.functionCode);
813
- }
814
- const additionalParamMap = pageContext.entity.request;
815
- if (additionalParamMap) {
816
- param.append("additionalParamMapStr", JSON.stringify(additionalParamMap));
840
+ const functionCodes = getPermissionCodes(buttonConfigureObj, pageContext);
841
+ if (functionCodes) {
842
+ param.append("functionCode", functionCodes);
817
843
  }
844
+ let additionalParamMap = getAdditionalParamMap(pageContext);
845
+ param.append("additionalParamMapStr", JSON.stringify(additionalParamMap));
818
846
  const isPermission = buttonConfigureBase.isPermission === void 0 || buttonConfigureBase.isPermission === "true" || buttonConfigureBase.isPermission;
819
847
  param.append("isPermission", isPermission + "");
820
- const system = pageContext.entity.system;
821
- const baseUrl = getBaseUrl(system);
848
+ const systemCode = pageContext.systemCode;
849
+ const backendUrl = pageContext.backendUrl;
850
+ const baseUrl = getBaseUrl(backendUrl);
822
851
  let path = baseUrl + "/dsc/commons/import-data";
823
- path = getRealRestApiPath(path, system);
852
+ path = getRealRestApiPath(path, systemCode, backendUrl);
824
853
  http.post(path, param).then((data) => {
825
854
  if (isAsync) {
826
855
  ElMessage({
@@ -904,12 +933,13 @@ function exportFunc(params) {
904
933
  isAsync = false;
905
934
  }
906
935
  const isPermission = configureBase.isPermission === void 0 || configureBase.isPermission === "true" || configureBase.isPermission;
936
+ const functionCodes = getPermissionCodes(params.configureObj, pageContext);
907
937
  const exportFileName = pageName;
908
938
  window["$vueApp"].config.globalProperties.$exportDataNew(
909
939
  dataParam,
910
940
  exportFileName,
911
941
  listCode,
912
- configureBase.functionCode,
942
+ functionCodes,
913
943
  null,
914
944
  null,
915
945
  isAsync,
@@ -922,11 +952,11 @@ function getWorkflowSaveParams(params) {
922
952
  const pageContext = params.pageContext;
923
953
  const configureObj = params.configureObj;
924
954
  const dataModel = pageContext.entity.data;
925
- const system = pageContext.entity.system;
926
- const permissionPrefix = system.code + "." + pageContext.code;
927
- let functionCode = configureObj.props.base.functionCode;
928
- if (!functionCode) {
929
- functionCode = permissionPrefix + ".xxx";
955
+ const systemCode = pageContext.systemCode;
956
+ const permissionPrefix = pageContext.code;
957
+ let functionCodes = getPermissionCodes(configureObj, pageContext);
958
+ if (!functionCodes) {
959
+ functionCodes = permissionPrefix + ".xxx";
930
960
  }
931
961
  if (!dataModel.id && !dataModel.ID) {
932
962
  dataModel["pageCode"] = pageContext.code;
@@ -939,9 +969,11 @@ function getWorkflowSaveParams(params) {
939
969
  tableName: pageContext.tableName,
940
970
  emailTemplateCode: pageContext.emailTemplateCode,
941
971
  definitionId: pageContext.definitionId,
942
- functionCode,
943
- systemCode: system.code,
944
- tableNames: pageContext.tableNames
972
+ functionCode: functionCodes,
973
+ systemCode,
974
+ tableNames: pageContext.tableNames,
975
+ pageCode: pageContext.code,
976
+ pageVersion: pageContext.version
945
977
  };
946
978
  if (pageContext.completeTaskParam) {
947
979
  param["completeTaskParam"] = {
@@ -980,14 +1012,12 @@ function getWorkflowSaveParams(params) {
980
1012
  param["logSettingText"] = logSetting;
981
1013
  }
982
1014
  if (!param.systemCode) {
983
- param.systemCode = system.code;
1015
+ param.systemCode = systemCode;
984
1016
  }
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
- }
1017
+ let additionalParamMap = getAdditionalParamMap(pageContext);
1018
+ param["additionalParamMap"] = additionalParamMap;
1019
+ if (additionalParamMap.ids && additionalParamMap.ids.length > 0) {
1020
+ param["ids"] = additionalParamMap.ids;
991
1021
  }
992
1022
  const successOperation = configureObj.props.base.successOperation;
993
1023
  if (successOperation && successOperation === "noOperation") {
@@ -1000,9 +1030,10 @@ function workflowSaveFunc(params) {
1000
1030
  return new Promise((resolve, reject) => {
1001
1031
  const pageContext = params.pageContext;
1002
1032
  const dataModel = pageContext.entity.data;
1003
- const system = pageContext.entity.system;
1004
- let path = getBaseUrl(system) + "/dsc/workflow-commons";
1005
- path = getRealRestApiPath(path, system);
1033
+ const systemCode = pageContext.systemCode;
1034
+ const backendUrl = pageContext.backendUrl;
1035
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons";
1036
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1006
1037
  if (!path) {
1007
1038
  ElMessage({
1008
1039
  showClose: true,
@@ -1089,9 +1120,10 @@ function dealCompleteTaskParam(commonEntity, isInit, pageContext, params, operat
1089
1120
  function submitProcessFunc(params) {
1090
1121
  return new Promise((resolve, reject) => {
1091
1122
  const pageContext = params.pageContext;
1092
- const system = pageContext.entity.system;
1093
- let path = getBaseUrl(system) + "/dsc/workflow-commons/submit";
1094
- path = getRealRestApiPath(path, system);
1123
+ const systemCode = pageContext.systemCode;
1124
+ const backendUrl = pageContext.backendUrl;
1125
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/submit";
1126
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1095
1127
  if (!path) {
1096
1128
  ElMessage({
1097
1129
  showClose: true,
@@ -1125,9 +1157,10 @@ function submitProcessFunc(params) {
1125
1157
  function completeTaskFunc(params, operationResult) {
1126
1158
  return new Promise((resolve, reject) => {
1127
1159
  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);
1160
+ const systemCode = pageContext.systemCode;
1161
+ const backendUrl = pageContext.backendUrl;
1162
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/complete-tasks";
1163
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1131
1164
  if (!path) {
1132
1165
  ElMessage({
1133
1166
  showClose: true,
@@ -1171,8 +1204,8 @@ function doAssign(params, selectNodeInfo) {
1171
1204
  if (selectNodeInfo) {
1172
1205
  const pageContext = params.pageContext;
1173
1206
  const configureObj = params.configureObj;
1174
- const system = pageContext.entity.system;
1175
- const path = getBaseUrl(system) + "/dsc/workflow-commons/assigns";
1207
+ const backendUrl = pageContext.backendUrl;
1208
+ const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/assigns";
1176
1209
  const assigneeId = selectNodeInfo.id ? selectNodeInfo.id : selectNodeInfo.ID ? selectNodeInfo.ID : null;
1177
1210
  const requestParam = getWorkflowSaveParams(params);
1178
1211
  requestParam["assigneeId"] = assigneeId;
@@ -1187,9 +1220,9 @@ function getTransactTaskParam(params) {
1187
1220
  const pageContext = params.pageContext;
1188
1221
  const dataModel = pageContext.entity.data;
1189
1222
  const pageModel = pageContext.entity.page;
1190
- const system = pageContext.entity.system;
1191
- const permissionPrefix = system.code + "." + pageContext.code;
1192
- const additionalParamMap = pageContext.entity.request;
1223
+ const systemCode = pageContext.systemCode;
1224
+ const permissionPrefix = pageContext.code;
1225
+ const additionalParamMap = getAdditionalParamMap(pageContext);
1193
1226
  const dataId = dataModel.ID !== void 0 && dataModel.ID !== null ? dataModel.ID : dataModel.id;
1194
1227
  ({
1195
1228
  beanName: pageContext.beanName,
@@ -1200,13 +1233,28 @@ function getTransactTaskParam(params) {
1200
1233
  tableName: pageContext.tableName,
1201
1234
  functionCode: permissionPrefix + ".xxx",
1202
1235
  isWorkflowEntity: true,
1203
- tableNames: pageContext.tableNames
1236
+ tableNames: pageContext.tableNames,
1237
+ pageCode: pageContext.code,
1238
+ pageVersion: pageContext.version
1204
1239
  });
1205
1240
  ({
1206
1241
  taskId: pageContext.completeTaskParam.taskId,
1207
- systemCode: system.code
1242
+ systemCode
1208
1243
  });
1209
1244
  }
1245
+ function getAdditionalParamMap(pageContext) {
1246
+ if (pageContext.entity) {
1247
+ let additionalParamMap = pageContext.entity.page;
1248
+ if (!additionalParamMap) {
1249
+ additionalParamMap = {};
1250
+ }
1251
+ const requestMap = pageContext.entity.request;
1252
+ if (requestMap) {
1253
+ Object.assign(additionalParamMap, requestMap);
1254
+ }
1255
+ return additionalParamMap;
1256
+ }
1257
+ }
1210
1258
  function addSignerFunc(params) {
1211
1259
  const pageContext = params.pageContext;
1212
1260
  const pagCode = pageContext.code;
@@ -1217,9 +1265,10 @@ function doAddSigner(params, selectNodeInfo) {
1217
1265
  if (selectNodeInfo) {
1218
1266
  const pageContext = params.pageContext;
1219
1267
  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);
1268
+ const systemCode = pageContext.systemCode;
1269
+ const backendUrl = pageContext.backendUrl;
1270
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/add-signers";
1271
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1223
1272
  if (!path) {
1224
1273
  ElMessage({
1225
1274
  showClose: true,
@@ -1256,9 +1305,10 @@ function doCreateCopyTask(params, selectNodeInfo) {
1256
1305
  if (selectNodeInfo) {
1257
1306
  const pageContext = params.pageContext;
1258
1307
  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);
1308
+ const systemCode = pageContext.systemCode;
1309
+ const backendUrl = pageContext.backendUrl;
1310
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/add-signers";
1311
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1262
1312
  if (!path) {
1263
1313
  ElMessage({
1264
1314
  showClose: true,
@@ -1285,8 +1335,9 @@ function doCreateCopyTask(params, selectNodeInfo) {
1285
1335
  function transactTask(params, requestParam, path, successMessageTip) {
1286
1336
  return new Promise((resolve, reject) => {
1287
1337
  const pageContext = params.pageContext;
1288
- const system = pageContext.entity.system;
1289
- path = getRealRestApiPath(path, system);
1338
+ const systemCode = pageContext.systemCode;
1339
+ const backendUrl = pageContext.backendUrl;
1340
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1290
1341
  if (!path) {
1291
1342
  ElMessage({
1292
1343
  showClose: true,
@@ -1318,15 +1369,15 @@ function transactTask(params, requestParam, path, successMessageTip) {
1318
1369
  }
1319
1370
  function drawTaskFunc(params) {
1320
1371
  const pageContext = params.pageContext;
1321
- const system = pageContext.entity.system;
1322
- const path = getBaseUrl(system) + "/dsc/workflow-commons/draw-tasks";
1372
+ const backendUrl = pageContext.backendUrl;
1373
+ const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/draw-tasks";
1323
1374
  const requestParam = getWorkflowSaveParams(params);
1324
1375
  return transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulDrawTask");
1325
1376
  }
1326
1377
  function abandonReceiveFunc(params) {
1327
1378
  const pageContext = params.pageContext;
1328
- const system = pageContext.entity.system;
1329
- const path = getBaseUrl(system) + "/dsc/workflow-commons/abandon-receives";
1379
+ const backendUrl = pageContext.backendUrl;
1380
+ const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/abandon-receives";
1330
1381
  const requestParam = getWorkflowSaveParams(params);
1331
1382
  return transactTask(
1332
1383
  params,
@@ -1337,8 +1388,8 @@ function abandonReceiveFunc(params) {
1337
1388
  }
1338
1389
  function returnToPreviousTaskFunc(params) {
1339
1390
  const pageContext = params.pageContext;
1340
- const system = pageContext.entity.system;
1341
- const path = getBaseUrl(system) + "/dsc/workflow-commons/return-to-previous-tasks";
1391
+ const backendUrl = pageContext.backendUrl;
1392
+ const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/return-to-previous-tasks";
1342
1393
  const requestParam = getWorkflowSaveParams(params);
1343
1394
  return transactTask(
1344
1395
  params,
@@ -1349,8 +1400,8 @@ function returnToPreviousTaskFunc(params) {
1349
1400
  }
1350
1401
  function endInstanceFunc(params) {
1351
1402
  const pageContext = params.pageContext;
1352
- const system = pageContext.entity.system;
1353
- const path = getBaseUrl(system) + "/dsc/workflow-commons/end-instance";
1403
+ const backendUrl = pageContext.backendUrl;
1404
+ const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/end-instance";
1354
1405
  const requestParam = getWorkflowSaveParams(params);
1355
1406
  return transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulEndInstance");
1356
1407
  }
@@ -1362,10 +1413,11 @@ function returnTaskToFunc(params) {
1362
1413
  }
1363
1414
  function getTaskInformitions(params) {
1364
1415
  const pageContext = params.pageContext;
1365
- const system = pageContext.entity.system;
1416
+ const systemCode = pageContext.systemCode;
1417
+ const backendUrl = pageContext.backendUrl;
1366
1418
  const completeTaskParam = pageContext.completeTaskParam;
1367
- let path = getBaseUrl(system) + "/dsc/workflow-commons/returnable-task/" + completeTaskParam.taskId;
1368
- path = getRealRestApiPath(path, system);
1419
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/returnable-task/" + completeTaskParam.taskId;
1420
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1369
1421
  if (!path) {
1370
1422
  ElMessage({
1371
1423
  showClose: true,
@@ -1374,8 +1426,8 @@ function getTaskInformitions(params) {
1374
1426
  });
1375
1427
  return;
1376
1428
  }
1377
- const permissionPrefix = system.code + "." + pageContext.code;
1378
- const additionalParamMap = pageContext.entity.request;
1429
+ const permissionPrefix = pageContext.code;
1430
+ let additionalParamMap = getAdditionalParamMap(pageContext);
1379
1431
  const requestParams = {
1380
1432
  beanName: pageContext.beanName,
1381
1433
  additionalParamMap,
@@ -1387,8 +1439,8 @@ function getTaskInformitions(params) {
1387
1439
  function doReturnTaskTo(params, selectTaskNode) {
1388
1440
  const pageContext = params.pageContext;
1389
1441
  const configureObj = params.configureObj;
1390
- const system = pageContext.entity.system;
1391
- const path = getBaseUrl(system) + "/dsc/workflow-commons/returnTaskTo";
1442
+ const backendUrl = pageContext.backendUrl;
1443
+ const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/returnTaskTo";
1392
1444
  const requestParam = getWorkflowSaveParams(params);
1393
1445
  if (selectTaskNode.nodeName) {
1394
1446
  requestParam["returnToNodeName"] = selectTaskNode.nodeName;
@@ -1410,10 +1462,11 @@ function removeSignerfunc(params) {
1410
1462
  }
1411
1463
  function getRemoveSigner(params) {
1412
1464
  const pageContext = params.pageContext;
1413
- const system = pageContext.entity.system;
1414
- let path = getBaseUrl(system) + "/dsc/workflow-commons/get-remove-signers";
1465
+ const systemCode = pageContext.systemCode;
1466
+ const backendUrl = pageContext.backendUrl;
1467
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/get-remove-signers";
1415
1468
  const requestParam = getWorkflowSaveParams(params);
1416
- path = getRealRestApiPath(path, system);
1469
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1417
1470
  if (!path) {
1418
1471
  ElMessage({
1419
1472
  showClose: true,
@@ -1428,9 +1481,10 @@ function doRemoveSigners(params, selectRemoveTasks) {
1428
1481
  if (selectRemoveTasks) {
1429
1482
  const pageContext = params.pageContext;
1430
1483
  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);
1484
+ const systemCode = pageContext.systemCode;
1485
+ const backendUrl = pageContext.backendUrl;
1486
+ let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/remove-signers";
1487
+ path = getRealRestApiPath(path, systemCode, backendUrl);
1434
1488
  if (!path) {
1435
1489
  this.$message({
1436
1490
  showClose: true,
@@ -1459,8 +1513,8 @@ function doRemoveSigners(params, selectRemoveTasks) {
1459
1513
  }
1460
1514
  function retrieveTaskFunc(params) {
1461
1515
  const pageContext = params.pageContext;
1462
- const system = pageContext.entity.system;
1463
- const path = getBaseUrl(system) + "/dsc/workflow-commons/retrieves";
1516
+ const backendUrl = pageContext.backendUrl;
1517
+ const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/retrieves";
1464
1518
  const requestParam = getWorkflowSaveParams(params);
1465
1519
  return transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulRetrieve");
1466
1520
  }
@@ -1473,7 +1527,7 @@ function lineEditCreateFunc(params) {
1473
1527
  }
1474
1528
  }
1475
1529
  function isVisibleWorkflowButton(standardEventName, buttonInfo, completeTaskParam) {
1476
- let isVisible = false;
1530
+ let isVisible = true;
1477
1531
  if (standardEventName && buttonInfo) {
1478
1532
  if (standardEventName === "workflowSave") {
1479
1533
  isVisible = isVisibleWorkflowSave(buttonInfo);
@@ -1667,8 +1721,10 @@ export {
1667
1721
  doRemoveSigners,
1668
1722
  doReturnTaskTo,
1669
1723
  exportFormReport,
1724
+ getAdditionalParamMap,
1670
1725
  getRemoveSigner,
1671
1726
  getSaveFormRequest,
1727
+ getSaveFormRequestWithRow,
1672
1728
  getTaskInformitions,
1673
1729
  isVisibleWorkflowButton,
1674
1730
  judgeDataNumber,