super-page-runtime 2.3.17-sit1 → 2.3.17-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.
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +2 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +5 -5
- package/dist/es/components/runtime/utils/events/standard-event.js +1 -1
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/events/validator-util.js +172 -166
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +66 -66
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +20 -19
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +77 -70
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +74 -58
- package/dist/es/style.css +96 -59
- package/package.json +2 -2
|
@@ -27,7 +27,7 @@ const A = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }
|
|
|
27
27
|
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(H.pageContext, H.configure, B, e3), z.value && z.value.setOption(B, true));
|
|
28
28
|
}
|
|
29
29
|
return x(H.pageContext, L, K), A2({ updateChartDatas: M, exportChart: function() {
|
|
30
|
-
return l(z.value);
|
|
30
|
+
return l(z.value, q);
|
|
31
31
|
} }), (e3, r2) => (n(), a("div", { style: u(i(P)), class: s([i(S), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: O }, [c(p(v, { ref_key: "headerRef", ref: D, headerInfo: i(q), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, i(q).showHeader || e3.pageContext.showHomepageSearch]]), p(i(k), { ref_key: "chartRef", ref: z, class: "amb-chart-content", theme: i(G), option: i(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./scatter-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = e(t, [["__scopeId", "data-v-
|
|
4
|
+
const r = e(t, [["__scopeId", "data-v-4a36176c"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -27,7 +27,7 @@ const H = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {}
|
|
|
27
27
|
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(O.pageContext, O.configure, E, e3), D.value && D.value.setOption(E, true));
|
|
28
28
|
}
|
|
29
29
|
return x(O.pageContext, M, L), H2({ updateChartDatas: N, exportChart: function() {
|
|
30
|
-
return l(D.value);
|
|
30
|
+
return l(D.value, B);
|
|
31
31
|
} }), (e3, r2) => (n(), a("div", { style: c(u(S)), class: s([u(T), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: z }, [i(p(v, { ref_key: "headerRef", ref: F, headerInfo: u(B), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, u(B).showHeader || e3.pageContext.showHomepageSearch]]), p(u(A), { ref_key: "chartRef", ref: D, class: "amb-chart-content", theme: u(J), option: u(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
@@ -243,7 +243,7 @@ const M = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
243
243
|
});
|
|
244
244
|
}));
|
|
245
245
|
return o3;
|
|
246
|
-
}(r2), columns: e3 };
|
|
246
|
+
}(r2), columns: e3, title: ee == null ? void 0 : ee.title };
|
|
247
247
|
} }), (o2, r2) => {
|
|
248
248
|
const n2 = i("el-table");
|
|
249
249
|
return u(), a("div", { style: l(s(X)), class: p([s(Y), "amb-widget-chart amb-widget-flex"]), ref: "thisRef" }, [c(g(b, { ref_key: "headerRef", ref: oe, headerInfo: s(ee), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[d, s(ee).showHeader || e2.pageContext.showHomepageSearch]]), g(n2, { ref_key: "gridRef", ref: me, data: ne.value, style: { width: "100%" }, "max-height": s(ye), "header-cell-style": we, "row-style": Ee, "cell-style": je, "show-summary": ue.value, stripe: e2.configure.props.base.stripe, "summary-method": $e, "span-method": Fe }, { default: h(() => [re.value ? (u(true), a(v, { key: 0 }, y(ie.value, (o3, r3) => (u(), a(v, { key: r3 }, [o3.isLeaf ? (u(), f(I, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: ae.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : (u(), f(k, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: ae.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (u(true), a(v, { key: 1 }, y(de.value, (o3, r3) => (u(), f(I, { key: r3, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"]))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (u(), f(N, { key: 0, configure: e2.configure, "table-data": ne.value, total: he.value, onPageChange: ke, onPageSizeChange: Ie }, null, 8, ["configure", "table-data", "total"])) : m("", true)], 6);
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as
|
|
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
3
|
import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as D } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { getModelFields as C, getDefaultValue as y } from "../../../../utils/page-init-util.js";
|
|
5
5
|
import P from "../../../../utils/eventBus.js";
|
|
@@ -8,43 +8,43 @@ import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util
|
|
|
8
8
|
import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
|
|
9
9
|
import { getRowStyleUtil as M, getCellStyleUtil as A, getHeaderCellStyleUtil as F } from "../../chart/table/chart-table-util.js";
|
|
10
10
|
const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: $2, emit: j }) {
|
|
11
|
-
var _a;
|
|
12
|
-
const
|
|
13
|
-
let
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const G = O(
|
|
17
|
-
let Y = C(
|
|
11
|
+
var _a, _b, _c;
|
|
12
|
+
const E = e2, L = E.pageContext;
|
|
13
|
+
let B = E.configure;
|
|
14
|
+
const N = E.configure.runtime ? E.configure.runtime : {};
|
|
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
|
+
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);
|
|
18
18
|
Z || (Z = window.$vueApp.config.globalProperties.baseURL);
|
|
19
19
|
const ee = t(false);
|
|
20
20
|
let te = t(0);
|
|
21
|
-
const ne = (_a =
|
|
22
|
-
return A(e3, e3.cellStyle,
|
|
21
|
+
const ne = (_a = B.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({ title: (B == null ? void 0 : B.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: L.code, pageVersion: L.version, pageContext: L, configureObj: B, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!B.props || !B.props.otherSettings || void 0 !== B.props.otherSettings.isBreakLine && false !== B.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
|
|
22
|
+
return A(e3, e3.cellStyle, E);
|
|
23
23
|
}, rowStyleRender: function(e3) {
|
|
24
|
-
return M(e3, null,
|
|
24
|
+
return M(e3, null, E);
|
|
25
25
|
}, titleStyleRender: function(e3) {
|
|
26
|
-
const t2 = e3.titleStyle, n2 =
|
|
27
|
-
return F(e3, { cellTitleStyle: t2, titleStyle: n2 },
|
|
28
|
-
} }), le = j;
|
|
29
|
-
Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W),
|
|
26
|
+
const t2 = e3.titleStyle, n2 = E.configure.style.titleStyle;
|
|
27
|
+
return F(e3, { cellTitleStyle: t2, titleStyle: n2 }, E);
|
|
28
|
+
}, allEditable: (_c = (_b = B.props) == null ? void 0 : _b.base) == null ? void 0 : _c.allEditable }), le = j;
|
|
29
|
+
Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W), B.props && B.props.base && true === B.props.base.subPaging ? oe.value.showPageArea = true : oe.value.showPageArea = false, B.props.base.showRowForm && (oe.value.showRowForm = B.props.base.showRowForm);
|
|
30
30
|
const ae = t(null);
|
|
31
31
|
function ie() {
|
|
32
32
|
ae.value && (oe.value.subTableData = null, ae.value.reloadSubTableData(G));
|
|
33
33
|
}
|
|
34
34
|
function ue(e3) {
|
|
35
|
-
if (void 0 === e3 && (e3 = re()), oe.value.isPageInfo = false, oe.value.isFormSubTable = true, oe.value.canRrefreshSubtableData = e3, oe.value.getFormData = se, oe.value.getGridData = ce, oe.value.extraParam.subTableListViewCode = G, oe.value.extraParam.beanName =
|
|
35
|
+
if (void 0 === e3 && (e3 = re()), oe.value.isPageInfo = false, oe.value.isFormSubTable = true, oe.value.canRrefreshSubtableData = e3, oe.value.getFormData = se, oe.value.getGridData = ce, oe.value.extraParam.subTableListViewCode = G, oe.value.extraParam.beanName = L.beanName, oe.value.extraParam.subtableSetting = B.props && B.props.otherSettings ? JSON.stringify(B.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = U, oe.value.extraParam.entityMap = L.entity.data, oe.value.extraParam.contextMap = L.entity.context, oe.value.extraParam.taskMap = L.entity.task, !(B.props && B.props.base && B.props.base.showOperation)) {
|
|
36
36
|
let e4 = oe.value.hiddenColumns;
|
|
37
37
|
e4 ? e4.push("operation") : e4 = ["operation"], oe.value.hiddenColumns = e4;
|
|
38
38
|
}
|
|
39
|
-
oe.value.showOperationButton = !(!
|
|
40
|
-
let t2 = D(
|
|
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);
|
|
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() {
|
|
44
|
-
if (
|
|
45
|
-
if (
|
|
44
|
+
if (B.props && B.props.otherSettings) {
|
|
45
|
+
if (B.props.otherSettings.sourceQueryTableData && B.props.otherSettings.timeToInitializeSubTable && B.props.otherSettings.timeToInitializeSubTable.length > 0) {
|
|
46
46
|
let e3 = false;
|
|
47
|
-
if (-1 !==
|
|
47
|
+
if (-1 !== B.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !H.id && !H.ID), -1 !== B.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
|
|
48
48
|
const t2 = H[V];
|
|
49
49
|
(!t2 || t2.length <= 0) && (e3 = true);
|
|
50
50
|
}
|
|
@@ -54,20 +54,20 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
function se() {
|
|
57
|
-
return
|
|
57
|
+
return L.entity.data;
|
|
58
58
|
}
|
|
59
59
|
function ce() {
|
|
60
60
|
return x(X, Y);
|
|
61
61
|
}
|
|
62
62
|
let pe, de;
|
|
63
63
|
function fe(e3) {
|
|
64
|
-
ue(e3), oe.value.subTableData = null,
|
|
65
|
-
ee.value = true, te.value = te.value + 1,
|
|
64
|
+
ue(e3), oe.value.subTableData = null, be(), ee.value = false, pe = setTimeout(() => {
|
|
65
|
+
ee.value = true, te.value = te.value + 1, ve();
|
|
66
66
|
}, 10);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function be() {
|
|
69
69
|
!function() {
|
|
70
|
-
const e4 =
|
|
70
|
+
const e4 = L.fieldPermissionMap, t2 = L.actionPermissionMap;
|
|
71
71
|
if (e4 && null != e4) {
|
|
72
72
|
let t3 = e4.get(V);
|
|
73
73
|
if (!t3) {
|
|
@@ -82,7 +82,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
82
82
|
}
|
|
83
83
|
oe.value.operations || (oe.value.operations = {});
|
|
84
84
|
const n2 = function() {
|
|
85
|
-
let e5 = [], t3 = w(
|
|
85
|
+
let e5 = [], t3 = w(E.pageContext, B.props.base.showOperationCondition);
|
|
86
86
|
if (t3 && Se(null, null, null, null, null, true, "canAdd")) {
|
|
87
87
|
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: we };
|
|
88
88
|
e5.push(t4);
|
|
@@ -91,18 +91,18 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
91
91
|
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: xe };
|
|
92
92
|
e5.push(t4);
|
|
93
93
|
}
|
|
94
|
-
return I(
|
|
94
|
+
return I(L, B, e5, me), e5;
|
|
95
95
|
}();
|
|
96
96
|
oe.value.operations.operation = n2, oe.value.subTableCanAdd = Se(null, null, null, null, null, true, "canAdd"), oe.value.subTableCanDelete = Se(null, null, null, null, null, true, "canDelete");
|
|
97
|
-
}(), c(oe.value, z,
|
|
98
|
-
const e3 =
|
|
99
|
-
e3 && (oe.value.eventCallBack = e3), ee.value = true,
|
|
97
|
+
}(), c(oe.value, z, L, B);
|
|
98
|
+
const e3 = L.customEvents;
|
|
99
|
+
e3 && (oe.value.eventCallBack = e3), ee.value = true, ve();
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
|
|
101
|
+
function ve() {
|
|
102
|
+
L.tableUuids || (L.tableUuids = []), L.tableUuids.indexOf(B.uuid) < 0 && L.tableUuids.push(B.uuid);
|
|
103
103
|
}
|
|
104
104
|
n(() => {
|
|
105
|
-
const e3 =
|
|
105
|
+
const e3 = B.uuid, t2 = L.subTableWatchProps;
|
|
106
106
|
P.$on("_refreshSubTable_" + e3, (n2) => {
|
|
107
107
|
const o2 = n2.propName;
|
|
108
108
|
if (t2 && t2[e3] && t2[e3].length > 0) {
|
|
@@ -112,8 +112,8 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
112
112
|
ie();
|
|
113
113
|
}), P.$on("_refreshChildData_" + e3, (e4) => {
|
|
114
114
|
!function(e5) {
|
|
115
|
-
|
|
116
|
-
ae.value && (ae.value.refreshChildData(G, e5,
|
|
115
|
+
Ne(e5), de = setTimeout(() => {
|
|
116
|
+
ae.value && (ae.value.refreshChildData(G, e5, B.props && B.props.base && true === B.props.base.subPaging), oe.value.extraParam.entityMap = L.entity.data);
|
|
117
117
|
}, 10);
|
|
118
118
|
}(e4);
|
|
119
119
|
}), P.$on(G + "-pickFileDone", (e4) => {
|
|
@@ -123,7 +123,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
123
123
|
}), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && le("setSafeDeleteTableCode", oe.value.extraParam.tableName);
|
|
124
124
|
}), o(() => {
|
|
125
125
|
pe && clearTimeout(pe), de && clearTimeout(de);
|
|
126
|
-
const e3 =
|
|
126
|
+
const e3 = B.uuid;
|
|
127
127
|
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
|
|
128
128
|
});
|
|
129
129
|
const ge = t({});
|
|
@@ -132,13 +132,13 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
132
132
|
return ge.value[e3.uuid] = e3, he;
|
|
133
133
|
}
|
|
134
134
|
function he(e3, t2, n2, o2, l2, a2) {
|
|
135
|
-
const i2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: a2, id: n2.ID ? n2.ID : n2.id }, u2 = ge.value[a2.sourceButton.uuid], r2 =
|
|
136
|
-
u2.props.base.tableUuid = r2.uuid, S(null,
|
|
135
|
+
const i2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: a2, id: n2.ID ? n2.ID : n2.id }, u2 = ge.value[a2.sourceButton.uuid], r2 = B;
|
|
136
|
+
u2.props.base.tableUuid = r2.uuid, S(null, L, u2, "click", i2);
|
|
137
137
|
}
|
|
138
138
|
function Se(e3, t2, n2, o2, l2, a2, i2) {
|
|
139
139
|
i2 || (i2 = "canAdd");
|
|
140
|
-
if (!w(
|
|
141
|
-
const u2 =
|
|
140
|
+
if (!w(E.pageContext, B.props.base.showOperationCondition)) return false;
|
|
141
|
+
const u2 = L.fieldPermissionMap, r2 = L.actionPermissionMap;
|
|
142
142
|
let s2 = true;
|
|
143
143
|
if (u2 && null !== u2) {
|
|
144
144
|
const e4 = u2.get("all_fields");
|
|
@@ -152,10 +152,10 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
152
152
|
}
|
|
153
153
|
function we(e3, t2, n2, o2, l2, a2) {
|
|
154
154
|
let i2 = Se(0, 0, 0, 0, 0, 0, "canAdd");
|
|
155
|
-
return true === i2 && (i2 = w(
|
|
155
|
+
return true === i2 && (i2 = w(E.pageContext, B.props.base.showAddBtnCondition, n2)), i2;
|
|
156
156
|
}
|
|
157
157
|
function Te(e3, t2, n2, o2, l2, a2) {
|
|
158
|
-
const i2 =
|
|
158
|
+
const i2 = L.fieldPermissionMap, u2 = L.actionPermissionMap;
|
|
159
159
|
let r2 = true;
|
|
160
160
|
if (i2 && null !== i2) {
|
|
161
161
|
const e4 = i2.get("all_fields");
|
|
@@ -176,7 +176,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
176
176
|
}
|
|
177
177
|
function xe(e3, t2, n2, o2, l2, a2) {
|
|
178
178
|
let i2 = Te(0, 0, n2, 0, 0, a2);
|
|
179
|
-
return true === i2 && (i2 = w(
|
|
179
|
+
return true === i2 && (i2 = w(E.pageContext, B.props.base.showDeleteBtnCondition, n2)), i2;
|
|
180
180
|
}
|
|
181
181
|
function De(e3, t2, n2, o2, l2) {
|
|
182
182
|
ae.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 });
|
|
@@ -188,64 +188,64 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
188
188
|
T(X, Y, e3);
|
|
189
189
|
}
|
|
190
190
|
function Pe(e3) {
|
|
191
|
-
|
|
191
|
+
L.subTablePageInfo || (L.subTablePageInfo = {}), L.subTablePageInfo[V] || (L.subTablePageInfo[V] = {}), L.subTablePageInfo[V].pageSize = e3;
|
|
192
192
|
}
|
|
193
193
|
function Re(e3) {
|
|
194
194
|
const t2 = e3.key, n2 = e3.value;
|
|
195
|
-
|
|
195
|
+
L.selectOptions || (L.selectOptions = {}), L.selectOptions[t2] = n2;
|
|
196
196
|
}
|
|
197
197
|
function Ie(e3) {
|
|
198
|
-
const t2 =
|
|
198
|
+
const t2 = L.code + "_";
|
|
199
199
|
P.$emit(t2 + "prohibit-edit", e3);
|
|
200
200
|
}
|
|
201
201
|
function Oe(e3) {
|
|
202
|
-
const t2 =
|
|
202
|
+
const t2 = L.entity.data;
|
|
203
203
|
if (e3) for (const n2 in e3) t2[n2] = e3[n2];
|
|
204
204
|
}
|
|
205
205
|
function _e(e3, t2) {
|
|
206
206
|
if (void 0 !== t2) {
|
|
207
207
|
q.value = e3;
|
|
208
|
-
p(
|
|
208
|
+
p(L, B, { selection: e3, row: t2 });
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
function ke(e3) {
|
|
212
212
|
q.value = e3;
|
|
213
|
-
d(
|
|
213
|
+
d(L, B, { selection: e3 });
|
|
214
214
|
}
|
|
215
215
|
function Me(e3) {
|
|
216
|
-
f(
|
|
216
|
+
f(L, B, { newSelection: e3 });
|
|
217
217
|
}
|
|
218
218
|
function Ae(e3, t2, n2, o2) {
|
|
219
|
-
|
|
219
|
+
b(L, B, { row: e3, column: t2, cell: n2, event: o2 });
|
|
220
220
|
}
|
|
221
221
|
function Fe(e3, t2, n2, o2) {
|
|
222
|
-
|
|
222
|
+
v(L, B, { row: e3, column: t2, cell: n2, event: o2 });
|
|
223
223
|
}
|
|
224
224
|
function $e(e3, t2, n2) {
|
|
225
|
-
g(
|
|
225
|
+
g(L, B, { row: e3, column: t2, event: n2 });
|
|
226
226
|
}
|
|
227
227
|
function je(e3, t2, n2) {
|
|
228
|
-
m(
|
|
228
|
+
m(L, B, { row: e3, column: t2, event: n2 });
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
h(
|
|
230
|
+
function Ee(e3, t2) {
|
|
231
|
+
h(L, B, { column: e3, event: t2 });
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
233
|
+
function Le(e3) {
|
|
234
|
+
L.entity.data = e3;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Be() {
|
|
237
237
|
return x(X, Y);
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function Ne(e3) {
|
|
240
240
|
return T(X, Y, e3);
|
|
241
241
|
}
|
|
242
242
|
function Ge({ row: e3, editConditions: t2 }) {
|
|
243
243
|
let n2 = true;
|
|
244
|
-
return t2 && t2.length > 0 && (n2 = w(
|
|
244
|
+
return t2 && t2.length > 0 && (n2 = w(E.pageContext, t2, e3)), n2;
|
|
245
245
|
}
|
|
246
246
|
return function() {
|
|
247
247
|
const e3 = re();
|
|
248
|
-
e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData =
|
|
248
|
+
e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Be(), be());
|
|
249
249
|
}(), $2({ createRow: function() {
|
|
250
250
|
return ae.value.createRow(G);
|
|
251
251
|
}, getSelections: function() {
|
|
@@ -258,10 +258,10 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
258
258
|
}, clearSelections: function() {
|
|
259
259
|
q.value = [];
|
|
260
260
|
}, getTableConfigure: function() {
|
|
261
|
-
return
|
|
261
|
+
return B;
|
|
262
262
|
}, validatorSunTableListData: function() {
|
|
263
263
|
return ae.value.validatorSunTableListData();
|
|
264
|
-
}, getValue:
|
|
264
|
+
}, getValue: Be, setValue: Ne, getTableSelectOptions: function() {
|
|
265
265
|
if (ae.value) return ae.value.getTableSelectOptions(G);
|
|
266
266
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
267
267
|
ae.value && ae.value.dynamicControlTableEdit(e3, t2, n2);
|
|
@@ -293,7 +293,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
293
293
|
(_a2 = ae.value) == null ? void 0 : _a2.addRequiredClass(e3, G, t2, n2);
|
|
294
294
|
} }), (e3, t2) => {
|
|
295
295
|
const n2 = l("super-grid");
|
|
296
|
-
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(
|
|
296
|
+
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)]);
|
|
297
297
|
};
|
|
298
298
|
} });
|
|
299
299
|
export {
|
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as
|
|
2
|
-
import { getFormModelFields as
|
|
3
|
-
import { getVariableValue as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as i, createBlock as o, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as m } from "vue";
|
|
2
|
+
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getVariableValue as d, formatValueByType as h } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon as k } from "agilebuilder-ui";
|
|
5
5
|
import { getCustomFunc as w, handleAfterInitEvent as T, handleFormEvent as C } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
7
|
-
const I = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px"
|
|
7
|
+
const I = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px" } }, b = { style: { overflow: "hidden", "white-space": "nowrap" } }, V = ["title"], j = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
|
|
8
8
|
const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
|
|
9
|
-
let P =
|
|
10
|
-
const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style,
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
let P = x(R.pageContext, R.configure);
|
|
10
|
+
const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, A = q.class, z = q.headerStyle, D = q.appendClass, E = q.appendStyle, F = q.titleExceedStyle, N = t(q.props ? q.props : {});
|
|
11
|
+
const W = t(N.value.options ? N.value.options : []), B = N.value.formatType, G = l(() => {
|
|
12
|
+
let e3 = d(S, P);
|
|
13
|
+
if (B) if (N.value.hasOptions) {
|
|
13
14
|
let t2 = null;
|
|
14
|
-
|
|
15
|
-
} else if ("custom" ===
|
|
16
|
-
const t2 = w(R.pageContext,
|
|
15
|
+
W.value && (t2 = W.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
|
|
16
|
+
} else if ("custom" === B) {
|
|
17
|
+
const t2 = w(R.pageContext, N.value.formatFunc);
|
|
17
18
|
t2 && (e3 = t2.apply(t2, [{ pageContext: R.pageContext, configureObj: R.configure, value: e3 }]));
|
|
18
|
-
} else e3 = h(e3,
|
|
19
|
+
} else e3 = h(e3, B, N.value);
|
|
19
20
|
return e3 = null == e3 ? "" : e3, e3;
|
|
20
|
-
}),
|
|
21
|
-
return
|
|
21
|
+
}), H = t(null), J = t(null), K = t(null);
|
|
22
|
+
return n(() => {
|
|
22
23
|
a(() => {
|
|
23
|
-
const e3 =
|
|
24
|
-
T(e3, R.pageContext, R.configure, { formItemRef:
|
|
24
|
+
const e3 = G.value;
|
|
25
|
+
T(e3, R.pageContext, R.configure, { formItemRef: H.value, componentRef: J.value, titleRef: K.value, value: e3, entity: R.pageContext.entity.data, pageData: R.pageContext.entity.page });
|
|
25
26
|
});
|
|
26
27
|
}), j2({ updateOptions: function(e3) {
|
|
27
|
-
|
|
28
|
+
W.value = e3 || [];
|
|
28
29
|
} }), (e3, t2) => {
|
|
29
|
-
const l2 =
|
|
30
|
-
return
|
|
30
|
+
const l2 = u("el-form-item");
|
|
31
|
+
return N.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, class: r(f(A)), style: p(f(O)) }, [c("div", I, v(N.value.title), 1)], 6)) : N.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: H, required: !!N.value.required, class: r([f(A), N.value.contentAlign ? "form-item-align-" + N.value.contentAlign : "formNo" === N.value.showType ? "form-item-align-right" : ""]), "label-width": N.value.labelWidth, style: p(f(O)) }, { label: y(() => [N.value.tittleShow ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, style: p({ ...f(z), ...f(F) }) }, v(f(_)(N.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: J, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [N.value.preIconValue || N.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }), style: p(f(E)) }, [N.value.preIconType && N.value.preIconValue ? (s(), o(f(k), { key: 0, iconType: N.value.preIconType, iconValue: N.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + v(f(_)(N.value.preText)), 1)], 6)) : g("", true), m(" " + v(G.value), 1)]), N.value.sufIconValue || N.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }) }, [N.value.sufIconType && N.value.sufIconValue ? (s(), o(f(k), { key: 0, style: {}, iconType: N.value.sufIconType, iconValue: N.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(N.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: G.value }, v(N.value.prefixIcon) + " " + v(G.value), 9, V), N.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(D)), style: p(f(E)) }, v(N.value.suffixTxt), 7)) : g("", true)]));
|
|
31
32
|
};
|
|
32
33
|
} });
|
|
33
34
|
export {
|
|
@@ -2,7 +2,7 @@ import t from "./richtext-runtime.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const r = e(t, [["__scopeId", "data-v-
|
|
5
|
+
const r = e(t, [["__scopeId", "data-v-fd10cc69"]]);
|
|
6
6
|
export {
|
|
7
7
|
r as default
|
|
8
8
|
};
|