super-page-runtime 2.3.19-sit2 → 2.3.19-sit3

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.
@@ -6,7 +6,7 @@ import { getCurrentUser as d, getToken as m, getSessionCache as f, setSessionCac
6
6
  import { getComponentRef as b } from "../global-refs.js";
7
7
  import w from "../eventBus.js";
8
8
  import T from "axios";
9
- import { handleEvent as y, getTableUuid as k, doAfterClickEvent as h } from "./event-util.js";
9
+ import { handleEvent as k, getTableUuid as y, doAfterClickEvent as h } from "./event-util.js";
10
10
  import { setStoreInfo as P } from "../store-util.js";
11
11
  import { getPermissionCodes as S, getDefaultValue as R, getModelFields as v } from "../page-init-util.js";
12
12
  import { caculateShowCondition as M, updateChartDatasources as I, getVariableValue as N, setVariableValue as x } from "../page-helper-util.js";
@@ -52,16 +52,16 @@ const $ = { save: function(e2) {
52
52
  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 = A(r2, m2);
53
53
  let g2 = t(d2, r2.isTest) + "/dsc/commons/" + f2;
54
54
  g2 = s(g2, p2, d2, r2.isTest);
55
- const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, w2 = n(r2), T2 = S(u2, r2), y2 = { ids: i2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: w2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
56
- r2.beanName && (y2.beanName = r2.beanName);
57
- const k2 = u2.props.deleteLogicSetting;
58
- k2 && ("object" == typeof k2 ? y2.deleteLogicSetting = JSON.stringify(k2) : "string" == typeof k2 && (y2.deleteLogicSetting = k2));
55
+ const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, w2 = n(r2), T2 = S(u2, r2), k2 = { ids: i2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: w2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
56
+ r2.beanName && (k2.beanName = r2.beanName);
57
+ const y2 = u2.props.deleteLogicSetting;
58
+ y2 && ("object" == typeof y2 ? k2.deleteLogicSetting = JSON.stringify(y2) : "string" == typeof y2 && (k2.deleteLogicSetting = y2));
59
59
  const h2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
60
- h2 && (y2.logSettingText = h2.join(""));
60
+ h2 && (k2.logSettingText = h2.join(""));
61
61
  const P2 = u2.props.base.isSafeDelete;
62
- P2 && (y2.isSafeDelete = P2);
62
+ P2 && (k2.isSafeDelete = P2);
63
63
  const R2 = (_c = (_b = u2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
64
- R2 && (y2.currentOperation = R2), y2.isMobile = D(), c.delete(g2, { data: y2 }).then((e4) => {
64
+ R2 && (k2.currentOperation = R2), k2.isMobile = D(), c.delete(g2, { data: k2 }).then((e4) => {
65
65
  const t2 = b(r2, m2);
66
66
  t2 && (t2.isDeleteChange(true), t2.clearSelections()), X(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), o2(true);
67
67
  }).catch((e4) => {
@@ -97,8 +97,8 @@ const $ = { save: function(e2) {
97
97
  const T2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
98
98
  T2 && (d2 += "&currentOperation=" + encodeURI(T2));
99
99
  d2 += "&isMobile=" + D();
100
- const y2 = "_RUN_CURRENT_ROLE", k2 = f(y2);
101
- k2 && (d2 += "&" + y2 + "=" + k2);
100
+ const k2 = "_RUN_CURRENT_ROLE", y2 = f(k2);
101
+ y2 && (d2 += "&" + k2 + "=" + y2);
102
102
  if (o2) {
103
103
  d2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
104
104
  }
@@ -362,9 +362,9 @@ function H(e2, s2, o2, a2) {
362
362
  u2 && (b2.logSettingText = u2.join(""));
363
363
  const w2 = (_c = (_b = s2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
364
364
  w2 && (b2.currentOperation = w2), b2.isMobile = D();
365
- const y2 = fe(e2);
366
- let k2;
367
- b2.additionalParamMap = y2, b2.isShowWatermark = void 0 === ((_e2 = (_d = s2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = s2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", b2.watermark = ((_i = (_h = s2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = s2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = s2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", k2 = a2 ? function(e3, s3, n2, o3) {
365
+ const k2 = fe(e2);
366
+ let y2;
367
+ b2.additionalParamMap = k2, b2.isShowWatermark = void 0 === ((_e2 = (_d = s2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = s2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", b2.watermark = ((_i = (_h = s2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = s2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = s2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", y2 = a2 ? function(e3, s3, n2, o3) {
368
368
  return new Promise((a3, i3) => {
369
369
  const r3 = t(s3, o3) + "/dsc/commons/export-pdf";
370
370
  G();
@@ -390,7 +390,7 @@ function H(e2, s2, o2, a2) {
390
390
  i3(e4);
391
391
  });
392
392
  });
393
- }(r2, f2, b2, e2.isTest), k2 && k2.then(() => {
393
+ }(r2, f2, b2, e2.isTest), y2 && y2.then(() => {
394
394
  h(e2, s2);
395
395
  }).catch((t2) => {
396
396
  window.$message.error("导出失败..."), h(e2, s2);
@@ -436,8 +436,8 @@ function Y(e2, t2, s2, a2, i2, r2, c2) {
436
436
  w2 && (f2.beanName = w2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
437
437
  const T2 = fe(e2);
438
438
  f2.additionalParamMap = T2, void 0 !== s2 && (f2.unControlVersion = s2);
439
- const y2 = (_c = (_b = t2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
440
- return y2 && (f2.currentOperation = y2), f2.isMobile = D(), f2;
439
+ const k2 = (_c = (_b = t2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
440
+ return k2 && (f2.currentOperation = k2), f2.isMobile = D(), f2;
441
441
  }
442
442
  function z(e2, n2, o2, a2, i2, r2, u2, l2) {
443
443
  const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = Y(e2, n2, a2, i2, r2, null, u2);
@@ -455,7 +455,7 @@ function X(t2, s2, n2, o2, a2) {
455
455
  const i2 = Q(t2, s2, a2);
456
456
  if (i2 && "list" === i2) !function(t3, s3, n3, o3) {
457
457
  let a3 = s3.props.base.successOperation;
458
- const i3 = s3.props.base.isNeedValueMapping, r2 = k(t3, s3);
458
+ const i3 = s3.props.base.isNeedValueMapping, r2 = y(t3, s3);
459
459
  a3 || se.includes(s3.name) || (a3 = "refresh");
460
460
  if ("refresh" === a3) {
461
461
  if (r2) {
@@ -519,7 +519,7 @@ function te(e2, t2, s2, n2, o2) {
519
519
  x(s3.entity, r2, a3);
520
520
  });
521
521
  }
522
- }(s2, o2, e2), y(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
522
+ }(s2, o2, e2), k(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
523
523
  }
524
524
  const se = ["dropdown"];
525
525
  function ne(e2, t2, s2, n2) {
@@ -530,7 +530,7 @@ function ne(e2, t2, s2, n2) {
530
530
  const a2 = Q(e2, t2);
531
531
  if (a2 && "list" === a2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
532
532
  if (a2 && "list" === a2) {
533
- const s3 = k(e2, t2);
533
+ const s3 = y(e2, t2);
534
534
  if (s3) {
535
535
  b(e2, s3).refresh();
536
536
  }
@@ -550,7 +550,7 @@ function oe(e2, n2, o2, a2) {
550
550
  const t2 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
551
551
  T2 = A(d2, t2);
552
552
  } else W(d2.code, d2.entity.data);
553
- const y2 = function(e3, n3, o3, a3, r3, l3, d3, m3, f3) {
553
+ const k2 = function(e3, n3, o3, a3, r3, l3, d3, m3, f3) {
554
554
  return new Promise((g3, C3) => {
555
555
  const b3 = n3.props.base.title, w3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
556
556
  p.confirm(u().t(w3, { name: b3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
@@ -567,7 +567,7 @@ function oe(e2, n2, o2, a2) {
567
567
  });
568
568
  });
569
569
  }(d2, m2, a2, w2, f2, g2, o2, C2, T2);
570
- y2 ? y2.then((e3) => {
570
+ k2 ? k2.then((e3) => {
571
571
  X(d2, m2, e3, "superPageRuntimeMessage.successfulSave", n2), r2(e3);
572
572
  }).catch((e3) => {
573
573
  l2(e3);
@@ -590,10 +590,10 @@ function ae(e2, o2) {
590
590
  w2 && f2.append("autoSetValueData", w2);
591
591
  const T2 = a2.formNoRuleCode;
592
592
  T2 && f2.append("formNoRuleCode", T2);
593
- const y2 = e2.listCode;
594
- y2 && f2.append("listCode", y2);
595
- let k2 = false;
596
- k2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", k2 + ""), f2.append("pageCode", a2.code);
593
+ const k2 = e2.listCode;
594
+ k2 && f2.append("listCode", k2);
595
+ let y2 = false;
596
+ y2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", y2 + ""), f2.append("pageCode", a2.code);
597
597
  const P2 = n(a2);
598
598
  null != P2 && f2.append("isWorkflowEntity", P2 + "");
599
599
  const R2 = S(i2, a2);
@@ -607,7 +607,7 @@ function ae(e2, o2) {
607
607
  const N2 = a2.backendUrl;
608
608
  let x2 = t(N2, a2.isTest) + "/dsc/commons/import-data";
609
609
  x2 = s(x2, I2, N2, a2.isTest), c.post(x2, f2).then((e3) => {
610
- if (k2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
610
+ if (y2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
611
611
  else {
612
612
  let t2 = false;
613
613
  e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), X(a2, i2, e3, null, true), a2.result = t2, h(a2, i2);
@@ -834,13 +834,13 @@ function Te(e2) {
834
834
  const p2 = n2.code, d2 = fe(n2), m2 = { beanName: n2.beanName, additionalParamMap: d2, tableName: n2.tableName, functionCode: p2 + ".xxx", pageCode: n2.code };
835
835
  return c.post(r2, m2);
836
836
  }
837
- function ye(e2, s2) {
837
+ function ke(e2, s2) {
838
838
  const n2 = e2.pageContext, o2 = e2.configureObj, a2 = n2.backendUrl, i2 = t(a2, n2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = re(e2);
839
839
  s2.nodeName && (r2.returnToNodeName = s2.nodeName), s2.nodeId && (r2.returnToNodeId = s2.nodeId), we(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
840
840
  h(n2, o2);
841
841
  });
842
842
  }
843
- function ke(e2) {
843
+ function ye(e2) {
844
844
  const n2 = e2.pageContext, o2 = n2.systemCode, a2 = n2.backendUrl;
845
845
  let i2 = t(a2, n2.isTest) + "/dsc/workflow-commons/get-remove-signers";
846
846
  const r2 = re(e2);
@@ -983,7 +983,7 @@ function ve(e2, t2, s2, n2, o2, a2) {
983
983
  if (e3.rebuttable) return true;
984
984
  return false;
985
985
  }(s2)));
986
- if (-1 !== ["submitTask", "approve", "refuse", "agreement", "oppose", "kiken", "extractWorkflow", "cancelExtractWorkflow", "approveExtractWorkflow", "refuseExtractWorkflow", "returnToPreviousTask"].indexOf(t2) && i2 && e2) {
986
+ if ((o2 == null ? void 0 : o2.check) && -1 !== ["submitTask", "approve", "refuse", "agreement", "oppose", "kiken", "extractWorkflow", "cancelExtractWorkflow", "approveExtractWorkflow", "refuseExtractWorkflow", "returnToPreviousTask"].indexOf(t2) && i2 && e2) {
987
987
  e2.workflowOpinion ? e2.workflowOpinion.showOpinionBox = true : e2.workflowOpinion = { showOpinionBox: true };
988
988
  let t3 = false;
989
989
  if ((_b = (_a = o2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) {
@@ -1023,10 +1023,10 @@ function Ne(e2, s2, o2) {
1023
1023
  }
1024
1024
  m2 && (b2.ids = Oe(m2)), g2 ? b2.taskId = g2 : d2 ? b2.id = d2 : (p2 && p2._t_ && f(p2._t_ + "_id") && (b2.id = f(p2._t_ + "_id")), e3.notIdInitializationList && (b2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (b2.additionalParamMap = p2), e3.beanName && (b2.beanName = e3.beanName), e3.refercePropMap && (b2.refercePropMap = e3.refercePropMap);
1025
1025
  const w2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = j();
1026
- T2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData");
1027
- const k2 = B(e3.code, b2.id);
1026
+ T2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData");
1027
+ const y2 = B(e3.code, b2.id);
1028
1028
  c.post(w2, b2).then(async (t2) => {
1029
- k2 && await xe(e3, b2.id, t2), e3.workflowOpinion = { showOpinionBox: false }, e3.definitionId = t2.definitionId, e3.entity.task = t2.taskParamMap, e3.dataTypeMaps = t2.dataTypeMap, ce(t2, true, e3), e3.workflowRules = E(e3);
1029
+ y2 && await xe(e3, b2.id, t2), e3.workflowOpinion = { showOpinionBox: false }, e3.definitionId = t2.definitionId, e3.entity.task = t2.taskParamMap, e3.dataTypeMaps = t2.dataTypeMap, ce(t2, true, e3), e3.workflowRules = E(e3);
1030
1030
  const s4 = e3.pageType;
1031
1031
  s4 && "form" === s4 && function(e4) {
1032
1032
  (function(e5) {
@@ -1059,7 +1059,7 @@ function Ne(e2, s2, o2) {
1059
1059
  }
1060
1060
  e5.actionPermissionMap = s5;
1061
1061
  }(e4);
1062
- }(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), T2.setFormPageDataLoadState(true), o3(t2);
1062
+ }(e3), e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), T2.setFormPageDataLoadState(true), o3(t2);
1063
1063
  }).catch((t2) => {
1064
1064
  e3.canClick = true, a3(t2);
1065
1065
  });
@@ -1078,13 +1078,13 @@ function Ne(e2, s2, o2) {
1078
1078
  }), w2.listCodesMap = t2;
1079
1079
  }
1080
1080
  e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap);
1081
- const T2 = b2 + "/dsc/commons/gets", k2 = j();
1082
- k2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData");
1081
+ const T2 = b2 + "/dsc/commons/gets", y2 = j();
1082
+ y2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData");
1083
1083
  const h2 = B(e3.code, w2.id);
1084
1084
  c.post(T2, w2).then(async (t2) => {
1085
1085
  t2 && (h2 && await xe(e3, w2.id, t2), e3.entity.data = t2.entity, e3.initFormNo = t2.formNo);
1086
1086
  const s4 = e3.customRules, n3 = e3.rules, a4 = U(e3, s4, n3);
1087
- e3.rules = a4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), k2.setFormPageDataLoadState(true), o3(t2);
1087
+ e3.rules = a4, e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), y2.setFormPageDataLoadState(true), o3(t2);
1088
1088
  }).catch((t2) => {
1089
1089
  e3.canClick = true, a3(t2);
1090
1090
  });
@@ -1136,12 +1136,12 @@ export {
1136
1136
  ae as doImportFinally,
1137
1137
  he as doRemoveSigners,
1138
1138
  Se as doRemoveTransactors,
1139
- ye as doReturnTaskTo,
1139
+ ke as doReturnTaskTo,
1140
1140
  H as exportFormReport,
1141
1141
  Re as extractWorkflowFunc,
1142
1142
  fe as getAdditionalParamMap,
1143
1143
  Ne as getFormData,
1144
- ke as getRemoveSigner,
1144
+ ye as getRemoveSigner,
1145
1145
  Pe as getRemoveTransactor,
1146
1146
  K as getSaveFormRequest,
1147
1147
  z as getSaveFormRequestWithRow,
@@ -154,7 +154,8 @@ function autoSetAfterSelect(t, e, n, o, a = []) {
154
154
  let n2 = t2.target;
155
155
  if (!n2 || !n2.startsWith("${")) continue;
156
156
  n2 = n2.substring(2, n2.length - 1);
157
- setVariableValue(r, n2.split("."), e2.join(","));
157
+ const s = n2.split(".");
158
+ setVariableValue(r, s, null == e2 ? null : e2.join(","));
158
159
  }
159
160
  }
160
161
  function getValuesByField(t, e) {
@@ -166,7 +167,7 @@ function getValuesByField(t, e) {
166
167
  }
167
168
  return n;
168
169
  }
169
- return [""];
170
+ return null;
170
171
  }
171
172
  function getVariableValue(t, e) {
172
173
  if (!t || !e || 0 == e.length) return;
@@ -186,7 +187,7 @@ function setVariableValue(t, e, n) {
186
187
  let o = t;
187
188
  for (let t2 = 0; t2 < e.length; t2++) {
188
189
  const a = e[t2];
189
- t2 + 1 === e.length ? o[a] = n : (void 0 === o[a] && (o[a] = {}), o = o[a]);
190
+ t2 + 1 === e.length ? o[a] = void 0 === n ? null : n : (void 0 === o[a] && (o[a] = {}), o = o[a]);
190
191
  }
191
192
  }
192
193
  function setVariableValueWithProp(t, e, n) {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as n, resolveComponent as r, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as v, createVNode as g, createElementVNode as m, withKeys as d, withModifiers as h, createElementBlock as y, Fragment as b, renderList as x, createCommentVNode as C, toDisplayString as w, createTextVNode as _ } from "vue";
2
2
  import { setVariableValue as S, getOptionDatasFromPage as k, queryOptionDatasources as T, autoSetAfterSelect as j, getVariableValue as A } from "../../../../utils/page-helper-util.js";
3
3
  import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent as V, handleAfterInitEvent as I } from "../../../../utils/events/event-util.js";
5
- import M from "../common/title-suffix-element.vue.js";
4
+ import { handleFormEvent as V, handleAfterInitEvent as M } from "../../../../utils/events/event-util.js";
5
+ import I from "../common/title-suffix-element.vue.js";
6
6
  import { $t as q } from "../../../../utils/i18n-util.js";
7
7
  import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
8
8
  import { CopyDocument as E } from "@element-plus/icons-vue";
@@ -26,7 +26,7 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
26
26
  if (ee.value.multiple) {
27
27
  l2 = !!ee.value.arrayValue ? Array.isArray(e3) ? e3 : e3 ? String(e3).split(",") : [] : Array.isArray(e3) ? e3.length > 0 ? e3.join(",") : "" : e3 ?? "";
28
28
  }
29
- S(J, L, l2), null != l2 && (H.value = "");
29
+ void 0 === l2 && (l2 = null), S(J, L, l2), null != l2 && (H.value = "");
30
30
  } }), ue = t(ee.value.options ? ee.value.options : []), ne = k(G.pageContext, G.configure);
31
31
  ne.length > 0 && (ue.value = ne);
32
32
  const re = t(false), ie = G.configure.props && G.configure.props.dataOrigin ? G.configure.props.dataOrigin : {}, se = ie.optionValueSetType;
@@ -106,7 +106,7 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
106
106
  }), e3.on("error", (e4) => {
107
107
  }), n(() => {
108
108
  const e4 = ae.value;
109
- I(e4, G.pageContext, G.configure, { formItemRef: ye.value, componentRef: be.value, titleRef: xe.value, value: e4, entity: G.pageContext.entity.data, pageData: G.pageContext.entity.page });
109
+ M(e4, G.pageContext, G.configure, { formItemRef: ye.value, componentRef: be.value, titleRef: xe.value, value: e4, entity: G.pageContext.entity.data, pageData: G.pageContext.entity.page });
110
110
  });
111
111
  }), U2({ updateOptions: function(e3) {
112
112
  if (ue.value = e3 || [], !he) {
@@ -132,8 +132,8 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
132
132
  return ue.value;
133
133
  } }), (e3, t2) => {
134
134
  const l2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"), u2 = r("el-popover"), n2 = r("el-form-item");
135
- return s(), i(n2, { ref_key: "formItemRef", ref: ye, required: !!ee.value.required, class: f(c(X) + (H.value ? " " + H.value : "")), "label-width": ee.value.labelWidth, style: p(c(Q)) }, { label: v(() => [ee.value.tittleShow ? (s(), y("div", { key: 0, ref_key: "titleRef", ref: xe, style: p({ ...c(Y), ...c(Z) }) }, [ee.value.prefixType ? (s(), i(M, { key: 0, pageContext: e3.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), y(b, { key: 1 }, [_(w(c(q)(ee.value.title)), 1)], 64))], 4)) : C("", true)]), default: v(() => [g(u2, { placement: "top", trigger: "hover" }, { reference: v(() => [m("div", B, [g(a2, { ref_key: "componentRef", ref: be, style: { width: "100%" }, disabled: "disabled" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, multiple: ee.value.multiple, "collapse-tags": ee.value.collapseTags, "collapse-tags-tooltip": ee.value.collapseTagsTooltip, filterable: ee.value.filterable, "allow-create": ee.value.allowCreate, placeholder: ee.value.placeholder, "remote-show-suffix": ee.value.remoteShowSuffix, remote: ee.value.remote, "remote-method": ee.value.remoteMethod, loading: re.value, onKeydown: t2[0] || (t2[0] = d(h(() => {
136
- }, ["stop"]), ["space"])), onChange: ee.value.changeMethod, modelValue: ae.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ae.value = e4) }, { default: v(() => [(s(true), y(b, null, x(ue.value, (t3) => (s(), i(o2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => c(V)(t3.value, e3.pageContext, e3.configure, "click", { values: ae.value }) }, { default: v(() => [t3._description_ ? (s(), y(b, { key: 0 }, [m("span", F, w(t3.label), 1), m("span", K, w(t3._description_), 1)], 64)) : C("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])])]), default: v(() => [m("span", W, [g(l2, { id: le }, { default: v(() => [g(c(E))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
135
+ return s(), i(n2, { ref_key: "formItemRef", ref: ye, required: !!ee.value.required, class: f(c(X) + (H.value ? " " + H.value : "")), "label-width": ee.value.labelWidth, style: p(c(Q)) }, { label: v(() => [ee.value.tittleShow ? (s(), y("div", { key: 0, ref_key: "titleRef", ref: xe, style: p({ ...c(Y), ...c(Z) }) }, [ee.value.prefixType ? (s(), i(I, { key: 0, pageContext: e3.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), y(b, { key: 1 }, [_(w(c(q)(ee.value.title)), 1)], 64))], 4)) : C("", true)]), default: v(() => [g(u2, { placement: "top", trigger: "hover" }, { reference: v(() => [m("div", B, [g(a2, { ref_key: "componentRef", ref: be, style: { width: "100%" }, disabled: "disabled" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, multiple: ee.value.multiple, "collapse-tags": ee.value.collapseTags, "collapse-tags-tooltip": ee.value.collapseTagsTooltip, filterable: ee.value.filterable, "allow-create": ee.value.allowCreate, placeholder: ee.value.placeholder, "remote-show-suffix": ee.value.remoteShowSuffix, remote: ee.value.remote, "remote-method": ee.value.remoteMethod, loading: re.value, onKeydown: t2[0] || (t2[0] = d(h(() => {
136
+ }, ["stop"]), ["space"])), onChange: ee.value.changeMethod, onClear: ee.value.changeMethod, modelValue: ae.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ae.value = e4) }, { default: v(() => [(s(true), y(b, null, x(ue.value, (t3) => (s(), i(o2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => c(V)(t3.value, e3.pageContext, e3.configure, "click", { values: ae.value }) }, { default: v(() => [t3._description_ ? (s(), y(b, { key: 0 }, [m("span", F, w(t3.label), 1), m("span", K, w(t3._description_), 1)], 64)) : C("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "onClear", "modelValue"])])]), default: v(() => [m("span", W, [g(l2, { id: le }, { default: v(() => [g(c(E))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
137
137
  };
138
138
  } });
139
139
  export {
@@ -1,7 +1,7 @@
1
1
  import o from "./workflow-opinion-box.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = r(o, [["__scopeId", "data-v-b0ce813d"]]);
4
+ const p = r(o, [["__scopeId", "data-v-cb803c7a"]]);
5
5
  export {
6
- e as default
6
+ p as default
7
7
  };
@@ -1,26 +1,26 @@
1
- import { defineComponent as o, ref as e, watch as n, nextTick as i, resolveComponent as t, createBlock as a, createCommentVNode as l, openBlock as p, withCtx as u, createElementVNode as s, createElementBlock as r, createTextVNode as f, normalizeClass as c, createVNode as w } from "vue";
2
- import { addRequiredClassUtil as m } from "../../../../utils/common-util.js";
3
- const d = { style: { "background-color": "#ffffff" } }, x = { class: "opinion-box-table-wrapper" }, k = { class: "opinion-table" }, v = { class: "opinion-label" }, g = { key: 0, class: "required-star" }, O = o({ __name: "workflow-opinion-box", props: { pageContext: {} }, setup(o2) {
4
- const O2 = e(""), b = o2, C = e(), y = e("");
1
+ import { defineComponent as o, ref as e, watch as n, nextTick as t, resolveComponent as i, createBlock as l, createCommentVNode as a, openBlock as p, withCtx as u, createElementVNode as s, createElementBlock as r, createTextVNode as f, normalizeClass as c, createVNode as w } from "vue";
2
+ import { addRequiredClassUtil as d } from "../../../../utils/common-util.js";
3
+ const m = { style: { "background-color": "#ffffff" } }, x = { class: "opinion-box-table-wrapper" }, k = { class: "opinion-table" }, v = { class: "opinion-label" }, g = { key: 0, class: "required-star" }, b = o({ __name: "workflow-opinion-box", props: { pageContext: {} }, setup(o2) {
4
+ const b2 = e(""), O = o2, C = e(), y = e("");
5
5
  return n(() => {
6
6
  var _a;
7
- return (_a = b.pageContext.workflowOpinion) == null ? void 0 : _a.focusOpinionInput;
7
+ return (_a = O.pageContext.workflowOpinion) == null ? void 0 : _a.focusOpinionInput;
8
8
  }, (o3) => {
9
- o3 ? (y.value = m(), i(() => {
9
+ o3 ? (y.value = d(), t(() => {
10
10
  var _a;
11
11
  ((_a = C.value) == null ? void 0 : _a.focus) && C.value.focus();
12
12
  })) : y.value = "";
13
13
  }, { immediate: true }), (o3, e2) => {
14
14
  var _a;
15
- const n2 = t("el-input"), i2 = t("el-affix");
16
- return ((_a = o3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (p(), a(i2, { key: 0, target: ".app-container", position: "bottom", offset: 35 }, { default: u(() => {
15
+ const n2 = i("el-input"), t2 = i("el-affix");
16
+ return ((_a = o3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (p(), l(t2, { key: 0, target: ".app-container", position: "bottom", offset: 35 }, { default: u(() => {
17
17
  var _a2;
18
- return [s("div", d, [s("div", x, [s("table", k, [s("tr", null, [s("td", v, [((_a2 = o3.pageContext.workflowOpinion) == null ? void 0 : _a2.isRequired) ? (p(), r("span", g, "*")) : l("", true), e2[2] || (e2[2] = f(" 处理意见 "))]), s("td", { class: c(["opinion-input-cell", y.value]) }, [w(n2, { ref_key: "opinionInputRef", ref: C, modelValue: O2.value, "onUpdate:modelValue": e2[0] || (e2[0] = (o4) => O2.value = o4), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: e2[1] || (e2[1] = (o4) => {
19
- b.pageContext.workflowOpinion && (b.pageContext.workflowOpinion.opinion = O2.value.trim(), b.pageContext.workflowOpinion.focusOpinionInput = false);
20
- }), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])];
21
- }), _: 1 })) : l("", true);
18
+ return [s("div", m, [s("div", x, [s("table", k, [s("tbody", null, [s("tr", null, [s("td", v, [((_a2 = o3.pageContext.workflowOpinion) == null ? void 0 : _a2.isRequired) ? (p(), r("span", g, "*")) : a("", true), e2[2] || (e2[2] = f(" 处理意见 "))]), s("td", { class: c(["opinion-input-cell", y.value]) }, [w(n2, { ref_key: "opinionInputRef", ref: C, modelValue: b2.value, "onUpdate:modelValue": e2[0] || (e2[0] = (o4) => b2.value = o4), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: e2[1] || (e2[1] = (o4) => {
19
+ O.pageContext.workflowOpinion && (O.pageContext.workflowOpinion.opinion = b2.value.trim(), O.pageContext.workflowOpinion.focusOpinionInput = false);
20
+ }), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])])];
21
+ }), _: 1 })) : a("", true);
22
22
  };
23
23
  } });
24
24
  export {
25
- O as default
25
+ b as default
26
26
  };
package/dist/es/style.css CHANGED
@@ -56,17 +56,17 @@
56
56
  .amb-super-page-runtime-drawer-view .el-drawer__body .runtime-page-container {
57
57
  max-height: calc(100vh - 40px - var(--el-drawer-padding-primary, 16px) * 2);
58
58
  }
59
- .opinion-box-table-wrapper[data-v-b0ce813d] {
59
+ .opinion-box-table-wrapper[data-v-cb803c7a] {
60
60
  width: 100%;
61
61
  background: #f8fcff;
62
62
  padding: 0;
63
63
  }
64
- .opinion-table[data-v-b0ce813d] {
64
+ .opinion-table[data-v-cb803c7a] {
65
65
  width: 100%;
66
66
  border-collapse: separate;
67
67
  border-spacing: 0;
68
68
  }
69
- .opinion-label[data-v-b0ce813d] {
69
+ .opinion-label[data-v-cb803c7a] {
70
70
  width: 120px;
71
71
  background: #e6f0fa;
72
72
  color: #3a7bb0;
@@ -81,20 +81,20 @@
81
81
  min-height: 60px;
82
82
  position: relative;
83
83
  }
84
- .required-star[data-v-b0ce813d] {
84
+ .required-star[data-v-cb803c7a] {
85
85
  color: #f56c6c;
86
86
  margin-right: 2px;
87
87
  font-size: 16px;
88
88
  font-family: inherit;
89
89
  vertical-align: middle;
90
90
  }
91
- .opinion-input-cell[data-v-b0ce813d] {
91
+ .opinion-input-cell[data-v-cb803c7a] {
92
92
  background: #f8fcff;
93
93
  border: 1px solid #b5d1e6;
94
94
  border-left: none;
95
95
  padding: 5px;
96
96
  }
97
- .opinion-input[data-v-b0ce813d] .el-textarea__inner {
97
+ .opinion-input[data-v-cb803c7a] .el-textarea__inner {
98
98
  border: 1px solid #b5d1e6 !important;
99
99
  background: #fff;
100
100
  min-height: 60px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.3.19-sit2",
3
+ "version": "2.3.19-sit3",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -49,7 +49,7 @@
49
49
  "@vitejs/plugin-vue-jsx": "^3.1.0",
50
50
  "@vue/eslint-config-prettier": "^8.0.0",
51
51
  "@vue/test-utils": "^2.4.4",
52
- "agilebuilder-ui": "1.1.65-sit1",
52
+ "agilebuilder-ui": "1.1.65-sit2",
53
53
  "axios": "^1.6.8",
54
54
  "cypress": "^13.6.6",
55
55
  "element-plus": "^2.6.1",