super-page-runtime 2.3.36-sit2 → 2.3.37-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.
- package/dist/es/components/runtime/utils/events/validator-util.js +125 -87
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +3 -1
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -11
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +69 -66
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +36 -33
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +35 -35
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +41 -41
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +59 -59
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +36 -36
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +57 -57
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +19 -19
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +59 -59
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +24 -24
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +25 -25
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +48 -48
- 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 +106 -106
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +87 -87
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +19 -19
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +94 -90
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +30 -18
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +26 -18
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +9 -3
- package/dist/es/style.css +166 -158
- package/package.json +2 -2
|
@@ -3,27 +3,27 @@ import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d,
|
|
|
3
3
|
import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
|
|
5
5
|
import P from "../../../../utils/eventBus.js";
|
|
6
|
-
import { popupToPage as
|
|
6
|
+
import { popupToPage as I, getOperationButtons as R } from "../../../../utils/table-utils.js";
|
|
7
7
|
import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
|
|
8
8
|
import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
|
|
9
9
|
import { getRowStyleUtil as A, getCellStyleUtil as M, getHeaderCellStyleUtil as E } from "../../chart/table/chart-table-util.js";
|
|
10
|
-
const
|
|
10
|
+
const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: N2, emit: F }) {
|
|
11
11
|
var _a;
|
|
12
|
-
const
|
|
13
|
-
let
|
|
14
|
-
const V =
|
|
15
|
-
|
|
16
|
-
const G = O(
|
|
17
|
-
let Y = D(
|
|
12
|
+
const $ = e2, j = $.pageContext;
|
|
13
|
+
let z = $.configure;
|
|
14
|
+
const V = $.configure.runtime ? $.configure.runtime : {};
|
|
15
|
+
j.isTest ? V.value = $.configure.runtime ? $.configure.runtime : {} : j.tableRuntimes && j.tableRuntimes[z.uuid] && (z = JSON.parse(j.tableRuntimes[z.uuid].configure), V.value = z.runtime ? z.runtime : {});
|
|
16
|
+
const G = O(j.code, j.version, z.uuid), H = j.entity.data, L = z.code ? z.code : G, U = k(j), B = V && V.events ? V.events : [], q = t([]), J = j.superGridItems, K = J ? J[z.uuid] : null, Q = V.style, W = V.class, X = $.pageContext.entity ? $.pageContext.entity : {};
|
|
17
|
+
let Y = D($.configure, L), Z = _(j.backendUrl, j.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 =
|
|
21
|
+
const ne = (_a = z.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({}), le = F;
|
|
22
22
|
oe.value = function() {
|
|
23
23
|
var _a2, _b, _c, _d;
|
|
24
|
-
const e3 = { title: (
|
|
25
|
-
return Q && (e3.tableStyle = Q), W && (e3.tableClass = W),
|
|
26
|
-
const t2 =
|
|
24
|
+
const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender: He, rowStyleRender: Ge, titleStyleRender: Le, allEditable: (_d = (_c = z.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
|
|
25
|
+
return Q && (e3.tableStyle = Q), W && (e3.tableClass = W), z.props && z.props.base && true === z.props.base.subPaging ? e3.showPageArea = true : e3.showPageArea = false, z.props.base.showRowForm && (e3.showRowForm = z.props.base.showRowForm), function(e4) {
|
|
26
|
+
const t2 = z.props ? z.props.dataOrigin : {};
|
|
27
27
|
if (t2.treeTable) {
|
|
28
28
|
let n2;
|
|
29
29
|
const o2 = t2.rowKey;
|
|
@@ -41,19 +41,19 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
41
41
|
ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(G));
|
|
42
42
|
}
|
|
43
43
|
function ue(e3, t2) {
|
|
44
|
-
if (t2 || (t2 = oe.value), void 0 === e3 && (e3 = re()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = se, t2.getGridData = ce, t2.extraParam.subTableListViewCode = G, t2.extraParam.beanName =
|
|
44
|
+
if (t2 || (t2 = oe.value), void 0 === e3 && (e3 = re()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = se, t2.getGridData = ce, t2.extraParam.subTableListViewCode = G, t2.extraParam.beanName = j.beanName, t2.extraParam.subtableSetting = z.props && z.props.otherSettings ? JSON.stringify(z.props.otherSettings) : null, t2.extraParam.additionalParamMap = U, t2.extraParam.entityMap = j.entity.data, t2.extraParam.contextMap = j.entity.context, t2.extraParam.taskMap = j.entity.task, !(z.props && z.props.base && z.props.base.showOperation)) {
|
|
45
45
|
let e4 = t2.hiddenColumns;
|
|
46
46
|
e4 ? e4.push("operation") : e4 = ["operation"], t2.hiddenColumns = e4;
|
|
47
47
|
}
|
|
48
|
-
t2.showOperationButton = !(!
|
|
49
|
-
let n2 = C(
|
|
48
|
+
t2.showOperationButton = !(!z.props || !z.props.base) && z.props.base.showOperation, t2.isPdfEditor = false, t2.tableRecordMaxNum = z.props && z.props.otherSettings ? z.props.otherSettings.tableRecordMaxNum : null;
|
|
49
|
+
let n2 = C(j, z);
|
|
50
50
|
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = Ue;
|
|
51
51
|
}
|
|
52
52
|
function re() {
|
|
53
|
-
if (
|
|
54
|
-
if (
|
|
53
|
+
if (z.props && z.props.otherSettings) {
|
|
54
|
+
if (z.props.otherSettings.sourceQueryTableData && z.props.otherSettings.timeToInitializeSubTable && z.props.otherSettings.timeToInitializeSubTable.length > 0) {
|
|
55
55
|
let e3 = false;
|
|
56
|
-
if (-1 !==
|
|
56
|
+
if (-1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !H.id && !H.ID), -1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
|
|
57
57
|
const t2 = H[L];
|
|
58
58
|
(!t2 || t2.length <= 0) && (e3 = true);
|
|
59
59
|
}
|
|
@@ -63,7 +63,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
function se() {
|
|
66
|
-
return
|
|
66
|
+
return j.entity.data;
|
|
67
67
|
}
|
|
68
68
|
function ce() {
|
|
69
69
|
return x(X, Y);
|
|
@@ -77,7 +77,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
77
77
|
function be(e3) {
|
|
78
78
|
e3 || (e3 = oe.value), function(e4) {
|
|
79
79
|
e4 || (e4 = oe.value);
|
|
80
|
-
const t3 =
|
|
80
|
+
const t3 = j.fieldPermissionMap, n2 = j.actionPermissionMap;
|
|
81
81
|
if (t3 && null != t3) {
|
|
82
82
|
let n3 = t3.get(L);
|
|
83
83
|
if (!n3) {
|
|
@@ -92,7 +92,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
92
92
|
}
|
|
93
93
|
e4.operations || (e4.operations = {});
|
|
94
94
|
const o2 = function() {
|
|
95
|
-
let e5 = [], t4 = w(
|
|
95
|
+
let e5 = [], t4 = w($.pageContext, z.props.base.showOperationCondition);
|
|
96
96
|
if (t4 && Se(null, null, null, null, null, true, "canAdd")) {
|
|
97
97
|
const t5 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we, isStandard: true };
|
|
98
98
|
e5.push(t5);
|
|
@@ -101,18 +101,18 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
101
101
|
const t5 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe, isStandard: true };
|
|
102
102
|
e5.push(t5);
|
|
103
103
|
}
|
|
104
|
-
return
|
|
104
|
+
return R(j, z, e5, ve), e5;
|
|
105
105
|
}();
|
|
106
106
|
e4.operations.operation = o2, e4.subTableCanAdd = Se(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = Se(null, null, null, null, null, true, "canDelete");
|
|
107
|
-
}(e3), c(e3, B,
|
|
108
|
-
const t2 =
|
|
107
|
+
}(e3), c(e3, B, j, z);
|
|
108
|
+
const t2 = j.customEvents;
|
|
109
109
|
t2 && (e3.eventCallBack = t2), ee.value = true, ge();
|
|
110
110
|
}
|
|
111
111
|
function ge() {
|
|
112
|
-
|
|
112
|
+
j.tableUuids || (j.tableUuids = []), j.tableUuids.indexOf(z.uuid) < 0 && j.tableUuids.push(z.uuid);
|
|
113
113
|
}
|
|
114
114
|
n(() => {
|
|
115
|
-
const e3 =
|
|
115
|
+
const e3 = z.uuid, t2 = j.subTableWatchProps;
|
|
116
116
|
P.$on("_refreshSubTable_" + e3, (n2) => {
|
|
117
117
|
const o2 = n2.propName;
|
|
118
118
|
if (t2 && t2[e3] && t2[e3].length > 0) {
|
|
@@ -123,7 +123,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
123
123
|
}), P.$on("_refreshChildData_" + e3, (e4) => {
|
|
124
124
|
!function(e5) {
|
|
125
125
|
Ve(e5), de = setTimeout(() => {
|
|
126
|
-
ie.value && (ie.value.refreshChildData(G, e5,
|
|
126
|
+
ie.value && (ie.value.refreshChildData(G, e5, z.props && z.props.base && true === z.props.base.subPaging), oe.value.extraParam.entityMap = j.entity.data);
|
|
127
127
|
}, 10);
|
|
128
128
|
}(e4);
|
|
129
129
|
}), P.$on(G + "-pickFileDone", (e4) => {
|
|
@@ -133,7 +133,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
133
133
|
}), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && le("setSafeDeleteTableCode", oe.value.extraParam.tableName);
|
|
134
134
|
}), o(() => {
|
|
135
135
|
pe && clearTimeout(pe), de && clearTimeout(de);
|
|
136
|
-
const e3 =
|
|
136
|
+
const e3 = z.uuid;
|
|
137
137
|
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
|
|
138
138
|
});
|
|
139
139
|
const me = t({});
|
|
@@ -142,13 +142,13 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
142
142
|
return me.value[e3.uuid] = e3, he;
|
|
143
143
|
}
|
|
144
144
|
function he(e3, t2, n2, o2, l2, i2) {
|
|
145
|
-
const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = me.value[i2.sourceButton.uuid], r2 =
|
|
146
|
-
u2.props.base.tableUuid = r2.uuid, S(null,
|
|
145
|
+
const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = me.value[i2.sourceButton.uuid], r2 = z;
|
|
146
|
+
u2.props.base.tableUuid = r2.uuid, S(null, j, u2, "click", a2);
|
|
147
147
|
}
|
|
148
148
|
function Se(e3, t2, n2, o2, l2, i2, a2) {
|
|
149
149
|
a2 || (a2 = "canAdd");
|
|
150
|
-
if (!w(
|
|
151
|
-
const u2 =
|
|
150
|
+
if (!w($.pageContext, z.props.base.showOperationCondition)) return false;
|
|
151
|
+
const u2 = j.fieldPermissionMap, r2 = j.actionPermissionMap;
|
|
152
152
|
let s2 = true;
|
|
153
153
|
if (u2 && null !== u2) {
|
|
154
154
|
const e4 = u2.get("all_fields");
|
|
@@ -162,10 +162,10 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
162
162
|
}
|
|
163
163
|
function we(e3, t2, n2, o2, l2, i2) {
|
|
164
164
|
let a2 = Se(0, 0, 0, 0, 0, 0, "canAdd");
|
|
165
|
-
return true === a2 && (a2 = w(
|
|
165
|
+
return true === a2 && (a2 = w($.pageContext, z.props.base.showAddBtnCondition, n2)), a2;
|
|
166
166
|
}
|
|
167
167
|
function Te(e3, t2, n2, o2, l2, i2) {
|
|
168
|
-
const a2 =
|
|
168
|
+
const a2 = j.fieldPermissionMap, u2 = j.actionPermissionMap;
|
|
169
169
|
let r2 = true;
|
|
170
170
|
if (a2 && null !== a2) {
|
|
171
171
|
const e4 = a2.get("all_fields");
|
|
@@ -186,7 +186,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
186
186
|
}
|
|
187
187
|
function xe(e3, t2, n2, o2, l2, i2) {
|
|
188
188
|
let a2 = Te(0, 0, n2, 0, 0, i2);
|
|
189
|
-
return true === a2 && (a2 = w(
|
|
189
|
+
return true === a2 && (a2 = w($.pageContext, z.props.base.showDeleteBtnCondition, n2)), a2;
|
|
190
190
|
}
|
|
191
191
|
function Ce(e3, t2, n2, o2, l2) {
|
|
192
192
|
ie.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
|
|
@@ -200,70 +200,70 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
200
200
|
T(X, Y, e3);
|
|
201
201
|
}
|
|
202
202
|
function Pe(e3) {
|
|
203
|
-
|
|
203
|
+
j.subTablePageInfo || (j.subTablePageInfo = {}), j.subTablePageInfo[L] || (j.subTablePageInfo[L] = {}), j.subTablePageInfo[L].title = z.title ? z.title : z.code, j.subTablePageInfo[L].pageSize = e3;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Ie(e3) {
|
|
206
206
|
const t2 = e3.key, n2 = e3.value;
|
|
207
|
-
|
|
207
|
+
j.selectOptions || (j.selectOptions = {}), j.selectOptions[t2] = n2;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
const t2 =
|
|
209
|
+
function Re(e3) {
|
|
210
|
+
const t2 = j.code + "_";
|
|
211
211
|
P.$emit(t2 + "prohibit-edit", e3);
|
|
212
212
|
}
|
|
213
213
|
function Oe(e3) {
|
|
214
|
-
const t2 =
|
|
214
|
+
const t2 = j.entity.data;
|
|
215
215
|
if (e3) for (const n2 in e3) t2[n2] = e3[n2];
|
|
216
216
|
}
|
|
217
217
|
function _e(e3, t2) {
|
|
218
218
|
if (void 0 !== t2) {
|
|
219
219
|
q.value = e3;
|
|
220
|
-
p(
|
|
220
|
+
p(j, z, { selection: e3, row: t2 });
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
function ke(e3) {
|
|
224
224
|
q.value = e3;
|
|
225
|
-
d(
|
|
225
|
+
d(j, z, { selection: e3 });
|
|
226
226
|
}
|
|
227
227
|
function Ae(e3) {
|
|
228
|
-
f(
|
|
228
|
+
f(j, z, { newSelection: e3 });
|
|
229
229
|
}
|
|
230
230
|
function Me(e3, t2, n2, o2) {
|
|
231
|
-
b(
|
|
231
|
+
b(j, z, { row: e3, column: t2, cell: n2, event: o2 });
|
|
232
232
|
}
|
|
233
233
|
function Ee(e3, t2, n2, o2) {
|
|
234
|
-
g(
|
|
234
|
+
g(j, z, { row: e3, column: t2, cell: n2, event: o2 });
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
m(
|
|
236
|
+
function Ne(e3, t2, n2) {
|
|
237
|
+
m(j, z, { row: e3, column: t2, event: n2 });
|
|
238
238
|
}
|
|
239
|
-
function
|
|
240
|
-
v(
|
|
239
|
+
function Fe(e3, t2, n2) {
|
|
240
|
+
v(j, z, { row: e3, column: t2, event: n2 });
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
h(
|
|
242
|
+
function $e(e3, t2) {
|
|
243
|
+
h(j, z, { column: e3, event: t2 });
|
|
244
244
|
}
|
|
245
|
-
function
|
|
246
|
-
|
|
245
|
+
function je(e3) {
|
|
246
|
+
j.entity.data = e3;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function ze() {
|
|
249
249
|
return x(X, Y);
|
|
250
250
|
}
|
|
251
251
|
function Ve(e3) {
|
|
252
252
|
return T(X, Y, e3);
|
|
253
253
|
}
|
|
254
254
|
function Ge(e3) {
|
|
255
|
-
return A(e3, null,
|
|
255
|
+
return A(e3, null, $);
|
|
256
256
|
}
|
|
257
257
|
function He(e3) {
|
|
258
|
-
return M(e3, e3.cellStyle,
|
|
258
|
+
return M(e3, e3.cellStyle, $);
|
|
259
259
|
}
|
|
260
260
|
function Le(e3) {
|
|
261
|
-
const t2 = e3.titleStyle, n2 =
|
|
262
|
-
return E(e3, { cellTitleStyle: t2, titleStyle: n2 },
|
|
261
|
+
const t2 = e3.titleStyle, n2 = $.configure.style.titleStyle;
|
|
262
|
+
return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, $);
|
|
263
263
|
}
|
|
264
264
|
function Ue({ row: e3, editConditions: t2 }) {
|
|
265
265
|
let n2 = true;
|
|
266
|
-
return t2 && t2.length > 0 && (n2 = w(
|
|
266
|
+
return t2 && t2.length > 0 && (n2 = w($.pageContext, t2, e3)), n2;
|
|
267
267
|
}
|
|
268
268
|
function Be(e3) {
|
|
269
269
|
var _a2;
|
|
@@ -271,8 +271,8 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
271
271
|
}
|
|
272
272
|
return function(e3) {
|
|
273
273
|
const t2 = re();
|
|
274
|
-
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData =
|
|
275
|
-
}(oe.value),
|
|
274
|
+
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = ze(), be(e3));
|
|
275
|
+
}(oe.value), N2({ createRow: function() {
|
|
276
276
|
return ie.value.createRow(G);
|
|
277
277
|
}, getSelections: function() {
|
|
278
278
|
return q.value;
|
|
@@ -284,10 +284,10 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
284
284
|
}, clearSelections: function() {
|
|
285
285
|
q.value = [];
|
|
286
286
|
}, getTableConfigure: function() {
|
|
287
|
-
return
|
|
287
|
+
return z;
|
|
288
288
|
}, validatorSunTableListData: function() {
|
|
289
289
|
return ie.value.validatorSunTableListData();
|
|
290
|
-
}, getValue:
|
|
290
|
+
}, getValue: ze, setValue: Ve, getTableSelectOptions: function() {
|
|
291
291
|
if (ie.value) return ie.value.getTableSelectOptions(G);
|
|
292
292
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
293
293
|
ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
|
|
@@ -317,11 +317,14 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
317
317
|
}, getColumns: function() {
|
|
318
318
|
var _a2;
|
|
319
319
|
return (_a2 = ie.value) == null ? void 0 : _a2.getColumns();
|
|
320
|
+
}, scrollToCell: function({ fieldName: e3, rowIndex: t2, pageNum: n2 }) {
|
|
321
|
+
var _a2;
|
|
322
|
+
(_a2 = ie.value) == null ? void 0 : _a2.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
320
323
|
} }), (e3, t2) => {
|
|
321
324
|
const n2 = l("super-grid");
|
|
322
|
-
return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(
|
|
325
|
+
return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(j).isDialog, onSelect: _e, onSelectAll: ke, onSelectionChange: Ae, onCellClick: Me, onCellDblclick: Ee, onRowClick: Ne, onRowDblclick: Fe, onHeaderClick: $e, onFnProhibitToEdit: Re, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Ie, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(I), onChangeFormData: je }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
|
|
323
326
|
};
|
|
324
327
|
} });
|
|
325
328
|
export {
|
|
326
|
-
|
|
329
|
+
N as default
|
|
327
330
|
};
|
|
@@ -1,84 +1,87 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as l, createBlock as o, createCommentVNode as a, 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 }) {
|
|
5
|
-
const s = e2, g = s.pageContext.pageType, d = t(null), v = s.configure.uuid,
|
|
6
|
-
d.value =
|
|
5
|
+
const s = e2, g = s.pageContext.pageType, d = t(null), v = s.configure.uuid, p = s.pageContext.superGridItems, S = p ? p[v] : null;
|
|
6
|
+
d.value = S ? S.configure ? JSON.parse(S.configure) : null : s.configure;
|
|
7
7
|
const T = s.configure.runtime ? s.configure.runtime : {};
|
|
8
8
|
T.style, T.class;
|
|
9
|
-
const C = t(true),
|
|
10
|
-
let
|
|
11
|
-
function
|
|
9
|
+
const C = t(true), m = t(null);
|
|
10
|
+
let b = null;
|
|
11
|
+
function x(e3) {
|
|
12
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];
|
|
13
13
|
}
|
|
14
14
|
return n(() => {
|
|
15
|
-
|
|
15
|
+
b && clearTimeout(b);
|
|
16
16
|
}), f2({ refresh: function(e3, t2, n2, u2) {
|
|
17
|
-
if (g && "list" === g) return
|
|
17
|
+
if (g && "list" === g) return m.value.refresh(e3, t2, n2, u2);
|
|
18
18
|
}, createRow: function() {
|
|
19
|
-
return
|
|
19
|
+
return m.value.createRow();
|
|
20
20
|
}, clearSelections: function() {
|
|
21
|
-
return
|
|
21
|
+
return m.value.clearSelections();
|
|
22
22
|
}, getSelections: function() {
|
|
23
|
-
return
|
|
23
|
+
return m.value.getSelections();
|
|
24
24
|
}, getSelectionIds: function() {
|
|
25
|
-
return
|
|
25
|
+
return m.value.getSelectionIds();
|
|
26
26
|
}, getTableConfigure: function() {
|
|
27
|
-
return
|
|
27
|
+
return m.value.getTableConfigure();
|
|
28
28
|
}, isDeleteChange: function(e3) {
|
|
29
|
-
g && "list" === g &&
|
|
29
|
+
g && "list" === g && m.value.isDeleteChange(e3);
|
|
30
30
|
}, validatorSunTableListData: function() {
|
|
31
|
-
if (g && "form" === g) return
|
|
31
|
+
if (g && "form" === g) return m.value.validatorSunTableListData();
|
|
32
32
|
}, showMobileSearch: function() {
|
|
33
|
-
|
|
33
|
+
m.value.showMobileSearch();
|
|
34
34
|
}, getTableSelectOptions: function() {
|
|
35
|
-
if (
|
|
35
|
+
if (m.value) return m.value.getTableSelectOptions();
|
|
36
36
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
37
|
-
|
|
37
|
+
m.value && m.value.dynamicControlTableEdit(e3, t2, n2);
|
|
38
38
|
}, getTableUuid: function() {
|
|
39
39
|
return s.configure.uuid;
|
|
40
40
|
}, doLayout: function(e3) {
|
|
41
|
-
|
|
41
|
+
m.value && m.value.doLayout(e3);
|
|
42
42
|
}, changeOperationAddState: function(e3) {
|
|
43
|
-
|
|
43
|
+
m.value && m.value.changeOperationAddState(e3);
|
|
44
44
|
}, scrollTo: function(e3, t2) {
|
|
45
45
|
var _a;
|
|
46
|
-
(_a =
|
|
46
|
+
(_a = m.value) == null ? void 0 : _a.scrollTo(e3, t2);
|
|
47
47
|
}, setScrollTop: function(e3) {
|
|
48
48
|
var _a;
|
|
49
|
-
(_a =
|
|
49
|
+
(_a = m.value) == null ? void 0 : _a.setScrollTop(e3);
|
|
50
50
|
}, setScrollLeft: function(e3) {
|
|
51
51
|
var _a;
|
|
52
|
-
(_a =
|
|
52
|
+
(_a = m.value) == null ? void 0 : _a.setScrollLeft(e3);
|
|
53
53
|
}, getSuperGridRef: function() {
|
|
54
54
|
var _a;
|
|
55
|
-
return (_a =
|
|
55
|
+
return (_a = m.value) == null ? void 0 : _a.getSuperGridRef();
|
|
56
56
|
}, getSuperGridTableRef: function() {
|
|
57
57
|
var _a;
|
|
58
|
-
return (_a =
|
|
58
|
+
return (_a = m.value) == null ? void 0 : _a.getSuperGridTableRef();
|
|
59
59
|
}, setCurrentRowIndex: function(e3) {
|
|
60
60
|
var _a;
|
|
61
|
-
(_a =
|
|
61
|
+
(_a = m.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
|
|
62
62
|
}, setScrollTopByRowIndex: function(e3) {
|
|
63
63
|
var _a;
|
|
64
|
-
(_a =
|
|
64
|
+
(_a = m.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
|
|
65
65
|
}, reloadSubTable: function() {
|
|
66
|
-
C.value = false,
|
|
66
|
+
C.value = false, b = setTimeout(() => {
|
|
67
67
|
C.value = true;
|
|
68
68
|
}, 10);
|
|
69
69
|
}, getTableData: function() {
|
|
70
70
|
var _a;
|
|
71
|
-
return (_a =
|
|
71
|
+
return (_a = m.value) == null ? void 0 : _a.getTableData();
|
|
72
72
|
}, addRequiredClass: function(e3, t2, n2) {
|
|
73
73
|
var _a;
|
|
74
|
-
(_a =
|
|
74
|
+
(_a = m.value) == null ? void 0 : _a.addRequiredClass(e3, t2, n2);
|
|
75
75
|
}, handleSearch: function(e3, t2) {
|
|
76
76
|
var _a;
|
|
77
|
-
(_a =
|
|
77
|
+
(_a = m.value) == null ? void 0 : _a.handleSearch(e3, t2);
|
|
78
78
|
}, getColumns: function() {
|
|
79
79
|
var _a;
|
|
80
|
-
return (_a =
|
|
81
|
-
}
|
|
80
|
+
return (_a = m.value) == null ? void 0 : _a.getColumns();
|
|
81
|
+
}, scrollToCell: function({ fieldName: e3, rowIndex: t2, pageNum: n2 }) {
|
|
82
|
+
var _a;
|
|
83
|
+
(_a = m.value) == null ? void 0 : _a.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
84
|
+
} }), (e3, t2) => (l(), u("div", null, [r(g) && "form" === r(g) && C.value ? (l(), o(i, { key: 0, ref_key: "gridRef", ref: m, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? a("", true) : (l(), o(c, { key: 1, ref_key: "gridRef", ref: m, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"]))]));
|
|
82
85
|
} });
|
|
83
86
|
export {
|
|
84
87
|
f as default
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, resolveComponent as a, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as p,
|
|
2
|
-
import { setVariableValue as
|
|
3
|
-
import { getFormModelFields as
|
|
4
|
-
import { handleFormEvent as
|
|
5
|
-
import { $t as
|
|
6
|
-
import { addRequiredClassUtil as
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
let
|
|
10
|
-
const
|
|
11
|
-
let e3 =
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, resolveComponent as a, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as p, createSlots as c, withCtx as f, createVNode as g, createElementBlock as v, Fragment as d, renderList as m, createElementVNode as h, toDisplayString as y } from "vue";
|
|
2
|
+
import { setVariableValue as x, getVariableValue as b, getOptionDatasFromPage as C, monitorFieldChange as k, autoSetAfterSelect as S, queryOptionDatasources as j } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { handleFormEvent as _, handleAfterInitEvent as I } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t as q } from "../../../../utils/i18n-util.js";
|
|
6
|
+
import { addRequiredClassUtil as V } from "../../../../utils/common-util.js";
|
|
7
|
+
const w = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: w2 }) {
|
|
8
|
+
const z = e2, D = t(null), E = z.pageContext.entity ? z.pageContext.entity : {};
|
|
9
|
+
let O = R(z.pageContext, z.configure);
|
|
10
|
+
const A = l({ get() {
|
|
11
|
+
let e3 = b(E, O);
|
|
12
12
|
return e3 && "string" == typeof e3 && (e3 = e3.split(",")), e3;
|
|
13
13
|
}, set(e3) {
|
|
14
|
-
e3 && e3.length > 0 && (e3 = e3.join(",")),
|
|
15
|
-
} }),
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
let
|
|
19
|
-
if (("dynamicData" ==
|
|
20
|
-
|
|
21
|
-
if (
|
|
14
|
+
e3 && e3.length > 0 && (e3 = e3.join(",")), x(E, O, e3), null != e3 && (D.value = "");
|
|
15
|
+
} }), M = z.configure.runtime ? z.configure.runtime : {}, P = M.style, T = M.class, F = M.headerStyle, U = M.titleExceedStyle, W = t(M.props ? M.props : {}), B = t(W.value.options ? W.value.options : []), G = C(z.pageContext, z.configure);
|
|
16
|
+
G.length > 0 && (B.value = G);
|
|
17
|
+
const H = z.configure.props && z.configure.props.dataOrigin ? z.configure.props.dataOrigin : {}, J = H.optionValueSetType;
|
|
18
|
+
let K = [];
|
|
19
|
+
if (("dynamicData" == J || "dynamicData" == J || "service" == J) && H.autoSets) for (let e3 of H.autoSets) e3.source && K.push(e3);
|
|
20
|
+
z.configure && z.configure.props && z.configure.props.base && z.configure.props.base.optionProp && K.push({ source: "label", target: z.configure.props.base.optionProp }), W.value.changeMethod = function(e3) {
|
|
21
|
+
if (K.length > -1) {
|
|
22
22
|
let t2 = null;
|
|
23
|
-
|
|
23
|
+
B.value && null != e3 && null != e3 && (t2 = B.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value)), S(z.configure, z.pageContext, K, t2);
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
_(e3, z.pageContext, z.configure, "change");
|
|
26
26
|
};
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
const L = W.value.optionconfigInfo ? W.value.optionconfigInfo : {};
|
|
28
|
+
const N = W.value.monitorFields;
|
|
29
|
+
k(z.pageContext, N, function() {
|
|
30
|
+
j(z.pageContext, L, void 0).then((e3) => {
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
|
-
const
|
|
33
|
+
const Q = t(null), X = t(null), Y = t(null);
|
|
34
34
|
return o(() => {
|
|
35
35
|
n(() => {
|
|
36
|
-
const e3 =
|
|
37
|
-
|
|
36
|
+
const e3 = A.value;
|
|
37
|
+
I(e3, z.pageContext, z.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
|
|
38
38
|
});
|
|
39
|
-
}),
|
|
40
|
-
|
|
39
|
+
}), w2({ updateOptions: function(e3) {
|
|
40
|
+
B.value = e3 || [];
|
|
41
41
|
}, addRequiredClass: function() {
|
|
42
|
-
|
|
42
|
+
D.value = V();
|
|
43
43
|
}, getSelectItemsTitle: function() {
|
|
44
44
|
const e3 = function() {
|
|
45
|
-
let e4 =
|
|
45
|
+
let e4 = b(E, O);
|
|
46
46
|
return null != e4 && (e4 = String(e4)), e4;
|
|
47
47
|
}();
|
|
48
48
|
if (null != e3 && "" !== e3 && e3.length > 0) {
|
|
49
49
|
let t2 = "";
|
|
50
50
|
const l2 = e3.split(",");
|
|
51
|
-
return
|
|
51
|
+
return B.value.length > 0 ? (B.value.forEach((e4) => {
|
|
52
52
|
l2.forEach((l3) => {
|
|
53
53
|
e4.value === l3 && (t2 = t2 + e4.label + ",");
|
|
54
54
|
});
|
|
@@ -56,9 +56,9 @@ const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
|
|
|
56
56
|
}
|
|
57
57
|
} }), (e3, t2) => {
|
|
58
58
|
const l2 = a("el-checkbox"), o2 = a("el-checkbox-group"), n2 = a("el-form-item");
|
|
59
|
-
return i(), u(n2, { ref_key: "formItemRef", ref:
|
|
59
|
+
return i(), u(n2, { ref_key: "formItemRef", ref: Q, class: s(p(T) + (D.value ? " " + D.value : "")), required: !!W.value.required, "label-width": W.value.labelWidth, style: r(p(P)) }, c({ default: f(() => [g(o2, { ref_key: "componentRef", ref: X, disabled: "disabled" === W.value.state, size: W.value.size, onChange: W.value.changeMethod, modelValue: A.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => A.value = e4) }, { default: f(() => [(i(true), v(d, null, m(B.value, (t3) => (i(), u(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => p(_)(t3.value, e3.pageContext, e3.configure, "click", { values: A.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [h("div", { ref_key: "titleRef", ref: Y, style: r({ ...p(F), ...p(U) }) }, y(p(q)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "required", "label-width", "style"]);
|
|
60
60
|
};
|
|
61
61
|
} });
|
|
62
62
|
export {
|
|
63
|
-
|
|
63
|
+
w as default
|
|
64
64
|
};
|