super-page-runtime 2.2.23 → 2.2.29

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.
@@ -7,8 +7,8 @@ import { getComponentRef as g } from "../global-refs.js";
7
7
  import b from "../eventBus.js";
8
8
  import C from "axios";
9
9
  import { handleEvent as T, getTableUuid as y, doAfterClickEvent as h } from "./event-util.js";
10
- import { setStoreInfo as w } from "../store-util.js";
11
- import { getPermissionCodes as P, getDefaultValue as k, getModelFields as N } from "../page-init-util.js";
10
+ import { setStoreInfo as P } from "../store-util.js";
11
+ import { getPermissionCodes as w, getDefaultValue as k, getModelFields as N } from "../page-init-util.js";
12
12
  import { updateChartDatasources as M, caculateShowCondition as R, getVariableValue as v, setVariableValue as S } from "../page-helper-util.js";
13
13
  import I from "./print-label.js";
14
14
  import { getTableNameByTableUuid as x } from "../table-utils.js";
@@ -26,17 +26,17 @@ const _ = { save: function(e2) {
26
26
  const t2 = e2.pageContext.code + "_";
27
27
  b.$emit(t2 + "export-pdf-report", e2);
28
28
  }, submit: function(e2) {
29
- return G(e2, false, "submit", "/dsc/commons/submits");
29
+ return J(e2, false, "submit", "/dsc/commons/submits");
30
30
  }, submitList: function(e2) {
31
- return G(e2, true, "submit", "/dsc/commons/batch-submits");
31
+ return J(e2, true, "submit", "/dsc/commons/batch-submits");
32
32
  }, agree: function(e2) {
33
- return G(e2, false, "agree", "/dsc/commons/approves");
33
+ return J(e2, false, "agree", "/dsc/commons/approves");
34
34
  }, agreeList: function(e2) {
35
- return G(e2, true, "agree", "/dsc/commons/batch-approves");
35
+ return J(e2, true, "agree", "/dsc/commons/batch-approves");
36
36
  }, disagree: function(e2) {
37
- return G(e2, false, "disagree", "/dsc/commons/refuses");
37
+ return J(e2, false, "disagree", "/dsc/commons/refuses");
38
38
  }, disagreeList: function(e2) {
39
- return G(e2, true, "disagree", "/dsc/commons/batch-refuses");
39
+ return J(e2, true, "disagree", "/dsc/commons/batch-refuses");
40
40
  }, back: function(e2) {
41
41
  const t2 = e2.pageContext;
42
42
  H(t2, t2.entity ? t2.entity.data : {}, !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping);
@@ -50,10 +50,10 @@ const _ = { save: function(e2) {
50
50
  const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 = x(r2, m2);
51
51
  let b2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
52
52
  b2 = o(b2, p2, d2, r2.isTest);
53
- const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), y2 = P(u2, r2), h2 = { ids: a2, functionCode: y2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
53
+ const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), y2 = w(u2, r2), h2 = { ids: a2, functionCode: y2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
54
54
  r2.beanName && (h2.beanName = r2.beanName);
55
- const w2 = u2.props.deleteLogicSetting;
56
- w2 && ("object" == typeof w2 ? h2.deleteLogicSetting = JSON.stringify(w2) : "string" == typeof w2 && (h2.deleteLogicSetting = w2));
55
+ const P2 = u2.props.deleteLogicSetting;
56
+ P2 && ("object" == typeof P2 ? h2.deleteLogicSetting = JSON.stringify(P2) : "string" == typeof P2 && (h2.deleteLogicSetting = P2));
57
57
  const k2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
58
58
  k2 && (h2.logSettingText = k2.join(""));
59
59
  const N2 = u2.props.base.isSafeDelete;
@@ -83,7 +83,7 @@ const _ = { save: function(e2) {
83
83
  const b2 = e3.listCode;
84
84
  b2 && (f2 += "&listCode=" + b2);
85
85
  t2.beanName && (f2 += "&beanName=" + t2.beanName);
86
- const C2 = P(s2, t2);
86
+ const C2 = w(s2, t2);
87
87
  C2 && (f2 += "&functionCode=" + C2);
88
88
  t2.tableName && (f2 += "&tableName=" + t2.tableName);
89
89
  t2.code && (f2 += "&pageCode=" + t2.code);
@@ -95,8 +95,8 @@ const _ = { save: function(e2) {
95
95
  if (o2) {
96
96
  f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
97
97
  }
98
- const w2 = n(l2, t2.isTest);
99
- window.open(w2 + "/dsc/commons/download-files" + f2);
98
+ const P2 = n(l2, t2.isTest);
99
+ window.open(P2 + "/dsc/commons/download-files" + f2);
100
100
  }(e2);
101
101
  }, import: function(e2) {
102
102
  const t2 = e2.pageContext.code + "_";
@@ -110,7 +110,7 @@ const _ = { save: function(e2) {
110
110
  c2 || (c2 = n2.code);
111
111
  let u2 = false;
112
112
  u2 = void 0 !== o2.isAsync && null !== o2.isAsync && o2.isAsync;
113
- const l2 = void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission, p2 = P(e3.configureObj, n2), d2 = c2, m2 = { backendUrl: n2.backendUrl, pageContext: n2 };
113
+ const l2 = void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission, p2 = w(e3.configureObj, n2), d2 = c2, m2 = { backendUrl: n2.backendUrl, pageContext: n2 };
114
114
  window.$vueApp.config.globalProperties.$exportDataNew(r2, d2, i2, p2, null, m2, u2, n2.code, l2);
115
115
  });
116
116
  }(e2);
@@ -283,11 +283,11 @@ function j(e2) {
283
283
  }
284
284
  function D(e2, s2, o2, i2) {
285
285
  var _a;
286
- const a2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, m2 = s2.props.base, f2 = s2.tableName ? s2.tableName : e2.tableName, g2 = e2.backendUrl, b2 = O.getFormViewData(e2), T2 = void 0 === m2.isPermission || "true" === m2.isPermission || m2.isPermission, y2 = { entity: b2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: P(s2, e2), tableName: f2, isPermission: T2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
286
+ const a2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, m2 = s2.props.base, f2 = s2.tableName ? s2.tableName : e2.tableName, g2 = e2.backendUrl, b2 = O.getFormViewData(e2), T2 = void 0 === m2.isPermission || "true" === m2.isPermission || m2.isPermission, y2 = { entity: b2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: w(s2, e2), tableName: f2, isPermission: T2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
287
287
  u2 && (y2.logSettingText = u2.join(""));
288
- const w2 = te(e2);
288
+ const P2 = te(e2);
289
289
  let k2;
290
- y2.additionalParamMap = w2, k2 = i2 ? function(e3, t2, s3, o3) {
290
+ y2.additionalParamMap = P2, k2 = i2 ? function(e3, t2, s3, o3) {
291
291
  return new Promise((i3, a3) => {
292
292
  const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
293
293
  C.defaults.headers.common.Authorization = d();
@@ -331,7 +331,7 @@ function L(e2, t2) {
331
331
  }
332
332
  function B(e2, n2, o2, i2, a2, r2, c2) {
333
333
  var _a;
334
- const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = P(n2, e2);
334
+ const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = w(n2, e2);
335
335
  let m2 = c2;
336
336
  m2 || (m2 = e2.entity.data);
337
337
  const f2 = { entity: m2, tableName: e2.tableName, formNoRuleCode: e2.formNoRuleCode, isWorkflowEntity: u2, functionCode: d2, isPermission: p2 + "", listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
@@ -402,7 +402,7 @@ function H(e2, t2, s2) {
402
402
  b.$emit(a2 + "close-dialog", { isNeedValueMapping: i2, dataModel: t2, sourceTableName: o2, jumpMode: n2 });
403
403
  }
404
404
  }
405
- function $(e2, t2, s2, n2, o2) {
405
+ function G(e2, t2, s2, n2, o2) {
406
406
  var _a;
407
407
  o2 || (o2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null) || (o2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
408
408
  const i2 = e2.tableName;
@@ -418,7 +418,7 @@ function $(e2, t2, s2, n2, o2) {
418
418
  }
419
419
  }(s2, o2, e2), T(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: i2 });
420
420
  }
421
- function J(e2, t2, s2, n2) {
421
+ function $(e2, t2, s2, n2) {
422
422
  var _a;
423
423
  t2 && !t2.props.base && (t2.props.base = {});
424
424
  let o2 = n2;
@@ -436,7 +436,7 @@ function J(e2, t2, s2, n2) {
436
436
  }
437
437
  }
438
438
  }
439
- function G(e2, t2, s2, i2) {
439
+ function J(e2, t2, s2, i2) {
440
440
  return new Promise((r2, l2) => {
441
441
  const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
442
442
  let T2 = false;
@@ -484,11 +484,11 @@ function z(e2, s2) {
484
484
  T2 && f2.append("formNoRuleCode", T2);
485
485
  const y2 = e2.listCode;
486
486
  y2 && f2.append("listCode", y2);
487
- let w2 = false;
488
- w2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", w2 + ""), f2.append("pageCode", i2.code);
487
+ let P2 = false;
488
+ P2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", P2 + ""), f2.append("pageCode", i2.code);
489
489
  const k2 = t(i2);
490
490
  null != k2 && f2.append("isWorkflowEntity", k2 + "");
491
- const N2 = P(a2, i2);
491
+ const N2 = w(a2, i2);
492
492
  N2 && f2.append("functionCode", N2);
493
493
  const M2 = te(i2);
494
494
  f2.append("additionalParamMapStr", JSON.stringify(M2));
@@ -499,7 +499,7 @@ function z(e2, s2) {
499
499
  const S2 = i2.backendUrl;
500
500
  let I2 = n(S2, i2.isTest) + "/dsc/commons/import-data";
501
501
  I2 = o(I2, v2, S2, i2.isTest), c.post(I2, f2).then((e3) => {
502
- if (w2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
502
+ if (P2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
503
503
  else {
504
504
  let t2 = false;
505
505
  e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), F(i2, a2, e3, null, true), i2.result = t2, h(i2, a2);
@@ -519,8 +519,8 @@ function Y(e2, t2) {
519
519
  function K(e2) {
520
520
  var _a;
521
521
  const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, i2 = t2.systemCode, a2 = t2.code;
522
- let r2 = P(n2, t2);
523
- r2 || (r2 = a2 + ".xxx"), o2.id || o2.ID || (o2.page_code = t2.code, o2.page_version = t2.version);
522
+ let r2 = w(n2, t2);
523
+ r2 || (r2 = a2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
524
524
  const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: i2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
525
525
  t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (s(t2.judgeHeavyList) ? c2.judgeHeavyList = JSON.stringify(t2.judgeHeavyList) : c2.judgeHeavyList = t2.judgeHeavyList);
526
526
  const u2 = n2.props.base.conversionCodes;
@@ -552,9 +552,9 @@ function Q(e2, t2, s2, n2, o2) {
552
552
  }
553
553
  if (e2.completeTaskParam) {
554
554
  const t3 = e2.completeTaskParam;
555
- r2 = t3.taskId, n2 && (n2.taskId = r2), w(i2, a2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3;
555
+ r2 = t3.taskId, n2 && (n2.taskId = r2), P(i2, a2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3;
556
556
  }
557
- s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, w(i2, a2, "_currentActivityName", e2.taskName);
557
+ s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, P(i2, a2, "_currentActivityName", e2.taskName);
558
558
  }
559
559
  return n2 && (n2.operationResult = o2), t2 || F(s2, n2.configureObj, e2, null, false), true;
560
560
  }
@@ -824,11 +824,11 @@ function pe(e2, s2, o2) {
824
824
  }), y2.listCodesMap = t3;
825
825
  }
826
826
  e3.refercePropMap && (y2.refercePropMap = e3.refercePropMap);
827
- const h2 = C2 + "/dsc/commons/gets", w2 = E();
828
- w2.restorePageLoadState(), T(null, e3, e3, "beforeFormLoadData"), c.post(h2, y2).then((t3) => {
827
+ const h2 = C2 + "/dsc/commons/gets", P2 = E();
828
+ P2.restorePageLoadState(), T(null, e3, e3, "beforeFormLoadData"), c.post(h2, y2).then((t3) => {
829
829
  t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
830
830
  const s4 = e3.customRules, n2 = e3.rules, i4 = U(s4, n2);
831
- e3.rules = i4, e3.canClick = true, T(null, e3, e3, "afterFormLoadData"), w2.setFormPageDataLoadState(true), o3(t3);
831
+ e3.rules = i4, e3.canClick = true, T(null, e3, e3, "afterFormLoadData"), P2.setFormPageDataLoadState(true), o3(t3);
832
832
  }).catch((t3) => {
833
833
  e3.canClick = true, i3(t3);
834
834
  });
@@ -868,8 +868,8 @@ export {
868
868
  ie as getTaskInformitions,
869
869
  ue as isVisibleWorkflowButton,
870
870
  Y as judgeDataNumber,
871
- J as refreshFormOrListPage,
871
+ $ as refreshFormOrListPage,
872
872
  le as refreshPage,
873
873
  _ as standardEvents,
874
- $ as updateValuesWhenCloseDialog
874
+ G as updateValuesWhenCloseDialog
875
875
  };
@@ -36,16 +36,16 @@ function getTableQueryInfo(t, e) {
36
36
  o2.propDbName || (o2.propDbName = o2.propName);
37
37
  const t2 = {};
38
38
  Object.assign(t2, o2);
39
- const a2 = getParamNames(o2.propValue);
40
- for (const t3 of a2) t3 && (t3.startsWith("${data.") || t3.startsWith("${task.") || t3.startsWith("${page.")) && (n.includes(t3) || n.push(t3));
39
+ const r2 = getParamNames(o2.propValue);
40
+ for (const t3 of r2) t3 && (t3.startsWith("${data.") || t3.startsWith("${task.") || t3.startsWith("${page.")) && (n.includes(t3) || n.push(t3));
41
41
  o2.propValue, e2.push(t2);
42
42
  }
43
43
  o.props.searchForm = e2;
44
44
  }
45
45
  o.props.monitorFields = n;
46
- const a = [];
47
- if (t.tableValueField && (o.props.valueField = t.tableValueField), t.tableLableField && -1 == a.indexOf(t.tableLableField) && (o.props.lableField = t.tableLableField), t.autoSets) for (const e2 of t.autoSets) e2.source && -1 == a.indexOf(e2.source) && a.push(e2.source);
48
- return o.props.queryFields = a, o.props.pageSize = t.displayQuantity, o;
46
+ const r = [];
47
+ if (t.tableValueField && (o.props.valueField = t.tableValueField), t.tableLableField && -1 == r.indexOf(t.tableLableField) && (o.props.lableField = t.tableLableField), t.autoSets) for (const e2 of t.autoSets) e2.source && -1 == r.indexOf(e2.source) && r.push(e2.source);
48
+ return o.props.queryFields = r, o.props.pageSize = t.displayQuantity, o;
49
49
  }
50
50
  function getServiceQueryInfo(t, e) {
51
51
  const o = { type: "service" };
@@ -61,16 +61,16 @@ function getServiceQueryInfo(t, e) {
61
61
  return o.props.dataSetField = t.serviceDataSetField, o.props.valueField = t.serviceValueField, o.props.labelField = t.serviceLabelField, o;
62
62
  }
63
63
  function updateChartDatasources(t, e, o, n) {
64
- return new Promise((a, r) => {
65
- if (!e || 0 == e.length) return void r(new Error("无需查询的统计图配置!"));
64
+ return new Promise((r, a) => {
65
+ if (!e || 0 == e.length) return void a(new Error("无需查询的统计图配置!"));
66
66
  const s = deepCopy(e);
67
67
  s.forEach((e2) => {
68
68
  const o2 = e2.services;
69
69
  if (o2 && o2.length > 0) {
70
70
  const e3 = o2[0].serviceInputs;
71
71
  e3 && (o2[0].serviceInParams = {}, e3.forEach((e4) => {
72
- const n2 = e4.name, a2 = e4.value;
73
- o2[0].serviceInParams[n2] = getValueFromVariable(t.entity, a2);
72
+ const n2 = e4.name, r2 = e4.value;
73
+ o2[0].serviceInParams[n2] = getValueFromVariable(t.entity, r2);
74
74
  }), delete o2[0].serviceInputs);
75
75
  }
76
76
  });
@@ -84,19 +84,19 @@ function updateChartDatasources(t, e, o, n) {
84
84
  t.chartDataSourceMap || (t.chartDataSourceMap = {});
85
85
  for (const o2 in e2) {
86
86
  t.chartDataSourceMap[o2] = e2[o2];
87
- const a2 = getComponentRef(t, o2);
88
- if (a2) {
89
- const r2 = a2.getConfigure();
90
- if ((!n || r2 && (void 0 === r2.initializationQuery || r2.initializationQuery)) && a2.updateChartDatas && (a2.updateChartDatas(e2[o2]), (_b = (_a = r2.runtime) == null ? void 0 : _a.dataConfig) == null ? void 0 : _b.resultSet)) {
91
- const n2 = e2[o2] && e2[o2].length > 0 ? e2[o2][0] : {}, a3 = n2 && n2.result ? n2.result : {};
87
+ const r2 = getComponentRef(t, o2);
88
+ if (r2) {
89
+ const a2 = r2.getConfigure();
90
+ if ((!n || a2 && (void 0 === a2.initializationQuery || a2.initializationQuery)) && r2.updateChartDatas && (r2.updateChartDatas(e2[o2]), (_b = (_a = a2.runtime) == null ? void 0 : _a.dataConfig) == null ? void 0 : _b.resultSet)) {
91
+ const n2 = e2[o2] && e2[o2].length > 0 ? e2[o2][0] : {}, r3 = n2 && n2.result ? n2.result : {};
92
92
  let s2 = null;
93
- r2.serviceDataField ? s2 = a3[r2.serviceDataField] : a3 && (s2 = Array.isArray(a3) ? a3 : [a3]), s2 || (s2 = []), setValueForVariableName(t.entity, r2.runtime.dataConfig.resultSet, s2);
93
+ a2.serviceDataField ? s2 = r3[a2.serviceDataField] : r3 && (s2 = Array.isArray(r3) ? r3 : [r3]), s2 || (s2 = []), setValueForVariableName(t.entity, a2.runtime.dataConfig.resultSet, s2);
94
94
  }
95
95
  }
96
96
  }
97
- a(e2);
97
+ r(e2);
98
98
  }).catch((t2) => {
99
- r(t2);
99
+ a(t2);
100
100
  });
101
101
  });
102
102
  }
@@ -105,11 +105,11 @@ function updateChartDatasourcesByComponent(t, e) {
105
105
  o && updateChartDatasources(t, [o], null, false);
106
106
  }
107
107
  function updateOptionDatasources(t, e, o) {
108
- return new Promise((n, a) => {
109
- if (!e || 0 == e.length) return void a(new Error("无需查询的配置!"));
110
- const r = t.entity ? t.entity : {}, s = {};
111
- r.request && Object.assign(s, r.request), r.page && Object.assign(s, r.page), s.query = o;
112
- const i = { entityMap: r.data, additionalParamMap: s, dataSourceList: e, systemCode: t.systemCode, query: o }, u = t.backendUrl, l = getBaseUrl(u, t.isTest) + "/common/common-data/find-datas";
108
+ return new Promise((n, r) => {
109
+ if (!e || 0 == e.length) return void r(new Error("无需查询的配置!"));
110
+ const a = t.entity ? t.entity : {}, s = {};
111
+ a.request && Object.assign(s, a.request), a.page && Object.assign(s, a.page), s.query = o;
112
+ const i = { entityMap: a.data, additionalParamMap: s, dataSourceList: e, systemCode: t.systemCode, query: o }, u = t.backendUrl, l = getBaseUrl(u, t.isTest) + "/common/common-data/find-datas";
113
113
  http.post(l, i).then((e2) => {
114
114
  t.optionSourceMap || (t.optionSourceMap = {});
115
115
  for (const o2 in e2) {
@@ -119,7 +119,7 @@ function updateOptionDatasources(t, e, o) {
119
119
  }
120
120
  n(e2);
121
121
  }).catch((t2) => {
122
- a(t2);
122
+ r(t2);
123
123
  });
124
124
  });
125
125
  }
@@ -144,14 +144,14 @@ function queryOptionDatasources(t, e, o) {
144
144
  }
145
145
  function autoSetAfterSelect(t, e, o, n) {
146
146
  if (!o || 0 == o.length) return;
147
- const a = e.entity ? e.entity : {};
147
+ const r = e.entity ? e.entity : {};
148
148
  for (const t2 of o) {
149
149
  if (!t2.source || !t2.target) continue;
150
150
  const e2 = getValuesByField(n, t2.source);
151
151
  let o2 = t2.target;
152
152
  if (!o2 || !o2.startsWith("${")) continue;
153
153
  o2 = o2.substring(2, o2.length - 1);
154
- setVariableValue(a, o2.split("."), e2.join(","));
154
+ setVariableValue(r, o2.split("."), e2.join(","));
155
155
  }
156
156
  }
157
157
  function getValuesByField(t, e) {
@@ -182,8 +182,8 @@ function setVariableValue(t, e, o) {
182
182
  if (!t || !e || 0 == e.length) return;
183
183
  let n = t;
184
184
  for (let t2 = 0; t2 < e.length; t2++) {
185
- const a = e[t2];
186
- t2 + 1 === e.length ? n[a] = o : (void 0 === n[a] && (n[a] = {}), n = n[a]);
185
+ const r = e[t2];
186
+ t2 + 1 === e.length ? n[r] = o : (void 0 === n[r] && (n[r] = {}), n = n[r]);
187
187
  }
188
188
  }
189
189
  function setVariableValueWithProp(t, e, o) {
@@ -194,9 +194,10 @@ function formatVariableValue(t, e) {
194
194
  if (!t || "" == e || null == e || null == e) return e;
195
195
  const o = t.entity ? t.entity : {}, n = getParamNames(e);
196
196
  for (const t2 in n) {
197
- const a = n[t2], r = getValueFromVariable(o, a);
198
- if (r && "[object Date]" === Object.prototype.toString.call(r)) return dayjs(r).format("YYYY-MM-DD hh:mm:ss");
199
- e = e.replace(a, null == r ? "" : r);
197
+ const r = n[t2], a = getValueFromVariable(o, r);
198
+ if (a && "[object Date]" === Object.prototype.toString.call(a)) return dayjs(a).format("YYYY-MM-DD hh:mm:ss");
199
+ if (a && "number" == typeof a) return a;
200
+ e = e.replace(r, null == a ? "" : a);
200
201
  }
201
202
  return e;
202
203
  }
@@ -229,18 +230,18 @@ function formatValueByType(t, e, o) {
229
230
  function getValueFromVariable(t, e, o) {
230
231
  if (null == e || null == e) return e;
231
232
  if (e.startsWith("${") && e.endsWith("}")) {
232
- let n = e.substring(2, e.length - 1), a = null, r = null;
233
- if (n.startsWith("data.")) n = n.substring(5), r = t.data, a = "data";
234
- else if (n.startsWith("page.")) n = n.substring(5), a = "page", r = t.page;
235
- else if (n.startsWith("task.")) n = n.substring(5), a = "task", r = t.task;
236
- else if (n.startsWith("request.")) n = n.substring(8), a = "request", r = t.request;
237
- else if (n.startsWith("context.")) n = n.substring(8), a = "context", r = t.context;
238
- else if (n.startsWith("system.")) n = n.substring(7), a = "system", r = t.system;
233
+ let n = e.substring(2, e.length - 1), r = null, a = null;
234
+ if (n.startsWith("data.")) n = n.substring(5), a = t.data, r = "data";
235
+ else if (n.startsWith("page.")) n = n.substring(5), r = "page", a = t.page;
236
+ else if (n.startsWith("task.")) n = n.substring(5), r = "task", a = t.task;
237
+ else if (n.startsWith("request.")) n = n.substring(8), r = "request", a = t.request;
238
+ else if (n.startsWith("context.")) n = n.substring(8), r = "context", a = t.context;
239
+ else if (n.startsWith("system.")) n = n.substring(7), r = "system", a = t.system;
239
240
  else {
240
241
  if (n.startsWith("fixed.")) return n.substring(6);
241
- n.startsWith("row.") && (n = n.substring(4), r = o, a = "row");
242
+ n.startsWith("row.") && (n = n.substring(4), a = o, r = "row");
242
243
  }
243
- return n ? getValueFromSource(r, n, a) : "";
244
+ return n ? getValueFromSource(a, n, r) : "";
244
245
  }
245
246
  return e;
246
247
  }
@@ -248,17 +249,17 @@ function getValueFromSource(t, e, o) {
248
249
  if ("context" != o && !t || !e) return;
249
250
  const n = e.indexOf(".");
250
251
  if (n > -1) {
251
- const a = e.substring(0, n), r = e.substring(n + 1);
252
- let s = t[a];
253
- return s && Array.isArray(s) && s.length > 0 && (s = s[0]), getValueFromSource(s, r, o);
252
+ const r = e.substring(0, n), a = e.substring(n + 1);
253
+ let s = t[r];
254
+ return s && Array.isArray(s) && s.length > 0 && (s = s[0]), getValueFromSource(s, a, o);
254
255
  }
255
256
  if ("context" == o) {
256
257
  if ("currentDate" == e || "currentTime" == e) return /* @__PURE__ */ new Date();
257
258
  if (e.startsWith("currentDate") && e.length > 11) {
258
259
  const t2 = e.substring(11), o2 = t2.substring(0, 1);
259
260
  let n2 = parseInt(t2.substring(1, t2.length - 1), 10);
260
- const a = t2.substring(t2.length - 1), r = /* @__PURE__ */ new Date();
261
- return n2 = "+" === o2 ? n2 : -n2, "d" === a || "w" === a ? (n2 = "w" === a ? 7 * n2 : n2, r.setDate(r.getDate() + n2)) : "m" === a ? r.setMonth(r.getMonth() + n2) : "y" === a && r.setFullYear(r.getFullYear() + n2), r;
261
+ const r = t2.substring(t2.length - 1), a = /* @__PURE__ */ new Date();
262
+ return n2 = "+" === o2 ? n2 : -n2, "d" === r || "w" === r ? (n2 = "w" === r ? 7 * n2 : n2, a.setDate(a.getDate() + n2)) : "m" === r ? a.setMonth(a.getMonth() + n2) : "y" === r && a.setFullYear(a.getFullYear() + n2), a;
262
263
  }
263
264
  if (!t) return;
264
265
  }
@@ -274,13 +275,13 @@ function caculateShowCondition(pageContext, showConditions, row) {
274
275
  let n = e.operator;
275
276
  if (!o || "" === o) continue;
276
277
  n || (n = "EQ");
277
- const a = getValueFromVariable(entityData, o, row);
278
- let r = getValueFromVariable(entityData, e.propValue, row);
278
+ const r = getValueFromVariable(entityData, o, row);
279
+ let a = getValueFromVariable(entityData, e.propValue, row);
279
280
  const s = e.dataType;
280
- "CONTAIN" != n && "NOT_CONTAIN" != n || a && !a.includes && (n = "CONTAIN" == n ? "EQ" : "NET");
281
+ "CONTAIN" != n && "NOT_CONTAIN" != n || r && !r.includes && (n = "CONTAIN" == n ? "EQ" : "NET");
281
282
  let i = e.variableIsNull, u;
282
- if (i || (i = "null"), void 0 !== r && "" !== r || (r = null, "null" === i ? n = "IS_NULL" : "notequal" === i ? n = "IS_NOT_NULL" : u = true), null == u) try {
283
- u = executeExpression(a, n, r, s);
283
+ if (i || (i = "null"), void 0 !== a && "" !== a || (a = null, "null" === i ? n = "IS_NULL" : "notequal" === i ? n = "IS_NOT_NULL" : u = true), null == u) try {
284
+ u = executeExpression(r, n, a, s);
284
285
  } catch (t2) {
285
286
  u = false;
286
287
  }
@@ -295,17 +296,17 @@ function caculateShowCondition(pageContext, showConditions, row) {
295
296
  }
296
297
  function monitorFieldChange(t, e, o) {
297
298
  if (!o || !t || !e || 0 == e.length) return;
298
- const n = [], a = [];
299
+ const n = [], r = [];
299
300
  for (let t2 of e) if (t2.startsWith("${")) {
300
301
  t2 = t2.substring(2, t2.length - 1);
301
302
  const e2 = t2.split(".");
302
- "page" !== e2[0] && "task" !== e2[0] && "data" !== e2[0] || (n.push(e2), a.includes(e2[0]) || a.push(e2[0]));
303
+ "page" !== e2[0] && "task" !== e2[0] && "data" !== e2[0] || (n.push(e2), r.includes(e2[0]) || r.push(e2[0]));
303
304
  }
304
- const r = t.entity;
305
- let s = getMonitorFieldValues(n, r), i = false;
306
- for (const t2 of a) watch(r[t2], () => {
305
+ const a = t.entity;
306
+ let s = getMonitorFieldValues(n, a), i = false;
307
+ for (const t2 of r) watch(a[t2], () => {
307
308
  i && clearTimeout(i), i = setTimeout(function() {
308
- const t3 = getMonitorFieldValues(n, r);
309
+ const t3 = getMonitorFieldValues(n, a);
309
310
  s != t3 && (s = t3, o());
310
311
  }, 200);
311
312
  });