super-page-runtime 2.2.80 → 2.2.86
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-columnline-util.js +74 -74
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +5 -5
- package/dist/es/components/runtime/utils/events/standard-event.js +211 -214
- package/dist/es/components/runtime/utils/events/validator-util.js +48 -38
- package/dist/es/components/runtime/utils/page-init-util.js +6 -5
- package/dist/es/components/runtime/utils/page-permission-util.js +16 -16
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +16 -13
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +15 -11
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +127 -113
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +87 -53
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +38 -33
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -8
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +61 -59
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +16 -14
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +76 -72
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +8 -3
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +32 -32
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +11 -11
- package/dist/es/components/runtime/views/{super-page-dialog.vue2.js → super-page-dialog.vue3.js} +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +9 -7
- package/dist/es/index.js +1 -0
- package/dist/es/style.css +225 -99
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, createElementBlock as l, openBlock as r, unref as s, createVNode as u } from "vue";
|
|
2
2
|
import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as C, headerClick as S, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
|
|
3
|
-
import { getBaseUrl as E, getListCode as
|
|
3
|
+
import { getBaseUrl as E, getListCode as O, getRealRestApiPath as k, isWorkflowPage as T, isVariableInvalidValue as R } from "../../../../utils/common-util.js";
|
|
4
4
|
import { getAdditionalParamMap as I, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
|
|
5
5
|
import { isPromise as N } from "agilebuilder-ui/src/utils/common-util";
|
|
6
6
|
import { getOperationButtons as P, popupToPage as B } from "../../../../utils/table-utils.js";
|
|
@@ -77,9 +77,9 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
77
77
|
}();
|
|
78
78
|
const ae = t(), le = t(), re = function() {
|
|
79
79
|
let e3 = te + "/dsc/commons/list";
|
|
80
|
-
e3 && (e3 =
|
|
80
|
+
e3 && (e3 = k(e3, Y, Z, q.isTest));
|
|
81
81
|
return e3;
|
|
82
|
-
}(), se =
|
|
82
|
+
}(), se = O(q.code, q.version, Q.uuid), ue = q.code + "_" + se, ce = t([]), pe = q.entity.page, de = t({ data: [] }), fe = q.superGridItems, ge = fe ? fe[Q.uuid] : null;
|
|
83
83
|
console.log("superGridSetting1111===", fe, ge);
|
|
84
84
|
const me = t(false), ve = G;
|
|
85
85
|
function he({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
|
|
@@ -100,7 +100,7 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
100
100
|
let t2;
|
|
101
101
|
const n2 = y(e3.events, "click");
|
|
102
102
|
if (n2) {
|
|
103
|
-
if (ne.value[n2] = e3, "lineEditSave" === n2 ? t2 = be : "restoreEdit" === n2 ? t2 = xe : "lineEditUpdate" === n2 ? t2 = De : "lineEditDelete" === n2 && (t2 =
|
|
103
|
+
if (ne.value[n2] = e3, "lineEditSave" === n2 ? t2 = be : "restoreEdit" === n2 ? t2 = xe : "lineEditUpdate" === n2 ? t2 = De : "lineEditDelete" === n2 && (t2 = Oe), !t2) {
|
|
104
104
|
t2 = x(q, e3.events, "click");
|
|
105
105
|
}
|
|
106
106
|
} else ne.value[e3.uuid] = e3, t2 = Ve;
|
|
@@ -153,15 +153,15 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
153
153
|
q.editData = null;
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Oe(e3, t2, n2, o2, i2) {
|
|
157
157
|
const a2 = ne.value.lineEditDelete, l2 = Q;
|
|
158
158
|
a2.props.base.tableUuid = l2.uuid;
|
|
159
159
|
const r2 = f(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
160
160
|
r2 && (N(r2) ? r2.then((l3) => {
|
|
161
|
-
l3 &&
|
|
162
|
-
}) :
|
|
161
|
+
l3 && ke(e3, t2, n2, o2, i2, a2);
|
|
162
|
+
}) : ke(e3, t2, n2, o2, i2, a2));
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ke(e3, t2, n2, o2, i2, a2) {
|
|
165
165
|
if (n2.id || n2.ID) q.editData = n2, p({ pageContext: q, configureObj: a2 }).then((e4) => {
|
|
166
166
|
if (true === e4.canExecute) {
|
|
167
167
|
const e5 = [];
|
|
@@ -330,6 +330,7 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
330
330
|
le.value && le.value.dynamicControlTableEdit(e3, t2, n2);
|
|
331
331
|
}, doLayout: function(e3) {
|
|
332
332
|
le.value && le.value.doLayout(e3);
|
|
333
|
+
}, changeOperationAddState: function(e3) {
|
|
333
334
|
} }), (e3, t2) => {
|
|
334
335
|
const n2 = a("super-grid");
|
|
335
336
|
return r(), l("div", { ref_key: "tableDivRef", ref: ae, id: s(se) + "_tableDiv" }, [u(n2, { ref_key: "gridRef", ref: le, url: s(re), options: ie.value, code: s(se), settings: s(ge), "search-form-info": de.value, "list-toolbar-form-data": s(pe), onSelect: Ne, onSelectAll: Pe, onSelectionChange: Be, onCellClick: Fe, onCellDblclick: He, onRowClick: Ue, onRowDblclick: Me, onHeaderClick: $e, onRefresh: _e, onNewOpenGridDialog: s(B), onCanShowMobileSearch: Le }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, A);
|
|
@@ -7,45 +7,45 @@ import { popupToPage as _, getOperationButtons as I } from "../../../../utils/ta
|
|
|
7
7
|
import { getListCode as R, getBaseUrl as O } from "../../../../utils/common-util.js";
|
|
8
8
|
import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
|
|
9
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:
|
|
11
|
-
const
|
|
12
|
-
let
|
|
13
|
-
const L =
|
|
14
|
-
|
|
15
|
-
const z = R(
|
|
10
|
+
const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: j2, emit: A }) {
|
|
11
|
+
const U = e2, H = U.pageContext;
|
|
12
|
+
let N = U.configure;
|
|
13
|
+
const L = U.configure.runtime ? U.configure.runtime : {};
|
|
14
|
+
H.isTest ? L.value = U.configure.runtime ? U.configure.runtime : {} : H.tableRuntimes && H.tableRuntimes[N.uuid] && (N = JSON.parse(H.tableRuntimes[N.uuid].configure), L.value = N.runtime ? N.runtime : {});
|
|
15
|
+
const z = R(H.code, H.version, N.uuid), B = H.entity.data, E = N.code ? N.code : z, G = k(H), V = L && L.events ? L.events : [], J = t([]), q = H.superGridItems, K = q ? q[N.uuid] : null;
|
|
16
16
|
console.log("superGridSetting===", q, K);
|
|
17
|
-
const Q = L.style, W = L.class, X =
|
|
18
|
-
let Y = C(
|
|
17
|
+
const Q = L.style, W = L.class, X = U.pageContext.entity ? U.pageContext.entity : {};
|
|
18
|
+
let Y = C(U.configure, E), Z = O(H.backendUrl, H.isTest);
|
|
19
19
|
Z || (Z = window.$vueApp.config.globalProperties.baseURL);
|
|
20
20
|
const ee = t(false);
|
|
21
21
|
let te = t(0);
|
|
22
|
-
const ne =
|
|
23
|
-
return F(e3, e3.cellStyle,
|
|
22
|
+
const ne = N.props.dataOrigin.principalLinkage, oe = t({ isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: H.code, pageVersion: H.version, pageContext: H, configureObj: N, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!N.props || !N.props.otherSettings || void 0 !== N.props.otherSettings.isBreakLine && false !== N.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
|
|
23
|
+
return F(e3, e3.cellStyle, U);
|
|
24
24
|
}, rowStyleRender: function(e3) {
|
|
25
|
-
return M(e3, null,
|
|
25
|
+
return M(e3, null, U);
|
|
26
26
|
}, titleStyleRender: function(e3) {
|
|
27
|
-
const t2 = e3.titleStyle, n2 =
|
|
28
|
-
return $(e3, { cellTitleStyle: t2, titleStyle: n2 },
|
|
29
|
-
} }), ae =
|
|
30
|
-
Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W),
|
|
27
|
+
const t2 = e3.titleStyle, n2 = U.configure.style.titleStyle;
|
|
28
|
+
return $(e3, { cellTitleStyle: t2, titleStyle: n2 }, U);
|
|
29
|
+
} }), ae = A;
|
|
30
|
+
Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W), N.props && N.props.base && true === N.props.base.subPaging ? oe.value.showPageArea = true : oe.value.showPageArea = false, N.props.base.showRowForm && (oe.value.showRowForm = N.props.base.showRowForm);
|
|
31
31
|
const ie = t(null);
|
|
32
32
|
function le() {
|
|
33
33
|
ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(z));
|
|
34
34
|
}
|
|
35
35
|
function ue(e3) {
|
|
36
|
-
if (void 0 === e3 && (e3 = se()), oe.value.isPageInfo = false, oe.value.isFormSubTable = true, oe.value.canRrefreshSubtableData = e3, oe.value.getFormData = re, oe.value.getGridData = ce, oe.value.extraParam.subTableListViewCode = z, oe.value.extraParam.beanName =
|
|
36
|
+
if (void 0 === e3 && (e3 = se()), oe.value.isPageInfo = false, oe.value.isFormSubTable = true, oe.value.canRrefreshSubtableData = e3, oe.value.getFormData = re, oe.value.getGridData = ce, oe.value.extraParam.subTableListViewCode = z, oe.value.extraParam.beanName = H.beanName, oe.value.extraParam.subtableSetting = N.props && N.props.otherSettings ? JSON.stringify(N.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = G, oe.value.extraParam.entityMap = H.entity.data, oe.value.extraParam.contextMap = H.entity.context, oe.value.extraParam.taskMap = H.entity.task, !(N.props && N.props.base && N.props.base.showOperation)) {
|
|
37
37
|
let e4 = oe.value.hiddenColumns;
|
|
38
38
|
e4 ? e4.push("operation") : e4 = ["operation"], oe.value.hiddenColumns = e4;
|
|
39
39
|
}
|
|
40
|
-
oe.value.showOperationButton = !(!
|
|
41
|
-
let t2 = x(
|
|
40
|
+
oe.value.showOperationButton = !(!N.props || !N.props.base) && N.props.base.showOperation, oe.value.isPdfEditor = false, oe.value.tableRecordMaxNum = N.props && N.props.otherSettings ? N.props.otherSettings.tableRecordMaxNum : null;
|
|
41
|
+
let t2 = x(H, N);
|
|
42
42
|
t2 && t2.fixHeight && (oe.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (oe.value.formSetMaxHeight = t2.maxHeight);
|
|
43
43
|
}
|
|
44
44
|
function se() {
|
|
45
|
-
if (
|
|
46
|
-
if (
|
|
45
|
+
if (N.props && N.props.otherSettings) {
|
|
46
|
+
if (N.props.otherSettings.sourceQueryTableData && N.props.otherSettings.timeToInitializeSubTable && N.props.otherSettings.timeToInitializeSubTable.length > 0) {
|
|
47
47
|
let e3 = false;
|
|
48
|
-
if (-1 !==
|
|
48
|
+
if (-1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !B.id && !B.ID), -1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
|
|
49
49
|
const t2 = B[E];
|
|
50
50
|
(!t2 || t2.length <= 0) && (e3 = true);
|
|
51
51
|
}
|
|
@@ -55,7 +55,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
function re() {
|
|
58
|
-
return
|
|
58
|
+
return H.entity.data;
|
|
59
59
|
}
|
|
60
60
|
function ce() {
|
|
61
61
|
return D(X, Y);
|
|
@@ -68,7 +68,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
68
68
|
}
|
|
69
69
|
function be() {
|
|
70
70
|
!function() {
|
|
71
|
-
const e4 =
|
|
71
|
+
const e4 = H.fieldPermissionMap, t2 = H.actionPermissionMap;
|
|
72
72
|
if (e4 && null != e4) {
|
|
73
73
|
let t3 = e4.get(E);
|
|
74
74
|
if (!t3) {
|
|
@@ -83,7 +83,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
83
83
|
}
|
|
84
84
|
oe.value.operations || (oe.value.operations = {});
|
|
85
85
|
const n2 = function() {
|
|
86
|
-
let e5 = [], t3 = w(
|
|
86
|
+
let e5 = [], t3 = w(U.pageContext, N.props.base.showOperationCondition);
|
|
87
87
|
if (t3 && Se()) {
|
|
88
88
|
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: xe, isShow: we };
|
|
89
89
|
e5.push(t4);
|
|
@@ -92,18 +92,18 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
92
92
|
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: De };
|
|
93
93
|
e5.push(t4);
|
|
94
94
|
}
|
|
95
|
-
return I(
|
|
95
|
+
return I(H, N, e5, me), e5;
|
|
96
96
|
}();
|
|
97
97
|
oe.value.operations.operation = n2, oe.value.subTableCanAdd = Se();
|
|
98
|
-
}(), c(oe.value, V,
|
|
99
|
-
const e3 =
|
|
98
|
+
}(), c(oe.value, V, H, N);
|
|
99
|
+
const e3 = H.customEvents;
|
|
100
100
|
e3 && (oe.value.eventCallBack = e3), ee.value = true, ge();
|
|
101
101
|
}
|
|
102
102
|
function ge() {
|
|
103
|
-
|
|
103
|
+
H.tableUuids || (H.tableUuids = []), H.tableUuids.indexOf(N.uuid) < 0 && H.tableUuids.push(N.uuid);
|
|
104
104
|
}
|
|
105
105
|
n(() => {
|
|
106
|
-
const e3 =
|
|
106
|
+
const e3 = N.uuid, t2 = H.subTableWatchProps;
|
|
107
107
|
y.$on("_refreshSubTable_" + e3, (n2) => {
|
|
108
108
|
console.log("-_refreshSubTable--tableUuid=", e3, "params=", n2);
|
|
109
109
|
const o2 = n2.propName;
|
|
@@ -115,7 +115,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
115
115
|
}), y.$on("_refreshChildData_" + e3, (t3) => {
|
|
116
116
|
console.log("-_refreshChildData_--tableUuid=", e3), function(e4) {
|
|
117
117
|
Le(e4), de = setTimeout(() => {
|
|
118
|
-
ie.value && (ie.value.refreshChildData(z, e4,
|
|
118
|
+
ie.value && (ie.value.refreshChildData(z, e4, N.props && N.props.base && true === N.props.base.subPaging), oe.value.extraParam.entityMap = H.entity.data);
|
|
119
119
|
}, 10);
|
|
120
120
|
}(t3);
|
|
121
121
|
}), y.$on(z + "-pickFileDone", (e4) => {
|
|
@@ -125,7 +125,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
125
125
|
}), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && ae("setSafeDeleteTableCode", oe.value.extraParam.tableName);
|
|
126
126
|
}), o(() => {
|
|
127
127
|
pe && clearTimeout(pe), de && clearTimeout(de);
|
|
128
|
-
const e3 =
|
|
128
|
+
const e3 = N.uuid;
|
|
129
129
|
y.$off("_refreshSubTable_" + e3), y.$off("_refreshSubTableHandle_" + e3), y.$off("_refreshChildData_" + e3), y.$off(z + "-pickFileDone"), y.$off(z + "-scanDone");
|
|
130
130
|
});
|
|
131
131
|
const ve = t({});
|
|
@@ -134,12 +134,12 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
134
134
|
return ve.value[e3.uuid] = e3, he;
|
|
135
135
|
}
|
|
136
136
|
function he(e3, t2, n2, o2, a2, i2) {
|
|
137
|
-
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: a2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = ve.value[i2.sourceButton.uuid], s2 =
|
|
138
|
-
u2.props.base.tableUuid = s2.uuid, S(null,
|
|
137
|
+
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: a2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = ve.value[i2.sourceButton.uuid], s2 = N;
|
|
138
|
+
u2.props.base.tableUuid = s2.uuid, S(null, H, u2, "click", l2);
|
|
139
139
|
}
|
|
140
140
|
function Se(e3, t2, n2, o2, a2, i2) {
|
|
141
|
-
if (!w(
|
|
142
|
-
const l2 =
|
|
141
|
+
if (!w(U.pageContext, N.props.base.showOperationCondition)) return false;
|
|
142
|
+
const l2 = H.fieldPermissionMap, u2 = H.actionPermissionMap;
|
|
143
143
|
let s2 = true;
|
|
144
144
|
if (l2 && null !== l2) {
|
|
145
145
|
const e4 = l2.get("all_fields");
|
|
@@ -153,10 +153,10 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
153
153
|
}
|
|
154
154
|
function we(e3, t2, n2, o2, a2, i2) {
|
|
155
155
|
let l2 = Se();
|
|
156
|
-
return true === l2 && (l2 = w(
|
|
156
|
+
return true === l2 && (l2 = w(U.pageContext, N.props.base.showAddBtnCondition, n2)), l2;
|
|
157
157
|
}
|
|
158
158
|
function Te(e3, t2, n2, o2, a2, i2) {
|
|
159
|
-
const l2 =
|
|
159
|
+
const l2 = H.fieldPermissionMap, u2 = H.actionPermissionMap;
|
|
160
160
|
let s2 = true;
|
|
161
161
|
if (l2 && null !== l2) {
|
|
162
162
|
const e4 = l2.get("all_fields");
|
|
@@ -177,7 +177,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
177
177
|
}
|
|
178
178
|
function De(e3, t2, n2, o2, a2, i2) {
|
|
179
179
|
let l2 = Te(0, 0, n2, 0, 0, i2);
|
|
180
|
-
return true === l2 && (l2 = w(
|
|
180
|
+
return true === l2 && (l2 = w(U.pageContext, N.props.base.showDeleteBtnCondition, n2)), l2;
|
|
181
181
|
}
|
|
182
182
|
function xe(e3, t2, n2, o2, a2) {
|
|
183
183
|
ie.value.createRow(z, {}, { getDefaultValueFunc: P });
|
|
@@ -189,52 +189,52 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
189
189
|
T(X, Y, e3);
|
|
190
190
|
}
|
|
191
191
|
function ye(e3) {
|
|
192
|
-
console.log("表单组件--Item--changeRowsPerpage==pageSize=", e3),
|
|
192
|
+
console.log("表单组件--Item--changeRowsPerpage==pageSize=", e3), H.subTablePageInfo || (H.subTablePageInfo = {}), H.subTablePageInfo[E] = { pageSize: e3 };
|
|
193
193
|
}
|
|
194
194
|
function _e(e3) {
|
|
195
195
|
const t2 = e3.key, n2 = e3.value;
|
|
196
|
-
|
|
196
|
+
H.selectOptions || (H.selectOptions = {}), H.selectOptions[t2] = n2;
|
|
197
197
|
}
|
|
198
198
|
function Ie(e3) {
|
|
199
|
-
const t2 =
|
|
199
|
+
const t2 = H.code + "_";
|
|
200
200
|
y.$emit(t2 + "prohibit-edit", e3);
|
|
201
201
|
}
|
|
202
202
|
function Re(e3) {
|
|
203
|
-
const t2 =
|
|
203
|
+
const t2 = H.entity.data;
|
|
204
204
|
if (e3) for (const n2 in e3) t2[n2] = e3[n2];
|
|
205
205
|
}
|
|
206
206
|
function Oe(e3, t2) {
|
|
207
207
|
if (void 0 !== t2) {
|
|
208
208
|
J.value = e3;
|
|
209
|
-
p(
|
|
209
|
+
p(H, N, { selection: e3, row: t2 });
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
function ke(e3) {
|
|
213
213
|
J.value = e3;
|
|
214
|
-
d(
|
|
214
|
+
d(H, N, { selection: e3 });
|
|
215
215
|
}
|
|
216
216
|
function Me(e3) {
|
|
217
|
-
f(
|
|
217
|
+
f(H, N, { newSelection: e3 });
|
|
218
218
|
}
|
|
219
219
|
function Fe(e3, t2, n2, o2) {
|
|
220
|
-
b(
|
|
220
|
+
b(H, N, { row: e3, column: t2, cell: n2, event: o2 });
|
|
221
221
|
}
|
|
222
222
|
function $e(e3, t2, n2, o2) {
|
|
223
|
-
g(
|
|
223
|
+
g(H, N, { row: e3, column: t2, cell: n2, event: o2 });
|
|
224
224
|
}
|
|
225
225
|
function je(e3, t2, n2) {
|
|
226
|
-
v(
|
|
226
|
+
v(H, N, { row: e3, column: t2, event: n2 });
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
m(
|
|
228
|
+
function Ae(e3, t2, n2) {
|
|
229
|
+
m(H, N, { row: e3, column: t2, event: n2 });
|
|
230
230
|
}
|
|
231
|
-
function
|
|
232
|
-
h(
|
|
231
|
+
function Ue(e3, t2) {
|
|
232
|
+
h(H, N, { column: e3, event: t2 });
|
|
233
233
|
}
|
|
234
|
-
function
|
|
235
|
-
|
|
234
|
+
function He(e3) {
|
|
235
|
+
H.entity.data = e3;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Ne() {
|
|
238
238
|
return D(X, Y);
|
|
239
239
|
}
|
|
240
240
|
function Le(e3) {
|
|
@@ -242,7 +242,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
242
242
|
}
|
|
243
243
|
return function() {
|
|
244
244
|
const e3 = se();
|
|
245
|
-
e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData =
|
|
245
|
+
e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Ne(), be());
|
|
246
246
|
}(), j2({ createRow: function() {
|
|
247
247
|
return ie.value.createRow(z);
|
|
248
248
|
}, getSelections: function() {
|
|
@@ -255,18 +255,20 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
255
255
|
}, clearSelections: function() {
|
|
256
256
|
J.value = [];
|
|
257
257
|
}, getTableConfigure: function() {
|
|
258
|
-
return
|
|
258
|
+
return N;
|
|
259
259
|
}, validatorSunTableListData: function() {
|
|
260
260
|
return ie.value.validatorSunTableListData();
|
|
261
|
-
}, getValue:
|
|
261
|
+
}, getValue: Ne, setValue: Le, getTableSelectOptions: function() {
|
|
262
262
|
if (ie.value) return ie.value.getTableSelectOptions(z);
|
|
263
263
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
264
264
|
ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
|
|
265
265
|
}, doLayout: function(e3) {
|
|
266
266
|
ie.value && ie.value.doLayout(e3);
|
|
267
|
+
}, changeOperationAddState: function(e3) {
|
|
268
|
+
ie.value && ie.value.changeOperationAddState(e3);
|
|
267
269
|
} }), (e3, t2) => {
|
|
268
270
|
const n2 = a("super-grid");
|
|
269
|
-
return l(), i("div", null, [ee.value ? (l(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: r(Z) + "/dsc/commons/sub-table", options: oe.value, code: r(z), settings: r(K), onSelect: Oe, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick:
|
|
271
|
+
return l(), i("div", null, [ee.value ? (l(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: r(Z) + "/dsc/commons/sub-table", options: oe.value, code: r(z), settings: r(K), onSelect: Oe, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ae, onHeaderClick: Ue, onFnProhibitToEdit: Ie, onChangeGridData: Pe, onReloadGrid: fe, onRefresMainTableFields: Re, onSetSelectOptions: _e, onChangeRowsPerPage: ye, onNewOpenGridDialog: r(_), onChangeFormData: He }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : s("", true)]);
|
|
270
272
|
};
|
|
271
273
|
} });
|
|
272
274
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, createElementBlock as n, openBlock as u, createBlock as i, unref as a } from "vue";
|
|
2
2
|
import "agilebuilder-ui";
|
|
3
3
|
import "agilebuilder-ui/src/utils/request";
|
|
4
4
|
import "dayjs";
|
|
@@ -7,18 +7,18 @@ import "../../../../utils/global-refs.js";
|
|
|
7
7
|
import "agilebuilder-ui/src/utils/common-util";
|
|
8
8
|
import "agilebuilder-ui/src/utils/util";
|
|
9
9
|
import o from "./sub-table-runtime.vue.js";
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
const c = e2,
|
|
13
|
-
|
|
10
|
+
import l from "./main-table-runtime.vue.js";
|
|
11
|
+
const r = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: r2 }) {
|
|
12
|
+
const c = e2, f = c.pageContext.pageType, s = t(null), g = c.configure.uuid, p = c.pageContext.superGridItems, d = p ? p[g] : null;
|
|
13
|
+
s.value = d ? d.configure ? JSON.parse(d.configure) : null : c.configure;
|
|
14
14
|
const m = c.configure.runtime ? c.configure.runtime : {};
|
|
15
15
|
m.style, m.class;
|
|
16
16
|
const v = t(null);
|
|
17
|
-
function
|
|
17
|
+
function S(e3) {
|
|
18
18
|
c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
|
|
19
19
|
}
|
|
20
|
-
return
|
|
21
|
-
if (
|
|
20
|
+
return r2({ refresh: function(e3, t2, n2, u2) {
|
|
21
|
+
if (f && "list" === f) return v.value.refresh(e3, t2, n2, u2);
|
|
22
22
|
}, createRow: function() {
|
|
23
23
|
return v.value.createRow();
|
|
24
24
|
}, clearSelections: function() {
|
|
@@ -30,21 +30,23 @@ const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
|
|
|
30
30
|
}, getTableConfigure: function() {
|
|
31
31
|
return v.value.getTableConfigure();
|
|
32
32
|
}, isDeleteChange: function(e3) {
|
|
33
|
-
|
|
33
|
+
f && "list" === f && v.value.isDeleteChange(e3);
|
|
34
34
|
}, validatorSunTableListData: function() {
|
|
35
|
-
if (
|
|
35
|
+
if (f && "form" === f) return v.value.validatorSunTableListData();
|
|
36
36
|
}, showMobileSearch: function() {
|
|
37
37
|
v.value.showMobileSearch();
|
|
38
38
|
}, getTableSelectOptions: function() {
|
|
39
39
|
if (v.value) return v.value.getTableSelectOptions();
|
|
40
|
-
}, dynamicControlTableEdit: function(e3, t2,
|
|
41
|
-
v.value && v.value.dynamicControlTableEdit(e3, t2,
|
|
40
|
+
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
41
|
+
v.value && v.value.dynamicControlTableEdit(e3, t2, n2);
|
|
42
42
|
}, getTableUuid: function() {
|
|
43
43
|
return c.configure.uuid;
|
|
44
44
|
}, doLayout: function(e3) {
|
|
45
45
|
v.value && v.value.doLayout(e3);
|
|
46
|
-
}
|
|
46
|
+
}, changeOperationAddState: function(e3) {
|
|
47
|
+
v.value && v.value.changeOperationAddState(e3);
|
|
48
|
+
} }), (e3, t2) => (u(), n("div", null, [a(f) && "form" === a(f) ? (u(), i(o, { key: 0, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: s.value, onSetSafeDeleteTableCode: S }, null, 8, ["pageContext", "configure"])) : (u(), i(l, { key: 1, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: s.value, onSetSafeDeleteTableCode: S }, null, 8, ["pageContext", "configure"]))]));
|
|
47
49
|
} });
|
|
48
50
|
export {
|
|
49
|
-
|
|
51
|
+
r as default
|
|
50
52
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./tree-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = r(e, [["__scopeId", "data-v-
|
|
4
|
+
const t = r(e, [["__scopeId", "data-v-4b43ab6c"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|