super-page-runtime 2.2.21 → 2.2.22
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/api/page-expose-util.js +1 -3
- package/dist/es/components/runtime/utils/common-util.js +22 -22
- package/dist/es/components/runtime/utils/table-utils.js +26 -31
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +33 -30
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +10 -10
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +186 -174
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +46 -43
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +22 -21
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +56 -53
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +80 -77
- package/dist/es/components/runtime/views/home-chart.vue.js +23 -21
- package/dist/es/components/runtime/views/super-page.vue.js +42 -41
- package/dist/es/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as
|
|
2
|
-
import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as f, gridSelectionChange as d, cellClick as b, cellDblClick as v, rowClick as g, rowDblClick as m, headerClick as h } from "../../../../utils/events/event-util.js";
|
|
3
|
-
import { caculateShowCondition as
|
|
4
|
-
import { getModelFields as
|
|
5
|
-
import
|
|
6
|
-
import { popupToPage as
|
|
7
|
-
import { getListCode as
|
|
8
|
-
import { getAdditionalParamMap as
|
|
9
|
-
import { getRowStyleUtil as
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
let
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
let
|
|
20
|
-
const
|
|
21
|
-
return
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as i, createElementBlock as a, openBlock as l, createBlock as u, createCommentVNode as r, unref as s } from "vue";
|
|
2
|
+
import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as f, gridSelectionChange as d, 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";
|
|
5
|
+
import P from "../../../../utils/eventBus.js";
|
|
6
|
+
import { popupToPage as I, getOperationButtons as R } from "../../../../utils/table-utils.js";
|
|
7
|
+
import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
|
|
8
|
+
import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
|
|
9
|
+
import { getRowStyleUtil as M, getCellStyleUtil as F, getHeaderCellStyleUtil as $ } from "../../chart/table/chart-table-util.js";
|
|
10
|
+
const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: j2, emit: N }) {
|
|
11
|
+
const A = e2, H = A.pageContext;
|
|
12
|
+
let L = A.configure;
|
|
13
|
+
const B = A.configure.runtime ? A.configure.runtime : {};
|
|
14
|
+
H.isTest ? B.value = A.configure.runtime ? A.configure.runtime : {} : H.tableRuntimes && H.tableRuntimes[L.uuid] && (L = JSON.parse(H.tableRuntimes[L.uuid].configure), B.value = L.runtime ? L.runtime : {});
|
|
15
|
+
const E = O(H.code, H.version, L.uuid), U = H.entity.data, z = L.code ? L.code : E, V = k(H), G = B && B.events ? B.events : [], J = t([]), q = H.superGridItems, K = q ? q[L.uuid] : null, Q = B.style, W = B.class, X = A.pageContext.entity ? A.pageContext.entity : {};
|
|
16
|
+
let Y = C(A.configure, z), Z = _(H.backendUrl, H.isTest);
|
|
17
|
+
Z || (Z = window.$vueApp.config.globalProperties.baseURL);
|
|
18
|
+
const ee = t(false);
|
|
19
|
+
let te = t(0);
|
|
20
|
+
const ne = L.props.dataOrigin.principalLinkage, oe = t({ isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: H.code, pageVersion: H.version, pageContext: H, configureObj: L, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!L.props || !L.props.otherSettings || void 0 !== L.props.otherSettings.isBreakLine && false !== L.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
|
|
21
|
+
return F(e3, e3.cellStyle, A);
|
|
22
22
|
}, rowStyleRender: function(e3) {
|
|
23
|
-
return
|
|
23
|
+
return M(e3, null, A);
|
|
24
24
|
}, titleStyleRender: function(e3) {
|
|
25
|
-
const t2 = e3.titleStyle, n2 =
|
|
26
|
-
return
|
|
27
|
-
} }),
|
|
28
|
-
Q && (
|
|
29
|
-
const
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
function
|
|
34
|
-
if (void 0 === e3 && (e3 =
|
|
35
|
-
let e4 =
|
|
36
|
-
e4 ? e4.push("operation") : e4 = ["operation"],
|
|
25
|
+
const t2 = e3.titleStyle, n2 = A.configure.style.titleStyle;
|
|
26
|
+
return $(e3, { cellTitleStyle: t2, titleStyle: n2 }, A);
|
|
27
|
+
} }), ie = N;
|
|
28
|
+
Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W), L.props && L.props.base && true === L.props.base.subPaging ? oe.value.showPageArea = true : oe.value.showPageArea = false, L.props.base.showRowForm && (oe.value.showRowForm = L.props.base.showRowForm);
|
|
29
|
+
const ae = t(null);
|
|
30
|
+
function le() {
|
|
31
|
+
ae.value && (oe.value.subTableData = null, ae.value.reloadSubTableData(E));
|
|
32
|
+
}
|
|
33
|
+
function ue(e3) {
|
|
34
|
+
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 = E, oe.value.extraParam.beanName = H.beanName, oe.value.extraParam.subtableSetting = L.props && L.props.otherSettings ? JSON.stringify(L.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = V, oe.value.extraParam.entityMap = H.entity.data, oe.value.extraParam.contextMap = H.entity.context, oe.value.extraParam.taskMap = H.entity.task, !(L.props && L.props.base && L.props.base.showOperation)) {
|
|
35
|
+
let e4 = oe.value.hiddenColumns;
|
|
36
|
+
e4 ? e4.push("operation") : e4 = ["operation"], oe.value.hiddenColumns = e4;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
let t2 =
|
|
40
|
-
t2 && t2.fixHeight && (
|
|
38
|
+
oe.value.showOperationButton = !(!L.props || !L.props.base) && L.props.base.showOperation, oe.value.isPdfEditor = false, oe.value.tableRecordMaxNum = L.props && L.props.otherSettings ? L.props.otherSettings.tableRecordMaxNum : null;
|
|
39
|
+
let t2 = D(H, L);
|
|
40
|
+
t2 && t2.fixHeight && (oe.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (oe.value.formSetMaxHeight = t2.maxHeight);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
if (
|
|
44
|
-
if (
|
|
42
|
+
function re() {
|
|
43
|
+
if (L.props && L.props.otherSettings) {
|
|
44
|
+
if (L.props.otherSettings.sourceQueryTableData && L.props.otherSettings.timeToInitializeSubTable && L.props.otherSettings.timeToInitializeSubTable.length > 0) {
|
|
45
45
|
let e3 = false;
|
|
46
|
-
if (-1 !==
|
|
47
|
-
const t2 = z
|
|
46
|
+
if (-1 !== L.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !U.id && !U.ID), -1 !== L.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
|
|
47
|
+
const t2 = U[z];
|
|
48
48
|
(!t2 || t2.length <= 0) && (e3 = true);
|
|
49
49
|
}
|
|
50
50
|
return e3;
|
|
@@ -52,208 +52,220 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
52
52
|
return false;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function ue() {
|
|
56
|
-
return A.entity.data;
|
|
57
|
-
}
|
|
58
55
|
function se() {
|
|
59
|
-
return
|
|
56
|
+
return H.entity.data;
|
|
60
57
|
}
|
|
61
|
-
function
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
function ce() {
|
|
59
|
+
return x(X, Y);
|
|
60
|
+
}
|
|
61
|
+
let pe, fe;
|
|
62
|
+
function de(e3) {
|
|
63
|
+
ue(e3), oe.value.subTableData = null, be(), ee.value = false, pe = setTimeout(() => {
|
|
64
|
+
ee.value = true, te.value = te.value + 1, ve();
|
|
64
65
|
}, 10);
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
+
function be() {
|
|
67
68
|
!function() {
|
|
68
|
-
const e4 =
|
|
69
|
+
const e4 = H.fieldPermissionMap, t2 = H.actionPermissionMap;
|
|
69
70
|
if (e4 && null != e4) {
|
|
70
|
-
let t3 = e4.get(
|
|
71
|
+
let t3 = e4.get(z);
|
|
71
72
|
if (!t3) {
|
|
72
73
|
const n3 = e4.get("all_fields");
|
|
73
74
|
n3 && (t3 = [n3]);
|
|
74
75
|
}
|
|
75
|
-
|
|
76
|
+
oe.value.validateRules = t3 || null;
|
|
76
77
|
}
|
|
77
78
|
if (t2 && null != t2) {
|
|
78
|
-
let e5 = t2.get(
|
|
79
|
-
e5 || (e5 = t2.get("all_sub_tables")),
|
|
79
|
+
let e5 = t2.get(z);
|
|
80
|
+
e5 || (e5 = t2.get("all_sub_tables")), oe.value.actionPermission = e5;
|
|
80
81
|
}
|
|
81
|
-
|
|
82
|
+
oe.value.operations || (oe.value.operations = {});
|
|
82
83
|
const n2 = function() {
|
|
83
|
-
let e5 = [], t3 =
|
|
84
|
-
if (t3 &&
|
|
85
|
-
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick:
|
|
84
|
+
let e5 = [], t3 = w(A.pageContext, L.props.base.showOperationCondition);
|
|
85
|
+
if (t3 && Se()) {
|
|
86
|
+
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: we };
|
|
86
87
|
e5.push(t4);
|
|
87
88
|
}
|
|
88
|
-
if (t3 &&
|
|
89
|
-
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick:
|
|
89
|
+
if (t3 && Te(null, null, null, null, null, true)) {
|
|
90
|
+
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: xe };
|
|
90
91
|
e5.push(t4);
|
|
91
92
|
}
|
|
92
|
-
return R(
|
|
93
|
+
return R(H, L, e5, me), e5;
|
|
93
94
|
}();
|
|
94
|
-
|
|
95
|
-
}(), c(
|
|
96
|
-
const e3 =
|
|
97
|
-
e3 && (
|
|
98
|
-
}
|
|
99
|
-
function
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
95
|
+
oe.value.operations.operation = n2, oe.value.subTableCanAdd = Se();
|
|
96
|
+
}(), c(oe.value, G, H, L);
|
|
97
|
+
const e3 = H.customEvents;
|
|
98
|
+
e3 && (oe.value.eventCallBack = e3), ee.value = true, ve();
|
|
99
|
+
}
|
|
100
|
+
function ve() {
|
|
101
|
+
H.tableUuids || (H.tableUuids = []), H.tableUuids.indexOf(L.uuid) < 0 && H.tableUuids.push(L.uuid);
|
|
102
|
+
}
|
|
103
|
+
n(() => {
|
|
104
|
+
const e3 = L.uuid, t2 = H.subTableWatchProps;
|
|
105
|
+
P.$on("_refreshSubTable_" + e3, (n2) => {
|
|
106
|
+
const o2 = n2.propName;
|
|
107
|
+
if (t2 && t2[e3] && t2[e3].length > 0) {
|
|
108
|
+
t2[e3].indexOf(o2) >= 0 && le();
|
|
109
|
+
}
|
|
110
|
+
}), P.$on("_refreshSubTableHandle_" + e3, (e4) => {
|
|
111
|
+
le();
|
|
112
|
+
}), P.$on("_refreshChildData_" + e3, (e4) => {
|
|
113
|
+
!function(e5) {
|
|
114
|
+
Be(e5), fe = setTimeout(() => {
|
|
115
|
+
ae.value && (ae.value.refreshChildData(E, e5, L.props && L.props.base && true === L.props.base.subPaging), oe.value.extraParam.entityMap = H.entity.data);
|
|
116
|
+
}, 10);
|
|
117
|
+
}(e4);
|
|
118
|
+
}), P.$on(E + "-pickFileDone", (e4) => {
|
|
119
|
+
ae.value.pickFileDone(e4);
|
|
120
|
+
}), P.$on(E + "-scanDone", (e4) => {
|
|
121
|
+
ae.value.scanDone(e4);
|
|
122
|
+
}), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && ie("setSafeDeleteTableCode", oe.value.extraParam.tableName);
|
|
123
|
+
}), o(() => {
|
|
124
|
+
pe && clearTimeout(pe), fe && clearTimeout(fe);
|
|
125
|
+
const e3 = L.uuid;
|
|
126
|
+
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(E + "-pickFileDone"), P.$off(E + "-scanDone");
|
|
127
|
+
});
|
|
128
|
+
const ge = t({});
|
|
129
|
+
function me(e3) {
|
|
130
|
+
if (!e3) return;
|
|
131
|
+
return ge.value[e3.uuid] = e3, he;
|
|
132
|
+
}
|
|
133
|
+
function he(e3, t2, n2, o2, i2, a2) {
|
|
134
|
+
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, u2 = ge.value[a2.sourceButton.uuid], r2 = L;
|
|
135
|
+
u2.props.base.tableUuid = r2.uuid, S(null, H, u2, "click", l2);
|
|
136
|
+
}
|
|
137
|
+
function Se(e3, t2, n2, o2, i2, a2) {
|
|
138
|
+
if (!w(A.pageContext, L.props.base.showOperationCondition)) return false;
|
|
139
|
+
const l2 = H.fieldPermissionMap, u2 = H.actionPermissionMap;
|
|
140
|
+
let r2 = true;
|
|
106
141
|
if (l2 && null !== l2) {
|
|
107
142
|
const e4 = l2.get("all_fields");
|
|
108
|
-
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (
|
|
143
|
+
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
|
|
109
144
|
}
|
|
110
|
-
if (true ===
|
|
111
|
-
let e4 = u2.get(
|
|
112
|
-
e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canAdd && false === e4.canAdd && (
|
|
145
|
+
if (true === r2 && z && u2 && null !== u2) {
|
|
146
|
+
let e4 = u2.get(z);
|
|
147
|
+
e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canAdd && false === e4.canAdd && (r2 = false);
|
|
113
148
|
}
|
|
114
|
-
return
|
|
149
|
+
return r2;
|
|
115
150
|
}
|
|
116
|
-
function
|
|
117
|
-
let l2 =
|
|
118
|
-
return true === l2 && (l2 =
|
|
151
|
+
function we(e3, t2, n2, o2, i2, a2) {
|
|
152
|
+
let l2 = Se();
|
|
153
|
+
return true === l2 && (l2 = w(A.pageContext, L.props.base.showAddBtnCondition, n2)), l2;
|
|
119
154
|
}
|
|
120
|
-
function
|
|
121
|
-
const l2 =
|
|
122
|
-
let
|
|
155
|
+
function Te(e3, t2, n2, o2, i2, a2) {
|
|
156
|
+
const l2 = H.fieldPermissionMap, u2 = H.actionPermissionMap;
|
|
157
|
+
let r2 = true;
|
|
123
158
|
if (l2 && null !== l2) {
|
|
124
159
|
const e4 = l2.get("all_fields");
|
|
125
|
-
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (
|
|
160
|
+
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
|
|
126
161
|
}
|
|
127
|
-
if (true ===
|
|
128
|
-
let e4 = u2.get(
|
|
129
|
-
if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (
|
|
162
|
+
if (true === r2 && z && u2 && null !== u2) {
|
|
163
|
+
let e4 = u2.get(z);
|
|
164
|
+
if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (r2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (a2) r2 = true;
|
|
130
165
|
else {
|
|
131
166
|
const t3 = function(e5) {
|
|
132
167
|
return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
|
|
133
168
|
}(n2);
|
|
134
|
-
|
|
169
|
+
r2 = void 0 !== t3 && e4.deleteRowIndexes.indexOf(t3) >= 0;
|
|
135
170
|
}
|
|
136
|
-
else
|
|
171
|
+
else r2 = false;
|
|
137
172
|
}
|
|
138
|
-
return
|
|
173
|
+
return r2;
|
|
139
174
|
}
|
|
140
|
-
function
|
|
141
|
-
let l2 =
|
|
142
|
-
return true === l2 && (l2 =
|
|
175
|
+
function xe(e3, t2, n2, o2, i2, a2) {
|
|
176
|
+
let l2 = Te(0, 0, n2, 0, 0, a2);
|
|
177
|
+
return true === l2 && (l2 = w(A.pageContext, L.props.base.showDeleteBtnCondition, n2)), l2;
|
|
143
178
|
}
|
|
144
|
-
function
|
|
145
|
-
|
|
179
|
+
function De(e3, t2, n2, o2, i2) {
|
|
180
|
+
ae.value.createRow(E, {}, { getDefaultValueFunc: y });
|
|
146
181
|
}
|
|
147
|
-
function
|
|
148
|
-
|
|
182
|
+
function Ce(e3, t2, n2, o2, i2) {
|
|
183
|
+
ae.value.deleteRow(i2, E, false);
|
|
149
184
|
}
|
|
150
|
-
function
|
|
151
|
-
|
|
185
|
+
function ye(e3) {
|
|
186
|
+
T(X, Y, e3);
|
|
152
187
|
}
|
|
153
|
-
function
|
|
154
|
-
|
|
188
|
+
function Pe(e3) {
|
|
189
|
+
H.subTablePageInfo || (H.subTablePageInfo = {}), H.subTablePageInfo[z] = { pageSize: e3 };
|
|
155
190
|
}
|
|
156
|
-
function
|
|
191
|
+
function Ie(e3) {
|
|
157
192
|
const t2 = e3.key, n2 = e3.value;
|
|
158
|
-
|
|
193
|
+
H.selectOptions || (H.selectOptions = {}), H.selectOptions[t2] = n2;
|
|
159
194
|
}
|
|
160
|
-
function
|
|
161
|
-
const t2 =
|
|
162
|
-
|
|
195
|
+
function Re(e3) {
|
|
196
|
+
const t2 = H.code + "_";
|
|
197
|
+
P.$emit(t2 + "prohibit-edit", e3);
|
|
163
198
|
}
|
|
164
|
-
function
|
|
165
|
-
const t2 =
|
|
199
|
+
function Oe(e3) {
|
|
200
|
+
const t2 = H.entity.data;
|
|
166
201
|
if (e3) for (const n2 in e3) t2[n2] = e3[n2];
|
|
167
202
|
}
|
|
168
|
-
function
|
|
203
|
+
function _e(e3, t2) {
|
|
169
204
|
if (void 0 !== t2) {
|
|
170
|
-
|
|
171
|
-
p(
|
|
205
|
+
J.value = e3;
|
|
206
|
+
p(H, L, { selection: e3, row: t2 });
|
|
172
207
|
}
|
|
173
208
|
}
|
|
174
|
-
function
|
|
175
|
-
|
|
176
|
-
f(
|
|
209
|
+
function ke(e3) {
|
|
210
|
+
J.value = e3;
|
|
211
|
+
f(H, L, { selection: e3 });
|
|
177
212
|
}
|
|
178
|
-
function
|
|
179
|
-
d(
|
|
213
|
+
function Me(e3) {
|
|
214
|
+
d(H, L, { newSelection: e3 });
|
|
180
215
|
}
|
|
181
|
-
function
|
|
182
|
-
b(
|
|
216
|
+
function Fe(e3, t2, n2, o2) {
|
|
217
|
+
b(H, L, { row: e3, column: t2, cell: n2, event: o2 });
|
|
183
218
|
}
|
|
184
|
-
function
|
|
185
|
-
v(
|
|
219
|
+
function $e(e3, t2, n2, o2) {
|
|
220
|
+
v(H, L, { row: e3, column: t2, cell: n2, event: o2 });
|
|
186
221
|
}
|
|
187
|
-
function
|
|
188
|
-
g(
|
|
222
|
+
function je(e3, t2, n2) {
|
|
223
|
+
g(H, L, { row: e3, column: t2, event: n2 });
|
|
189
224
|
}
|
|
190
|
-
function
|
|
191
|
-
m(
|
|
225
|
+
function Ne(e3, t2, n2) {
|
|
226
|
+
m(H, L, { row: e3, column: t2, event: n2 });
|
|
192
227
|
}
|
|
193
|
-
function
|
|
194
|
-
h(
|
|
228
|
+
function Ae(e3, t2) {
|
|
229
|
+
h(H, L, { column: e3, event: t2 });
|
|
195
230
|
}
|
|
196
|
-
function
|
|
197
|
-
|
|
231
|
+
function He(e3) {
|
|
232
|
+
H.entity.data = e3;
|
|
198
233
|
}
|
|
199
|
-
function
|
|
200
|
-
return x(
|
|
234
|
+
function Le() {
|
|
235
|
+
return x(X, Y);
|
|
201
236
|
}
|
|
202
|
-
function
|
|
203
|
-
return
|
|
237
|
+
function Be(e3) {
|
|
238
|
+
return T(X, Y, e3);
|
|
204
239
|
}
|
|
205
|
-
return
|
|
206
|
-
const e3 =
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
t2[e3].indexOf(o2) >= 0 && ae();
|
|
211
|
-
}
|
|
212
|
-
}), y.$on("_refreshSubTableHandle_" + e3, (e4) => {
|
|
213
|
-
ae();
|
|
214
|
-
}), y.$on("_refreshChildData_" + e3, (e4) => {
|
|
215
|
-
!function(e5) {
|
|
216
|
-
Fe(e5), setTimeout(() => {
|
|
217
|
-
oe.value && (oe.value.refreshChildData(L, e5, H.props && H.props.base && true === H.props.base.subPaging), te.value.extraParam.entityMap = A.entity.data);
|
|
218
|
-
}, 10);
|
|
219
|
-
}(e4);
|
|
220
|
-
}), y.$on(L + "-pickFileDone", (e4) => {
|
|
221
|
-
oe.value.pickFileDone(e4);
|
|
222
|
-
}), y.$on(L + "-scanDone", (e4) => {
|
|
223
|
-
oe.value.scanDone(e4);
|
|
224
|
-
}), te.value && te.value.configureObj.props.base && te.value.configureObj.props.base.isSafeDelete && ne("setSafeDeleteTableCode", te.value.extraParam.tableName);
|
|
225
|
-
}), o(() => {
|
|
226
|
-
const e3 = H.uuid;
|
|
227
|
-
y.$off("_refreshSubTable_" + e3), y.$off("_refreshSubTableHandle_" + e3), y.$off("_refreshChildData_" + e3), y.$off(L + "-pickFileDone"), y.$off(L + "-scanDone");
|
|
228
|
-
}), function() {
|
|
229
|
-
const e3 = le();
|
|
230
|
-
e3 ? re(e3) : (ie(e3), te.value.isPageInfo = false, te.value.subTableData = Me(), ce());
|
|
231
|
-
}(), $2({ createRow: function() {
|
|
232
|
-
return oe.value.createRow(L);
|
|
240
|
+
return function() {
|
|
241
|
+
const e3 = re();
|
|
242
|
+
e3 ? de(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Le(), be());
|
|
243
|
+
}(), j2({ createRow: function() {
|
|
244
|
+
return ae.value.createRow(E);
|
|
233
245
|
}, getSelections: function() {
|
|
234
|
-
return
|
|
246
|
+
return J.value;
|
|
235
247
|
}, getSelectionIds: function() {
|
|
236
248
|
const e3 = [];
|
|
237
|
-
return
|
|
249
|
+
return J.value && J.value.forEach((t2) => {
|
|
238
250
|
e3.push(t2.id ? t2.id : t2.ID ? t2.ID : null);
|
|
239
251
|
}), e3;
|
|
240
252
|
}, clearSelections: function() {
|
|
241
|
-
|
|
253
|
+
J.value = [];
|
|
242
254
|
}, getTableConfigure: function() {
|
|
243
|
-
return
|
|
255
|
+
return L;
|
|
244
256
|
}, validatorSunTableListData: function() {
|
|
245
|
-
return
|
|
246
|
-
}, getValue:
|
|
247
|
-
if (
|
|
257
|
+
return ae.value.validatorSunTableListData();
|
|
258
|
+
}, getValue: Le, setValue: Be, getTableSelectOptions: function() {
|
|
259
|
+
if (ae.value) return ae.value.getTableSelectOptions(E);
|
|
248
260
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
249
|
-
|
|
261
|
+
ae.value && ae.value.dynamicControlTableEdit(e3, t2, n2);
|
|
250
262
|
}, doLayout: function(e3) {
|
|
251
|
-
|
|
263
|
+
ae.value && ae.value.doLayout(e3);
|
|
252
264
|
} }), (e3, t2) => {
|
|
253
|
-
const n2 =
|
|
254
|
-
return l(),
|
|
265
|
+
const n2 = i("super-grid");
|
|
266
|
+
return l(), a("div", null, [ee.value ? (l(), u(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(E), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ne, onHeaderClick: Ae, onFnProhibitToEdit: Re, onChangeGridData: ye, onReloadGrid: de, onRefresMainTableFields: Oe, onSetSelectOptions: Ie, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(I), onChangeFormData: He }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
|
|
255
267
|
};
|
|
256
268
|
} });
|
|
257
269
|
export {
|
|
258
|
-
|
|
270
|
+
j as default
|
|
259
271
|
};
|
|
@@ -1,67 +1,70 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as o, watch as l,
|
|
2
|
-
import { setVariableValue as
|
|
3
|
-
import { getFormModelFields as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, watch as l, onUnmounted as n, onMounted as a, nextTick as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as g, createVNode as d, createElementBlock as v, Fragment as m, renderList as h, createTextVNode as y, toDisplayString as b, createCommentVNode as C } from "vue";
|
|
2
|
+
import { setVariableValue as x, getVariableValue as k, getOptionDatasFromPage as _, autoSetAfterSelect as R, queryOptionDatasources as S } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { getFormModelFields as T } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as j, handleAfterInitEvent as I } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import { $t as
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
let
|
|
9
|
-
const
|
|
10
|
-
let e3 =
|
|
5
|
+
import { $t as V } from "../../../../utils/i18n-util.js";
|
|
6
|
+
const q = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: q2 }) {
|
|
7
|
+
const w = e2, z = w.pageContext.entity ? w.pageContext.entity : {};
|
|
8
|
+
let O = T(w.pageContext, w.configure);
|
|
9
|
+
const D = t({ get() {
|
|
10
|
+
let e3 = k(z, O);
|
|
11
11
|
return null != e3 && (e3 += ""), e3;
|
|
12
12
|
}, set(e3) {
|
|
13
|
-
|
|
14
|
-
} }),
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
let
|
|
18
|
-
if (("dynamicData" ==
|
|
19
|
-
|
|
20
|
-
if (
|
|
13
|
+
x(z, O, e3);
|
|
14
|
+
} }), M = w.configure.runtime ? w.configure.runtime : {}, P = M.style, W = M.class, E = M.headerStyle, F = M.titleExceedStyle, U = o(M.props ? M.props : {}), $ = o(U.value.options ? U.value.options : []), A = _(w.pageContext, w.configure);
|
|
15
|
+
A.length > 0 && ($.value = A);
|
|
16
|
+
const B = w.configure.props && w.configure.props.dataOrigin ? w.configure.props.dataOrigin : {}, G = B.optionValueSetType;
|
|
17
|
+
let H = [];
|
|
18
|
+
if (("dynamicData" == G || "dataTable" == G || "service" == G) && B.autoSets) for (let e3 of B.autoSets) e3.source && H.push(e3);
|
|
19
|
+
w.configure && w.configure.props && w.configure.props.base && w.configure.props.base.optionProp && H.push({ source: "label", target: w.configure.props.base.optionProp }), U.value.changeMethod = function(e3) {
|
|
20
|
+
if (H.length > 0) {
|
|
21
21
|
let t2 = null;
|
|
22
|
-
|
|
22
|
+
$.value && null != e3 && null != e3 && (t2 = $.value.filter((t3) => e3 === t3.value)), R(w.configure, w.pageContext, H, t2);
|
|
23
23
|
}
|
|
24
|
-
j(e3,
|
|
24
|
+
j(e3, w.pageContext, w.configure, "change");
|
|
25
25
|
};
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
26
|
+
const J = U.value.monitorFields, K = [];
|
|
27
|
+
if (J) {
|
|
28
28
|
const e3 = [];
|
|
29
|
-
for (let t2 of
|
|
29
|
+
for (let t2 of J) if (t2.startsWith("${")) {
|
|
30
30
|
t2 = t2.substring(2, t2.length - 1);
|
|
31
31
|
const o2 = t2.split(".");
|
|
32
|
-
"page" !== o2[0] && "task" !== o2[0] && "data" !== o2[0] || (
|
|
32
|
+
"page" !== o2[0] && "task" !== o2[0] && "data" !== o2[0] || (K.push(o2), e3.includes(o2[0]) || e3.push(o2[0]));
|
|
33
33
|
}
|
|
34
|
-
for (let t2 of e3) l(
|
|
35
|
-
|
|
34
|
+
for (let t2 of e3) l(z[t2], () => {
|
|
35
|
+
Y();
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function L() {
|
|
39
39
|
let e3 = "";
|
|
40
|
-
for (let t2 of
|
|
40
|
+
for (let t2 of K) e3 += "_" + k(z, t2);
|
|
41
41
|
return e3;
|
|
42
42
|
}
|
|
43
|
-
let
|
|
44
|
-
const
|
|
45
|
-
function
|
|
46
|
-
|
|
47
|
-
const e3 =
|
|
48
|
-
e3 !=
|
|
43
|
+
let N = L(), Q = false;
|
|
44
|
+
const X = U.value.optionconfigInfo ? U.value.optionconfigInfo : {};
|
|
45
|
+
function Y() {
|
|
46
|
+
Q && clearTimeout(Q), Q = setTimeout(function() {
|
|
47
|
+
const e3 = L();
|
|
48
|
+
e3 != N && (N = e3, S(w.pageContext, X, void 0).then((e4) => {
|
|
49
49
|
}));
|
|
50
50
|
}, 200);
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
n(() => {
|
|
53
|
+
Q && clearTimeout(Q);
|
|
54
|
+
});
|
|
55
|
+
const Z = o(null), ee = o(null), te = o(null);
|
|
56
|
+
return a(() => {
|
|
57
|
+
u(() => {
|
|
58
|
+
const e3 = D.value;
|
|
59
|
+
I(e3, w.pageContext, w.configure, { formItemRef: Z.value, componentRef: ee.value, titleRef: te.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
|
|
57
60
|
});
|
|
58
|
-
}),
|
|
59
|
-
|
|
61
|
+
}), q2({ updateOptions: function(e3) {
|
|
62
|
+
$.value = e3 || [];
|
|
60
63
|
} }), (e3, t2) => {
|
|
61
|
-
const o2 =
|
|
62
|
-
return
|
|
64
|
+
const o2 = i("el-radio"), l2 = i("el-radio-group"), n2 = i("el-form-item");
|
|
65
|
+
return s(), r(n2, { ref_key: "formItemRef", ref: Z, required: U.value.required, class: f(c(W)), "label-width": U.value.labelWidth, style: p(c(P)) }, { label: g(() => [U.value.tittleShow ? (s(), v("div", { key: 0, ref_key: "titleRef", ref: te, style: p({ ...c(E), ...c(F) }) }, b(c(V)(U.value.title)), 5)) : C("", true)]), default: g(() => [d(l2, { ref_key: "componentRef", ref: ee, disabled: "disabled" === U.value.state, size: U.value.size, onChange: U.value.changeMethod, modelValue: D.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => D.value = e4) }, { default: g(() => [(s(true), v(m, null, h($.value, (t3) => (s(), r(o2, { key: t3.value, label: t3.value, onClick: (o3) => c(j)(t3.value, e3.pageContext, e3.configure, "click", { values: D.value }) }, { default: g(() => [y(b(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
63
66
|
};
|
|
64
67
|
} });
|
|
65
68
|
export {
|
|
66
|
-
|
|
69
|
+
q as default
|
|
67
70
|
};
|