super-page-runtime 2.3.33-sit2 → 2.3.33
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 +131 -131
- package/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +47 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +3 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +46 -44
- package/dist/es/components/runtime/utils/events/event-util.js +116 -116
- package/dist/es/components/runtime/utils/events/print-label.js +27 -25
- package/dist/es/components/runtime/utils/events/standard-event.js +738 -726
- package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
- package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
- package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
- package/dist/es/components/runtime/utils/page-init-util.js +130 -125
- package/dist/es/components/runtime/utils/page-store.js +21 -21
- package/dist/es/components/runtime/utils/table-utils.js +4 -4
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +14 -10
- 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.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 +15 -14
- 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 +16 -15
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +69 -68
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +27 -23
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +3 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
- 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 +22 -20
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +119 -116
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +46 -45
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +4 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +28 -28
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +35 -35
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +9 -9
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -56
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +12 -11
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +4 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +19 -18
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +18 -16
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +9 -9
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +5 -4
- package/dist/es/components/runtime/views/super-page.vue2.js +183 -182
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as l, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as l, createElementBlock as a, openBlock as i, createBlock as u, createCommentVNode as r, unref as s } from "vue";
|
|
2
2
|
import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as b, cellDblClick as g, rowClick as m, rowDblClick as v, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
|
|
3
3
|
import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
|
|
@@ -7,54 +7,56 @@ import { popupToPage as R, getOperationButtons as I } from "../../../../utils/ta
|
|
|
7
7
|
import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
|
|
8
8
|
import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
|
|
9
9
|
import { getRowStyleUtil as A, getCellStyleUtil as M, getHeaderCellStyleUtil as E } from "../../chart/table/chart-table-util.js";
|
|
10
|
-
const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: F2, emit:
|
|
10
|
+
const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: F2, emit: z }) {
|
|
11
11
|
var _a;
|
|
12
|
-
const
|
|
13
|
-
let
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const G = O(
|
|
17
|
-
|
|
12
|
+
const U = e2, $ = U.pageContext;
|
|
13
|
+
let j = U.configure;
|
|
14
|
+
const N = U.configure.runtime ? U.configure.runtime : {};
|
|
15
|
+
$.isTest ? N.value = U.configure.runtime ? U.configure.runtime : {} : $.tableRuntimes && $.tableRuntimes[j.uuid] && (j = JSON.parse($.tableRuntimes[j.uuid].configure), N.value = j.runtime ? j.runtime : {});
|
|
16
|
+
const G = O($.code, $.version, j.uuid), H = $.entity.data, V = j.code ? j.code : G, L = k($), B = N && N.events ? N.events : [], q = t([]), J = $.superGridItems, K = J ? J[j.uuid] : null;
|
|
17
|
+
console.log("superGridSetting===", J, K);
|
|
18
|
+
const Q = N.style, W = N.class, X = U.pageContext.entity ? U.pageContext.entity : {};
|
|
19
|
+
let Y = D(U.configure, V), Z = _($.backendUrl, $.isTest);
|
|
18
20
|
Z || (Z = window.$vueApp.config.globalProperties.baseURL);
|
|
19
21
|
const ee = t(false);
|
|
20
22
|
let te = t(0);
|
|
21
|
-
const ne = (_a =
|
|
23
|
+
const ne = (_a = j.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({}), le = z;
|
|
22
24
|
oe.value = function() {
|
|
23
25
|
var _a2, _b, _c, _d;
|
|
24
|
-
const e3 = { title: (
|
|
25
|
-
return Q && (e3.tableStyle = Q), W && (e3.tableClass = W),
|
|
26
|
-
const t2 =
|
|
26
|
+
const e3 = { title: (j == null ? void 0 : j.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: $.code, pageVersion: $.version, pageContext: $, configureObj: j, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = j == null ? void 0 : j.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender: He, rowStyleRender: Ge, titleStyleRender: Ve, allEditable: (_d = (_c = j.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
|
|
27
|
+
return Q && (e3.tableStyle = Q), W && (e3.tableClass = W), j.props && j.props.base && true === j.props.base.subPaging ? e3.showPageArea = true : e3.showPageArea = false, j.props.base.showRowForm && (e3.showRowForm = j.props.base.showRowForm), function(e4) {
|
|
28
|
+
const t2 = j.props ? j.props.dataOrigin : {};
|
|
27
29
|
if (t2.treeTable) {
|
|
28
30
|
let n2;
|
|
29
31
|
const o2 = t2.rowKey;
|
|
30
32
|
if (n2 = o2 && o2.indexOf("~~") > 0 ? o2.substring(o2.indexOf("~~") + 2) : o2, e4.parentProp = n2, t2.checkStrictly && (e4.checkStrictly = t2.checkStrictly), e4.parentProp) {
|
|
31
33
|
const o3 = t2.lazy, l2 = t2.defaultExpandAll;
|
|
32
34
|
e4.lazy = null == o3 || o3, e4.defaultExpandAll = null != l2 && l2;
|
|
33
|
-
const
|
|
34
|
-
e4.extraParam.listViewTreeSetting = JSON.stringify(
|
|
35
|
+
const a2 = { parentProp: n2, lazy: e4.lazy, defaultExpandAll: e4.defaultExpandAll };
|
|
36
|
+
e4.extraParam.listViewTreeSetting = JSON.stringify(a2), e4.subRowUrl = Z + "/dsc/commons/list-subs";
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
}(e3), e3;
|
|
38
40
|
}();
|
|
39
|
-
const
|
|
40
|
-
function
|
|
41
|
-
|
|
41
|
+
const ae = t(null);
|
|
42
|
+
function ie() {
|
|
43
|
+
ae.value && (oe.value.subTableData = null, ae.value.reloadSubTableData(G));
|
|
42
44
|
}
|
|
43
45
|
function ue(e3, t2) {
|
|
44
|
-
if (t2 || (t2 = oe.value), void 0 === e3 && (e3 = re()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = se, t2.getGridData = ce, t2.extraParam.subTableListViewCode = G, t2.extraParam.beanName =
|
|
46
|
+
if (t2 || (t2 = oe.value), void 0 === e3 && (e3 = re()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = se, t2.getGridData = ce, t2.extraParam.subTableListViewCode = G, t2.extraParam.beanName = $.beanName, t2.extraParam.subtableSetting = j.props && j.props.otherSettings ? JSON.stringify(j.props.otherSettings) : null, t2.extraParam.additionalParamMap = L, t2.extraParam.entityMap = $.entity.data, t2.extraParam.contextMap = $.entity.context, t2.extraParam.taskMap = $.entity.task, !(j.props && j.props.base && j.props.base.showOperation)) {
|
|
45
47
|
let e4 = t2.hiddenColumns;
|
|
46
48
|
e4 ? e4.push("operation") : e4 = ["operation"], t2.hiddenColumns = e4;
|
|
47
49
|
}
|
|
48
|
-
t2.showOperationButton = !(!
|
|
49
|
-
let n2 = C(
|
|
50
|
-
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions =
|
|
50
|
+
t2.showOperationButton = !(!j.props || !j.props.base) && j.props.base.showOperation, t2.isPdfEditor = false, t2.tableRecordMaxNum = j.props && j.props.otherSettings ? j.props.otherSettings.tableRecordMaxNum : null;
|
|
51
|
+
let n2 = C($, j);
|
|
52
|
+
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = Le;
|
|
51
53
|
}
|
|
52
54
|
function re() {
|
|
53
|
-
if (
|
|
54
|
-
if (
|
|
55
|
+
if (j.props && j.props.otherSettings) {
|
|
56
|
+
if (j.props.otherSettings.sourceQueryTableData && j.props.otherSettings.timeToInitializeSubTable && j.props.otherSettings.timeToInitializeSubTable.length > 0) {
|
|
55
57
|
let e3 = false;
|
|
56
|
-
if (-1 !==
|
|
57
|
-
const t2 = H[
|
|
58
|
+
if (-1 !== j.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !H.id && !H.ID), -1 !== j.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
|
|
59
|
+
const t2 = H[V];
|
|
58
60
|
(!t2 || t2.length <= 0) && (e3 = true);
|
|
59
61
|
}
|
|
60
62
|
return e3;
|
|
@@ -63,7 +65,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
67
|
function se() {
|
|
66
|
-
return
|
|
68
|
+
return $.entity.data;
|
|
67
69
|
}
|
|
68
70
|
function ce() {
|
|
69
71
|
return x(X, Y);
|
|
@@ -77,9 +79,9 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
77
79
|
function be(e3) {
|
|
78
80
|
e3 || (e3 = oe.value), function(e4) {
|
|
79
81
|
e4 || (e4 = oe.value);
|
|
80
|
-
const t3 =
|
|
82
|
+
const t3 = $.fieldPermissionMap, n2 = $.actionPermissionMap;
|
|
81
83
|
if (t3 && null != t3) {
|
|
82
|
-
let n3 = t3.get(
|
|
84
|
+
let n3 = t3.get(V);
|
|
83
85
|
if (!n3) {
|
|
84
86
|
const e5 = t3.get("all_fields");
|
|
85
87
|
e5 && (n3 = [e5]);
|
|
@@ -87,12 +89,12 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
87
89
|
e4.validateRules = n3 || null;
|
|
88
90
|
}
|
|
89
91
|
if (n2 && null != n2) {
|
|
90
|
-
let t4 = n2.get(
|
|
92
|
+
let t4 = n2.get(V);
|
|
91
93
|
t4 || (t4 = n2.get("all_sub_tables")), e4.actionPermission = t4;
|
|
92
94
|
}
|
|
93
95
|
e4.operations || (e4.operations = {});
|
|
94
96
|
const o2 = function() {
|
|
95
|
-
let e5 = [], t4 = w(
|
|
97
|
+
let e5 = [], t4 = w(U.pageContext, j.props.base.showOperationCondition);
|
|
96
98
|
if (t4 && Se(null, null, null, null, null, true, "canAdd")) {
|
|
97
99
|
const t5 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we, isStandard: true };
|
|
98
100
|
e5.push(t5);
|
|
@@ -101,39 +103,40 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
101
103
|
const t5 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe, isStandard: true };
|
|
102
104
|
e5.push(t5);
|
|
103
105
|
}
|
|
104
|
-
return I(
|
|
106
|
+
return I($, j, e5, ve), e5;
|
|
105
107
|
}();
|
|
106
108
|
e4.operations.operation = o2, e4.subTableCanAdd = Se(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = Se(null, null, null, null, null, true, "canDelete");
|
|
107
|
-
}(e3), c(e3, B,
|
|
108
|
-
const t2 =
|
|
109
|
+
}(e3), c(e3, B, $, j);
|
|
110
|
+
const t2 = $.customEvents;
|
|
109
111
|
t2 && (e3.eventCallBack = t2), ee.value = true, ge();
|
|
110
112
|
}
|
|
111
113
|
function ge() {
|
|
112
|
-
|
|
114
|
+
$.tableUuids || ($.tableUuids = []), $.tableUuids.indexOf(j.uuid) < 0 && $.tableUuids.push(j.uuid);
|
|
113
115
|
}
|
|
114
116
|
n(() => {
|
|
115
|
-
const e3 =
|
|
117
|
+
const e3 = j.uuid, t2 = $.subTableWatchProps;
|
|
116
118
|
P.$on("_refreshSubTable_" + e3, (n2) => {
|
|
119
|
+
console.log("-_refreshSubTable--tableUuid=", e3, "params=", n2);
|
|
117
120
|
const o2 = n2.propName;
|
|
118
121
|
if (t2 && t2[e3] && t2[e3].length > 0) {
|
|
119
|
-
t2[e3].indexOf(o2) >= 0 &&
|
|
122
|
+
t2[e3].indexOf(o2) >= 0 && ie();
|
|
120
123
|
}
|
|
121
|
-
}), P.$on("_refreshSubTableHandle_" + e3, (
|
|
122
|
-
|
|
123
|
-
}), P.$on("_refreshChildData_" + e3, (
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
}), P.$on("_refreshSubTableHandle_" + e3, (t3) => {
|
|
125
|
+
console.log("-_refreshSubTableHandle_--tableUuid=", e3, "params=", t3), ie();
|
|
126
|
+
}), P.$on("_refreshChildData_" + e3, (t3) => {
|
|
127
|
+
console.log("-_refreshChildData_--tableUuid=", e3), function(e4) {
|
|
128
|
+
Ne(e4), de = setTimeout(() => {
|
|
129
|
+
ae.value && (ae.value.refreshChildData(G, e4, j.props && j.props.base && true === j.props.base.subPaging), oe.value.extraParam.entityMap = $.entity.data);
|
|
127
130
|
}, 10);
|
|
128
|
-
}(
|
|
131
|
+
}(t3);
|
|
129
132
|
}), P.$on(G + "-pickFileDone", (e4) => {
|
|
130
|
-
|
|
133
|
+
console.log("superPage5555---listCode---pickFileDone--listCode=", G, "data=", e4), ae.value.pickFileDone(e4);
|
|
131
134
|
}), P.$on(G + "-scanDone", (e4) => {
|
|
132
|
-
|
|
135
|
+
console.log("superPage5555---listCode---scanDone--listCode=", G, "data=", e4), ae.value.scanDone(e4);
|
|
133
136
|
}), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && le("setSafeDeleteTableCode", oe.value.extraParam.tableName);
|
|
134
137
|
}), o(() => {
|
|
135
138
|
pe && clearTimeout(pe), de && clearTimeout(de);
|
|
136
|
-
const e3 =
|
|
139
|
+
const e3 = j.uuid;
|
|
137
140
|
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
|
|
138
141
|
});
|
|
139
142
|
const me = t({});
|
|
@@ -141,39 +144,39 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
141
144
|
if (!e3) return;
|
|
142
145
|
return me.value[e3.uuid] = e3, he;
|
|
143
146
|
}
|
|
144
|
-
function he(e3, t2, n2, o2, l2,
|
|
145
|
-
const
|
|
146
|
-
u2.props.base.tableUuid = r2.uuid, S(null,
|
|
147
|
+
function he(e3, t2, n2, o2, l2, a2) {
|
|
148
|
+
const i2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: a2, id: n2.ID ? n2.ID : n2.id }, u2 = me.value[a2.sourceButton.uuid], r2 = j;
|
|
149
|
+
u2.props.base.tableUuid = r2.uuid, S(null, $, u2, "click", i2);
|
|
147
150
|
}
|
|
148
|
-
function Se(e3, t2, n2, o2, l2,
|
|
149
|
-
|
|
150
|
-
if (!w(
|
|
151
|
-
const u2 =
|
|
151
|
+
function Se(e3, t2, n2, o2, l2, a2, i2) {
|
|
152
|
+
i2 || (i2 = "canAdd");
|
|
153
|
+
if (!w(U.pageContext, j.props.base.showOperationCondition)) return false;
|
|
154
|
+
const u2 = $.fieldPermissionMap, r2 = $.actionPermissionMap;
|
|
152
155
|
let s2 = true;
|
|
153
156
|
if (u2 && null !== u2) {
|
|
154
157
|
const e4 = u2.get("all_fields");
|
|
155
158
|
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (s2 = false);
|
|
156
159
|
}
|
|
157
|
-
if (true === s2 &&
|
|
158
|
-
let e4 = r2.get(
|
|
159
|
-
e4 || (e4 = r2.get("all_sub_tables")), e4 && void 0 !== e4[
|
|
160
|
+
if (true === s2 && V && r2 && null !== r2) {
|
|
161
|
+
let e4 = r2.get(V);
|
|
162
|
+
e4 || (e4 = r2.get("all_sub_tables")), e4 && void 0 !== e4[i2] && false === e4[i2] && (s2 = false);
|
|
160
163
|
}
|
|
161
164
|
return s2;
|
|
162
165
|
}
|
|
163
|
-
function we(e3, t2, n2, o2, l2,
|
|
164
|
-
let
|
|
165
|
-
return true ===
|
|
166
|
+
function we(e3, t2, n2, o2, l2, a2) {
|
|
167
|
+
let i2 = Se(0, 0, 0, 0, 0, 0, "canAdd");
|
|
168
|
+
return true === i2 && (i2 = w(U.pageContext, j.props.base.showAddBtnCondition, n2)), i2;
|
|
166
169
|
}
|
|
167
|
-
function Te(e3, t2, n2, o2, l2,
|
|
168
|
-
const
|
|
170
|
+
function Te(e3, t2, n2, o2, l2, a2) {
|
|
171
|
+
const i2 = $.fieldPermissionMap, u2 = $.actionPermissionMap;
|
|
169
172
|
let r2 = true;
|
|
170
|
-
if (
|
|
171
|
-
const e4 =
|
|
173
|
+
if (i2 && null !== i2) {
|
|
174
|
+
const e4 = i2.get("all_fields");
|
|
172
175
|
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
|
|
173
176
|
}
|
|
174
|
-
if (true === r2 &&
|
|
175
|
-
let e4 = u2.get(
|
|
176
|
-
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 (
|
|
177
|
+
if (true === r2 && V && u2 && null !== u2) {
|
|
178
|
+
let e4 = u2.get(V);
|
|
179
|
+
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 (a2) r2 = true;
|
|
177
180
|
else {
|
|
178
181
|
const t3 = function(e5) {
|
|
179
182
|
return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
|
|
@@ -184,96 +187,96 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
184
187
|
}
|
|
185
188
|
return r2;
|
|
186
189
|
}
|
|
187
|
-
function xe(e3, t2, n2, o2, l2,
|
|
188
|
-
let
|
|
189
|
-
return true ===
|
|
190
|
+
function xe(e3, t2, n2, o2, l2, a2) {
|
|
191
|
+
let i2 = Te(0, 0, n2, 0, 0, a2);
|
|
192
|
+
return true === i2 && (i2 = w(U.pageContext, j.props.base.showDeleteBtnCondition, n2)), i2;
|
|
190
193
|
}
|
|
191
194
|
function Ce(e3, t2, n2, o2, l2) {
|
|
192
|
-
|
|
195
|
+
ae.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
|
|
193
196
|
Be(l2);
|
|
194
197
|
});
|
|
195
198
|
}
|
|
196
199
|
function De(e3, t2, n2, o2, l2) {
|
|
197
|
-
|
|
200
|
+
ae.value.deleteRow(l2, G, false);
|
|
198
201
|
}
|
|
199
202
|
function ye(e3) {
|
|
200
203
|
T(X, Y, e3);
|
|
201
204
|
}
|
|
202
205
|
function Pe(e3) {
|
|
203
|
-
|
|
206
|
+
console.log("表单组件--Item--changeRowsPerpage==pageSize=", e3), $.subTablePageInfo || ($.subTablePageInfo = {}), $.subTablePageInfo[V] || ($.subTablePageInfo[V] = {}), $.subTablePageInfo[V].title = j.title ? j.title : j.code, $.subTablePageInfo[V].pageSize = e3;
|
|
204
207
|
}
|
|
205
208
|
function Re(e3) {
|
|
206
209
|
const t2 = e3.key, n2 = e3.value;
|
|
207
|
-
|
|
210
|
+
$.selectOptions || ($.selectOptions = {}), $.selectOptions[t2] = n2;
|
|
208
211
|
}
|
|
209
212
|
function Ie(e3) {
|
|
210
|
-
const t2 =
|
|
213
|
+
const t2 = $.code + "_";
|
|
211
214
|
P.$emit(t2 + "prohibit-edit", e3);
|
|
212
215
|
}
|
|
213
216
|
function Oe(e3) {
|
|
214
|
-
const t2 =
|
|
217
|
+
const t2 = $.entity.data;
|
|
215
218
|
if (e3) for (const n2 in e3) t2[n2] = e3[n2];
|
|
216
219
|
}
|
|
217
220
|
function _e(e3, t2) {
|
|
218
221
|
if (void 0 !== t2) {
|
|
219
222
|
q.value = e3;
|
|
220
|
-
p(
|
|
223
|
+
p($, j, { selection: e3, row: t2 });
|
|
221
224
|
}
|
|
222
225
|
}
|
|
223
226
|
function ke(e3) {
|
|
224
227
|
q.value = e3;
|
|
225
|
-
d(
|
|
228
|
+
d($, j, { selection: e3 });
|
|
226
229
|
}
|
|
227
230
|
function Ae(e3) {
|
|
228
|
-
f(
|
|
231
|
+
f($, j, { newSelection: e3 });
|
|
229
232
|
}
|
|
230
233
|
function Me(e3, t2, n2, o2) {
|
|
231
|
-
b(
|
|
234
|
+
b($, j, { row: e3, column: t2, cell: n2, event: o2 });
|
|
232
235
|
}
|
|
233
236
|
function Ee(e3, t2, n2, o2) {
|
|
234
|
-
g(
|
|
237
|
+
g($, j, { row: e3, column: t2, cell: n2, event: o2 });
|
|
235
238
|
}
|
|
236
239
|
function Fe(e3, t2, n2) {
|
|
237
|
-
m(
|
|
240
|
+
m($, j, { row: e3, column: t2, event: n2 });
|
|
238
241
|
}
|
|
239
|
-
function
|
|
240
|
-
v(
|
|
242
|
+
function ze(e3, t2, n2) {
|
|
243
|
+
v($, j, { row: e3, column: t2, event: n2 });
|
|
241
244
|
}
|
|
242
|
-
function
|
|
243
|
-
h(
|
|
245
|
+
function Ue(e3, t2) {
|
|
246
|
+
h($, j, { column: e3, event: t2 });
|
|
244
247
|
}
|
|
245
|
-
function
|
|
246
|
-
|
|
248
|
+
function $e(e3) {
|
|
249
|
+
$.entity.data = e3;
|
|
247
250
|
}
|
|
248
|
-
function
|
|
251
|
+
function je() {
|
|
249
252
|
return x(X, Y);
|
|
250
253
|
}
|
|
251
|
-
function
|
|
254
|
+
function Ne(e3) {
|
|
252
255
|
return T(X, Y, e3);
|
|
253
256
|
}
|
|
254
257
|
function Ge(e3) {
|
|
255
|
-
return A(e3, null,
|
|
258
|
+
return A(e3, null, U);
|
|
256
259
|
}
|
|
257
260
|
function He(e3) {
|
|
258
|
-
return M(e3, e3.cellStyle,
|
|
261
|
+
return M(e3, e3.cellStyle, U);
|
|
259
262
|
}
|
|
260
|
-
function
|
|
261
|
-
const t2 = e3.titleStyle, n2 =
|
|
262
|
-
return E(e3, { cellTitleStyle: t2, titleStyle: n2 },
|
|
263
|
+
function Ve(e3) {
|
|
264
|
+
const t2 = e3.titleStyle, n2 = U.configure.style.titleStyle;
|
|
265
|
+
return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, U);
|
|
263
266
|
}
|
|
264
|
-
function
|
|
267
|
+
function Le({ row: e3, editConditions: t2 }) {
|
|
265
268
|
let n2 = true;
|
|
266
|
-
return t2 && t2.length > 0 && (n2 = w(
|
|
269
|
+
return t2 && t2.length > 0 && (n2 = w(U.pageContext, t2, e3)), n2;
|
|
267
270
|
}
|
|
268
271
|
function Be(e3) {
|
|
269
272
|
var _a2;
|
|
270
|
-
(_a2 =
|
|
273
|
+
(_a2 = ae.value) == null ? void 0 : _a2.setScrollTopByRowIndex(e3);
|
|
271
274
|
}
|
|
272
275
|
return function(e3) {
|
|
273
276
|
const t2 = re();
|
|
274
|
-
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData =
|
|
277
|
+
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = je(), be(e3));
|
|
275
278
|
}(oe.value), F2({ createRow: function() {
|
|
276
|
-
return
|
|
279
|
+
return ae.value.createRow(G);
|
|
277
280
|
}, getSelections: function() {
|
|
278
281
|
return q.value;
|
|
279
282
|
}, getSelectionIds: function() {
|
|
@@ -284,42 +287,42 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
284
287
|
}, clearSelections: function() {
|
|
285
288
|
q.value = [];
|
|
286
289
|
}, getTableConfigure: function() {
|
|
287
|
-
return
|
|
290
|
+
return j;
|
|
288
291
|
}, validatorSunTableListData: function() {
|
|
289
|
-
return
|
|
290
|
-
}, getValue:
|
|
291
|
-
if (
|
|
292
|
+
return ae.value.validatorSunTableListData();
|
|
293
|
+
}, getValue: je, setValue: Ne, getTableSelectOptions: function() {
|
|
294
|
+
if (ae.value) return ae.value.getTableSelectOptions(G);
|
|
292
295
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
293
|
-
|
|
296
|
+
ae.value && ae.value.dynamicControlTableEdit(e3, t2, n2);
|
|
294
297
|
}, doLayout: function(e3) {
|
|
295
|
-
|
|
298
|
+
ae.value && ae.value.doLayout(e3);
|
|
296
299
|
}, changeOperationAddState: function(e3) {
|
|
297
|
-
|
|
300
|
+
ae.value && ae.value.changeOperationAddState(e3);
|
|
298
301
|
}, scrollTo: function(e3, t2) {
|
|
299
|
-
|
|
302
|
+
ae.value && ae.value.scrollTo(e3, t2);
|
|
300
303
|
}, setScrollTop: function(e3) {
|
|
301
|
-
|
|
304
|
+
ae.value && ae.value.setScrollTop(e3);
|
|
302
305
|
}, setScrollLeft: function(e3) {
|
|
303
|
-
|
|
306
|
+
ae.value && ae.value.setScrollLeft(e3);
|
|
304
307
|
}, getSuperGridRef: function() {
|
|
305
|
-
return
|
|
308
|
+
return ae.value;
|
|
306
309
|
}, getSuperGridTableRef: function() {
|
|
307
|
-
return
|
|
310
|
+
return ae.value.getSuperGridTableRef();
|
|
308
311
|
}, setCurrentRowIndex: function(e3) {
|
|
309
312
|
var _a2;
|
|
310
|
-
(_a2 =
|
|
313
|
+
(_a2 = ae.value) == null ? void 0 : _a2.setCurrentRowIndex(e3);
|
|
311
314
|
}, setScrollTopByRowIndex: Be, getTableData: function() {
|
|
312
315
|
var _a2;
|
|
313
|
-
return (_a2 =
|
|
316
|
+
return (_a2 = ae.value) == null ? void 0 : _a2.getTableData();
|
|
314
317
|
}, addRequiredClass: function(e3, t2, n2) {
|
|
315
318
|
var _a2;
|
|
316
|
-
(_a2 =
|
|
319
|
+
(_a2 = ae.value) == null ? void 0 : _a2.addRequiredClass(e3, G, t2, n2);
|
|
317
320
|
}, getColumns: function() {
|
|
318
321
|
var _a2;
|
|
319
|
-
return (_a2 =
|
|
322
|
+
return (_a2 = ae.value) == null ? void 0 : _a2.getColumns();
|
|
320
323
|
} }), (e3, t2) => {
|
|
321
324
|
const n2 = l("super-grid");
|
|
322
|
-
return
|
|
325
|
+
return i(), a("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s($).isDialog, onSelect: _e, onSelectAll: ke, onSelectionChange: Ae, onCellClick: Me, onCellDblclick: Ee, onRowClick: Fe, onRowDblclick: ze, onHeaderClick: Ue, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: $e }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
|
|
323
326
|
};
|
|
324
327
|
} });
|
|
325
328
|
export {
|
|
@@ -78,7 +78,7 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
|
|
|
78
78
|
}, getColumns: function() {
|
|
79
79
|
var _a;
|
|
80
80
|
return (_a = b.value) == null ? void 0 : _a.getColumns();
|
|
81
|
-
} }), (
|
|
81
|
+
} }), (t2, n2) => (o(), u("div", null, [r(g) && "form" === r(g) && C.value ? (o(), a(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (o(), a(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
|
|
82
82
|
} });
|
|
83
83
|
export {
|
|
84
84
|
f as default
|