super-page-runtime 2.2.83 → 2.2.89
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 +56 -56
- package/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +74 -74
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +45 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -16
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +7 -9
- package/dist/es/components/runtime/utils/events/event-util.js +113 -113
- package/dist/es/components/runtime/utils/events/print-label.js +37 -38
- package/dist/es/components/runtime/utils/events/standard-event.js +508 -524
- package/dist/es/components/runtime/utils/events/validator-util.js +72 -62
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +210 -210
- package/dist/es/components/runtime/utils/page-init-util.js +47 -50
- package/dist/es/components/runtime/utils/page-permission-util.js +16 -16
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/utils/table-utils.js +23 -23
- 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/column-line/column-line-runtime.vue2.js +12 -16
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +9 -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/gauge/gauge-runtime.vue2.js +12 -13
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +13 -14
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +131 -122
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +90 -57
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -26
- 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 +39 -36
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +11 -8
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +92 -94
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +123 -124
- 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 +80 -77
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +34 -29
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +39 -41
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +50 -51
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- 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/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +9 -10
- 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 +126 -126
- package/dist/es/index.js +1 -0
- package/dist/es/style.css +234 -99
- package/package.json +2 -2
|
@@ -1,52 +1,50 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as a, createElementBlock as i, openBlock as l, createBlock as u, createCommentVNode as
|
|
2
|
-
import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as b, cellDblClick as
|
|
3
|
-
import { caculateShowCondition as w, setVariableValue as T, getVariableValue as
|
|
4
|
-
import { getModelFields as C, getDefaultValue as
|
|
5
|
-
import
|
|
6
|
-
import { popupToPage as
|
|
7
|
-
import { getListCode as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as a, createElementBlock as i, openBlock as l, 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 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
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
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
const Q = L.style, W = L.class, X = H.pageContext.entity ? H.pageContext.entity : {};
|
|
18
|
-
let Y = C(H.configure, E), Z = O(N.backendUrl, N.isTest);
|
|
10
|
+
const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: j2, emit: A }) {
|
|
11
|
+
const N = e2, H = N.pageContext;
|
|
12
|
+
let L = N.configure;
|
|
13
|
+
const B = N.configure.runtime ? N.configure.runtime : {};
|
|
14
|
+
H.isTest ? B.value = N.configure.runtime ? N.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 = N.pageContext.entity ? N.pageContext.entity : {};
|
|
16
|
+
let Y = C(N.configure, z), Z = _(H.backendUrl, H.isTest);
|
|
19
17
|
Z || (Z = window.$vueApp.config.globalProperties.baseURL);
|
|
20
18
|
const ee = t(false);
|
|
21
19
|
let te = t(0);
|
|
22
|
-
const ne =
|
|
23
|
-
return F(e3, e3.cellStyle,
|
|
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, N);
|
|
24
22
|
}, rowStyleRender: function(e3) {
|
|
25
|
-
return M(e3, null,
|
|
23
|
+
return M(e3, null, N);
|
|
26
24
|
}, 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),
|
|
25
|
+
const t2 = e3.titleStyle, n2 = N.configure.style.titleStyle;
|
|
26
|
+
return $(e3, { cellTitleStyle: t2, titleStyle: n2 }, N);
|
|
27
|
+
} }), ae = A;
|
|
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);
|
|
31
29
|
const ie = t(null);
|
|
32
30
|
function le() {
|
|
33
|
-
ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(
|
|
31
|
+
ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(E));
|
|
34
32
|
}
|
|
35
33
|
function ue(e3) {
|
|
36
|
-
if (void 0 === e3 && (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)) {
|
|
37
35
|
let e4 = oe.value.hiddenColumns;
|
|
38
36
|
e4 ? e4.push("operation") : e4 = ["operation"], oe.value.hiddenColumns = e4;
|
|
39
37
|
}
|
|
40
|
-
oe.value.showOperationButton = !(!
|
|
41
|
-
let t2 =
|
|
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);
|
|
42
40
|
t2 && t2.fixHeight && (oe.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (oe.value.formSetMaxHeight = t2.maxHeight);
|
|
43
41
|
}
|
|
44
|
-
function
|
|
45
|
-
if (
|
|
46
|
-
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) {
|
|
47
45
|
let e3 = false;
|
|
48
|
-
if (-1 !==
|
|
49
|
-
const t2 =
|
|
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];
|
|
50
48
|
(!t2 || t2.length <= 0) && (e3 = true);
|
|
51
49
|
}
|
|
52
50
|
return e3;
|
|
@@ -54,23 +52,23 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
54
52
|
return false;
|
|
55
53
|
}
|
|
56
54
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
55
|
+
function se() {
|
|
56
|
+
return H.entity.data;
|
|
59
57
|
}
|
|
60
58
|
function ce() {
|
|
61
|
-
return
|
|
59
|
+
return x(X, Y);
|
|
62
60
|
}
|
|
63
61
|
let pe, de;
|
|
64
62
|
function fe(e3) {
|
|
65
63
|
ue(e3), oe.value.subTableData = null, be(), ee.value = false, pe = setTimeout(() => {
|
|
66
|
-
ee.value = true, te.value = te.value + 1,
|
|
64
|
+
ee.value = true, te.value = te.value + 1, ve();
|
|
67
65
|
}, 10);
|
|
68
66
|
}
|
|
69
67
|
function be() {
|
|
70
68
|
!function() {
|
|
71
|
-
const e4 =
|
|
69
|
+
const e4 = H.fieldPermissionMap, t2 = H.actionPermissionMap;
|
|
72
70
|
if (e4 && null != e4) {
|
|
73
|
-
let t3 = e4.get(
|
|
71
|
+
let t3 = e4.get(z);
|
|
74
72
|
if (!t3) {
|
|
75
73
|
const n3 = e4.get("all_fields");
|
|
76
74
|
n3 && (t3 = [n3]);
|
|
@@ -78,173 +76,172 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
78
76
|
oe.value.validateRules = t3 || null;
|
|
79
77
|
}
|
|
80
78
|
if (t2 && null != t2) {
|
|
81
|
-
let e5 = t2.get(
|
|
79
|
+
let e5 = t2.get(z);
|
|
82
80
|
e5 || (e5 = t2.get("all_sub_tables")), oe.value.actionPermission = e5;
|
|
83
81
|
}
|
|
84
82
|
oe.value.operations || (oe.value.operations = {});
|
|
85
83
|
const n2 = function() {
|
|
86
|
-
let e5 = [], t3 = w(
|
|
84
|
+
let e5 = [], t3 = w(N.pageContext, L.props.base.showOperationCondition);
|
|
87
85
|
if (t3 && Se()) {
|
|
88
|
-
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick:
|
|
86
|
+
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: we };
|
|
89
87
|
e5.push(t4);
|
|
90
88
|
}
|
|
91
89
|
if (t3 && Te(null, null, null, null, null, true)) {
|
|
92
|
-
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow:
|
|
90
|
+
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: xe };
|
|
93
91
|
e5.push(t4);
|
|
94
92
|
}
|
|
95
|
-
return
|
|
93
|
+
return R(H, L, e5, me), e5;
|
|
96
94
|
}();
|
|
97
95
|
oe.value.operations.operation = n2, oe.value.subTableCanAdd = Se();
|
|
98
|
-
}(), c(oe.value,
|
|
99
|
-
const e3 =
|
|
100
|
-
e3 && (oe.value.eventCallBack = e3), ee.value = true,
|
|
96
|
+
}(), c(oe.value, G, H, L);
|
|
97
|
+
const e3 = H.customEvents;
|
|
98
|
+
e3 && (oe.value.eventCallBack = e3), ee.value = true, ve();
|
|
101
99
|
}
|
|
102
|
-
function
|
|
103
|
-
|
|
100
|
+
function ve() {
|
|
101
|
+
H.tableUuids || (H.tableUuids = []), H.tableUuids.indexOf(L.uuid) < 0 && H.tableUuids.push(L.uuid);
|
|
104
102
|
}
|
|
105
103
|
n(() => {
|
|
106
|
-
const e3 =
|
|
107
|
-
|
|
108
|
-
console.log("-_refreshSubTable--tableUuid=", e3, "params=", n2);
|
|
104
|
+
const e3 = L.uuid, t2 = H.subTableWatchProps;
|
|
105
|
+
P.$on("_refreshSubTable_" + e3, (n2) => {
|
|
109
106
|
const o2 = n2.propName;
|
|
110
107
|
if (t2 && t2[e3] && t2[e3].length > 0) {
|
|
111
108
|
t2[e3].indexOf(o2) >= 0 && le();
|
|
112
109
|
}
|
|
113
|
-
}),
|
|
114
|
-
|
|
115
|
-
}),
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
ie.value && (ie.value.refreshChildData(
|
|
110
|
+
}), P.$on("_refreshSubTableHandle_" + e3, (e4) => {
|
|
111
|
+
le();
|
|
112
|
+
}), P.$on("_refreshChildData_" + e3, (e4) => {
|
|
113
|
+
!function(e5) {
|
|
114
|
+
Be(e5), de = setTimeout(() => {
|
|
115
|
+
ie.value && (ie.value.refreshChildData(E, e5, L.props && L.props.base && true === L.props.base.subPaging), oe.value.extraParam.entityMap = H.entity.data);
|
|
119
116
|
}, 10);
|
|
120
|
-
}(
|
|
121
|
-
}),
|
|
122
|
-
|
|
123
|
-
}),
|
|
124
|
-
|
|
117
|
+
}(e4);
|
|
118
|
+
}), P.$on(E + "-pickFileDone", (e4) => {
|
|
119
|
+
ie.value.pickFileDone(e4);
|
|
120
|
+
}), P.$on(E + "-scanDone", (e4) => {
|
|
121
|
+
ie.value.scanDone(e4);
|
|
125
122
|
}), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && ae("setSafeDeleteTableCode", oe.value.extraParam.tableName);
|
|
126
123
|
}), o(() => {
|
|
127
124
|
pe && clearTimeout(pe), de && clearTimeout(de);
|
|
128
|
-
const e3 =
|
|
129
|
-
|
|
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");
|
|
130
127
|
});
|
|
131
|
-
const
|
|
128
|
+
const ge = t({});
|
|
132
129
|
function me(e3) {
|
|
133
130
|
if (!e3) return;
|
|
134
|
-
return
|
|
131
|
+
return ge.value[e3.uuid] = e3, he;
|
|
135
132
|
}
|
|
136
133
|
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 =
|
|
138
|
-
u2.props.base.tableUuid =
|
|
134
|
+
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: a2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = ge.value[i2.sourceButton.uuid], r2 = L;
|
|
135
|
+
u2.props.base.tableUuid = r2.uuid, S(null, H, u2, "click", l2);
|
|
139
136
|
}
|
|
140
137
|
function Se(e3, t2, n2, o2, a2, i2) {
|
|
141
|
-
if (!w(
|
|
142
|
-
const l2 =
|
|
143
|
-
let
|
|
138
|
+
if (!w(N.pageContext, L.props.base.showOperationCondition)) return false;
|
|
139
|
+
const l2 = H.fieldPermissionMap, u2 = H.actionPermissionMap;
|
|
140
|
+
let r2 = true;
|
|
144
141
|
if (l2 && null !== l2) {
|
|
145
142
|
const e4 = l2.get("all_fields");
|
|
146
|
-
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);
|
|
147
144
|
}
|
|
148
|
-
if (true ===
|
|
149
|
-
let e4 = u2.get(
|
|
150
|
-
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);
|
|
151
148
|
}
|
|
152
|
-
return
|
|
149
|
+
return r2;
|
|
153
150
|
}
|
|
154
151
|
function we(e3, t2, n2, o2, a2, i2) {
|
|
155
152
|
let l2 = Se();
|
|
156
|
-
return true === l2 && (l2 = w(
|
|
153
|
+
return true === l2 && (l2 = w(N.pageContext, L.props.base.showAddBtnCondition, n2)), l2;
|
|
157
154
|
}
|
|
158
155
|
function Te(e3, t2, n2, o2, a2, i2) {
|
|
159
|
-
const l2 =
|
|
160
|
-
let
|
|
156
|
+
const l2 = H.fieldPermissionMap, u2 = H.actionPermissionMap;
|
|
157
|
+
let r2 = true;
|
|
161
158
|
if (l2 && null !== l2) {
|
|
162
159
|
const e4 = l2.get("all_fields");
|
|
163
|
-
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);
|
|
164
161
|
}
|
|
165
|
-
if (true ===
|
|
166
|
-
let e4 = u2.get(
|
|
167
|
-
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 (i2) r2 = true;
|
|
168
165
|
else {
|
|
169
166
|
const t3 = function(e5) {
|
|
170
167
|
return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
|
|
171
168
|
}(n2);
|
|
172
|
-
|
|
169
|
+
r2 = void 0 !== t3 && e4.deleteRowIndexes.indexOf(t3) >= 0;
|
|
173
170
|
}
|
|
174
|
-
else
|
|
171
|
+
else r2 = false;
|
|
175
172
|
}
|
|
176
|
-
return
|
|
173
|
+
return r2;
|
|
177
174
|
}
|
|
178
|
-
function
|
|
175
|
+
function xe(e3, t2, n2, o2, a2, i2) {
|
|
179
176
|
let l2 = Te(0, 0, n2, 0, 0, i2);
|
|
180
|
-
return true === l2 && (l2 = w(
|
|
177
|
+
return true === l2 && (l2 = w(N.pageContext, L.props.base.showDeleteBtnCondition, n2)), l2;
|
|
181
178
|
}
|
|
182
|
-
function
|
|
183
|
-
ie.value.createRow(
|
|
179
|
+
function De(e3, t2, n2, o2, a2) {
|
|
180
|
+
ie.value.createRow(E, {}, { getDefaultValueFunc: y });
|
|
184
181
|
}
|
|
185
182
|
function Ce(e3, t2, n2, o2, a2) {
|
|
186
|
-
ie.value.deleteRow(a2,
|
|
187
|
-
}
|
|
188
|
-
function Pe(e3) {
|
|
189
|
-
T(X, Y, e3);
|
|
183
|
+
ie.value.deleteRow(a2, E, false);
|
|
190
184
|
}
|
|
191
185
|
function ye(e3) {
|
|
192
|
-
|
|
186
|
+
T(X, Y, e3);
|
|
193
187
|
}
|
|
194
|
-
function
|
|
195
|
-
|
|
196
|
-
N.selectOptions || (N.selectOptions = {}), N.selectOptions[t2] = n2;
|
|
188
|
+
function Pe(e3) {
|
|
189
|
+
H.subTablePageInfo || (H.subTablePageInfo = {}), H.subTablePageInfo[z] = { pageSize: e3 };
|
|
197
190
|
}
|
|
198
191
|
function Ie(e3) {
|
|
199
|
-
const t2 =
|
|
200
|
-
|
|
192
|
+
const t2 = e3.key, n2 = e3.value;
|
|
193
|
+
H.selectOptions || (H.selectOptions = {}), H.selectOptions[t2] = n2;
|
|
201
194
|
}
|
|
202
195
|
function Re(e3) {
|
|
203
|
-
const t2 =
|
|
196
|
+
const t2 = H.code + "_";
|
|
197
|
+
P.$emit(t2 + "prohibit-edit", e3);
|
|
198
|
+
}
|
|
199
|
+
function Oe(e3) {
|
|
200
|
+
const t2 = H.entity.data;
|
|
204
201
|
if (e3) for (const n2 in e3) t2[n2] = e3[n2];
|
|
205
202
|
}
|
|
206
|
-
function
|
|
203
|
+
function _e(e3, t2) {
|
|
207
204
|
if (void 0 !== t2) {
|
|
208
205
|
J.value = e3;
|
|
209
|
-
p(
|
|
206
|
+
p(H, L, { selection: e3, row: t2 });
|
|
210
207
|
}
|
|
211
208
|
}
|
|
212
209
|
function ke(e3) {
|
|
213
210
|
J.value = e3;
|
|
214
|
-
d(
|
|
211
|
+
d(H, L, { selection: e3 });
|
|
215
212
|
}
|
|
216
213
|
function Me(e3) {
|
|
217
|
-
f(
|
|
214
|
+
f(H, L, { newSelection: e3 });
|
|
218
215
|
}
|
|
219
216
|
function Fe(e3, t2, n2, o2) {
|
|
220
|
-
b(
|
|
217
|
+
b(H, L, { row: e3, column: t2, cell: n2, event: o2 });
|
|
221
218
|
}
|
|
222
219
|
function $e(e3, t2, n2, o2) {
|
|
223
|
-
|
|
220
|
+
v(H, L, { row: e3, column: t2, cell: n2, event: o2 });
|
|
224
221
|
}
|
|
225
222
|
function je(e3, t2, n2) {
|
|
226
|
-
|
|
223
|
+
g(H, L, { row: e3, column: t2, event: n2 });
|
|
227
224
|
}
|
|
228
|
-
function
|
|
229
|
-
m(
|
|
225
|
+
function Ae(e3, t2, n2) {
|
|
226
|
+
m(H, L, { row: e3, column: t2, event: n2 });
|
|
230
227
|
}
|
|
231
|
-
function
|
|
232
|
-
h(
|
|
228
|
+
function Ne(e3, t2) {
|
|
229
|
+
h(H, L, { column: e3, event: t2 });
|
|
233
230
|
}
|
|
234
|
-
function
|
|
235
|
-
|
|
231
|
+
function He(e3) {
|
|
232
|
+
H.entity.data = e3;
|
|
236
233
|
}
|
|
237
|
-
function
|
|
238
|
-
return
|
|
234
|
+
function Le() {
|
|
235
|
+
return x(X, Y);
|
|
239
236
|
}
|
|
240
|
-
function
|
|
237
|
+
function Be(e3) {
|
|
241
238
|
return T(X, Y, e3);
|
|
242
239
|
}
|
|
243
240
|
return function() {
|
|
244
|
-
const e3 =
|
|
245
|
-
e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData =
|
|
241
|
+
const e3 = re();
|
|
242
|
+
e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Le(), be());
|
|
246
243
|
}(), j2({ createRow: function() {
|
|
247
|
-
return ie.value.createRow(
|
|
244
|
+
return ie.value.createRow(E);
|
|
248
245
|
}, getSelections: function() {
|
|
249
246
|
return J.value;
|
|
250
247
|
}, getSelectionIds: function() {
|
|
@@ -255,18 +252,20 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
255
252
|
}, clearSelections: function() {
|
|
256
253
|
J.value = [];
|
|
257
254
|
}, getTableConfigure: function() {
|
|
258
|
-
return
|
|
255
|
+
return L;
|
|
259
256
|
}, validatorSunTableListData: function() {
|
|
260
257
|
return ie.value.validatorSunTableListData();
|
|
261
|
-
}, getValue:
|
|
262
|
-
if (ie.value) return ie.value.getTableSelectOptions(
|
|
258
|
+
}, getValue: Le, setValue: Be, getTableSelectOptions: function() {
|
|
259
|
+
if (ie.value) return ie.value.getTableSelectOptions(E);
|
|
263
260
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
264
261
|
ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
|
|
265
262
|
}, doLayout: function(e3) {
|
|
266
263
|
ie.value && ie.value.doLayout(e3);
|
|
264
|
+
}, changeOperationAddState: function(e3) {
|
|
265
|
+
ie.value && ie.value.changeOperationAddState(e3);
|
|
267
266
|
} }), (e3, t2) => {
|
|
268
267
|
const n2 = a("super-grid");
|
|
269
|
-
return l(), i("div", null, [ee.value ? (l(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url:
|
|
268
|
+
return l(), i("div", null, [ee.value ? (l(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, 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: Ae, onHeaderClick: Ne, onFnProhibitToEdit: Re, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Ie, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(I), onChangeFormData: He }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
|
|
270
269
|
};
|
|
271
270
|
} });
|
|
272
271
|
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
|
};
|