super-page-runtime 2.2.26 → 2.2.29-tmp1
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-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.js +4 -2
- 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 +443 -431
- package/dist/es/components/runtime/utils/events/validator-util.js +30 -30
- package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
- package/dist/es/components/runtime/utils/page-helper-util.js +215 -214
- package/dist/es/components/runtime/utils/page-init-util.js +46 -42
- 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/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/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 +12 -7
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +16 -15
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +26 -22
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +3 -3
- 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 +114 -111
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +139 -136
- 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 -29
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +40 -38
- 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 +39 -38
- 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/home-chart.vue.js +10 -9
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +13 -12
- package/dist/es/components/runtime/views/super-page.vue.js +134 -132
- 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
|
|
2
|
-
import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords 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
|
-
} }),
|
|
28
|
-
Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W),
|
|
29
|
-
const
|
|
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);
|
|
31
|
+
const ie = t(null);
|
|
30
32
|
function le() {
|
|
31
|
-
|
|
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
|
-
let pe,
|
|
62
|
-
function
|
|
63
|
+
let pe, de;
|
|
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
|
-
|
|
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
|
-
|
|
120
|
-
}),
|
|
121
|
-
|
|
122
|
-
}), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete &&
|
|
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);
|
|
125
|
+
}), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && ae("setSafeDeleteTableCode", oe.value.extraParam.tableName);
|
|
123
126
|
}), o(() => {
|
|
124
|
-
pe && clearTimeout(pe),
|
|
125
|
-
const e3 =
|
|
126
|
-
|
|
127
|
+
pe && clearTimeout(pe), de && clearTimeout(de);
|
|
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
|
-
function he(e3, t2, n2, o2,
|
|
134
|
-
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex:
|
|
135
|
-
u2.props.base.tableUuid =
|
|
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 = A;
|
|
138
|
+
u2.props.base.tableUuid = s2.uuid, S(null, N, u2, "click", l2);
|
|
136
139
|
}
|
|
137
|
-
function Se(e3, t2, n2, o2,
|
|
138
|
-
if (!w(
|
|
139
|
-
const l2 =
|
|
140
|
-
let
|
|
140
|
+
function Se(e3, t2, n2, o2, a2, i2) {
|
|
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
|
-
function we(e3, t2, n2, o2,
|
|
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
|
-
function Te(e3, t2, n2, o2,
|
|
156
|
-
const l2 =
|
|
157
|
-
let
|
|
158
|
+
function Te(e3, t2, n2, o2, a2, i2) {
|
|
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
|
|
176
|
-
let l2 = Te(0, 0, n2, 0, 0,
|
|
177
|
-
return true === l2 && (l2 = w(
|
|
178
|
+
function De(e3, t2, n2, o2, a2, i2) {
|
|
179
|
+
let l2 = Te(0, 0, n2, 0, 0, i2);
|
|
180
|
+
return true === l2 && (l2 = w(H.pageContext, A.props.base.showDeleteBtnCondition, n2)), l2;
|
|
178
181
|
}
|
|
179
|
-
function
|
|
180
|
-
|
|
182
|
+
function xe(e3, t2, n2, o2, a2) {
|
|
183
|
+
ie.value.createRow(z, {}, { getDefaultValueFunc: P });
|
|
181
184
|
}
|
|
182
|
-
function Ce(e3, t2, n2, o2,
|
|
183
|
-
|
|
185
|
+
function Ce(e3, t2, n2, o2, 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
|
-
|
|
214
|
+
d(N, A, { selection: e3 });
|
|
212
215
|
}
|
|
213
216
|
function Me(e3) {
|
|
214
|
-
|
|
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 ?
|
|
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
|
|
247
|
+
return ie.value.createRow(z);
|
|
245
248
|
}, getSelections: function() {
|
|
246
249
|
return J.value;
|
|
247
250
|
}, getSelectionIds: function() {
|
|
@@ -252,18 +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
|
-
return
|
|
258
|
-
}, getValue:
|
|
259
|
-
if (
|
|
260
|
+
return ie.value.validatorSunTableListData();
|
|
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
267
|
} }), (e3, t2) => {
|
|
265
|
-
const n2 =
|
|
266
|
-
return l(),
|
|
268
|
+
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: 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)]);
|
|
267
270
|
};
|
|
268
271
|
} });
|
|
269
272
|
export {
|
|
@@ -27,6 +27,7 @@ const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
|
|
|
27
27
|
const J = T.value.monitorFields;
|
|
28
28
|
C(w.pageContext, J, function() {
|
|
29
29
|
_(w.pageContext, H, void 0).then((e3) => {
|
|
30
|
+
console.log("动态查询结果", e3);
|
|
30
31
|
});
|
|
31
32
|
});
|
|
32
33
|
const K = l(null), L = l(null), N = l(null);
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as l, createBlock as u, createElementBlock as r, createCommentVNode as p, openBlock as s, normalizeStyle as g, normalizeClass as c, unref as m, withCtx as d, resolveDynamicComponent as f, toDisplayString as v } from "vue";
|
|
2
2
|
import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as x, getVariableValue as y, formatVariableValue as b, getFormPropName as h, setVariableValueWithProp as j } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { handleAfterInitEvent as
|
|
5
|
-
import { updateFormItemEditState as
|
|
6
|
-
import { getListCode as
|
|
7
|
-
import { getComponentRef as
|
|
4
|
+
import { handleAfterInitEvent as k, handleEvent as R } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { updateFormItemEditState as D } from "../../../../utils/events/validator-util.js";
|
|
6
|
+
import { getListCode as V } from "../../../../utils/common-util.js";
|
|
7
|
+
import { getComponentRef as _ } from "../../../../utils/global-refs.js";
|
|
8
8
|
import { getAdditionalParamMap as E } from "../../../../utils/events/standard-event.js";
|
|
9
9
|
import { $t as w } from "../../../../utils/i18n-util.js";
|
|
10
10
|
import S from "../../../../utils/eventBus.js";
|
|
11
|
-
const U = { key: 0, style: { width: "100%", height: "100%" } },
|
|
12
|
-
const
|
|
13
|
-
x(
|
|
14
|
-
} }),
|
|
15
|
-
if (e3) for (let t2 in e3) e3.value[t2] = b(
|
|
16
|
-
}(
|
|
17
|
-
function
|
|
18
|
-
j(
|
|
11
|
+
const U = { key: 0, style: { width: "100%", height: "100%" } }, F = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, O = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: O2 }) {
|
|
12
|
+
const P = e2, $ = P.pageContext.entity ? P.pageContext.entity : {}, q = C(P.pageContext, P.configure), z = t({ get: () => y($, q), set(e3) {
|
|
13
|
+
x($, q, e3);
|
|
14
|
+
} }), G = P.configure.runtime ? P.configure.runtime : {}, I = G.style, H = G.class, B = G.headerStyle, N = o(G.props ? G.props : {}), W = function(e3) {
|
|
15
|
+
if (e3) for (let t2 in e3) e3.value[t2] = b(P.pageContext, t2);
|
|
16
|
+
}(G.customParams ? G.customParams : {}), A = E(P.pageContext), J = o(P.configure.props && P.configure.props.base ? P.configure.props.base.name : null);
|
|
17
|
+
function K(e3, t2) {
|
|
18
|
+
j($, e3, t2);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
20
|
+
function L(e3) {
|
|
21
|
+
D(P.pageContext, e3);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
const e3 =
|
|
23
|
+
function M() {
|
|
24
|
+
const e3 = P.pageContext.tableUuids;
|
|
25
25
|
e3 && e3.forEach((e4) => {
|
|
26
|
-
const t2 =
|
|
26
|
+
const t2 = V(P.pageContext.code, P.pageContext.version, P.configure.uuid), o2 = _(P.pageContext, e4);
|
|
27
27
|
o2 && o2.restoreGridEdit(t2);
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
const Q =
|
|
30
|
+
console.log("自定义控件----componentName=", J, "designProperty=", N), P.configure.props.verification.custom && P.configure.props.verification.custom.enabled && (P.pageContext.customValidatorUuids || (P.pageContext.customValidatorUuids = []), P.pageContext.customValidatorUuids.push(P.configure.uuid));
|
|
31
|
+
const Q = P.pageContext.code, T = o(q && q.length > 0 ? Q + "__" + q.join("__") : null), X = o(null), Y = o(null), Z = o(null);
|
|
32
32
|
function ee(e3) {
|
|
33
|
-
|
|
33
|
+
R(z.value, P.pageContext, P.configure, e3);
|
|
34
34
|
}
|
|
35
35
|
return a(() => {
|
|
36
36
|
S.$on(T.value + "-scanDone", (e3) => {
|
|
37
37
|
const t2 = e3.result;
|
|
38
|
-
x(
|
|
38
|
+
x($, q, t2);
|
|
39
39
|
}), S.$on(T.value + "-pickFileDone", (e3) => {
|
|
40
|
-
X.value.pickFileDone(e3);
|
|
40
|
+
console.log("superPage4444---pickFileDone--componentId.value=", T.value, "data=", e3), X.value.pickFileDone(e3);
|
|
41
41
|
}), n(() => {
|
|
42
|
-
const e3 =
|
|
43
|
-
|
|
42
|
+
const e3 = z.value;
|
|
43
|
+
k(e3, P.pageContext, P.configure, { formItemRef: Y.value, componentRef: X.value, titleRef: Z.value, value: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
|
|
44
44
|
});
|
|
45
45
|
}), i(() => {
|
|
46
46
|
S.$off(T.value + "-scanDone"), S.$off(T.value + "-pickFileDone");
|
|
47
|
-
}),
|
|
47
|
+
}), O2({ getCustomRef: function() {
|
|
48
48
|
return X.value;
|
|
49
49
|
} }), (e3, t2) => {
|
|
50
|
-
const o2 =
|
|
51
|
-
return
|
|
50
|
+
const o2 = l("el-form-item");
|
|
51
|
+
return N.value.tittleShow ? (s(), u(o2, { key: 0, ref_key: "formItemRef", ref: Y, required: N.value.required, class: c(m(H)), "label-width": N.value.labelWidth, style: g(m(I)) }, { label: d(() => [N.value.tittleShow ? (s(), r("div", { key: 0, ref_key: "titleRef", ref: Z, style: g({ ...m(B) }) }, v(m(w)(N.value.title)), 5)) : p("", true)]), default: d(() => [J.value ? (s(), r("div", U, [(s(), u(f(J.value), { ref_key: "customRef", ref: X, size: N.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(W), modelValue: z.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => z.value = e4), disabled: "disabled" === N.value.state, "additional-param-map": m(A), "component-id": T.value, onSetEntityValue: K, onSetCustomRules: L, onRestoreGridEdit: M, onHandleEvent: ee, onChange: t2[1] || (t2[1] = (t3) => m(R)(z.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : p("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : J.value ? (s(), r("div", F, [(s(), u(f(J.value), { ref_key: "customRef", ref: X, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(W), modelValue: z.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => z.value = e4), disabled: "disabled" === N.value.state, "additional-param-map": m(A), "component-id": T.value, onSetEntityValue: K, onSetCustomRules: L, onRestoreGridEdit: M, onHandleEvent: ee, onChange: t2[3] || (t2[3] = (t3) => m(R)(z.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : p("", true);
|
|
52
52
|
};
|
|
53
53
|
} });
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
O as default
|
|
56
56
|
};
|