super-page-runtime 2.0.49 → 2.0.53

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 (26) hide show
  1. package/dist/es/components/runtime/utils/assemblys-config.js +13 -0
  2. package/dist/es/components/runtime/utils/common-util.d.ts +1 -1
  3. package/dist/es/components/runtime/utils/common-util.js +2 -2
  4. package/dist/es/components/runtime/utils/events/print-label.js +2 -1
  5. package/dist/es/components/runtime/utils/events/standard-event.js +55 -44
  6. package/dist/es/components/runtime/utils/events/validator-util.js +6 -26
  7. package/dist/es/components/runtime/utils/page-helper-util.js +1 -42
  8. package/dist/es/components/runtime/utils/page-init-util.js +11 -2
  9. package/dist/es/components/runtime/utils/table-utils.js +2 -2
  10. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +10 -2
  11. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +4 -0
  12. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +20 -0
  13. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +10 -6
  14. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +10 -6
  15. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +1 -1
  16. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +2 -2
  17. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +4 -0
  18. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +48 -0
  19. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +35 -27
  21. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +21 -18
  22. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +67 -26
  23. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +14 -2
  24. package/dist/es/components/runtime/views/super-page-dialog.vue.js +35 -5
  25. package/dist/es/components/runtime/views/super-page.vue.js +18 -5
  26. package/package.json +2 -2
@@ -188,6 +188,12 @@ const assemblyGroups = [
188
188
  runtimeComponent: defineAsyncComponent(() => {
189
189
  return import("../views/assemblys/button/print-label/printlabel-runtime.vue.js");
190
190
  })
191
+ }, {
192
+ name: "export-pdf",
193
+ label: "打印标签",
194
+ runtimeComponent: defineAsyncComponent(() => {
195
+ return import("../views/assemblys/button/export-pdf/exportpdf-runtime.vue.js");
196
+ })
191
197
  }]
192
198
  },
193
199
  {
@@ -263,6 +269,13 @@ const assemblyGroups = [
263
269
  return import("../views/assemblys/data/table/table-runtime.vue.js");
264
270
  })
265
271
  },
272
+ {
273
+ name: "tree",
274
+ label: "树控件",
275
+ runtimeComponent: defineAsyncComponent(() => {
276
+ return import("../views/assemblys/data/tree/tree-runtime.vue.js");
277
+ })
278
+ },
266
279
  {
267
280
  name: "bar-code",
268
281
  label: "条码",
@@ -1,6 +1,6 @@
1
1
  export declare function isArrayFn(value: any): boolean;
2
2
  export declare function getBaseUrl(backendUrl: any, isTest?: boolean): any;
3
- export declare function getRealRestApiPath(orgRestApiPath: any, systemCode: any, backendUrl: any): any;
3
+ export declare function getRealRestApiPath(orgRestApiPath: any, systemCode: any, backendUrl: any, isTest?: boolean): any;
4
4
  /**
5
5
  * 封装模板文件列表
6
6
  * @param templateFiles
@@ -18,11 +18,11 @@ function getBaseUrl(backendUrl, isTest) {
18
18
  return baseUrl;
19
19
  }
20
20
  }
21
- function getRealRestApiPath(orgRestApiPath, systemCode, backendUrl) {
21
+ function getRealRestApiPath(orgRestApiPath, systemCode, backendUrl, isTest) {
22
22
  let path = orgRestApiPath;
23
23
  if (orgRestApiPath) {
24
24
  if (backendUrl && !isFullPath(orgRestApiPath)) {
25
- const baseUrl = getBaseUrl(backendUrl);
25
+ const baseUrl = getBaseUrl(backendUrl, isTest);
26
26
  path = baseUrl + "/" + systemCode + orgRestApiPath;
27
27
  }
28
28
  }
@@ -1,6 +1,7 @@
1
1
  import http from "agilebuilder-ui/src/utils/request";
2
- import { hiprint } from "vue-plugin-hiprint";
2
+ import { disAutoConnect, hiprint } from "vue-plugin-hiprint";
3
3
  import { generateCodeByRule } from "../barcode-util.js";
4
+ disAutoConnect();
4
5
  function printLabel(params, templateUuid) {
5
6
  http.post(window["$vueApp"].config.globalProperties.baseAPI + "/dc/print-models/by-codes", [
6
7
  templateUuid
@@ -2,7 +2,7 @@ import { getBaseUrl, getRealRestApiPath, upperFirstCase, packageTemplateFiles, d
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";
5
- import { getToken } from "agilebuilder-ui/src/utils/auth";
5
+ import { setSessionCache, getToken } from "agilebuilder-ui/src/utils/auth";
6
6
  import { getComponentRef } from "../global-refs.js";
7
7
  import eventBus from "../eventBus.js";
8
8
  import axios from "axios";
@@ -35,7 +35,9 @@ const standardEvents = {
35
35
  exportPDF: function(params) {
36
36
  console.log("表单标准事件导出报告exportPDF--params=", params);
37
37
  const pageContext = params.pageContext;
38
- pageContext.code;
38
+ const pagCode = pageContext.code;
39
+ const eventPageInfo = pagCode + "_";
40
+ eventBus.$emit(eventPageInfo + "export-pdf-report", params);
39
41
  },
40
42
  // 表单标准事件提交submit
41
43
  submit: function(params) {
@@ -276,9 +278,9 @@ function exportFormReport(pageContext, configureObj, templateFile, isPdf) {
276
278
  param["additionalParamMap"] = additionalParamMap;
277
279
  let exportResult;
278
280
  if (isPdf) {
279
- exportResult = exportFormPdf(fileName, backendUrl, param);
281
+ exportResult = exportFormPdf(fileName, backendUrl, param, pageContext.isTest);
280
282
  } else {
281
- exportResult = exportFormReportSuccess(fileName, backendUrl, param);
283
+ exportResult = exportFormReportSuccess(fileName, backendUrl, param, pageContext.isTest);
282
284
  }
283
285
  if (exportResult) {
284
286
  exportResult.then(() => {
@@ -286,9 +288,9 @@ function exportFormReport(pageContext, configureObj, templateFile, isPdf) {
286
288
  });
287
289
  }
288
290
  }
289
- function exportFormReportSuccess(fileName, backendUrl, param) {
291
+ function exportFormReportSuccess(fileName, backendUrl, param, isTest) {
290
292
  return new Promise((resolve, reject) => {
291
- const baseUrl = getBaseUrl(backendUrl);
293
+ const baseUrl = getBaseUrl(backendUrl, isTest);
292
294
  const path = baseUrl + "/dsc/commons/export-reports";
293
295
  axios.defaults.headers.common.Authorization = getToken();
294
296
  const request = axios.post(path, param, {
@@ -318,14 +320,14 @@ function exportFormReportSuccess(fileName, backendUrl, param) {
318
320
  });
319
321
  });
320
322
  }
321
- function exportFormPdf(fileName, backendUrl, param) {
323
+ function exportFormPdf(fileName, backendUrl, param, isTest) {
322
324
  return new Promise((resolve, reject) => {
323
- const baseUrl = getBaseUrl(backendUrl);
325
+ const baseUrl = getBaseUrl(backendUrl, isTest);
324
326
  const path = baseUrl + "/dsc/commons/export-pdf";
325
327
  axios.defaults.headers.common.Authorization = getToken();
326
328
  const request = axios.post(path, param, {
327
329
  headers: {
328
- "content-type": "application/x-www-form-urlencoded"
330
+ "content-type": "application/json"
329
331
  },
330
332
  responseType: "blob"
331
333
  });
@@ -462,7 +464,7 @@ function getSaveFormRequestWithRow(pageContext, configureObj, url, isUnControlVe
462
464
  param.tableName = otherParams.tableName;
463
465
  }
464
466
  }
465
- return getSaveFormRequestByParam(systemCode, backendUrl, param, url, pageContext.entity.data);
467
+ return getSaveFormRequestByParam(systemCode, backendUrl, param, url, pageContext.entity.data, pageContext.isTest);
466
468
  }
467
469
  function getSaveFormRequest(pageContext, configureObj, url, isUnControlVersion, mainDefaultValueColumns, dynamicColumnInfo) {
468
470
  return getSaveFormRequestWithRow(
@@ -476,10 +478,10 @@ function getSaveFormRequest(pageContext, configureObj, url, isUnControlVersion,
476
478
  null
477
479
  );
478
480
  }
479
- function getSaveFormRequestByParam(systemCode, backendUrl, param, url, formData) {
480
- const baseUrl = getBaseUrl(backendUrl);
481
+ function getSaveFormRequestByParam(systemCode, backendUrl, param, url, formData, isTest) {
482
+ const baseUrl = getBaseUrl(backendUrl, isTest);
481
483
  let path = baseUrl + url;
482
- path = getRealRestApiPath(path, systemCode, backendUrl);
484
+ path = getRealRestApiPath(path, systemCode, backendUrl, isTest);
483
485
  let request;
484
486
  if (formData && (formData.id || formData.ID)) {
485
487
  request = http.put(path, param);
@@ -713,9 +715,9 @@ function getSubmitFormRequest(pageContext, configureObj, url, isUnControlVersion
713
715
  ids2,
714
716
  null
715
717
  );
716
- const baseUrl = getBaseUrl(backendUrl);
718
+ const baseUrl = getBaseUrl(backendUrl, pageContext.isTest);
717
719
  let path = baseUrl + url;
718
- path = getRealRestApiPath(path, systemCode, backendUrl);
720
+ path = getRealRestApiPath(path, systemCode, backendUrl, pageContext.isTest);
719
721
  http.post(path, param).then((result) => {
720
722
  resolve(result);
721
723
  }).catch((error) => {
@@ -752,9 +754,9 @@ function deleteFunc(params) {
752
754
  const configureBase = configureObj.props.base;
753
755
  const systemCode = pageContext.systemCode;
754
756
  const backendUrl = pageContext.backendUrl;
755
- const baseUrl = getBaseUrl(backendUrl);
757
+ const baseUrl = getBaseUrl(backendUrl, pageContext.isTest);
756
758
  let path = baseUrl + "/dsc/commons/" + tableName;
757
- path = getRealRestApiPath(path, systemCode, backendUrl);
759
+ path = getRealRestApiPath(path, systemCode, backendUrl, pageContext.isTest);
758
760
  const isPermission = configureBase.isPermission === void 0 || configureBase.isPermission === "true" || configureBase.isPermission;
759
761
  const isWorkflow = pageContext.workflowCode ? true : false;
760
762
  const functionCodes = getPermissionCodes(configureObj, pageContext);
@@ -863,7 +865,7 @@ function downloadTemplateFunc(params) {
863
865
  const isPermission = configureBase.isPermission === void 0 || configureBase.isPermission === "true" || configureBase.isPermission;
864
866
  param += "&isPermission=" + isPermission;
865
867
  }
866
- const baseUrl = getBaseUrl(backendUrl);
868
+ const baseUrl = getBaseUrl(backendUrl, pageContext.isTest);
867
869
  window.open(baseUrl + "/dsc/commons/download-files" + param);
868
870
  }
869
871
  function doImportFinally(params, fileObj) {
@@ -921,9 +923,9 @@ function doImportFinally(params, fileObj) {
921
923
  param.append("isPermission", isPermission + "");
922
924
  const systemCode = pageContext.systemCode;
923
925
  const backendUrl = pageContext.backendUrl;
924
- const baseUrl = getBaseUrl(backendUrl);
926
+ const baseUrl = getBaseUrl(backendUrl, pageContext.isTest);
925
927
  let path = baseUrl + "/dsc/commons/import-data";
926
- path = getRealRestApiPath(path, systemCode, backendUrl);
928
+ path = getRealRestApiPath(path, systemCode, backendUrl, pageContext.isTest);
927
929
  http.post(path, param).then((data) => {
928
930
  if (isAsync) {
929
931
  ElMessage({
@@ -1106,8 +1108,8 @@ function workflowSaveFunc(params) {
1106
1108
  const dataModel = pageContext.entity.data;
1107
1109
  const systemCode = pageContext.systemCode;
1108
1110
  const backendUrl = pageContext.backendUrl;
1109
- let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons";
1110
- path = getRealRestApiPath(path, systemCode, backendUrl);
1111
+ let path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons";
1112
+ path = getRealRestApiPath(path, systemCode, backendUrl, pageContext.isTest);
1111
1113
  if (!path) {
1112
1114
  ElMessage({
1113
1115
  showClose: true,
@@ -1152,6 +1154,9 @@ function dealCompleteTaskParam(commonEntity, isInit, pageContext, params, operat
1152
1154
  pageContext.initFormNo = commonEntity.formNo;
1153
1155
  pageContext.emailTemplateCode = commonEntity.emailTemplateCode;
1154
1156
  }
1157
+ if (formParam.entity) {
1158
+ cacheFormDataId(formParam.entity.id || formParam.entity.ID, pageContext);
1159
+ }
1155
1160
  const completeTaskResult = formParam.completeTaskResult;
1156
1161
  if (completeTaskResult) {
1157
1162
  const completeTaskTipType = completeTaskResult.completeTaskTipType;
@@ -1196,8 +1201,8 @@ function submitProcessFunc(params) {
1196
1201
  const pageContext = params.pageContext;
1197
1202
  const systemCode = pageContext.systemCode;
1198
1203
  const backendUrl = pageContext.backendUrl;
1199
- let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/submit";
1200
- path = getRealRestApiPath(path, systemCode, backendUrl);
1204
+ let path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons/submit";
1205
+ path = getRealRestApiPath(path, systemCode, backendUrl, pageContext.isTest);
1201
1206
  if (!path) {
1202
1207
  ElMessage({
1203
1208
  showClose: true,
@@ -1233,8 +1238,8 @@ function completeTaskFunc(params, operationResult) {
1233
1238
  const pageContext = params.pageContext;
1234
1239
  const systemCode = pageContext.systemCode;
1235
1240
  const backendUrl = pageContext.backendUrl;
1236
- let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/complete-tasks";
1237
- path = getRealRestApiPath(path, systemCode, backendUrl);
1241
+ let path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons/complete-tasks";
1242
+ path = getRealRestApiPath(path, systemCode, backendUrl, pageContext.isTest);
1238
1243
  if (!path) {
1239
1244
  ElMessage({
1240
1245
  showClose: true,
@@ -1279,7 +1284,7 @@ function doAssign(params, selectNodeInfo) {
1279
1284
  const pageContext = params.pageContext;
1280
1285
  const configureObj = params.configureObj;
1281
1286
  const backendUrl = pageContext.backendUrl;
1282
- const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/assigns";
1287
+ const path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons/assigns";
1283
1288
  const assigneeId = selectNodeInfo.id ? selectNodeInfo.id : selectNodeInfo.ID ? selectNodeInfo.ID : null;
1284
1289
  const requestParam = getWorkflowSaveParams(params);
1285
1290
  requestParam["assigneeId"] = assigneeId;
@@ -1340,8 +1345,8 @@ function doAddSigner(params, selectNodeInfo) {
1340
1345
  const buttonConfigureObj = params.configureObj;
1341
1346
  const systemCode = pageContext.systemCode;
1342
1347
  const backendUrl = pageContext.backendUrl;
1343
- let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/add-signers";
1344
- path = getRealRestApiPath(path, systemCode, backendUrl);
1348
+ let path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons/add-signers";
1349
+ path = getRealRestApiPath(path, systemCode, backendUrl, pageContext.isTest);
1345
1350
  if (!path) {
1346
1351
  ElMessage({
1347
1352
  showClose: true,
@@ -1380,8 +1385,8 @@ function doCreateCopyTask(params, selectNodeInfo) {
1380
1385
  const buttonConfigureObj = params.configureObj;
1381
1386
  const systemCode = pageContext.systemCode;
1382
1387
  const backendUrl = pageContext.backendUrl;
1383
- let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/add-signers";
1384
- path = getRealRestApiPath(path, systemCode, backendUrl);
1388
+ let path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons/add-signers";
1389
+ path = getRealRestApiPath(path, systemCode, backendUrl, pageContext.isTest);
1385
1390
  if (!path) {
1386
1391
  ElMessage({
1387
1392
  showClose: true,
@@ -1410,7 +1415,7 @@ function transactTask(params, requestParam, path, successMessageTip) {
1410
1415
  const pageContext = params.pageContext;
1411
1416
  const systemCode = pageContext.systemCode;
1412
1417
  const backendUrl = pageContext.backendUrl;
1413
- path = getRealRestApiPath(path, systemCode, backendUrl);
1418
+ path = getRealRestApiPath(path, systemCode, backendUrl, pageContext.isTest);
1414
1419
  if (!path) {
1415
1420
  ElMessage({
1416
1421
  showClose: true,
@@ -1443,14 +1448,14 @@ function transactTask(params, requestParam, path, successMessageTip) {
1443
1448
  function drawTaskFunc(params) {
1444
1449
  const pageContext = params.pageContext;
1445
1450
  const backendUrl = pageContext.backendUrl;
1446
- const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/draw-tasks";
1451
+ const path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons/draw-tasks";
1447
1452
  const requestParam = getWorkflowSaveParams(params);
1448
1453
  return transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulDrawTask");
1449
1454
  }
1450
1455
  function abandonReceiveFunc(params) {
1451
1456
  const pageContext = params.pageContext;
1452
1457
  const backendUrl = pageContext.backendUrl;
1453
- const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/abandon-receives";
1458
+ const path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons/abandon-receives";
1454
1459
  const requestParam = getWorkflowSaveParams(params);
1455
1460
  return transactTask(
1456
1461
  params,
@@ -1462,7 +1467,7 @@ function abandonReceiveFunc(params) {
1462
1467
  function returnToPreviousTaskFunc(params) {
1463
1468
  const pageContext = params.pageContext;
1464
1469
  const backendUrl = pageContext.backendUrl;
1465
- const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/return-to-previous-tasks";
1470
+ const path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons/return-to-previous-tasks";
1466
1471
  const requestParam = getWorkflowSaveParams(params);
1467
1472
  return transactTask(
1468
1473
  params,
@@ -1474,7 +1479,7 @@ function returnToPreviousTaskFunc(params) {
1474
1479
  function endInstanceFunc(params) {
1475
1480
  const pageContext = params.pageContext;
1476
1481
  const backendUrl = pageContext.backendUrl;
1477
- const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/end-instance";
1482
+ const path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons/end-instance";
1478
1483
  const requestParam = getWorkflowSaveParams(params);
1479
1484
  return transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulEndInstance");
1480
1485
  }
@@ -1489,8 +1494,8 @@ function getTaskInformitions(params) {
1489
1494
  const systemCode = pageContext.systemCode;
1490
1495
  const backendUrl = pageContext.backendUrl;
1491
1496
  const completeTaskParam = pageContext.completeTaskParam;
1492
- let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/returnable-task/" + completeTaskParam.taskId;
1493
- path = getRealRestApiPath(path, systemCode, backendUrl);
1497
+ let path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons/returnable-task/" + completeTaskParam.taskId;
1498
+ path = getRealRestApiPath(path, systemCode, backendUrl, pageContext.isTest);
1494
1499
  if (!path) {
1495
1500
  ElMessage({
1496
1501
  showClose: true,
@@ -1513,7 +1518,7 @@ function doReturnTaskTo(params, selectTaskNode) {
1513
1518
  const pageContext = params.pageContext;
1514
1519
  const configureObj = params.configureObj;
1515
1520
  const backendUrl = pageContext.backendUrl;
1516
- const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/returnTaskTo";
1521
+ const path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons/returnTaskTo";
1517
1522
  const requestParam = getWorkflowSaveParams(params);
1518
1523
  if (selectTaskNode.nodeName) {
1519
1524
  requestParam["returnToNodeName"] = selectTaskNode.nodeName;
@@ -1537,9 +1542,9 @@ function getRemoveSigner(params) {
1537
1542
  const pageContext = params.pageContext;
1538
1543
  const systemCode = pageContext.systemCode;
1539
1544
  const backendUrl = pageContext.backendUrl;
1540
- let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/get-remove-signers";
1545
+ let path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons/get-remove-signers";
1541
1546
  const requestParam = getWorkflowSaveParams(params);
1542
- path = getRealRestApiPath(path, systemCode, backendUrl);
1547
+ path = getRealRestApiPath(path, systemCode, backendUrl, pageContext.isTest);
1543
1548
  if (!path) {
1544
1549
  ElMessage({
1545
1550
  showClose: true,
@@ -1556,8 +1561,8 @@ function doRemoveSigners(params, selectRemoveTasks) {
1556
1561
  const configureObj = params.configureObj;
1557
1562
  const systemCode = pageContext.systemCode;
1558
1563
  const backendUrl = pageContext.backendUrl;
1559
- let path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/remove-signers";
1560
- path = getRealRestApiPath(path, systemCode, backendUrl);
1564
+ let path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons/remove-signers";
1565
+ path = getRealRestApiPath(path, systemCode, backendUrl, pageContext.isTest);
1561
1566
  if (!path) {
1562
1567
  this.$message({
1563
1568
  showClose: true,
@@ -1587,7 +1592,7 @@ function doRemoveSigners(params, selectRemoveTasks) {
1587
1592
  function retrieveTaskFunc(params) {
1588
1593
  const pageContext = params.pageContext;
1589
1594
  const backendUrl = pageContext.backendUrl;
1590
- const path = getBaseUrl(backendUrl) + "/dsc/workflow-commons/retrieves";
1595
+ const path = getBaseUrl(backendUrl, pageContext.isTest) + "/dsc/workflow-commons/retrieves";
1591
1596
  const requestParam = getWorkflowSaveParams(params);
1592
1597
  return transactTask(params, requestParam, path, "superPageRuntimeMessage.successfulRetrieve");
1593
1598
  }
@@ -1800,6 +1805,12 @@ function isTaskComplete(completeTaskParam) {
1800
1805
  }
1801
1806
  return taskComplete;
1802
1807
  }
1808
+ function cacheFormDataId(dataId, pageContext) {
1809
+ const additionalParamMap = getAdditionalParamMap(pageContext);
1810
+ if (dataId && additionalParamMap) {
1811
+ setSessionCache(additionalParamMap._t_ + "_id", dataId);
1812
+ }
1813
+ }
1803
1814
  export {
1804
1815
  dealAfterOperate,
1805
1816
  dealCompleteTaskParam,
@@ -74,25 +74,10 @@ function getEndObjectRule(rule, props, currentProp) {
74
74
  }
75
75
  function getValidator(columns) {
76
76
  const rules = {};
77
- if (columns) {
78
- columns.forEach((editField) => {
79
- const prop = editField.model;
80
- if (prop && editField.validations) {
81
- const validations = editField.validations;
82
- if (prop.indexOf(".") > 0) {
83
- setObjectPropRule(editField.prop, rules, validations);
84
- } else {
85
- if (validations && validations.length > 0) {
86
- rules[prop] = [...validations];
87
- }
88
- }
89
- }
90
- });
91
- }
92
77
  return rules;
93
78
  }
94
79
  function validator(entity, rules, columns, rowIndex, isSql) {
95
- return validatorEntity(entity, rules, columns, rowIndex, true, isSql);
80
+ return validatorEntity(entity, rules, columns, rowIndex, true);
96
81
  }
97
82
  function sublistVerify(rules) {
98
83
  if (!rules) {
@@ -118,7 +103,7 @@ function sublistVerify(rules) {
118
103
  function validatorEntity(entity, rules, columns, rowIndex, isShouldRepeateValdate, isSql) {
119
104
  let validateRules = sublistVerify(rules);
120
105
  if ((!rules || rules === null) && columns) {
121
- validateRules = getValidator(columns);
106
+ validateRules = getValidator();
122
107
  }
123
108
  if (!validateRules || Object.keys(validateRules).length === 0) {
124
109
  entity["validateErrorField"] = "";
@@ -136,11 +121,6 @@ function validatorEntity(entity, rules, columns, rowIndex, isShouldRepeateValdat
136
121
  if (errors) {
137
122
  result = errors[0].message;
138
123
  fieldName = errors[0]["field"];
139
- if (typeof rowIndex !== "undefined" && rowIndex !== null) {
140
- result = getI18n().t("superPageRuntimeMessage.recordLine", {
141
- row: rowIndex + 1
142
- }) + "," + result;
143
- }
144
124
  ElMessage({
145
125
  message: result,
146
126
  showClose: true,
@@ -153,11 +133,11 @@ function validatorEntity(entity, rules, columns, rowIndex, isShouldRepeateValdat
153
133
  }
154
134
  if (fieldName && isShouldRepeateValdate === true) {
155
135
  const reg1 = /[A-Z]+/;
156
- if (isSql !== void 0 && isSql === true && reg1.test(fieldName) && entity[fieldName.toLowerCase()] !== void 0) {
136
+ if (reg1.test(fieldName) && entity[fieldName.toLowerCase()] !== void 0) {
157
137
  const copyEntity = JSON.parse(JSON.stringify(entity));
158
138
  copyEntity[fieldName.toUpperCase()] = entity[fieldName.toLowerCase()];
159
139
  delete copyEntity[fieldName.toLowerCase()];
160
- result = validatorEntity(copyEntity, rules, columns, rowIndex, false, isSql);
140
+ result = validatorEntity(copyEntity, rules, columns, rowIndex, false);
161
141
  }
162
142
  }
163
143
  }
@@ -205,7 +185,7 @@ function validateWorkflowFormDataModel(dataModel, pageContext) {
205
185
  if (!rules || Object.keys(rules).length === 0) {
206
186
  result = true;
207
187
  } else {
208
- result = validator(handleModels, rules, null, null, true);
188
+ result = validator(handleModels, rules, null, null);
209
189
  }
210
190
  if (result === true) {
211
191
  const workflowFieldPermissionRules = pageContext.workflowRules;
@@ -269,7 +249,7 @@ function validateCommonFormDataModel(dataModel, pageContext, rules) {
269
249
  if (!rules || Object.keys(rules).length === 0) {
270
250
  resolve(handleModels);
271
251
  } else {
272
- const validateEntityResult = validator(handleModels, rules, null, null, true);
252
+ const validateEntityResult = validator(handleModels, rules, null, null);
273
253
  if (validateEntityResult === true) {
274
254
  const validateResult = validateSubTables(pageContext);
275
255
  if (validateResult === true) {
@@ -77,8 +77,7 @@ function getTableQueryInfo(dataOriginInfo, pageContext2) {
77
77
  }
78
78
  }
79
79
  }
80
- if (f.propValue)
81
- ;
80
+ if (f.propValue) ;
82
81
  searchForm.push(tempObj);
83
82
  }
84
83
  infoObj.props.searchForm = searchForm;
@@ -243,45 +242,6 @@ function getChartDatasFromPage(pageContext2, configure2) {
243
242
  function queryOptionDatasources(pageContext2, dataSourceConf, query) {
244
243
  return updateOptionDatasources(pageContext2, dataSourceConf ? [dataSourceConf] : [], query);
245
244
  }
246
- function queryOptions(component, pageContext2, query) {
247
- if (!component.props || !component.props.dataOrigin) {
248
- return new Promise(function(resolve, reject) {
249
- resolve([]);
250
- });
251
- }
252
- const dataOriginInfo = component.props.dataOrigin;
253
- if (dataOriginInfo.optionValueSetType == "dynamicData") {
254
- if (!dataOriginInfo.dynamicDataSourceCode) {
255
- return new Promise(function(resolve, reject) {
256
- throw new Error("未指定动态数据源!");
257
- });
258
- }
259
- return queryByDynamicCode(dataOriginInfo.dynamicDataSourceCode, query);
260
- } else if (dataOriginInfo.optionValueSetType == "dataTable") {
261
- if (!dataOriginInfo.tableName) {
262
- return new Promise(function(resolve, reject) {
263
- throw new Error("未指定查询的数据表!");
264
- });
265
- }
266
- const tempObj = getTableQueryInfo(dataOriginInfo, pageContext2);
267
- return queryByTable(tempObj);
268
- } else {
269
- return new Promise(function(resolve, reject) {
270
- throw new Error("无有效的查询设置!");
271
- });
272
- }
273
- }
274
- function queryByDynamicCode(dynamicCode, query) {
275
- const param = {
276
- code: dynamicCode,
277
- query
278
- };
279
- return http.post("", param);
280
- }
281
- function queryByTable(tableQueryInfo) {
282
- const param = tableQueryInfo.props;
283
- return http.post("", param);
284
- }
285
245
  function autoSetAfterSelect(component, pageContext2, autoSets, selItems) {
286
246
  if (!autoSets || autoSets.length == 0) {
287
247
  return;
@@ -669,7 +629,6 @@ export {
669
629
  getVariableValue,
670
630
  monitorFieldChange,
671
631
  queryOptionDatasources,
672
- queryOptions,
673
632
  setValueForVariableName,
674
633
  setVariableValue,
675
634
  setVariableValueWithProp,
@@ -3,6 +3,7 @@ import { useRoute } from "vue-router";
3
3
  import { getAdditionalParamMap } from "./events/standard-event.js";
4
4
  import { PageDimensions } from "./interfaces/page-design-types.js";
5
5
  import { formatVariableValue, setVariableValue, getFormPropName } from "./page-helper-util.js";
6
+ import { getSessionCache } from "agilebuilder-ui/src/utils/auth";
6
7
  function queryPageDesignByCode(pageCode) {
7
8
  return http.get(
8
9
  window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + pageCode
@@ -107,10 +108,18 @@ function getRequestObject(pageRequest) {
107
108
  }
108
109
  if (route.query) {
109
110
  Object.assign(requestObj, route.query);
111
+ const paramStoreId = route.query.paramStoreId;
112
+ if (paramStoreId) {
113
+ const additionalParamMapJson = getSessionCache(paramStoreId);
114
+ if (additionalParamMapJson) {
115
+ const additionalParamMap = JSON.parse(additionalParamMapJson);
116
+ Object.assign(requestObj, additionalParamMap);
117
+ console.log("已获取到附加参数", additionalParamMap);
118
+ }
119
+ }
110
120
  }
111
121
  }
112
- if (requestObj["_t_"])
113
- ;
122
+ if (requestObj["_t_"]) ;
114
123
  return requestObj;
115
124
  }
116
125
  function getModelFields(pageContext, formItemConfigure, prop) {
@@ -1,8 +1,8 @@
1
1
  import { getBaseUrl } from "./common-util.js";
2
2
  import http from "agilebuilder-ui/src/utils/request";
3
3
  import eventBus from "./eventBus.js";
4
- function getDataTypeMapRequest(backendUrl, tableName) {
5
- const baseUrl = getBaseUrl(backendUrl);
4
+ function getDataTypeMapRequest(backendUrl, tableName, isTest) {
5
+ const baseUrl = getBaseUrl(backendUrl, isTest);
6
6
  return http.get(baseUrl + "/dsc/commons/tables/" + tableName + "/data-types");
7
7
  }
8
8
  function popupToPage(params) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
2
2
  import { ArrowDown } from "@element-plus/icons-vue";
3
3
  import { formatVariableValue } from "../../../../utils/page-helper-util.js";
4
- import { handleEvent } from "../../../../utils/events/event-util.js";
4
+ import { handleEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
5
5
  const _hoisted_1 = { key: 1 };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "dropdown-runtime",
@@ -45,6 +45,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
45
  } else {
46
46
  listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
47
47
  }
48
+ function visibleChange(isVisible) {
49
+ if (isVisible) {
50
+ handleFormEvent(isVisible, props.pageContext, props.configure, "menuShow");
51
+ } else {
52
+ handleFormEvent(isVisible, props.pageContext, props.configure, "menuHidden");
53
+ }
54
+ }
48
55
  return (_ctx, _cache) => {
49
56
  const _component_el_button = resolveComponent("el-button");
50
57
  const _component_el_icon = resolveComponent("el-icon");
@@ -60,7 +67,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
60
67
  disabled: designProperty.value.state === "disabled",
61
68
  type: designProperty.value.buttonType,
62
69
  size: designProperty.value.size,
63
- trigger: designProperty.value.trigger
70
+ trigger: designProperty.value.trigger,
71
+ onVisibleChange: visibleChange
64
72
  }, {
65
73
  dropdown: withCtx(() => [
66
74
  createVNode(_component_el_dropdown_menu, null, {
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./exportpdf-runtime.vue2.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,20 @@
1
+ import { defineComponent, openBlock, createBlock } from "vue";
2
+ import _sfc_main$1 from "../button/button-runtime.vue2.js";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "exportpdf-runtime",
5
+ props: {
6
+ pageContext: {},
7
+ configure: {}
8
+ },
9
+ setup(__props) {
10
+ return (_ctx, _cache) => {
11
+ return openBlock(), createBlock(_sfc_main$1, {
12
+ configure: _ctx.configure,
13
+ pageContext: _ctx.pageContext
14
+ }, null, 8, ["configure", "pageContext"]);
15
+ };
16
+ }
17
+ });
18
+ export {
19
+ _sfc_main as default
20
+ };
@@ -86,17 +86,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
86
86
  hisGroupValue = headerInfo.groupValue;
87
87
  refresh();
88
88
  });
89
- function refresh() {
89
+ function refresh(isHandle) {
90
90
  if (!dataConfig) {
91
91
  console.log("无数据源配置,不需要查询!");
92
92
  return;
93
93
  }
94
94
  dataConfig.services[0].groupValue = headerInfo.groupValue;
95
- dataConfig.isRefresh = true;
95
+ if (isHandle !== true) {
96
+ dataConfig.autoRefresh = true;
97
+ }
96
98
  updateChartDatasources(props.pageContext, [dataConfig], headerInfo.drillParams);
97
99
  }
98
100
  const monitorFields = headerInfo.monitorFields;
99
- monitorFieldChange(props.pageContext, monitorFields, refresh);
101
+ monitorFieldChange(props.pageContext, monitorFields, () => {
102
+ refresh(true);
103
+ });
100
104
  function updateChartDatas(resultData) {
101
105
  if (!resultData) {
102
106
  resultData = [];
@@ -111,17 +115,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
111
115
  return;
112
116
  }
113
117
  resultData.hasRender = true;
114
- if (!dataConfig.isRefresh) {
118
+ if (!dataConfig.autoRefresh) {
115
119
  hisGroupValue = resultData.groupValue;
116
120
  if (hisGroupValue && headerInfo.groupComponent !== "checkbox") {
117
121
  hisGroupValue = hisGroupValue.join(",");
118
122
  }
119
123
  headerInfo.groupValue = hisGroupValue;
120
124
  }
121
- if (!dataConfig.isRefresh || !enableDrill) {
125
+ if (!dataConfig.autoRefresh || !enableDrill) {
122
126
  clearChartSelected(props.pageContext, props.configure, chartRef.value.chart);
123
127
  }
124
- dataConfig.isRefresh = false;
128
+ dataConfig.autoRefresh = false;
125
129
  updateChartOption(props.pageContext, props.configure, chartOption, resultData);
126
130
  }
127
131
  __expose({