super-page-runtime 2.3.40-sit1 → 2.3.40-sit2

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.
@@ -167,8 +167,8 @@ function j(t2, e2, n2, i2) {
167
167
  }
168
168
  function A(t2, e2) {
169
169
  let n2;
170
- return null != t2 && e2 && (Array.isArray(t2) ? (n2 = "", t2.forEach((i2) => {
171
- n2 = n2 + D(t2, e2) + ",";
170
+ return null != t2 && e2 && (Array.isArray(t2) ? (n2 = "", t2.forEach((t3) => {
171
+ n2 = n2 + D(t3, e2) + ",";
172
172
  }), n2.indexOf(",") > 0 && (n2 = n2.substring(0, n2.lastIndexOf(",")))) : (n2 = t2, n2 = D(t2, e2))), n2;
173
173
  }
174
174
  function D(t2, e2) {
@@ -65,7 +65,14 @@ export declare function getSaveFormRequest(pageContext: PageContext, configureOb
65
65
  * @param isListButton
66
66
  */
67
67
  export declare function dealAfterOperate(pageContext: any, configureObj: any, data: any, successTip: any, isListButton?: boolean): void;
68
- export declare function updateValuesWhenCloseDialog(parentPageContext: any, parentConfigureObj: any, sourceModel: any, sourceTableName: any, valueMappings?: any): void;
68
+ export declare function updateValuesWhenCloseDialog({ parentPageContext, parentEventParams, parentConfigureObj, sourceModel, sourceTableName, valueMappings }: {
69
+ parentPageContext: any;
70
+ parentConfigureObj: any;
71
+ parentEventParams: any;
72
+ sourceModel: any;
73
+ sourceTableName: any;
74
+ valueMappings?: any;
75
+ }): void;
69
76
  export declare function refreshFormOrListPage(pageContext: any, configureObj: any, isRefreshWhenClosePopup: any, mySuccessOperation: any): void;
70
77
  export declare function doImportFinally(params: any, fileObj: any): void;
71
78
  export declare function judgeDataNumber(buttonConfigureObj: any, ids: any): boolean;
@@ -9,7 +9,7 @@ import h from "axios";
9
9
  import { handleEvent as k, getTableUuid as y, doAfterClickEvent as P } from "./event-util.js";
10
10
  import { setStoreInfo as I } from "../store-util.js";
11
11
  import { getPermissionCodes as v, getDefaultValue as R, getModelFields as x } from "../page-init-util.js";
12
- import { caculateShowCondition as S, updateChartDatasources as M, getVariableValue as N, setVariableValue as O } from "../page-helper-util.js";
12
+ import { caculateShowCondition as M, updateChartDatasources as S, getVariableValue as N, setVariableValue as O } from "../page-helper-util.js";
13
13
  import U from "./print-label.js";
14
14
  import { getTableNameByTableUuid as A, getCurrentUserFileTasks as E, setFileTaskRead as _ } from "../table-utils.js";
15
15
  import { getWorkflowRules as j, packageCustomRules as D } from "./validator-util.js";
@@ -372,7 +372,7 @@ function z(e2) {
372
372
  let s2 = null;
373
373
  o2 && o2.runtime && (s2 = o2.runtime.props);
374
374
  const a2 = s2 ? s2.state : void 0;
375
- s2 && (s2.state = "disabled"), M(t2, n2, void 0, e2.isInitChart).then(() => {
375
+ s2 && (s2.state = "disabled"), S(t2, n2, void 0, e2.isInitChart).then(() => {
376
376
  s2 && (s2.state = a2);
377
377
  }).catch(() => {
378
378
  s2 && (s2.state = a2);
@@ -542,21 +542,21 @@ function ae(e2, t2, n2, o2) {
542
542
  T.$has(r2) ? T.$emit(r2, { isNeedValueMapping: i2, dataModel: n2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: s2 }) : "refresh" === s2 && window.history.back();
543
543
  }
544
544
  }
545
- function ie(e2, t2, n2, o2, s2) {
545
+ function ie({ parentPageContext: e2, parentEventParams: t2, parentConfigureObj: n2, sourceModel: o2, sourceTableName: s2, valueMappings: a2 }) {
546
546
  var _a;
547
- s2 || (s2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null) || (s2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
548
- const a2 = e2.tableName;
547
+ a2 || (a2 = n2.runtime && n2.runtime.linkPage && n2.runtime.linkPage.valueMappings ? n2.runtime.linkPage.valueMappings : null) || (a2 = (_a = n2.props.linkPage) == null ? void 0 : _a.valueMappings);
548
+ const i2 = e2.tableName;
549
549
  !function(e3, t3, n3) {
550
550
  if (e3 && null !== e3 && t3) {
551
551
  let o3 = e3;
552
552
  Array.isArray(e3) && e3.length > 0 && (o3 = e3[0]), t3.forEach((e4) => {
553
553
  const t4 = e4.source;
554
554
  if (!t4) return;
555
- const s3 = t4.split("."), a3 = N(o3, s3), i2 = e4.target, r2 = x(null, i2);
555
+ const s3 = t4.split("."), a3 = N(o3, s3), i3 = e4.target, r2 = x(null, i3);
556
556
  O(n3.entity, r2, a3);
557
557
  });
558
558
  }
559
- }(n2, s2, e2), k(null, e2, t2, "setValue", { sourceModel: n2, sourceTableName: o2, entity: e2.entity.data, targetTableName: a2 });
559
+ }(o2, a2, e2), k(null, e2, n2, "setValue", { sourceModel: o2, sourceTableName: s2, entity: e2.entity.data, targetTableName: i2, eventParams: t2 });
560
560
  }
561
561
  const re = ["dropdown"];
562
562
  function ce(e2, t2, n2, o2) {
@@ -644,11 +644,11 @@ function ue(e2, s2) {
644
644
  f2.append("additionalParamMapStr", JSON.stringify(R2));
645
645
  const x2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
646
646
  f2.append("isPermission", x2 + "");
647
- const S2 = a2.systemCode;
648
- S2 && f2.append("systemCode", S2);
649
- const M2 = a2.backendUrl;
650
- let N2 = t(M2, a2.isTest) + "/dsc/commons/import-data";
651
- N2 = n(N2, S2, M2, a2.isTest), c.post(N2, f2).then((e3) => {
647
+ const M2 = a2.systemCode;
648
+ M2 && f2.append("systemCode", M2);
649
+ const S2 = a2.backendUrl;
650
+ let N2 = t(S2, a2.isTest) + "/dsc/commons/import-data";
651
+ N2 = n(N2, M2, S2, a2.isTest), c.post(N2, f2).then((e3) => {
652
652
  if (k2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Fe(a2);
653
653
  else {
654
654
  let t2 = false;
@@ -744,7 +744,7 @@ function ge(e2) {
744
744
  let n3 = false;
745
745
  if (((_c = (_b = o2.props) == null ? void 0 : _b.base) == null ? void 0 : _c.isMustOpinion) && (n3 = true), true === n3) {
746
746
  const t3 = e2.pageContext, s2 = (_e2 = (_d = o2.props) == null ? void 0 : _d.base) == null ? void 0 : _e2.mustOpinionConditions;
747
- n3 = S(t3, s2);
747
+ n3 = M(t3, s2);
748
748
  }
749
749
  true === n3 ? (u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseInputOpinion") }), e2.pageContext.workflowOpinion.focusOpinionInput = true, t2(false)) : t2(true);
750
750
  } else t2(true);
@@ -775,7 +775,7 @@ function we(e2) {
775
775
  t2 = o2.config;
776
776
  break;
777
777
  }
778
- if (S(e2.pageContext, o2.conditions)) {
778
+ if (M(e2.pageContext, o2.conditions)) {
779
779
  t2 = o2.config;
780
780
  break;
781
781
  }
@@ -828,7 +828,7 @@ async function ye(e2, o2) {
828
828
  if (void 0 === n3 || true === n3) {
829
829
  n3 = true;
830
830
  const t3 = e3.pageContext, s3 = (_d = (_c = o3.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
831
- n3 = S(t3, s3);
831
+ n3 = M(t3, s3);
832
832
  }
833
833
  true === n3 ? p.prompt(l().t("superPageRuntimeMessage.pleaseInputRemark"), l().t("superPageRuntimeMessage.remark"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || l().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: e4 }) => {
834
834
  t2(e4);
@@ -906,14 +906,14 @@ function xe(e2, o2) {
906
906
  });
907
907
  }
908
908
  }
909
- function Se(e2) {
909
+ function Me(e2) {
910
910
  const o2 = e2.pageContext, s2 = o2.systemCode, a2 = o2.backendUrl;
911
911
  let i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
912
912
  const r2 = de(e2);
913
913
  if (i2 = n(i2, s2, a2, o2.isTest), i2) return c.post(i2, r2);
914
914
  u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
915
915
  }
916
- function Me(e2, o2) {
916
+ function Se(e2, o2) {
917
917
  if (o2) {
918
918
  const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
919
919
  let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-transactors";
@@ -1033,13 +1033,13 @@ function Oe(e2, t2, n2, o2, s2, a2) {
1033
1033
  if (e2.workflowOpinion || (e2.workflowOpinion = { showOpinionBox: false }), (_b = (_a = s2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.showOpinionBox) {
1034
1034
  e2.workflowOpinion.showOpinionBox = true;
1035
1035
  const t4 = (_d = (_c = s2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.showOpinionBoxConditions;
1036
- t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox = S(e2, t4));
1036
+ t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox = M(e2, t4));
1037
1037
  }
1038
1038
  let t3 = false;
1039
1039
  if ((_f = (_e2 = s2.props) == null ? void 0 : _e2.base) == null ? void 0 : _f.isMustOpinion) {
1040
1040
  if (t3 = true, true === t3) {
1041
1041
  const n3 = (_h = (_g = s2.props) == null ? void 0 : _g.base) == null ? void 0 : _h.mustOpinionConditions;
1042
- n3 && n3.length > 0 && (t3 = S(e2, n3));
1042
+ n3 && n3.length > 0 && (t3 = M(e2, n3));
1043
1043
  }
1044
1044
  e2.workflowOpinion.isRequired = t3, t3 && (e2.workflowOpinion.showOpinionBox = true);
1045
1045
  }
@@ -1223,14 +1223,14 @@ export {
1223
1223
  Fe as doFileTaskFunc,
1224
1224
  ue as doImportFinally,
1225
1225
  xe as doRemoveSigners,
1226
- Me as doRemoveTransactors,
1226
+ Se as doRemoveTransactors,
1227
1227
  ve as doReturnTaskTo,
1228
1228
  K as exportFormReport,
1229
1229
  Ne as extractWorkflowFunc,
1230
1230
  Te as getAdditionalParamMap,
1231
1231
  Ee as getFormData,
1232
1232
  Re as getRemoveSigner,
1233
- Se as getRemoveTransactor,
1233
+ Me as getRemoveTransactor,
1234
1234
  te as getSaveFormRequest,
1235
1235
  ee as getSaveFormRequestWithRow,
1236
1236
  Ie as getTaskInformitions,
@@ -57,6 +57,13 @@ export declare function getComponentOptionDatasFromPage(pageContext: PageContext
57
57
  * @param configure
58
58
  */
59
59
  export declare function getOptionDatasSourceMap(pageContext: PageContext): any;
60
+ /**
61
+ * 将查询到的选项组数据缓存到页面上下文中
62
+ * @param pageContext
63
+ * @param configureUuid
64
+ * @param options
65
+ */
66
+ export declare function putToOptionSourceMap(pageContext: PageContext, configureUuid: string, options: any): void;
60
67
  /**
61
68
  * 从页面缓存中获取查询到的统计图数据
62
69
  * @param pageContext
@@ -138,6 +138,9 @@ function getOptionDatasSourceMap(t) {
138
138
  const e = t.optionSourceMap;
139
139
  return e || {};
140
140
  }
141
+ function putToOptionSourceMap(t, e, o) {
142
+ t.optionSourceMap || (t.optionSourceMap = {}), t.optionSourceMap[e] = o;
143
+ }
141
144
  function getChartDatasFromPage(t, e) {
142
145
  if (!t || !t.chartDataSourceMap || !e) return null;
143
146
  return t.chartDataSourceMap[e.uuid];
@@ -377,6 +380,7 @@ export {
377
380
  isNumberDataType,
378
381
  isPromise,
379
382
  monitorFieldChange,
383
+ putToOptionSourceMap,
380
384
  queryOptionDatasources,
381
385
  setValueForVariableName,
382
386
  setVariableValue,
@@ -4,33 +4,33 @@ import n from "./eventBus.js";
4
4
  const u = t("pageContextUtil", () => {
5
5
  const t2 = e({ systemCode: "", systemVersion: -1 }), u2 = e(false), a = e(false), i = e(false), l = e([]), r = e(0), s = e(0);
6
6
  let v = null, c = -1, d = -1, m = 0;
7
- function f() {
7
+ function p() {
8
8
  v && clearTimeout(v), v = setTimeout(() => {
9
9
  o(() => {
10
10
  !function() {
11
11
  const e2 = r.value, o2 = s.value;
12
- if (m++, m >= 100) return void (e2 > 0 && e2 === o2 && p(true));
12
+ if (m++, m >= 100) return void (e2 > 0 && e2 === o2 && f(true));
13
13
  if (e2 > 0 && e2 === o2) {
14
- if (e2 === c && o2 === d && !u2.value) return void p(true);
15
- c = e2, d = o2, f();
16
- } else c = -1, d = -1, f();
14
+ if (e2 === c && o2 === d && !u2.value) return void f(true);
15
+ c = e2, d = o2, p();
16
+ } else c = -1, d = -1, p();
17
17
  }();
18
18
  });
19
19
  }, 30);
20
20
  }
21
- function p(e2) {
21
+ function f(e2) {
22
22
  u2.value = e2, C();
23
23
  }
24
24
  function C() {
25
- u2.value && a.value && !i.value && (n.$emit("pageLoaded"), i.value = true);
25
+ !u2.value || !a.value && "list" !== t2.value.pageType || i.value || (n.$emit("pageLoaded"), i.value = true);
26
26
  }
27
27
  return { pageContext: t2, setPageContext: function(e2) {
28
28
  t2.value = e2;
29
29
  }, countComponentsTotalNmber: function() {
30
30
  r.value++, u2.value = false, i.value = false;
31
31
  }, countComponentsLoadedNumber: function() {
32
- s.value++, f();
33
- }, componentsTotalNmber: r, componentsLoadedNumber: s, setPageComponentsLoaded: p, setFormPageDataLoadState: function(e2) {
32
+ s.value++, p();
33
+ }, componentsTotalNmber: r, componentsLoadedNumber: s, setPageComponentsLoaded: f, setFormPageDataLoadState: function(e2) {
34
34
  a.value = e2, C();
35
35
  }, formPageDataLoaded: a, pageComponentsLoaded: u2, restorePageLoadState: function() {
36
36
  u2.value = false, a.value = false, i.value = false;
@@ -1,17 +1,17 @@
1
- import { defineComponent as e, ref as l, resolveComponent as t, createElementBlock as a, openBlock as o, createVNode as n, withCtx as s, createTextVNode as u, toDisplayString as d, createElementVNode as i } from "vue";
1
+ import { defineComponent as e, ref as l, resolveComponent as t, createElementBlock as a, openBlock as o, createVNode as n, withCtx as s, createTextVNode as u, toDisplayString as i, createElementVNode as d } from "vue";
2
2
  import { ElMessage as r } from "element-plus";
3
- import { useI18n as p } from "vue-i18n";
4
- const m = { class: "dialog-footer" }, c = e({ __name: "task-informition-dialog", props: { taskInformitions: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(e2, { emit: c2 }) {
5
- const { t: f } = p(), g = e2, b = c2, v = l(null), h = l();
3
+ import { useI18n as m } from "vue-i18n";
4
+ const p = { class: "dialog-footer" }, c = e({ __name: "task-informition-dialog", props: { taskInformitions: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(e2, { emit: c2 }) {
5
+ const { t: f } = m(), g = e2, b = c2, v = l(null), h = l();
6
6
  function y() {
7
7
  v.value ? b("result", v.value) : r({ showClose: true, type: "warning", message: f("superPageRuntimeMessage.pleaseSelectNode") });
8
8
  }
9
- function $(e3) {
9
+ function _(e3) {
10
10
  v.value = g.taskInformitions[e3];
11
11
  }
12
12
  return (l2, r2) => {
13
- const p2 = t("el-radio"), c3 = t("el-table-column"), f2 = t("el-table"), g2 = t("el-button"), v2 = t("el-dialog");
14
- return o(), a("div", null, [n(v2, { "model-value": "", title: l2.$t("superPageRuntimeMessage.selectNode"), "close-on-click-modal": false, "append-to-body": "", width: "50%", "max-height": "400", onOpen: r2[2] || (r2[2] = (e3) => b("open")), onOpend: r2[3] || (r2[3] = (e3) => b("opend")), onClose: r2[4] || (r2[4] = (e3) => b("close")), onClosed: r2[5] || (r2[5] = (e3) => b("closed")) }, { footer: s(() => [i("div", m, [n(g2, { type: "primary", onClick: y }, { default: s(() => [u(d(l2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), n(g2, { type: "default", onClick: r2[1] || (r2[1] = (e3) => b("close")) }, { default: s(() => [u(d(l2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: s(() => [n(f2, { data: e2.taskInformitions, border: "", style: { width: "100%" } }, { default: s(() => [n(c3, { fixed: "", width: "60" }, { default: s((e3) => [n(p2, { modelValue: h.value, "onUpdate:modelValue": r2[0] || (r2[0] = (e4) => h.value = e4), label: e3.$index, onChange: $ }, { default: s(() => [u(d(e3.$index + 1), 1)]), _: 2 }, 1032, ["modelValue", "label"])]), _: 1 }), n(c3, { prop: "nodeName", label: l2.$t("superPageRuntimeMessage.nodeName"), width: "180" }, null, 8, ["label"]), n(c3, { prop: "transactorNames", label: l2.$t("superPageRuntimeMessage.transactorNames") }, null, 8, ["label"]), n(c3, { prop: "nodeId", label: l2.$t("superPageRuntimeMessage.nodeId"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
13
+ const m2 = t("el-radio"), c3 = t("el-table-column"), f2 = t("el-table"), g2 = t("el-button"), v2 = t("el-dialog");
14
+ return o(), a("div", null, [n(v2, { "model-value": "", title: l2.$t("superPageRuntimeMessage.selectNode"), "close-on-click-modal": false, "append-to-body": "", width: "50%", "max-height": "400", onOpen: r2[2] || (r2[2] = (e3) => b("open")), onOpend: r2[3] || (r2[3] = (e3) => b("opend")), onClose: r2[4] || (r2[4] = (e3) => b("close")), onClosed: r2[5] || (r2[5] = (e3) => b("closed")) }, { footer: s(() => [d("div", p, [n(g2, { type: "primary", onClick: y }, { default: s(() => [u(i(l2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), n(g2, { type: "default", onClick: r2[1] || (r2[1] = (e3) => b("close")) }, { default: s(() => [u(i(l2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: s(() => [n(f2, { data: e2.taskInformitions, border: "", style: { width: "100%" } }, { default: s(() => [n(c3, { fixed: "", width: "60" }, { default: s((e3) => [n(m2, { modelValue: h.value, "onUpdate:modelValue": r2[0] || (r2[0] = (e4) => h.value = e4), label: e3.$index, onChange: _ }, { default: s(() => [u(i(e3.$index + 1), 1)]), _: 2 }, 1032, ["modelValue", "label"])]), _: 1 }), n(c3, { prop: "nodeName", label: l2.$t("superPageRuntimeMessage.nodeName"), width: "180" }, null, 8, ["label"]), n(c3, { prop: "transactorNames", label: l2.$t("superPageRuntimeMessage.transactorNames") }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
15
15
  };
16
16
  } });
17
17
  export {
@@ -1,54 +1,56 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, resolveComponent as a, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as p, createSlots as c, withCtx as f, createVNode as g, createElementBlock as v, Fragment as d, renderList as m, createElementVNode as h, toDisplayString as y } from "vue";
2
- import { setVariableValue as b, getVariableValue as x, getOptionDatasFromPage as C, monitorFieldChange as k, autoSetAfterSelect as S, queryOptionDatasources as j } from "../../../../utils/page-helper-util.js";
3
- import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent as _, handleAfterInitEvent as I } from "../../../../utils/events/event-util.js";
5
- import { $t as q } from "../../../../utils/i18n-util.js";
6
- import { addRequiredClassUtil as V } from "../../../../utils/common-util.js";
7
- const w = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: w2 }) {
8
- const z = e2, D = t(null), E = z.pageContext.entity ? z.pageContext.entity : {};
9
- let O = R(z.pageContext, z.configure);
10
- const A = l({ get() {
11
- let e3 = x(E, O);
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, resolveComponent as a, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as c, createSlots as p, withCtx as f, createVNode as g, createElementBlock as v, Fragment as d, renderList as m, createElementVNode as h, toDisplayString as y } from "vue";
2
+ import { setVariableValue as b, getVariableValue as x, getOptionDatasFromPage as C, putToOptionSourceMap as k, monitorFieldChange as S, autoSetAfterSelect as j, queryOptionDatasources as R } from "../../../../utils/page-helper-util.js";
3
+ import { getFormModelFields as _ } from "../../../../utils/page-init-util.js";
4
+ import { handleFormEvent as I, handleAfterInitEvent as q } from "../../../../utils/events/event-util.js";
5
+ import { $t as V } from "../../../../utils/i18n-util.js";
6
+ import { addRequiredClassUtil as w } from "../../../../utils/common-util.js";
7
+ const z = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
8
+ const D = e2, E = t(null), O = D.pageContext.entity ? D.pageContext.entity : {};
9
+ let A = _(D.pageContext, D.configure);
10
+ const M = l({ get() {
11
+ let e3 = x(O, A);
12
12
  return e3 && "string" == typeof e3 && (e3 = e3.split(",")), e3;
13
13
  }, set(e3) {
14
- e3 && e3.length > 0 && (e3 = e3.join(",")), b(E, O, e3), null != e3 && (D.value = "");
15
- } }), M = z.configure.runtime ? z.configure.runtime : {}, P = M.style, T = M.class, F = M.headerStyle, U = M.titleExceedStyle, W = t(M.props ? M.props : {}), B = t(W.value.options ? W.value.options : []), G = C(z.pageContext, z.configure);
16
- G.length > 0 && (B.value = G);
17
- const H = z.configure.props && z.configure.props.dataOrigin ? z.configure.props.dataOrigin : {}, J = H.optionValueSetType;
18
- let K = [];
19
- if (("dynamicData" == J || "dynamicData" == J || "service" == J) && H.autoSets) for (let e3 of H.autoSets) e3.source && K.push(e3);
20
- z.configure && z.configure.props && z.configure.props.base && z.configure.props.base.optionProp && K.push({ source: "label", target: z.configure.props.base.optionProp }), W.value.changeMethod = function(e3) {
21
- if (K.length > -1) {
14
+ e3 && e3.length > 0 && (e3 = e3.join(",")), b(O, A, e3), null != e3 && (E.value = "");
15
+ } }), P = D.configure.runtime ? D.configure.runtime : {}, T = P.style, F = P.class, U = P.headerStyle, W = P.titleExceedStyle, B = t(P.props ? P.props : {}), G = t(B.value.options ? B.value.options : []), H = C(D.pageContext, D.configure);
16
+ H.length > 0 && (G.value = H);
17
+ const J = D.configure.props && D.configure.props.dataOrigin ? D.configure.props.dataOrigin : {}, K = J.optionValueSetType;
18
+ let L = [];
19
+ if ("dynamicData" == K || "dynamicData" == K || "service" == K) {
20
+ if (J.autoSets) for (let e3 of J.autoSets) e3.source && L.push(e3);
21
+ } else "static" == K && k(D.pageContext, D.configure.uuid, G.value);
22
+ D.configure && D.configure.props && D.configure.props.base && D.configure.props.base.optionProp && L.push({ source: "label", target: D.configure.props.base.optionProp }), B.value.changeMethod = function(e3) {
23
+ if (L.length > -1) {
22
24
  let t2 = null;
23
- B.value && null != e3 && null != e3 && (t2 = B.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value)), S(z.configure, z.pageContext, K, t2);
25
+ G.value && null != e3 && null != e3 && (t2 = G.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value)), j(D.configure, D.pageContext, L, t2);
24
26
  }
25
- _(e3, z.pageContext, z.configure, "change");
27
+ I(e3, D.pageContext, D.configure, "change");
26
28
  };
27
- const L = W.value.optionconfigInfo ? W.value.optionconfigInfo : {};
28
- const N = W.value.monitorFields;
29
- k(z.pageContext, N, function() {
30
- j(z.pageContext, L, void 0).then((e3) => {
29
+ const N = B.value.optionconfigInfo ? B.value.optionconfigInfo : {};
30
+ const Q = B.value.monitorFields;
31
+ S(D.pageContext, Q, function() {
32
+ R(D.pageContext, N, void 0).then((e3) => {
31
33
  });
32
34
  });
33
- const Q = t(null), X = t(null), Y = t(null);
35
+ const X = t(null), Y = t(null), Z = t(null);
34
36
  return o(() => {
35
37
  n(() => {
36
- const e3 = A.value;
37
- I(e3, z.pageContext, z.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
38
+ const e3 = M.value;
39
+ q(e3, D.pageContext, D.configure, { formItemRef: X.value, componentRef: Y.value, titleRef: Z.value, value: e3, entity: D.pageContext.entity.data, pageData: D.pageContext.entity.page });
38
40
  });
39
- }), w2({ updateOptions: function(e3) {
40
- B.value = e3 || [];
41
+ }), z2({ updateOptions: function(e3) {
42
+ G.value = e3 || [];
41
43
  }, addRequiredClass: function() {
42
- D.value = V();
44
+ E.value = w();
43
45
  }, getSelectItemsTitle: function() {
44
46
  const e3 = function() {
45
- let e4 = x(E, O);
47
+ let e4 = x(O, A);
46
48
  return null != e4 && (e4 = String(e4)), e4;
47
49
  }();
48
50
  if (null != e3 && "" !== e3 && e3.length > 0) {
49
51
  let t2 = "";
50
52
  const l2 = e3.split(",");
51
- return B.value.length > 0 ? (B.value.forEach((e4) => {
53
+ return G.value.length > 0 ? (G.value.forEach((e4) => {
52
54
  l2.forEach((l3) => {
53
55
  e4.value === l3 && (t2 = t2 + e4.label + ",");
54
56
  });
@@ -56,9 +58,9 @@ const w = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
56
58
  }
57
59
  } }), (e3, t2) => {
58
60
  const l2 = a("el-checkbox"), o2 = a("el-checkbox-group"), n2 = a("el-form-item");
59
- return i(), u(n2, { ref_key: "formItemRef", ref: Q, class: s(p(T) + (D.value ? " " + D.value : "")), required: !!W.value.required, "label-width": W.value.labelWidth, style: r(p(P)) }, c({ default: f(() => [g(o2, { ref_key: "componentRef", ref: X, disabled: "disabled" === W.value.state, size: W.value.size, onChange: W.value.changeMethod, modelValue: A.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => A.value = e4) }, { default: f(() => [(i(true), v(d, null, m(B.value, (t3) => (i(), u(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => p(_)(t3.value, e3.pageContext, e3.configure, "click", { values: A.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [h("div", { ref_key: "titleRef", ref: Y, style: r({ ...p(F), ...p(U) }), class: "amb-form-item-label" }, y(p(q)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "required", "label-width", "style"]);
61
+ return i(), u(n2, { ref_key: "formItemRef", ref: X, class: s(c(F) + (E.value ? " " + E.value : "")), required: !!B.value.required, "label-width": B.value.labelWidth, style: r(c(T)) }, p({ default: f(() => [g(o2, { ref_key: "componentRef", ref: Y, disabled: "disabled" === B.value.state, size: B.value.size, onChange: B.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => M.value = e4) }, { default: f(() => [(i(true), v(d, null, m(G.value, (t3) => (i(), u(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => c(I)(t3.value, e3.pageContext, e3.configure, "click", { values: M.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [B.value.tittleShow ? { name: "label", fn: f(() => [h("div", { ref_key: "titleRef", ref: Z, style: r({ ...c(U), ...c(W) }), class: "amb-form-item-label" }, y(c(V)(B.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "required", "label-width", "style"]);
60
62
  };
61
63
  } });
62
64
  export {
63
- w as default
65
+ z as default
64
66
  };
@@ -1,82 +1,84 @@
1
1
  import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as n, onMounted as a, nextTick as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as f, normalizeClass as p, unref as c, createSlots as g, withCtx as v, createVNode as d, createElementBlock as m, Fragment as h, renderList as b, createTextVNode as y, toDisplayString as C, createElementVNode as x } from "vue";
2
- import { setVariableValue as k, getVariableValue as _, getOptionDatasFromPage as S, autoSetAfterSelect as R, queryOptionDatasources as j } from "../../../../utils/page-helper-util.js";
3
- import { getFormModelFields as T } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent as I, handleAfterInitEvent as q } from "../../../../utils/events/event-util.js";
5
- import { $t as V } from "../../../../utils/i18n-util.js";
6
- import { addRequiredClassUtil as w } from "../../../../utils/common-util.js";
7
- const z = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
8
- const O = e2, D = t(null), E = O.pageContext.entity ? O.pageContext.entity : {};
9
- let M = T(O.pageContext, O.configure);
10
- const P = l({ get() {
11
- let e3 = _(E, M);
2
+ import { setVariableValue as k, getVariableValue as _, getOptionDatasFromPage as S, putToOptionSourceMap as R, autoSetAfterSelect as j, queryOptionDatasources as T } from "../../../../utils/page-helper-util.js";
3
+ import { getFormModelFields as I } from "../../../../utils/page-init-util.js";
4
+ import { handleFormEvent as q, handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
5
+ import { $t as w } from "../../../../utils/i18n-util.js";
6
+ import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
7
+ const O = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: O2 }) {
8
+ const D = e2, E = t(null), M = D.pageContext.entity ? D.pageContext.entity : {};
9
+ let P = I(D.pageContext, D.configure);
10
+ const W = l({ get() {
11
+ let e3 = _(M, P);
12
12
  return null != e3 && (e3 += ""), e3;
13
13
  }, set(e3) {
14
- k(E, M, e3), null != e3 && (D.value = "");
15
- } }), W = O.configure.runtime ? O.configure.runtime : {}, F = W.style, U = W.class, $ = W.headerStyle, A = W.titleExceedStyle, B = t(W.props ? W.props : {}), G = t(B.value.options ? B.value.options : []), H = S(O.pageContext, O.configure);
16
- H.length > 0 && (G.value = H);
17
- const J = O.configure.props && O.configure.props.dataOrigin ? O.configure.props.dataOrigin : {}, K = J.optionValueSetType;
18
- let L = [];
19
- if (("dynamicData" == K || "dataTable" == K || "service" == K) && J.autoSets) for (let e3 of J.autoSets) e3.source && L.push(e3);
20
- O.configure && O.configure.props && O.configure.props.base && O.configure.props.base.optionProp && L.push({ source: "label", target: O.configure.props.base.optionProp }), B.value.changeMethod = function(e3) {
21
- if (L.length > 0) {
14
+ k(M, P, e3), null != e3 && (E.value = "");
15
+ } }), F = D.configure.runtime ? D.configure.runtime : {}, U = F.style, $ = F.class, A = F.headerStyle, B = F.titleExceedStyle, G = t(F.props ? F.props : {}), H = t(G.value.options ? G.value.options : []), J = S(D.pageContext, D.configure);
16
+ J.length > 0 && (H.value = J);
17
+ const K = D.configure.props && D.configure.props.dataOrigin ? D.configure.props.dataOrigin : {}, L = K.optionValueSetType;
18
+ let N = [];
19
+ if ("dynamicData" == L || "dataTable" == L || "service" == L) {
20
+ if (K.autoSets) for (let e3 of K.autoSets) e3.source && N.push(e3);
21
+ } else "static" == L && R(D.pageContext, D.configure.uuid, H.value);
22
+ D.configure && D.configure.props && D.configure.props.base && D.configure.props.base.optionProp && N.push({ source: "label", target: D.configure.props.base.optionProp }), G.value.changeMethod = function(e3) {
23
+ if (N.length > 0) {
22
24
  let t2 = null;
23
- G.value && null != e3 && null != e3 && (t2 = G.value.filter((t3) => e3 === t3.value)), R(O.configure, O.pageContext, L, t2);
25
+ H.value && null != e3 && null != e3 && (t2 = H.value.filter((t3) => e3 === t3.value)), j(D.configure, D.pageContext, N, t2);
24
26
  }
25
- I(e3, O.pageContext, O.configure, "change");
27
+ q(e3, D.pageContext, D.configure, "change");
26
28
  };
27
- const N = B.value.monitorFields, Q = [];
28
- if (N) {
29
+ const Q = G.value.monitorFields, X = [];
30
+ if (Q) {
29
31
  const e3 = [];
30
- for (let t2 of N) if (t2.startsWith("${")) {
32
+ for (let t2 of Q) if (t2.startsWith("${")) {
31
33
  t2 = t2.substring(2, t2.length - 1);
32
34
  const l2 = t2.split(".");
33
- "page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (Q.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
35
+ "page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (X.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
34
36
  }
35
- for (let t2 of e3) o(E[t2], () => {
36
- te();
37
+ for (let t2 of e3) o(M[t2], () => {
38
+ le();
37
39
  });
38
40
  }
39
- function X() {
41
+ function Y() {
40
42
  let e3 = "";
41
- for (let t2 of Q) e3 += "_" + _(E, t2);
43
+ for (let t2 of X) e3 += "_" + _(M, t2);
42
44
  return e3;
43
45
  }
44
- let Y = X(), Z = false;
45
- const ee = B.value.optionconfigInfo ? B.value.optionconfigInfo : {};
46
- function te() {
47
- Z && clearTimeout(Z), Z = setTimeout(function() {
48
- const e3 = X();
49
- e3 != Y && (Y = e3, j(O.pageContext, ee, void 0).then((e4) => {
46
+ let Z = Y(), ee = false;
47
+ const te = G.value.optionconfigInfo ? G.value.optionconfigInfo : {};
48
+ function le() {
49
+ ee && clearTimeout(ee), ee = setTimeout(function() {
50
+ const e3 = Y();
51
+ e3 != Z && (Z = e3, T(D.pageContext, te, void 0).then((e4) => {
50
52
  }));
51
53
  }, 200);
52
54
  }
53
55
  n(() => {
54
- Z && clearTimeout(Z);
56
+ ee && clearTimeout(ee);
55
57
  });
56
- const le = t(null), oe = t(null), ne = t(null);
58
+ const oe = t(null), ne = t(null), ae = t(null);
57
59
  return a(() => {
58
60
  u(() => {
59
- const e3 = P.value;
60
- q(e3, O.pageContext, O.configure, { formItemRef: le.value, componentRef: oe.value, titleRef: ne.value, value: e3, entity: O.pageContext.entity.data, pageData: O.pageContext.entity.page });
61
+ const e3 = W.value;
62
+ V(e3, D.pageContext, D.configure, { formItemRef: oe.value, componentRef: ne.value, titleRef: ae.value, value: e3, entity: D.pageContext.entity.data, pageData: D.pageContext.entity.page });
61
63
  });
62
- }), z2({ updateOptions: function(e3) {
63
- G.value = e3 || [];
64
+ }), O2({ updateOptions: function(e3) {
65
+ H.value = e3 || [];
64
66
  }, addRequiredClass: function() {
65
- D.value = w();
67
+ E.value = z();
66
68
  }, getSelectItemsTitle: function() {
67
- let e3 = _(E, M);
69
+ let e3 = _(M, P);
68
70
  if (null == e3) return "";
69
71
  if (e3 = String(e3), null != e3 && "" !== e3 && e3.length > 0) {
70
72
  let t2 = "";
71
- return G.value.length > 0 ? (G.value.forEach((l2) => {
73
+ return H.value.length > 0 ? (H.value.forEach((l2) => {
72
74
  l2.value === e3 && (t2 = t2 + l2.label + ",");
73
75
  }), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
74
76
  }
75
77
  } }), (e3, t2) => {
76
78
  const l2 = i("el-radio"), o2 = i("el-radio-group"), n2 = i("el-form-item");
77
- return s(), r(n2, { ref_key: "formItemRef", ref: le, required: B.value.required, class: p(c(U) + (D.value ? " " + D.value : "")), "label-width": B.value.labelWidth, style: f(c(F)) }, g({ default: v(() => [d(o2, { ref_key: "componentRef", ref: oe, disabled: "disabled" === B.value.state, size: B.value.size, onChange: B.value.changeMethod, modelValue: P.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => P.value = e4) }, { default: v(() => [(s(true), m(h, null, b(G.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.value, onClick: (l3) => c(I)(t3.value, e3.pageContext, e3.configure, "click", { values: P.value }) }, { default: v(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [B.value.tittleShow ? { name: "label", fn: v(() => [x("div", { ref_key: "titleRef", ref: ne, style: f({ ...c($), ...c(A) }), class: "amb-form-item-label" }, C(c(V)(B.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
79
+ return s(), r(n2, { ref_key: "formItemRef", ref: oe, required: G.value.required, class: p(c($) + (E.value ? " " + E.value : "")), "label-width": G.value.labelWidth, style: f(c(U)) }, g({ default: v(() => [d(o2, { ref_key: "componentRef", ref: ne, disabled: "disabled" === G.value.state, size: G.value.size, onChange: G.value.changeMethod, modelValue: W.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => W.value = e4) }, { default: v(() => [(s(true), m(h, null, b(H.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.value, onClick: (l3) => c(q)(t3.value, e3.pageContext, e3.configure, "click", { values: W.value }) }, { default: v(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [G.value.tittleShow ? { name: "label", fn: v(() => [x("div", { ref_key: "titleRef", ref: ae, style: f({ ...c(A), ...c(B) }), class: "amb-form-item-label" }, C(c(w)(G.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
78
80
  };
79
81
  } });
80
82
  export {
81
- z as default
83
+ O as default
82
84
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./select-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = t(e, [["__scopeId", "data-v-f0e9b5f0"]]);
4
+ const r = t(e, [["__scopeId", "data-v-ccac4657"]]);
5
5
  export {
6
6
  r as default
7
7
  };