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