super-page-runtime 2.3.17-sit2 → 2.3.17-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.
@@ -7,20 +7,21 @@ import { dynamicControlTableEdit as f, disabledAllFields as p, updateFormItemEdi
7
7
  import { deepCopy as g, getBaseUrl as y } from "../common-util.js";
8
8
  import { replacePrefix as b, isMobileBrowser as h } from "agilebuilder-ui/src/utils/common-util";
9
9
  import { getFormModelFields as E, getModelFields as P } from "../page-init-util.js";
10
- import { getCustomFunc as k } from "../events/event-util.js";
11
- import { isHasFieldPermissionAuth as C } from "../table-utils.js";
10
+ import { getCustomFunc as C } from "../events/event-util.js";
11
+ import { isHasFieldPermissionAuth as k } from "../table-utils.js";
12
+ import "dayjs";
12
13
  const v = { showElement: function(e2, t2, n2) {
13
- n2 ? O(e2, "showElement", t2) : t2.forEach((t3) => {
14
+ n2 ? V(e2, "showElement", t2) : t2.forEach((t3) => {
14
15
  const n3 = s(e2, t3);
15
16
  n3 && n3.show();
16
17
  });
17
18
  }, hideElement: function(e2, t2, n2) {
18
- n2 ? O(e2, "hideElement", t2) : t2.forEach((t3) => {
19
+ n2 ? V(e2, "hideElement", t2) : t2.forEach((t3) => {
19
20
  const n3 = s(e2, t3);
20
21
  n3 && n3.hide();
21
22
  });
22
23
  }, enableElement: function(e2, t2, n2) {
23
- n2 ? O(e2, "enableElement", t2) : t2.forEach((t3) => {
24
+ n2 ? V(e2, "enableElement", t2) : t2.forEach((t3) => {
24
25
  const n3 = s(e2, t3);
25
26
  if (n3) {
26
27
  const e3 = n3.getConfigure();
@@ -28,7 +29,7 @@ const v = { showElement: function(e2, t2, n2) {
28
29
  }
29
30
  });
30
31
  }, disableElement: function(e2, t2, n2) {
31
- n2 ? O(e2, "disableElement", t2) : t2.forEach((t3) => {
32
+ n2 ? V(e2, "disableElement", t2) : t2.forEach((t3) => {
32
33
  const n3 = s(e2, t3);
33
34
  if (n3) {
34
35
  const e3 = n3.getConfigure();
@@ -48,7 +49,7 @@ const v = { showElement: function(e2, t2, n2) {
48
49
  o(e2.entity, i2.startsWith("${") ? i2 : "${" + t2 + "." + i2 + "}", n2[i2]);
49
50
  });
50
51
  }, dynamicControlFormEdit: function(e2, t2, n2) {
51
- n2 ? O(e2, "dynamicControlFormEdit", t2) : d(e2, t2);
52
+ n2 ? V(e2, "dynamicControlFormEdit", t2) : d(e2, t2);
52
53
  }, disabledAllFields(e2) {
53
54
  p(e2);
54
55
  }, dynamicControlTableEdit(e2, t2, n2) {
@@ -96,11 +97,11 @@ const v = { showElement: function(e2, t2, n2) {
96
97
  } else if (e3.name && ("select" === e3.name && ((_j = (_i = e3.props) == null ? void 0 : _i.base) == null ? void 0 : _j.multiple) || "checkbox" === e3.name)) {
97
98
  const t2 = E(o2, e3), a2 = n(r2, t2);
98
99
  if (a2) {
99
- const e4 = V(a2.split(","), s3);
100
+ const e4 = j(a2.split(","), s3);
100
101
  i(r2, t2, e4);
101
102
  }
102
103
  } else {
103
- const t2 = E(o2, e3), a2 = V(n(r2, t2), s3);
104
+ const t2 = E(o2, e3), a2 = j(n(r2, t2), s3);
104
105
  i(r2, t2, a2);
105
106
  }
106
107
  }
@@ -111,41 +112,53 @@ const v = { showElement: function(e2, t2, n2) {
111
112
  if (e2.indexOf("__") > 0 && (t2 = e2.substring(e2.lastIndexOf("__") + 2)), t2) {
112
113
  const i2 = a(o2, t2);
113
114
  if (i2) {
114
- const t3 = i2.getConfigure(), o3 = t3.code ? t3.code : e2, a2 = P(t3, o3), s3 = n(r2, a2);
115
- T(i2.getTableSelectOptions(e2), s3);
115
+ const t3 = i2.getConfigure(), o3 = t3.code ? t3.code : e2, a2 = P(t3, o3), s3 = n(r2, a2), l3 = i2.getTableSelectOptions(e2), c3 = i2.getColumns(), u2 = {}, m2 = {};
116
+ c3 && c3.length > 0 && c3.forEach((e3) => {
117
+ "DATE" === e3.dataType && (m2[e3.prop] = e3);
118
+ }), u2.formatDateColumns = m2, T(l3, s3, u2, i2);
116
119
  }
117
120
  }
118
121
  }
119
122
  return r2.data;
120
- }, getFormData: (e2, t2) => c(e2, t2), getCustomFunc: (e2, t2) => k(e2, t2), replaceUrlPrefix: (e2) => b(e2), isHasFieldAuthPermission: (e2) => {
123
+ }, getFormData: (e2, t2) => c(e2, t2), getCustomFunc: (e2, t2) => C(e2, t2), replaceUrlPrefix: (e2) => b(e2), isHasFieldAuthPermission: (e2) => {
121
124
  var _a, _b, _c, _d;
122
125
  return !(void 0 !== ((_b = (_a = e2 == null ? void 0 : e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isHasFieldAuthPermission) && !((_d = (_c = e2 == null ? void 0 : e2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.isHasFieldAuthPermission));
123
126
  }, isHasFieldAuth(e2, t2) {
124
- C(e2, null, t2);
127
+ k(e2, null, t2);
125
128
  }, isHasFieldAuthWithTable(e2, t2, n2) {
126
- C(e2, t2, n2);
129
+ k(e2, t2, n2);
127
130
  } };
128
- function T(e2, t2) {
129
- e2 && t2 && t2.forEach((t3) => {
130
- Object.keys(e2).forEach((n2) => {
131
- const i2 = t3[n2], o2 = e2[n2], a2 = o2.options, s2 = o2.column;
132
- let r2;
133
- if (s2 && s2.componentType && ("multiselect" === s2.componentType || "checkbox" === s2.componentType)) {
134
- if (i2) {
135
- r2 = V(i2.split(","), a2);
136
- }
137
- } else r2 = V(i2, a2);
138
- t3[n2] = r2;
131
+ function T(e2, t2, n2, i2) {
132
+ if (e2 && t2) {
133
+ const o2 = i2.getSuperGridRef();
134
+ t2.forEach((t3) => {
135
+ if (n2 == null ? void 0 : n2.formatDateColumns) {
136
+ const e3 = n2.formatDateColumns;
137
+ Object.keys(e3).forEach((n3) => {
138
+ const i3 = e3[n3];
139
+ t3[n3] && (t3[n3] = o2.rowDoFormat(i3, t3[n3]));
140
+ });
141
+ }
142
+ Object.keys(e2).forEach((n3) => {
143
+ const i3 = t3[n3], o3 = e2[n3], a2 = o3.options, s2 = o3.column;
144
+ let r2;
145
+ if (s2 && s2.componentType && ("multiselect" === s2.componentType || "checkbox" === s2.componentType)) {
146
+ if (i3) {
147
+ r2 = j(i3.split(","), a2);
148
+ }
149
+ } else r2 = j(i3, a2);
150
+ t3[n3] = r2;
151
+ });
139
152
  });
140
- });
153
+ }
141
154
  }
142
- function V(e2, t2) {
155
+ function j(e2, t2) {
143
156
  let n2;
144
157
  return null != e2 && t2 && (Array.isArray(e2) ? (n2 = "", e2.forEach((i2) => {
145
- n2 = n2 + j(e2, t2) + ",";
146
- }), n2.indexOf(",") > 0 && (n2 = n2.substring(0, n2.lastIndexOf(",")))) : (n2 = e2, n2 = j(e2, t2))), n2;
158
+ n2 = n2 + O(e2, t2) + ",";
159
+ }), n2.indexOf(",") > 0 && (n2 = n2.substring(0, n2.lastIndexOf(",")))) : (n2 = e2, n2 = O(e2, t2))), n2;
147
160
  }
148
- function j(e2, t2) {
161
+ function O(e2, t2) {
149
162
  let n2 = e2;
150
163
  if (null != e2 && t2) for (let i2 = 0; i2 < t2.length; i2++) {
151
164
  const o2 = t2[i2].value, a2 = t2[i2].label ? t2[i2].label : t2[i2].name;
@@ -156,7 +169,7 @@ function j(e2, t2) {
156
169
  }
157
170
  return n2;
158
171
  }
159
- function O(e2, t2, n2) {
172
+ function V(e2, t2, n2) {
160
173
  e2.initInfo || (e2.initInfo = {}), e2.initInfo[t2] = n2;
161
174
  }
162
175
  export {
@@ -386,7 +386,8 @@ function L(e2, s2, o2, a2) {
386
386
  });
387
387
  }(r2, f2, b2, e2.isTest), k2 && k2.then(() => {
388
388
  y(e2, s2);
389
- }).catch((e3) => {
389
+ }).catch((t2) => {
390
+ window.$message.error("导出失败..."), y(e2, s2);
390
391
  });
391
392
  }
392
393
  function B() {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as e, ref as t, onMounted as i, onUnmounted as o, resolveComponent as l, createBlock as a, openBlock as r, withCtx as n, createElementVNode as u, createVNode as s, createTextVNode as p, createCommentVNode as c, createElementBlock as g, Fragment as m, renderList as d } from "vue";
2
2
  import f from "../../object-render.vue.js";
3
- import { updateChartDatasources as v, getValueFromVariable as h } from "../../../../utils/page-helper-util.js";
4
- import { ElLoading as y, ElMessage as C } from "element-plus";
3
+ import { updateChartDatasources as v, getValueFromVariable as y } from "../../../../utils/page-helper-util.js";
4
+ import { ElLoading as h, ElMessage as C } from "element-plus";
5
5
  import b from "agilebuilder-ui/src/utils/request";
6
6
  import "agilebuilder-ui/src/utils/common-util";
7
7
  import "agilebuilder-ui/src/utils/util";
@@ -15,13 +15,14 @@ import "vue-i18n";
15
15
  import "agilebuilder-ui/src/utils/auth";
16
16
  import "axios";
17
17
  import "../../../../utils/events/print-label.js";
18
+ import "dayjs";
18
19
  const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "dialogBody" }, O = { class: "dialog-footer" }, x = e({ __name: "common-homepage-search", props: { configure: { type: Object, required: true }, pageContext: { type: Object, default: () => {
19
20
  } } }, setup(e2, { expose: x2 }) {
20
- const N = e2, _ = t(false), J = t({}), j = t(0);
21
+ const N = e2, _ = t(false), j = t({}), J = t(0);
21
22
  let I;
22
23
  i(() => {
23
24
  I = setTimeout(() => {
24
- J.value = JSON.parse(JSON.stringify(N.pageContext.entity));
25
+ j.value = JSON.parse(JSON.stringify(N.pageContext.entity));
25
26
  }, 200);
26
27
  }), o(() => {
27
28
  I && clearTimeout(I);
@@ -29,7 +30,7 @@ const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
29
30
  const k = t([]), w = () => {
30
31
  _.value = false;
31
32
  }, T = () => {
32
- const e3 = y.service({ lock: true, text: "Loading", background: "rgba(0, 0, 0, 0.7)" });
33
+ const e3 = h.service({ lock: true, text: "Loading", background: "rgba(0, 0, 0, 0.7)" });
33
34
  v(N.pageContext, N.pageContext.initChartServiceConfigs, null, false).then(() => {
34
35
  _.value = false;
35
36
  }).finally(() => {
@@ -37,26 +38,26 @@ const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
37
38
  });
38
39
  };
39
40
  function H() {
40
- N.pageContext.entity = JSON.parse(JSON.stringify(J.value)), j.value++;
41
+ N.pageContext.entity = JSON.parse(JSON.stringify(j.value)), J.value++;
41
42
  }
42
43
  function A() {
43
44
  const e3 = {};
44
45
  N.pageContext.variables.forEach((t3) => {
45
46
  const i3 = "${page." + t3.name + "}";
46
- e3[i3] = h(N.pageContext.entity, i3, null);
47
+ e3[i3] = y(N.pageContext.entity, i3, null);
47
48
  });
48
49
  let t2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS"), i2 = {};
49
50
  t2 && (i2 = JSON.parse(t2)), i2[N.configure.homeChartSettingUserId] = e3;
50
51
  const o2 = JSON.stringify(e3);
51
- window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(i2)), J.value = JSON.parse(JSON.stringify(N.pageContext.entity)), b.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: N.configure.homeChartSettingUserId, searchConditionsJson: o2 }).then((e4) => {
52
+ window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(i2)), j.value = JSON.parse(JSON.stringify(N.pageContext.entity)), b.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: N.configure.homeChartSettingUserId, searchConditionsJson: o2 }).then((e4) => {
52
53
  C.success("保存成功"), T();
53
54
  });
54
55
  }
55
56
  return x2({ openSearch: () => {
56
57
  _.value = true, k.value = N.configure.pushHomepage.searchConditions;
57
58
  } }), (t2, i2) => {
58
- const o2 = l("el-empty"), v2 = l("el-form"), h2 = l("el-button"), y2 = l("el-dialog");
59
- return r(), a(y2, { modelValue: _.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(o2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: j.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(h2, { type: "primary", onClick: T }, { default: n(() => i2[1] || (i2[1] = [p(" 确定 ")])), _: 1 }), s(h2, { type: "default", onClick: H }, { default: n(() => i2[2] || (i2[2] = [p("重置")])), _: 1 }), s(h2, { type: "primary", onClick: A }, { default: n(() => i2[3] || (i2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
59
+ const o2 = l("el-empty"), v2 = l("el-form"), y2 = l("el-button"), h2 = l("el-dialog");
60
+ return r(), a(h2, { modelValue: _.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(o2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: J.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(y2, { type: "primary", onClick: T }, { default: n(() => i2[1] || (i2[1] = [p(" 确定 ")])), _: 1 }), s(y2, { type: "default", onClick: H }, { default: n(() => i2[2] || (i2[2] = [p("重置")])), _: 1 }), s(y2, { type: "primary", onClick: A }, { default: n(() => i2[3] || (i2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
60
61
  };
61
62
  } });
62
63
  export {
@@ -1,7 +1,7 @@
1
- import r from "./card-runtime.vue2.js";
1
+ import e from "./card-runtime.vue2.js";
2
2
  /* empty css */
3
- import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = e(r, [["__scopeId", "data-v-26138226"]]);
3
+ import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const t = r(e, [["__scopeId", "data-v-4e203ead"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -368,6 +368,9 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
368
368
  }, handleSearch: function(e3, t2) {
369
369
  var _a;
370
370
  return (_a = ue.value) == null ? void 0 : _a.handleSearch(e3, t2);
371
+ }, getColumns: function() {
372
+ var _a;
373
+ return (_a = ue.value) == null ? void 0 : _a.getColumns();
371
374
  } }), (e3, t2) => {
372
375
  const n2 = a("super-grid");
373
376
  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), isDialog: u(Y).isDialog, 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", "isDialog", "onNewOpenGridDialog"])], 8, z);
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as l, createElementBlock as a, openBlock as i, createBlock as u, createCommentVNode as r, unref as s } from "vue";
2
2
  import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as b, cellDblClick as v, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
3
- import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as D } from "../../../../utils/page-helper-util.js";
4
- import { getModelFields as C, getDefaultValue as y } from "../../../../utils/page-init-util.js";
3
+ import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
4
+ import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
5
5
  import P from "../../../../utils/eventBus.js";
6
6
  import { popupToPage as R, getOperationButtons as I } from "../../../../utils/table-utils.js";
7
7
  import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
@@ -14,7 +14,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
14
14
  const N = E.configure.runtime ? E.configure.runtime : {};
15
15
  L.isTest ? N.value = E.configure.runtime ? E.configure.runtime : {} : L.tableRuntimes && L.tableRuntimes[B.uuid] && (B = JSON.parse(L.tableRuntimes[B.uuid].configure), N.value = B.runtime ? B.runtime : {});
16
16
  const G = O(L.code, L.version, B.uuid), H = L.entity.data, V = B.code ? B.code : G, U = k(L), z = N && N.events ? N.events : [], q = t([]), J = L.superGridItems, K = J ? J[B.uuid] : null, Q = N.style, W = N.class, X = E.pageContext.entity ? E.pageContext.entity : {};
17
- let Y = C(E.configure, V), Z = _(L.backendUrl, L.isTest);
17
+ let Y = D(E.configure, V), Z = _(L.backendUrl, L.isTest);
18
18
  Z || (Z = window.$vueApp.config.globalProperties.baseURL);
19
19
  const ee = t(false);
20
20
  let te = t(0);
@@ -37,7 +37,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
37
37
  e4 ? e4.push("operation") : e4 = ["operation"], oe.value.hiddenColumns = e4;
38
38
  }
39
39
  oe.value.showOperationButton = !(!B.props || !B.props.base) && B.props.base.showOperation, oe.value.isPdfEditor = false, oe.value.tableRecordMaxNum = B.props && B.props.otherSettings ? B.props.otherSettings.tableRecordMaxNum : null;
40
- let t2 = D(L, B);
40
+ let t2 = C(L, B);
41
41
  t2 && t2.fixHeight && (oe.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (oe.value.formSetMaxHeight = t2.maxHeight), oe.value.validateEitConditions = Ge;
42
42
  }
43
43
  function re() {
@@ -84,11 +84,11 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
84
84
  const n2 = function() {
85
85
  let e5 = [], t3 = w(E.pageContext, B.props.base.showOperationCondition);
86
86
  if (t3 && Se(null, null, null, null, null, true, "canAdd")) {
87
- const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: we };
87
+ const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we };
88
88
  e5.push(t4);
89
89
  }
90
90
  if (t3 && Te(null, null, null, null, null, true)) {
91
- const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: xe };
91
+ const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe };
92
92
  e5.push(t4);
93
93
  }
94
94
  return I(L, B, e5, me), e5;
@@ -178,10 +178,10 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
178
178
  let i2 = Te(0, 0, n2, 0, 0, a2);
179
179
  return true === i2 && (i2 = w(E.pageContext, B.props.base.showDeleteBtnCondition, n2)), i2;
180
180
  }
181
- function De(e3, t2, n2, o2, l2) {
181
+ function Ce(e3, t2, n2, o2, l2) {
182
182
  ae.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 });
183
183
  }
184
- function Ce(e3, t2, n2, o2, l2) {
184
+ function De(e3, t2, n2, o2, l2) {
185
185
  ae.value.deleteRow(l2, G, false);
186
186
  }
187
187
  function ye(e3) {
@@ -291,6 +291,9 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
291
291
  }, addRequiredClass: function(e3, t2, n2) {
292
292
  var _a2;
293
293
  (_a2 = ae.value) == null ? void 0 : _a2.addRequiredClass(e3, G, t2, n2);
294
+ }, getColumns: function() {
295
+ var _a2;
296
+ return (_a2 = ae.value) == null ? void 0 : _a2.getColumns();
294
297
  } }), (e3, t2) => {
295
298
  const n2 = l("super-grid");
296
299
  return i(), a("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(L).isDialog, onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Ae, onCellDblclick: Fe, onRowClick: $e, onRowDblclick: je, onHeaderClick: Ee, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: Le }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as a, createBlock as o, createCommentVNode as l, unref as r } from "vue";
1
+ import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as o, createBlock as a, createCommentVNode as l, unref as r } from "vue";
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 }) {
@@ -75,7 +75,10 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
75
75
  }, handleSearch: function(e3, t2) {
76
76
  var _a;
77
77
  (_a = b.value) == null ? void 0 : _a.handleSearch(e3, t2);
78
- } }), (e3, t2) => (a(), u("div", null, [r(g) && "form" === r(g) && C.value ? (a(), o(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (a(), o(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
78
+ }, getColumns: function() {
79
+ var _a;
80
+ return (_a = b.value) == null ? void 0 : _a.getColumns();
81
+ } }), (e3, t2) => (o(), u("div", null, [r(g) && "form" === r(g) && C.value ? (o(), a(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (o(), a(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
79
82
  } });
80
83
  export {
81
84
  f as default
@@ -8,9 +8,9 @@ import { addRequiredClassUtil as M } from "../../../../utils/common-util.js";
8
8
  import { CopyDocument as q } from "@element-plus/icons-vue";
9
9
  import z from "clipboard";
10
10
  import { ElMessage as E } from "element-plus";
11
- import { useI18n as P } from "vue-i18n";
12
- const D = { style: { "padding-left": "5px" } }, O = { style: { float: "left" } }, W = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, B = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
13
- const { t: F } = P(), U = e2, $ = t(null), G = U.pageContext.entity ? U.pageContext.entity : {};
11
+ import { useI18n as O } from "vue-i18n";
12
+ const P = { style: { "padding-left": "5px" } }, D = { style: { float: "left" } }, W = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, B = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
13
+ const { t: F } = O(), U = e2, $ = t(null), G = U.pageContext.entity ? U.pageContext.entity : {};
14
14
  let H = j(U.pageContext, U.configure);
15
15
  const J = U.configure.runtime ? U.configure.runtime : {}, K = J.style, L = J.class, N = J.headerStyle, Q = J.titleExceedStyle, X = t(J.props ? J.props : {});
16
16
  let Y = [];
@@ -111,9 +111,11 @@ const D = { style: { "padding-left": "5px" } }, O = { style: { float: "left" } }
111
111
  le.value = e3 || [];
112
112
  }, addRequiredClass: function() {
113
113
  $.value = M();
114
- }, getSelectItemsTitle: he }), (e3, t2) => {
114
+ }, getSelectItemsTitle: he, getOptions: function() {
115
+ return le.value;
116
+ } }), (e3, t2) => {
115
117
  const l2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"), u2 = r("el-popover"), n2 = r("el-form-item");
116
- return s(), i(n2, { ref_key: "formItemRef", ref: ge, required: !!X.value.required, class: c(f(L) + ($.value ? " " + $.value : "")), "label-width": X.value.labelWidth, style: p(f(K)) }, { label: v(() => [X.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: de, style: p({ ...f(N), ...f(Q) }) }, [X.value.prefixType ? (s(), i(V, { key: 0, pageContext: e3.pageContext, property: X.value }, null, 8, ["pageContext", "property"])) : (s(), d(h, { key: 1 }, [C(b(f(I)(X.value.title)), 1)], 64))], 4)) : x("", true)]), default: v(() => [g(u2, { placement: "top", trigger: "hover" }, { reference: v(() => [g(a2, { ref_key: "componentRef", ref: me, style: { width: "100%" }, disabled: "disabled" === X.value.state, size: X.value.size, clearable: X.value.clearable, multiple: X.value.multiple, "collapse-tags": X.value.collapseTags, "collapse-tags-tooltip": X.value.collapseTagsTooltip, filterable: X.value.filterable, "allow-create": X.value.allowCreate, placeholder: X.value.placeholder, "remote-show-suffix": X.value.remoteShowSuffix, remote: X.value.remote, "remote-method": X.value.remoteMethod, loading: ae.value, onChange: X.value.changeMethod, modelValue: te.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => te.value = e4) }, { default: v(() => [(s(true), d(h, null, y(le.value, (t3) => (s(), i(o2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => f(A)(t3.value, e3.pageContext, e3.configure, "click", { values: te.value }) }, { default: v(() => [t3._description_ ? (s(), d(h, { key: 0 }, [m("span", O, b(t3.label), 1), m("span", W, b(t3._description_), 1)], 64)) : x("", 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", D, [g(l2, { id: Z }, { default: v(() => [g(f(q))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
118
+ return s(), i(n2, { ref_key: "formItemRef", ref: ge, required: !!X.value.required, class: c(f(L) + ($.value ? " " + $.value : "")), "label-width": X.value.labelWidth, style: p(f(K)) }, { label: v(() => [X.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: de, style: p({ ...f(N), ...f(Q) }) }, [X.value.prefixType ? (s(), i(V, { key: 0, pageContext: e3.pageContext, property: X.value }, null, 8, ["pageContext", "property"])) : (s(), d(h, { key: 1 }, [C(b(f(I)(X.value.title)), 1)], 64))], 4)) : x("", true)]), default: v(() => [g(u2, { placement: "top", trigger: "hover" }, { reference: v(() => [g(a2, { ref_key: "componentRef", ref: me, style: { width: "100%" }, disabled: "disabled" === X.value.state, size: X.value.size, clearable: X.value.clearable, multiple: X.value.multiple, "collapse-tags": X.value.collapseTags, "collapse-tags-tooltip": X.value.collapseTagsTooltip, filterable: X.value.filterable, "allow-create": X.value.allowCreate, placeholder: X.value.placeholder, "remote-show-suffix": X.value.remoteShowSuffix, remote: X.value.remote, "remote-method": X.value.remoteMethod, loading: ae.value, onChange: X.value.changeMethod, modelValue: te.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => te.value = e4) }, { default: v(() => [(s(true), d(h, null, y(le.value, (t3) => (s(), i(o2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => f(A)(t3.value, e3.pageContext, e3.configure, "click", { values: te.value }) }, { default: v(() => [t3._description_ ? (s(), d(h, { key: 0 }, [m("span", D, b(t3.label), 1), m("span", W, b(t3._description_), 1)], 64)) : x("", 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", P, [g(l2, { id: Z }, { default: v(() => [g(f(q))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
117
119
  };
118
120
  } });
119
121
  export {
package/dist/es/style.css CHANGED
@@ -390,10 +390,10 @@
390
390
  }
391
391
  .yx-affix .yx-affix-content.is-fixed.is-bottom[data-v-a994b02d] {
392
392
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
393
- }.yx-card-box-view-main[data-v-26138226] > .el-card__header {
393
+ }.yx-card-box-view-main[data-v-4e203ead] > .el-card__header {
394
394
  position: relative;
395
395
  }
396
- .yx-card-box-view-main .yx-card-box-view-header[data-v-26138226] {
396
+ .yx-card-box-view-main .yx-card-box-view-header[data-v-4e203ead] {
397
397
  display: flex;
398
398
  flex-direction: row;
399
399
  justify-content: space-between;
@@ -401,12 +401,12 @@
401
401
  gap: 15px;
402
402
  flex: 1 1 auto;
403
403
  }
404
- .yx-card-box-view-main .yx-card-box-view-title[data-v-26138226] {
404
+ .yx-card-box-view-main .yx-card-box-view-title[data-v-4e203ead] {
405
405
  position: relative;
406
406
  z-index: 2;
407
407
  flex: 1 1 auto;
408
408
  }
409
- .yx-card-box-view-main .yx-card-box-view-title[data-v-26138226]::after {
409
+ .yx-card-box-view-main .yx-card-box-view-title[data-v-4e203ead]::after {
410
410
  content: " ";
411
411
  position: absolute;
412
412
  left: 0;
@@ -415,32 +415,46 @@
415
415
  right: 0;
416
416
  z-index: 0;
417
417
  }
418
- .yx-card-box-view-main[data-collapse=false][data-v-26138226] > .el-card__body {
418
+ .yx-card-box-view-main[data-collapse=false][data-v-4e203ead] > .el-card__body {
419
419
  display: none;
420
420
  }
421
- .yx-card-box-view-context[data-v-26138226] {
421
+ .yx-card-box-view-main[data-v-4e203ead] {
422
+ display: flex;
423
+ flex-direction: column;
424
+ }
425
+ .yx-card-box-view-main[data-v-4e203ead] > .el-card__body {
426
+ flex: 1;
427
+ overflow: hidden;
428
+ display: flex;
429
+ flex-direction: column;
430
+ }
431
+ .yx-card-box-view-context[data-v-4e203ead] {
432
+ flex: 1;
433
+ overflow: auto;
434
+ }
435
+ .yx-card-box-view-context[data-v-4e203ead] {
422
436
  gap: var(--layout-form-flex-gap, 15px);
423
437
  }
424
- .yx-card-box-view-context[data-v-26138226] > div {
438
+ .yx-card-box-view-context[data-v-4e203ead] > div {
425
439
  width: 100%;
426
440
  }
427
- .yx-card-box-view-context[data-v-26138226] > div[style*="display: inline-block"] {
441
+ .yx-card-box-view-context[data-v-4e203ead] > div[style*="display: inline-block"] {
428
442
  width: auto;
429
443
  }
430
- .yx-card-box-view-context[data-v-26138226] > .el-form-item {
444
+ .yx-card-box-view-context[data-v-4e203ead] > .el-form-item {
431
445
  margin: 0;
432
446
  }
433
- .yx-card-box-view-context[data-v-26138226] > .el-form-item[class*=el-col-8] {
447
+ .yx-card-box-view-context[data-v-4e203ead] > .el-form-item[class*=el-col-8] {
434
448
  flex: 0 0 calc((100% - var(--layout-form-flex-gap, 15px) * 2) / 3);
435
449
  }
436
450
  @media (max-width: 768px) {
437
- .yx-card-box-view-context[data-v-26138226] > .el-form-item[class*=el-col-8] {
451
+ .yx-card-box-view-context[data-v-4e203ead] > .el-form-item[class*=el-col-8] {
438
452
  max-width: none;
439
453
  flex: 0 0 calc((100% - var(--layout-form-flex-gap, 15px) * 1) / 2);
440
454
  }
441
455
  }
442
456
  @media (max-width: 600px) {
443
- .yx-card-box-view-context[data-v-26138226] > .el-form-item[class*=el-col-8] {
457
+ .yx-card-box-view-context[data-v-4e203ead] > .el-form-item[class*=el-col-8] {
444
458
  width: 100%;
445
459
  max-width: none;
446
460
  flex: auto;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.3.17-sit2",
3
+ "version": "2.3.17-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.59-sit3",
52
+ "agilebuilder-ui": "1.1.59-sit6",
53
53
  "axios": "^1.6.8",
54
54
  "cypress": "^13.6.6",
55
55
  "element-plus": "^2.6.1",