super-page-runtime 2.3.6 → 2.3.7-sit1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +50 -50
  2. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +76 -76
  3. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +26 -24
  4. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +59 -58
  5. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +38 -37
  6. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +28 -27
  7. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  8. package/dist/es/components/runtime/utils/charts/chart-util.js +30 -23
  9. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  10. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  11. package/dist/es/components/runtime/utils/events/standard-event.js +18 -18
  12. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  13. package/dist/es/components/runtime/utils/page-init-util.js +24 -25
  14. package/dist/es/components/runtime/utils/page-store.js +10 -10
  15. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  16. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +4 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +4 -4
  18. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  19. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  20. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +4 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +15 -15
  22. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +4 -1
  23. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +7 -7
  24. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +4 -1
  25. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +8 -8
  26. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +4 -1
  27. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +7 -7
  28. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +11 -12
  29. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +7 -7
  30. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  31. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  32. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  33. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +19 -17
  34. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +4 -1
  35. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +32 -29
  36. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +4 -4
  37. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
  38. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
  39. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +45 -46
  40. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -5
  41. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -1
  42. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -1
  43. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  44. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  45. package/dist/es/components/runtime/views/super-page.vue2.js +11 -12
  46. package/dist/es/style.css +30 -0
  47. package/package.json +2 -2
  48. package/dist/es.zip +0 -0
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as l, resolveComponent as a, createBlock as o, openBlock as u, withCtx as p, createVNode as n, createTextVNode as s, toDisplayString as r } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as l, resolveComponent as a, createBlock as o, openBlock as u, withCtx as p, createVNode as s, createTextVNode as r, toDisplayString as n } from "vue";
2
2
  import { packageTemplateFiles as i } from "../../../utils/common-util.js";
3
3
  import { ElMessage as m } from "element-plus";
4
4
  const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["export", "close"], setup(e2, { emit: g2 }) {
@@ -7,7 +7,7 @@ const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { c
7
7
  function N(e3) {
8
8
  let t2, l2, a2 = e3;
9
9
  const o2 = a2.indexOf(c), u2 = a2.indexOf(d);
10
- return -1 !== o2 && -1 !== u2 ? (o2 > u2 ? a2 = a2.substring(0, u2) + a2.substring(u2 + 1) : (t2 = a2.substring(o2 + 2, u2), l2 = a2.substring(o2, u2 + 1), x.value.push(t2), x.value, a2 = a2.replace(l2, "")), N(a2)) : x.value;
10
+ return -1 !== o2 && -1 !== u2 ? (o2 > u2 ? a2 = a2.substring(0, u2) + a2.substring(u2 + 1) : (t2 = a2.substring(o2 + 2, u2), l2 = a2.substring(o2, u2 + 1), x.value.push(t2), a2 = a2.replace(l2, "")), N(a2)) : x.value;
11
11
  }
12
12
  function O(e3) {
13
13
  v("export", f.configure, e3);
@@ -17,18 +17,16 @@ const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { c
17
17
  }
18
18
  return l(() => {
19
19
  y.templateFiles && y.templateFiles.length > 0 ? h.value = i(y.templateFiles, f.pageContext, f.configure) : y.templateUuid && y.templateName && h.value.push({ templateUuid: y.templateUuid, templateName: y.templateName }), h.value.forEach((e3) => {
20
- e3 && e3.templateName && (e3.templateName = function(e4) {
21
- const t2 = N(e4);
22
- return t2.forEach((t3) => {
23
- const l2 = c + t3 + d;
24
- let a2;
25
- -1 !== e4.indexOf(l2) && Object.prototype.hasOwnProperty.call(w, t3) && (a2 = w[t3] ? w[t3] : "", e4 = e4.replace(l2, a2));
26
- }), e4;
27
- }(e3.templateName));
20
+ var t2;
21
+ e3 && e3.templateName && (e3.templateName = (N(t2 = e3.templateName).forEach((e4) => {
22
+ const l2 = c + e4 + d;
23
+ let a2;
24
+ -1 !== t2.indexOf(l2) && Object.prototype.hasOwnProperty.call(w, e4) && (a2 = w[e4] ? w[e4] : "", t2 = t2.replace(l2, a2));
25
+ }), t2));
28
26
  }), h.value && 0 !== h.value.length || (m({ message: "无符合条件可导出的模板!", type: "warning" }), v("close")), 1 === (h == null ? void 0 : h.value.length) ? (O(h.value[0]), v("close")) : b.value = true;
29
27
  }), (e3, t2) => {
30
28
  const l2 = a("el-table-column"), i2 = a("el-button"), m2 = a("el-table"), c2 = a("el-dialog");
31
- return u(), o(c2, { modelValue: b.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => b.value = e4), "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), onClose: _ }, { default: p(() => [n(m2, { data: h.value, style: { width: "100%" } }, { default: p(() => [n(l2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: p((e4) => [s(r(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), n(l2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: p((t3) => [n(i2, { type: "text", size: "small", onClick: (e4) => O(t3.row) }, { default: p(() => [s(r(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"]);
29
+ return u(), o(c2, { modelValue: b.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => b.value = e4), "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), onClose: _ }, { default: p(() => [s(m2, { data: h.value, style: { width: "100%" } }, { default: p(() => [s(l2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: p((e4) => [r(n(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), s(l2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: p((t3) => [s(i2, { type: "text", size: "small", onClick: (e4) => O(t3.row) }, { default: p(() => [r(n(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"]);
32
30
  };
33
31
  } });
34
32
  export {
@@ -19,7 +19,6 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
19
19
  B.value = l2 ?? 0, R(n2 || i2 || false, e3);
20
20
  }
21
21
  } catch (e3) {
22
- console.error(e3);
23
22
  }
24
23
  }, R = (e3, t2) => {
25
24
  var _a;
@@ -56,7 +55,6 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
56
55
  })();
57
56
  b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
58
57
  } catch (e3) {
59
- console.error(e3);
60
58
  }
61
59
  });
62
60
  }, 100);
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, computed as t, ref as r, onMounted as a, watch as o, resolveComponent as l, createBlock as n, openBlock as u, normalizeStyle as i, normalizeClass as s, unref as c, withCtx as p, createElementBlock as m, createCommentVNode as f, toDisplayString as g } from "vue";
1
+ import { defineComponent as e, computed as t, ref as a, onMounted as r, watch as l, resolveComponent as o, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as s, unref as p, withCtx as c, createElementBlock as m, createCommentVNode as f, toDisplayString as g } from "vue";
2
2
  import d from "qrcode";
3
3
  import v from "jsbarcode";
4
4
  import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
@@ -12,7 +12,7 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
12
12
  let k = y(q.pageContext, q.configure);
13
13
  const A = t({ get: () => x(N, k), set(e3) {
14
14
  h(N, k, e3);
15
- } }), E = q.configure.runtime ? q.configure.runtime : {}, _ = r(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = r(""), I = r(null), Q = r(_.value.brCodeFormat ?? "CODE128"), V = r([]);
15
+ } }), E = q.configure.runtime ? q.configure.runtime : {}, _ = a(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = a(""), I = a(null), Q = a(_.value.brCodeFormat ?? "CODE128"), V = a([]);
16
16
  function F(e3) {
17
17
  return h(N, k, e3);
18
18
  }
@@ -22,32 +22,31 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
22
22
  function L(e3) {
23
23
  var t2;
24
24
  "QR-code" === _.value.type ? (t2 = e3, d.toDataURL(t2, (e4, t3) => {
25
- e4 ? console.error(e4) : $.value = t3;
25
+ e4 || ($.value = t3);
26
26
  })) : function(e4) {
27
27
  try {
28
28
  v(I.value, e4, { format: Q.value });
29
29
  } catch (e5) {
30
- console.error("生成条形码时发生错误:", e5);
31
30
  }
32
31
  }(e3);
33
32
  }
34
- return a(() => {
33
+ return r(() => {
35
34
  _.value.generateRule && ("fixed" === _.value.generateRuleType ? (V.value = Array.from(_.value.generateRule.matchAll(/\$\{(\w+)\}/g), (e3) => e3[1]), V.value.forEach((e3) => {
36
- o(() => q.pageContext.entity.data[e3], (e4, t2) => {
35
+ l(() => q.pageContext.entity.data[e3], (e4, t2) => {
37
36
  null != e4 && function() {
38
37
  let e5 = true;
39
38
  V.value.forEach((t3) => {
40
39
  q.pageContext.entity.data[t3] || (e5 = false);
41
40
  }), e5 && J(function(e6, t3) {
42
- const r2 = /\$\{(\w+)\}/g;
43
- return e6.replace(r2, (e7, r3) => t3.hasOwnProperty(r3) ? t3[r3] : e7);
41
+ const a2 = /\$\{(\w+)\}/g;
42
+ return e6.replace(a2, (e7, a3) => t3.hasOwnProperty(a3) ? t3[a3] : e7);
44
43
  }(_.value.generateRule, q.pageContext.entity.data));
45
44
  }();
46
45
  });
47
46
  })) : w.get(window.$vueApp.config.globalProperties.baseAPI + "/dc/setting-barcode-models/by-code/" + _.value.generateRule).then((e3) => {
48
47
  const t2 = JSON.parse(e3.barcodeModelItems);
49
48
  t2.forEach((e4) => {
50
- "-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5, r2) => {
49
+ "-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), l(() => q.pageContext.entity.data[e4.propDbName], (e5, a2) => {
51
50
  if (null != e5) {
52
51
  const e6 = b(t2, q.pageContext.entity.data);
53
52
  e6 && J(e6);
@@ -55,13 +54,12 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
55
54
  }));
56
55
  });
57
56
  }).catch((e3) => {
58
- console.error("获取条码规则失败:", e3);
59
57
  })), A.value && L(A.value);
60
58
  }), D2({ getValue: function() {
61
59
  return x(N, k);
62
60
  }, setValue: F }), (e3, t2) => {
63
- const r2 = l("el-form-item");
64
- return u(), n(r2, { required: !!_.value.required, class: s(c(P)), "label-width": _.value.labelWidth, style: i(c(O)) }, { label: p(() => [_.value.tittleShow ? (u(), m("div", { key: 0, style: i({ ...c(S) }) }, g(c(R)(_.value.title)), 5)) : f("", true)]), default: p(() => ["QR-code" === _.value.type ? (u(), m("img", { key: 0, src: $.value }, null, 8, j)) : (u(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
61
+ const a2 = o("el-form-item");
62
+ return n(), u(a2, { required: !!_.value.required, class: s(p(P)), "label-width": _.value.labelWidth, style: i(p(O)) }, { label: c(() => [_.value.tittleShow ? (n(), m("div", { key: 0, style: i({ ...p(S) }) }, g(p(R)(_.value.title)), 5)) : f("", true)]), default: c(() => ["QR-code" === _.value.type ? (n(), m("img", { key: 0, src: $.value }, null, 8, j)) : (n(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
65
63
  };
66
64
  } });
67
65
  export {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, createElementBlock as l, openBlock as r, unref as u, createVNode as s } from "vue";
2
- import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as E } from "../../../../utils/events/event-util.js";
3
- import { getBaseUrl as D, getListCode as T, getRealRestApiPath as R, isWorkflowPage as O, isVariableInvalidValue as k } from "../../../../utils/common-util.js";
2
+ import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
3
+ import { getBaseUrl as E, getListCode as T, getRealRestApiPath as O, isWorkflowPage as R, isVariableInvalidValue as k } from "../../../../utils/common-util.js";
4
4
  import { getAdditionalParamMap as I, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
5
5
  import { isPromise as N } from "agilebuilder-ui/src/utils/common-util";
6
6
  import { getOperationButtons as B, popupToPage as P } from "../../../../utils/table-utils.js";
@@ -15,14 +15,14 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
15
15
  const K = t({});
16
16
  Y.isTest ? K.value = Q.configure.runtime ? Q.configure.runtime : {} : Y.tableRuntimes && Y.tableRuntimes[J.uuid] && (J = JSON.parse(Y.tableRuntimes[J.uuid].configure), K.value = J.runtime ? J.runtime : {});
17
17
  const X = K.value.style, Z = K.value.class, ee = Y.systemCode, te = Y.backendUrl, ne = J.props && J.props.dataOrigin && J.props.dataOrigin.tableName;
18
- let oe = D(Y.backendUrl, Y.isTest);
18
+ let oe = E(Y.backendUrl, Y.isTest);
19
19
  oe || (oe = window.$vueApp.config.globalProperties.baseURL);
20
20
  const ie = t({}), ae = [], le = t({});
21
21
  le.value = function() {
22
22
  const e3 = Y.systemCode, t2 = Y.code;
23
23
  let n2 = J.props && J.props.dataOrigin && "[]" !== J.props.dataOrigin.sqlFilterCondition ? J.props.dataOrigin.sqlFilterCondition : null;
24
24
  null == n2 && (n2 = []);
25
- const o2 = { isSql: true, optionTableHeight: 0, rowKeyProp: J.props.dataOrigin.principalLinkage, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: De }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: je, pageCode: Y.code, pageVersion: Y.version, additionalParamMap: I(Y), showOverflowTooltip: !(!J.props || !J.props.otherSettings || void 0 !== J.props.otherSettings.isBreakLine && false !== J.props.otherSettings.isBreakLine), isEnableEnterEvent: J.props && J.props.otherSettings && J.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(J.props && J.props.otherSettings && J.props.otherSettings.isWithDataPermission) && J.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: O(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
25
+ const o2 = { isSql: true, optionTableHeight: 0, rowKeyProp: J.props.dataOrigin.principalLinkage, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: Ee }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: je, pageCode: Y.code, pageVersion: Y.version, additionalParamMap: I(Y), showOverflowTooltip: !(!J.props || !J.props.otherSettings || void 0 !== J.props.otherSettings.isBreakLine && false !== J.props.otherSettings.isBreakLine), isEnableEnterEvent: J.props && J.props.otherSettings && J.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(J.props && J.props.otherSettings && J.props.otherSettings.isWithDataPermission) && J.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: R(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
26
26
  return function(e4) {
27
27
  var _a;
28
28
  ((_a = J.props.highOrder) == null ? void 0 : _a.mergeFields) && J.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = J.props.highOrder.mergeFields.join(","));
@@ -56,7 +56,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
56
56
  }();
57
57
  const re = t(), ue = t(), se = function() {
58
58
  let e3 = oe + "/dsc/commons/list";
59
- e3 && (e3 = R(e3, ee, te, Y.isTest));
59
+ e3 && (e3 = O(e3, ee, te, Y.isTest));
60
60
  return e3;
61
61
  }(), ce = T(Y.code, Y.version, J.uuid), pe = Y.code + "_" + ce, de = t([]), fe = Y.entity.page, ge = t({ data: [] }), me = Y.superGridItems, ve = me ? me[J.uuid] : null, he = t(false), be = q;
62
62
  function we() {
@@ -89,7 +89,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
89
89
  function Ce(e3, t2, n2, o2, i2) {
90
90
  const a2 = ie.value.lineEditSave, l2 = J;
91
91
  a2.props.base.tableUuid = l2.uuid, le.value.lineEditOptions.beforeSave = xe, Y.editData = n2, p({ pageContext: Y, configureObj: a2 }).then((l3) => {
92
- true === l3.canExecute && (le.value.lineEditOptions.saveRow = Ee, ue.value.saveRow(i2, ce).then(() => {
92
+ true === l3.canExecute && (le.value.lineEditOptions.saveRow = De, ue.value.saveRow(i2, ce).then(() => {
93
93
  d(Y, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
94
94
  }));
95
95
  }).finally(() => {
@@ -101,7 +101,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
101
101
  let t2;
102
102
  const n2 = y(e3.events, "click");
103
103
  if (n2) {
104
- if (ie.value[n2] = e3, "lineEditSave" === n2 ? t2 = Ce : "restoreEdit" === n2 ? t2 = Te : "lineEditUpdate" === n2 ? t2 = Re : "lineEditDelete" === n2 && (t2 = ke), !t2) {
104
+ if (ie.value[n2] = e3, "lineEditSave" === n2 ? t2 = Ce : "restoreEdit" === n2 ? t2 = Te : "lineEditUpdate" === n2 ? t2 = Oe : "lineEditDelete" === n2 && (t2 = ke), !t2) {
105
105
  t2 = x(Y, e3.events, "click");
106
106
  }
107
107
  } else ie.value[e3.uuid] = e3, t2 = Be;
@@ -112,7 +112,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
112
112
  o2.props.base.tableUuid = i2.uuid;
113
113
  return f(Y, o2, { row: e3, columns: t2 });
114
114
  }
115
- function Ee({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
115
+ function De({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
116
116
  const l2 = ie.value.lineEditSave, r2 = J;
117
117
  return l2.props.base.tableUuid = r2.uuid, new Promise((t3, n3) => {
118
118
  const i3 = { tableName: r2.props.dataOrigin.tableName };
@@ -123,7 +123,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
123
123
  });
124
124
  });
125
125
  }
126
- function De({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
126
+ function Ee({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
127
127
  Te(null, null, n2, t2, e3);
128
128
  }
129
129
  function Te(e3, t2, n2, o2, i2) {
@@ -136,15 +136,15 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
136
136
  }) : ue.value.restoreRow(i2, ce);
137
137
  d(Y, J, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
138
138
  }
139
- function Re(e3, t2, n2, o2, i2) {
139
+ function Oe(e3, t2, n2, o2, i2) {
140
140
  const a2 = ie.value.lineEditUpdate, l2 = J;
141
141
  a2.props.base.tableUuid = l2.uuid;
142
142
  const r2 = f(Y, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
143
143
  r2 && (N(r2) ? r2.then((l3) => {
144
- l3 && Oe(e3, t2, n2, o2, i2, a2);
145
- }) : Oe(e3, t2, n2, o2, i2, a2));
144
+ l3 && Re(e3, t2, n2, o2, i2, a2);
145
+ }) : Re(e3, t2, n2, o2, i2, a2));
146
146
  }
147
- function Oe(e3, t2, n2, o2, i2, a2) {
147
+ function Re(e3, t2, n2, o2, i2, a2) {
148
148
  Y.editData = n2, p({ pageContext: Y, configureObj: a2 }).then((a3) => {
149
149
  if (true === a3.canExecute) {
150
150
  ue.value.editRow(i2, ce);
@@ -207,7 +207,6 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
207
207
  }
208
208
  function Ne() {
209
209
  if (!ue.value) return;
210
- Q.configure.name, Q.configure;
211
210
  const e3 = U(Q.pageContext, Q.configure);
212
211
  if (e3) {
213
212
  if (e3.isCalcHeight) {
@@ -221,7 +220,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
221
220
  }
222
221
  function Be(e3, t2, n2, o2, i2, a2) {
223
222
  const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 = ie.value[a2.sourceButton.uuid], u2 = J;
224
- r2.props.base.tableUuid = u2.uuid, E(null, Y, r2, "click", l2);
223
+ r2.props.base.tableUuid = u2.uuid, D(null, Y, r2, "click", l2);
225
224
  }
226
225
  function Pe(e3) {
227
226
  "close_open_win" === e3.data && ue.value && ue.value.refresh();
@@ -283,7 +282,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
283
282
  }
284
283
  n(() => {
285
284
  const e3 = Ke();
286
- ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle && Q.pageContext.pageRuntimeStyle.height, window.addEventListener("message", Pe), F.$on(pe + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
285
+ ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle, window.addEventListener("message", Pe), F.$on(pe + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
287
286
  ue.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
288
287
  }), F.$on(pe + "_close-dialog-get-entity", () => {
289
288
  F.$emit(pe + "_close-super-dialog");
@@ -353,7 +352,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
353
352
  }, setScrollLeft: function(e3) {
354
353
  ue.value && ue.value.setScrollLeft(e3);
355
354
  }, getSuperGridRef: function() {
356
- return ue.value.getSuperGridRef();
355
+ return ue.value;
357
356
  }, getSuperGridTableRef: function() {
358
357
  return ue.value.getSuperGridTableRef();
359
358
  }, setCurrentRowIndex: function(e3) {
@@ -362,6 +361,9 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
362
361
  }, setScrollTopByRowIndex: function(e3) {
363
362
  var _a;
364
363
  (_a = ue.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
364
+ }, getTableData: function() {
365
+ var _a;
366
+ return (_a = ue.value) == null ? void 0 : _a.getTableData();
365
367
  } }), (e3, t2) => {
366
368
  const n2 = a("super-grid");
367
369
  return r(), l("div", { ref_key: "tableDivRef", ref: re, id: u(ce) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: ue, url: u(se), options: le.value, code: u(ce), settings: u(ve), "search-form-info": ge.value, "list-toolbar-form-data": u(fe), onSelect: Fe, onSelectAll: He, onSelectionChange: Ue, onCellClick: Le, onCellDblclick: Me, onRowClick: $e, onRowDblclick: _e, onHeaderClick: Ae, onRefresh: Ge, onNewOpenGridDialog: u(P), onCanShowMobileSearch: ze, onGridOnmounted: we }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, z);
@@ -276,13 +276,16 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
276
276
  }, getSuperGridRef: function() {
277
277
  return le.value;
278
278
  }, getSuperGridTableRef: function() {
279
- return le.value.getSuperGridRef();
279
+ return le.value.getSuperGridTableRef();
280
280
  }, setCurrentRowIndex: function(e3) {
281
281
  var _a;
282
282
  (_a = le.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
283
283
  }, setScrollTopByRowIndex: function(e3) {
284
284
  var _a;
285
285
  (_a = le.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
286
+ }, getTableData: function() {
287
+ var _a;
288
+ return (_a = le.value) == null ? void 0 : _a.getTableData();
286
289
  } }), (e3, t2) => {
287
290
  const n2 = a("super-grid");
288
291
  return i(), l("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: le, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ae, onHeaderClick: Le, onFnProhibitToEdit: Re, onChangeGridData: ye, onReloadGrid: de, onRefresMainTableFields: Oe, onSetSelectOptions: Ie, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(I), onChangeFormData: Be }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
@@ -2,71 +2,74 @@ import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as
2
2
  import i from "./sub-table-runtime.vue.js";
3
3
  import c from "./main-table-runtime.vue.js";
4
4
  const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: f2 }) {
5
- const s = e2, g = s.pageContext.pageType, p = t(null), d = s.configure.uuid, v = s.pageContext.superGridItems, S = v ? v[d] : null;
6
- p.value = S ? S.configure ? JSON.parse(S.configure) : null : s.configure;
7
- const T = s.configure.runtime ? s.configure.runtime : {};
5
+ const g = e2, s = g.pageContext.pageType, p = t(null), v = g.configure.uuid, d = g.pageContext.superGridItems, S = d ? d[v] : null;
6
+ p.value = S ? S.configure ? JSON.parse(S.configure) : null : g.configure;
7
+ const T = g.configure.runtime ? g.configure.runtime : {};
8
8
  T.style, T.class;
9
- const C = t(true), b = t(null);
9
+ const b = t(true), C = t(null);
10
10
  let m = null;
11
11
  function E(e3) {
12
- s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
12
+ g.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? g.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : g.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
13
13
  }
14
14
  return n(() => {
15
15
  m && clearTimeout(m);
16
16
  }), f2({ refresh: function(e3, t2, n2, u2) {
17
- if (g && "list" === g) return b.value.refresh(e3, t2, n2, u2);
17
+ if (s && "list" === s) return C.value.refresh(e3, t2, n2, u2);
18
18
  }, createRow: function() {
19
- return b.value.createRow();
19
+ return C.value.createRow();
20
20
  }, clearSelections: function() {
21
- return b.value.clearSelections();
21
+ return C.value.clearSelections();
22
22
  }, getSelections: function() {
23
- return b.value.getSelections();
23
+ return C.value.getSelections();
24
24
  }, getSelectionIds: function() {
25
- return b.value.getSelectionIds();
25
+ return C.value.getSelectionIds();
26
26
  }, getTableConfigure: function() {
27
- return b.value.getTableConfigure();
27
+ return C.value.getTableConfigure();
28
28
  }, isDeleteChange: function(e3) {
29
- g && "list" === g && b.value.isDeleteChange(e3);
29
+ s && "list" === s && C.value.isDeleteChange(e3);
30
30
  }, validatorSunTableListData: function() {
31
- if (g && "form" === g) return b.value.validatorSunTableListData();
31
+ if (s && "form" === s) return C.value.validatorSunTableListData();
32
32
  }, showMobileSearch: function() {
33
- b.value.showMobileSearch();
33
+ C.value.showMobileSearch();
34
34
  }, getTableSelectOptions: function() {
35
- if (b.value) return b.value.getTableSelectOptions();
35
+ if (C.value) return C.value.getTableSelectOptions();
36
36
  }, dynamicControlTableEdit: function(e3, t2, n2) {
37
- b.value && b.value.dynamicControlTableEdit(e3, t2, n2);
37
+ C.value && C.value.dynamicControlTableEdit(e3, t2, n2);
38
38
  }, getTableUuid: function() {
39
- return s.configure.uuid;
39
+ return g.configure.uuid;
40
40
  }, doLayout: function(e3) {
41
- b.value && b.value.doLayout(e3);
41
+ C.value && C.value.doLayout(e3);
42
42
  }, changeOperationAddState: function(e3) {
43
- b.value && b.value.changeOperationAddState(e3);
43
+ C.value && C.value.changeOperationAddState(e3);
44
44
  }, scrollTo: function(e3, t2) {
45
45
  var _a;
46
- (_a = b.value) == null ? void 0 : _a.scrollTo(e3, t2);
46
+ (_a = C.value) == null ? void 0 : _a.scrollTo(e3, t2);
47
47
  }, setScrollTop: function(e3) {
48
48
  var _a;
49
- (_a = b.value) == null ? void 0 : _a.setScrollTop(e3);
49
+ (_a = C.value) == null ? void 0 : _a.setScrollTop(e3);
50
50
  }, setScrollLeft: function(e3) {
51
51
  var _a;
52
- (_a = b.value) == null ? void 0 : _a.setScrollLeft(e3);
52
+ (_a = C.value) == null ? void 0 : _a.setScrollLeft(e3);
53
53
  }, getSuperGridRef: function() {
54
54
  var _a;
55
- return (_a = b.value) == null ? void 0 : _a.getSuperGridRef();
55
+ return (_a = C.value) == null ? void 0 : _a.getSuperGridRef();
56
56
  }, getSuperGridTableRef: function() {
57
57
  var _a;
58
- return (_a = b.value) == null ? void 0 : _a.getSuperGridTableRef();
58
+ return (_a = C.value) == null ? void 0 : _a.getSuperGridTableRef();
59
59
  }, setCurrentRowIndex: function(e3) {
60
60
  var _a;
61
- (_a = b.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
61
+ (_a = C.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
62
62
  }, setScrollTopByRowIndex: function(e3) {
63
63
  var _a;
64
- (_a = b.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
64
+ (_a = C.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
65
65
  }, reloadSubTable: function() {
66
- C.value = false, m = setTimeout(() => {
67
- C.value = true;
66
+ b.value = false, m = setTimeout(() => {
67
+ b.value = true;
68
68
  }, 10);
69
- } }), (e3, t2) => (o(), u("div", null, [r(g) && "form" === r(g) && C.value ? (o(), l(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: p.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? a("", true) : (o(), l(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: p.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
69
+ }, getTableData: function() {
70
+ var _a;
71
+ return (_a = C.value) == null ? void 0 : _a.getTableData();
72
+ } }), (e3, t2) => (o(), u("div", null, [r(s) && "form" === r(s) && b.value ? (o(), l(i, { key: 0, ref_key: "gridRef", ref: C, pageContext: e3.pageContext, configure: p.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(s) && "form" === r(s) ? a("", true) : (o(), l(c, { key: 1, ref_key: "gridRef", ref: C, pageContext: e3.pageContext, configure: p.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
70
73
  } });
71
74
  export {
72
75
  f as default
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as g, unref as m, withCtx as d, resolveDynamicComponent as f, toDisplayString as v } from "vue";
1
+ import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as g, normalizeClass as c, unref as m, withCtx as f, resolveDynamicComponent as d, toDisplayString as v } from "vue";
2
2
  import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
3
3
  import { setVariableValue as x, getVariableValue as y, formatVariableValue as b, getFormPropName as h, setVariableValueWithProp as j } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as R, handleEvent as k } from "../../../../utils/events/event-util.js";
@@ -24,7 +24,7 @@ const F = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
24
24
  j(z, e3, t2);
25
25
  }
26
26
  function N(e3) {
27
- U.isHasFieldAuthPermission(q.configure) ? V(q.pageContext, e3) : console.error("没有该字段的权限,dynamicFields=", G ? G.join(".") : "");
27
+ U.isHasFieldAuthPermission(q.configure) && V(q.pageContext, e3);
28
28
  }
29
29
  function Q() {
30
30
  const e3 = q.pageContext.tableUuids;
@@ -43,7 +43,7 @@ const F = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
43
43
  const t2 = e3.result;
44
44
  x(z, G, t2);
45
45
  }), S.$on(X.value + "-pickFileDone", (e3) => {
46
- X.value, Y.value.pickFileDone(e3);
46
+ Y.value.pickFileDone(e3);
47
47
  }), n(() => {
48
48
  const e3 = H.value;
49
49
  R(e3, q.pageContext, q.configure, { formItemRef: Z.value, componentRef: Y.value, titleRef: ee.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
@@ -54,7 +54,7 @@ const F = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
54
54
  return Y.value;
55
55
  } }), (e3, t2) => {
56
56
  const o2 = u("el-form-item");
57
- return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: Z, required: W.value.required, class: g(m(A)), "label-width": W.value.labelWidth, style: c(m(I)) }, { label: d(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: ee, style: c({ ...m(B) }) }, v(m(w)(W.value.title)), 5)) : s("", true)]), default: d(() => [L.value ? (p(), r("div", F, [(p(), l(f(L.value), { ref_key: "customRef", ref: Y, size: W.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[1] || (t2[1] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : L.value ? (p(), r("div", O, [(p(), l(f(L.value), { ref_key: "customRef", ref: Y, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[3] || (t2[3] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
57
+ return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: Z, required: W.value.required, class: c(m(A)), "label-width": W.value.labelWidth, style: g(m(I)) }, { label: f(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: ee, style: g({ ...m(B) }) }, v(m(w)(W.value.title)), 5)) : s("", true)]), default: f(() => [L.value ? (p(), r("div", F, [(p(), l(d(L.value), { ref_key: "customRef", ref: Y, size: W.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[1] || (t2[1] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : L.value ? (p(), r("div", O, [(p(), l(d(L.value), { ref_key: "customRef", ref: Y, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[3] || (t2[3] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
58
58
  };
59
59
  } });
60
60
  export {
@@ -7,27 +7,27 @@ import Y from "../common/title-suffix-element.vue.js";
7
7
  import R from "dayjs";
8
8
  import { $t as _ } from "../../../../utils/i18n-util.js";
9
9
  const z = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
10
- const z2 = e2, P = z2.pageContext.entity ? z2.pageContext.entity : {}, S = z2.configure.runtime ? z2.configure.runtime : {}, w = S.style, A = S.class, D = S.headerStyle, $ = S.titleExceedStyle, q = a(S.props ? S.props : {});
11
- let I = h(z2.pageContext, z2.configure, q.value.prop);
12
- if (z2.pageContext.modelFieldsMap && I && I.length > 0 && "data" === I[0]) {
13
- const e3 = C(I, z2.pageContext);
10
+ const z2 = e2, P = z2.pageContext.entity ? z2.pageContext.entity : {}, S = z2.configure.runtime ? z2.configure.runtime : {}, w = S.style, A = S.class, D = S.headerStyle, q = S.titleExceedStyle, I = a(S.props ? S.props : {});
11
+ let M = h(z2.pageContext, z2.configure, I.value.prop);
12
+ if (z2.pageContext.modelFieldsMap && M && M.length > 0 && "data" === M[0]) {
13
+ const e3 = C(M, z2.pageContext);
14
14
  e3 && function(e4) {
15
15
  const a2 = e4.dataType;
16
- k(a2) && ("year" === q.value.dateType && "YYYY" === q.value.valueFormat || "month" === q.value.dateType && "YYYY-MM" === q.value.valueFormat) && (q.value.valueFormat = "x");
16
+ k(a2) && ("year" === I.value.dateType && "YYYY" === I.value.valueFormat || "month" === I.value.dateType && "YYYY-MM" === I.value.valueFormat) && (I.value.valueFormat = "x");
17
17
  }(e3);
18
18
  }
19
- let M = null, B = false;
20
- if (q.value.dateType && q.value.dateType.includes("range")) {
21
- B = true;
22
- let e3 = q.value.prop2;
19
+ let B = null, N = false;
20
+ if (I.value.dateType && I.value.dateType.includes("range")) {
21
+ N = true;
22
+ let e3 = I.value.prop2;
23
23
  e3 && e3.startsWith("${") || (e3 = "${page." + z2.configure.uuid + "-2}");
24
24
  const a2 = x(P, e3, null);
25
- if (e3 = e3.substring(2, e3.length - 1), M = e3.split("."), !(a2 || P.data && (P.data.id || P.data.ID)) && q.value.defaultValue2) {
26
- const e4 = x(P, q.value.defaultValue2);
27
- b(P, M, e4);
25
+ if (e3 = e3.substring(2, e3.length - 1), B = e3.split("."), !(a2 || P.data && (P.data.id || P.data.ID)) && I.value.defaultValue2) {
26
+ const e4 = x(P, I.value.defaultValue2);
27
+ b(P, B, e4);
28
28
  }
29
29
  }
30
- const N = a(null), U = a(null), W = a(null);
30
+ const U = a(null), W = a(null), $ = a(null);
31
31
  function E(e3, a2) {
32
32
  if (!e3) return e3;
33
33
  if (a2) {
@@ -37,7 +37,7 @@ const z = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
37
37
  let t2 = null;
38
38
  return t2 = "x" === a2 ? l2.toDate().getTime() : R(e3).format(a2), t2;
39
39
  } catch (a3) {
40
- return console.error("日期值格式化错误", a3), console.error(`value: ${e3} ,valueFormat: ${q.value.valueFormat}`), e3;
40
+ return e3;
41
41
  }
42
42
  }
43
43
  return e3;
@@ -45,30 +45,30 @@ const z = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
45
45
  if (l(() => {
46
46
  t(() => {
47
47
  const e3 = O.value;
48
- T(e3, z2.pageContext, z2.configure, { formItemRef: N.value, componentRef: U.value, titleRef: W.value, value: e3, entity: z2.pageContext.entity.data, pageData: z2.pageContext.entity.page });
48
+ T(e3, z2.pageContext, z2.configure, { formItemRef: U.value, componentRef: W.value, titleRef: $.value, value: e3, entity: z2.pageContext.entity.data, pageData: z2.pageContext.entity.page });
49
49
  });
50
- }), I) {
51
- const e3 = F(P, I), a2 = E(e3, q.value.valueFormat);
52
- e3 !== a2 && b(P, I, a2);
53
- }
54
- if (M) {
55
- const e3 = F(P, M), a2 = E(e3, q.value.valueFormat);
50
+ }), M) {
51
+ const e3 = F(P, M), a2 = E(e3, I.value.valueFormat);
56
52
  e3 !== a2 && b(P, M, a2);
57
53
  }
54
+ if (B) {
55
+ const e3 = F(P, B), a2 = E(e3, I.value.valueFormat);
56
+ e3 !== a2 && b(P, B, a2);
57
+ }
58
58
  const O = o({ get() {
59
- if (B) {
59
+ if (N) {
60
60
  const e3 = [];
61
- let a2 = F(P, I);
62
- e3.push(E(a2, q.value.valueFormat));
63
- let l2 = F(P, M);
64
- return e3.push(E(l2, q.value.valueFormat)), e3;
61
+ let a2 = F(P, M);
62
+ e3.push(E(a2, I.value.valueFormat));
63
+ let l2 = F(P, B);
64
+ return e3.push(E(l2, I.value.valueFormat)), e3;
65
65
  }
66
- return E(F(P, I), q.value.valueFormat);
66
+ return E(F(P, M), I.value.valueFormat);
67
67
  }, set(e3) {
68
- B ? Array.isArray(e3) ? (b(P, I, e3[0]), b(P, M, e3[1])) : null === e3 && (b(P, I, null), b(P, M, null)) : b(P, I, e3);
69
- } }), G = a(y(q.value.dateScopeDetails, q.value.sourceType, q.value.dateType));
70
- if (q.value.shortcutsFunc) {
71
- const e3 = V(z2.pageContext, q.value.shortcutsFunc);
68
+ N ? Array.isArray(e3) ? (b(P, M, e3[0]), b(P, B, e3[1])) : null === e3 && (b(P, M, null), b(P, B, null)) : b(P, M, e3);
69
+ } }), G = a(y(I.value.dateScopeDetails, I.value.sourceType, I.value.dateType));
70
+ if (I.value.shortcutsFunc) {
71
+ const e3 = V(z2.pageContext, I.value.shortcutsFunc);
72
72
  if (e3) {
73
73
  let a2 = e3.apply(e3, [{ pageContext: z2.pageContext, configureObj: z2.configure }]);
74
74
  if (a2) {
@@ -79,7 +79,7 @@ const z = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
79
79
  }
80
80
  return (e3, a2) => {
81
81
  const l2 = r("el-time-picker"), t2 = r("el-date-picker"), o2 = r("el-form-item");
82
- return n(), u(o2, { ref_key: "formItemRef", ref: N, required: q.value.required, class: p(s(A)), "label-width": q.value.labelWidth, style: i(s(w)) }, { label: c(() => [q.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: W, style: i({ ...s(D), ...s($) }) }, [q.value.prefixType ? (n(), u(Y, { key: 0, pageContext: e3.pageContext, property: q.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(_)(q.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == q.value.dateType || "timerange" == q.value.dateType ? (n(), u(l2, { key: 0, ref_key: "componentRef", ref: U, "is-range": "timerange" == q.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: q.value.clearable, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, "unlink-panels": true, format: q.value.format, "value-format": q.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => O.value = e4), shortcuts: G.value, type: q.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (n(), u(t2, { key: 1, ref_key: "componentRef", ref: U, clearable: q.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => O.value = e4), shortcuts: G.value, type: q.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
82
+ return n(), u(o2, { ref_key: "formItemRef", ref: U, required: I.value.required, class: p(s(A)), "label-width": I.value.labelWidth, style: i(s(w)) }, { label: c(() => [I.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: $, style: i({ ...s(D), ...s(q) }) }, [I.value.prefixType ? (n(), u(Y, { key: 0, pageContext: e3.pageContext, property: I.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(_)(I.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == I.value.dateType || "timerange" == I.value.dateType ? (n(), u(l2, { key: 0, ref_key: "componentRef", ref: W, "is-range": "timerange" == I.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: I.value.clearable, disabled: "disabled" === I.value.state, readonly: "readonly" === I.value.state, size: I.value.size, placeholder: I.value.placeholder, "start-placeholder": I.value.placeholder, "end-placeholder": I.value.endPlaceholder ? I.value.endPlaceholder : I.value.placeholder, "unlink-panels": true, format: I.value.format, "value-format": I.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => O.value = e4), shortcuts: G.value, type: I.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (n(), u(t2, { key: 1, ref_key: "componentRef", ref: W, clearable: I.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === I.value.state, readonly: "readonly" === I.value.state, size: I.value.size, placeholder: I.value.placeholder, "start-placeholder": I.value.placeholder, "end-placeholder": I.value.endPlaceholder ? I.value.endPlaceholder : I.value.placeholder, format: I.value.format, "value-format": I.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => O.value = e4), shortcuts: G.value, type: I.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
83
83
  };
84
84
  } });
85
85
  export {
@@ -52,7 +52,7 @@ const P = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
52
52
  }, M = l(null), Q = l(null);
53
53
  return o(() => {
54
54
  x.$on(q.value + "-pickFileDone", (e3) => {
55
- q.value, $.value.pickFileDone(e3);
55
+ $.value.pickFileDone(e3);
56
56
  }), a(() => {
57
57
  const e3 = h(D, O), l2 = { showName: h(D, S), serverPath: e3 };
58
58
  g(l2, P2.pageContext, P2.configure, { formItemRef: M.value, componentRef: $.value, titleRef: Q.value, value: l2, entity: P2.pageContext.entity.data, pageData: P2.pageContext.entity.page });