super-page-runtime 2.3.33 → 2.3.34
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/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -47
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +1 -3
- package/dist/es/components/runtime/utils/charts/chart-util.js +44 -46
- package/dist/es/components/runtime/utils/events/event-util.js +18 -18
- package/dist/es/components/runtime/utils/events/print-label.js +0 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +708 -720
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
- package/dist/es/components/runtime/utils/page-init-util.js +124 -127
- 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/chart/column-line/column-line-runtime.vue2.js +10 -14
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +12 -13
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +15 -16
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +67 -67
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -24
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +62 -62
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +20 -22
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +117 -120
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +39 -40
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +26 -26
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +52 -52
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -5
- package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +182 -182
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import e from "agilebuilder-ui/src/utils/request";
|
|
2
2
|
import { getAdditionalParamMap as t } from "./events/standard-event.js";
|
|
3
|
-
import { PageDimensions as
|
|
4
|
-
import { getFormPropName as
|
|
3
|
+
import { PageDimensions as n } from "./interfaces/page-design-types.js";
|
|
4
|
+
import { getFormPropName as i, getVariableValue as s, formatVariableValue as r, setVariableValue as o } from "./page-helper-util.js";
|
|
5
5
|
import { getSessionCache as a } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { functions as l } from "./api/page-expose-util.js";
|
|
7
7
|
import { isWorkflowPage as u, deepCopy as p } from "./common-util.js";
|
|
8
8
|
import { packageCustomValidator as d } from "./events/validator-util.js";
|
|
9
9
|
import { isMobileBrowser as c } from "agilebuilder-ui/src/utils/common-util";
|
|
10
10
|
function f(t2) {
|
|
11
|
-
return new Promise((
|
|
11
|
+
return new Promise((n2, i2) => {
|
|
12
12
|
(function(t3) {
|
|
13
13
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t3);
|
|
14
14
|
})(t2).then((e2) => {
|
|
15
15
|
e2 ? b().then((t3) => {
|
|
16
16
|
t3 && (e2.systemParam = h(t3)), g(e2.listViewTableName, e2.listViewTablePublishVersion).then((t4) => {
|
|
17
|
-
t4 ? (e2.contextParam = h(t4.contextParam), e2.branchFieldAuth = t4.branchFieldAuth, e2.isWorkflowEntity = t4.isWorkflowEntity, e2.dataTypeMaps = t4.dataTypeMaps,
|
|
17
|
+
t4 ? (e2.contextParam = h(t4.contextParam), e2.branchFieldAuth = t4.branchFieldAuth, e2.isWorkflowEntity = t4.isWorkflowEntity, e2.dataTypeMaps = t4.dataTypeMaps, n2(e2)) : n2(null);
|
|
18
18
|
});
|
|
19
19
|
}).catch(() => {
|
|
20
|
-
|
|
21
|
-
}) :
|
|
20
|
+
n2(e2);
|
|
21
|
+
}) : n2(null);
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
function m(e2, t2) {
|
|
26
|
-
return new Promise((
|
|
27
|
-
e2 ? b().then((
|
|
28
|
-
|
|
29
|
-
e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, e2.superGridItems = t3.superGrids,
|
|
26
|
+
return new Promise((n2, i2) => {
|
|
27
|
+
e2 ? b().then((s2) => {
|
|
28
|
+
s2 && (e2.systemParam = h(s2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? x(e2, t2, e2.systemVersion).then((t3) => {
|
|
29
|
+
e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, e2.superGridItems = t3.superGrids, n2(e2);
|
|
30
30
|
}).catch((e3) => {
|
|
31
|
-
|
|
31
|
+
i2(e3);
|
|
32
32
|
}) : g("", "").then((t3) => {
|
|
33
|
-
t3 ? (e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps,
|
|
33
|
+
t3 ? (e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, n2(e2)) : n2(null);
|
|
34
34
|
}).catch((e3) => {
|
|
35
|
-
|
|
35
|
+
i2(e3);
|
|
36
36
|
});
|
|
37
|
-
}) :
|
|
37
|
+
}) : n2(null);
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
function g(t2,
|
|
41
|
-
let
|
|
42
|
-
return t2 &&
|
|
40
|
+
function g(t2, n2) {
|
|
41
|
+
let i2 = "";
|
|
42
|
+
return t2 && n2 && (i2 = "?listViewTableName=" + t2 + "&listViewTablePublishVersion=" + n2), e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + i2);
|
|
43
43
|
}
|
|
44
44
|
function b() {
|
|
45
45
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/system-param");
|
|
@@ -49,23 +49,23 @@ function y(e2) {
|
|
|
49
49
|
if (null == e2) return null;
|
|
50
50
|
const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, listCodesInitSearchForm: e2.listCodesInitSearchForm, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: w(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, allChartUuids: e2.allChartUuids, branchFieldAuth: e2.branchFieldAuth, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam }, propTitleMap: {} };
|
|
51
51
|
if (e2.props && e2.props.notIdInitializationList) {
|
|
52
|
-
let
|
|
53
|
-
"string" == typeof
|
|
52
|
+
let n2 = e2.props.notIdInitializationList;
|
|
53
|
+
"string" == typeof n2 && (n2 = JSON.parse(n2)), n2.length > 0 && (t2.notIdInitializationList = n2);
|
|
54
54
|
}
|
|
55
55
|
if (e2.variables) {
|
|
56
|
-
const
|
|
57
|
-
for (const t3 of e2.variables) t3.name && (t3.isArrayElement ?
|
|
56
|
+
const n2 = t2.entity.page;
|
|
57
|
+
for (const t3 of e2.variables) t3.name && (t3.isArrayElement ? n2[t3.name] = [] : t3.defaultValue ? n2[t3.name] = t3.defaultValue : n2[t3.name] = void 0);
|
|
58
58
|
}
|
|
59
59
|
return function(e3) {
|
|
60
60
|
if (c()) {
|
|
61
61
|
e3.entity.page._isMobile = "true";
|
|
62
62
|
const t3 = navigator ? navigator.userAgent : null;
|
|
63
|
-
t3 ? t3.indexOf("
|
|
63
|
+
t3 ? t3.indexOf("Html5Plus") > 0 ? (e3.entity.page._isMobileApp = "true", e3.entity.page._isMobileBrowser = "false") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "true") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "false");
|
|
64
64
|
} else e3.entity.page._isMobile = "false";
|
|
65
65
|
}(t2), Object.assign(t2, e2), t2.isWorkflowEntity = void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, t2.dimensions = function() {
|
|
66
66
|
const e3 = window.outerWidth;
|
|
67
|
-
if (!e3) return
|
|
68
|
-
return e3 > 768 ?
|
|
67
|
+
if (!e3) return n.PC;
|
|
68
|
+
return e3 > 768 ? n.PC : e3 > 414 ? n.IPAD : n.PHONE;
|
|
69
69
|
}(), t2.events = e2.runtime && e2.runtime.events ? e2.runtime.events : [], t2;
|
|
70
70
|
}
|
|
71
71
|
function h(e2) {
|
|
@@ -73,8 +73,8 @@ function h(e2) {
|
|
|
73
73
|
const t2 = function(e3) {
|
|
74
74
|
if (!e3) return e3;
|
|
75
75
|
try {
|
|
76
|
-
const t3 = window.CryptoJS.enc.Latin1.parse("qwertyuasdfgh456"),
|
|
77
|
-
return window.CryptoJS.AES.decrypt(e3, t3, { iv:
|
|
76
|
+
const t3 = window.CryptoJS.enc.Latin1.parse("qwertyuasdfgh456"), n2 = window.CryptoJS.enc.Latin1.parse("1234567812345678");
|
|
77
|
+
return window.CryptoJS.AES.decrypt(e3, t3, { iv: n2, mode: window.CryptoJS.mode.CBC, padding: window.CryptoJS.pad.ZeroPadding }).toString(CryptoJS.enc.Utf8);
|
|
78
78
|
} catch (t3) {
|
|
79
79
|
return e3;
|
|
80
80
|
}
|
|
@@ -102,13 +102,13 @@ function P(e2) {
|
|
|
102
102
|
}
|
|
103
103
|
if (t2 && t2.includes("?")) {
|
|
104
104
|
t2 = t2.substring(t2.lastIndexOf("?") + 1);
|
|
105
|
-
const
|
|
106
|
-
for (const t3 of
|
|
107
|
-
const
|
|
108
|
-
let
|
|
109
|
-
if (
|
|
110
|
-
const t4 =
|
|
111
|
-
|
|
105
|
+
const n2 = t2.split("&");
|
|
106
|
+
for (const t3 of n2) {
|
|
107
|
+
const n3 = t3.split("=");
|
|
108
|
+
let i2 = n3[0];
|
|
109
|
+
if (i2) {
|
|
110
|
+
const t4 = n3.length > 1 ? n3[1] : "";
|
|
111
|
+
i2.indexOf("ai__") >= 0 && (i2 = i2.substring(i2.indexOf("ai__") + 4)), e2[i2] = t4;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -116,168 +116,165 @@ function P(e2) {
|
|
|
116
116
|
}
|
|
117
117
|
function E(e2, t2) {
|
|
118
118
|
if (e2) {
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
Object.assign(t2, e2);
|
|
120
|
+
C(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
if (
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
v(e2.query.paramStoreId, t2);
|
|
128
|
-
}
|
|
129
|
-
console.log("packageAdditionalMapWithRoute----requestObj=", t2);
|
|
123
|
+
function v(e2, t2) {
|
|
124
|
+
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query, e2.query)) {
|
|
125
|
+
Object.assign(t2, e2.query);
|
|
126
|
+
C(e2.query.paramStoreId, t2);
|
|
130
127
|
}
|
|
131
128
|
}
|
|
132
|
-
function
|
|
129
|
+
function C(e2, t2) {
|
|
133
130
|
if (e2) {
|
|
134
|
-
const
|
|
135
|
-
if (
|
|
136
|
-
const e3 = JSON.parse(
|
|
137
|
-
Object.assign(t2, e3)
|
|
131
|
+
const n2 = a(e2);
|
|
132
|
+
if (n2) {
|
|
133
|
+
const e3 = JSON.parse(n2);
|
|
134
|
+
Object.assign(t2, e3);
|
|
138
135
|
}
|
|
139
136
|
}
|
|
140
137
|
}
|
|
141
|
-
function
|
|
142
|
-
let
|
|
143
|
-
t2 || (
|
|
144
|
-
let
|
|
145
|
-
return t2 && !t2.startsWith("${") ?
|
|
138
|
+
function k(e2, t2) {
|
|
139
|
+
let n2, i2 = t2;
|
|
140
|
+
t2 || (n2 = e2.props.base ? e2.props.base : {}, i2 = n2.prop);
|
|
141
|
+
let s2 = null;
|
|
142
|
+
return t2 && !t2.startsWith("${") ? s2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), s2 = i2.split("."), e2 && s2.length < 2 && (s2 = [e2.uuid])) : e2 && (s2 = ["page", e2.uuid]) : s2 = ["page", e2.uuid], s2 || e2 ? s2 : ["temp"];
|
|
146
143
|
}
|
|
147
|
-
function
|
|
144
|
+
function A(e2, t2, n2) {
|
|
148
145
|
var _a, _b;
|
|
149
|
-
const
|
|
146
|
+
const i2 = k(t2, n2), r2 = e2.entity;
|
|
150
147
|
if (null == r2.data.ID && null == r2.data.id) {
|
|
151
|
-
let
|
|
152
|
-
t2 && (
|
|
153
|
-
const l2 =
|
|
148
|
+
let n3, o2, a2 = false;
|
|
149
|
+
t2 && (n3 = t2.props.base ? t2.props.base : {}, o2 = t2.name, a2 = n3.multiple);
|
|
150
|
+
const l2 = s(r2, i2);
|
|
154
151
|
if (null == l2) {
|
|
155
|
-
const
|
|
156
|
-
if (
|
|
157
|
-
const t3 =
|
|
158
|
-
if (
|
|
159
|
-
else if (((_b =
|
|
160
|
-
const t4 =
|
|
161
|
-
for (let
|
|
162
|
-
const
|
|
163
|
-
if (
|
|
164
|
-
|
|
152
|
+
const s2 = n3 ? n3.defaultValue : null, l3 = Boolean((_a = t2 == null ? void 0 : t2.runtime) == null ? void 0 : _a.arrayValue);
|
|
153
|
+
if (s2) try {
|
|
154
|
+
const t3 = T(e2, s2, o2, a2);
|
|
155
|
+
if (M(t3)) I(r2, i2, t3, l3);
|
|
156
|
+
else if (((_b = n3.moreDefaultValue) == null ? void 0 : _b.length) > 0) {
|
|
157
|
+
const t4 = n3.moreDefaultValue;
|
|
158
|
+
for (let n4 = 0; n4 < t4.length; n4++) {
|
|
159
|
+
const s3 = T(e2, t4[n4], o2, a2);
|
|
160
|
+
if (M(s3)) {
|
|
161
|
+
I(r2, i2, s3, l3);
|
|
165
162
|
break;
|
|
166
163
|
}
|
|
167
164
|
}
|
|
168
165
|
}
|
|
169
166
|
} catch (e3) {
|
|
170
|
-
console.error("设置默认值出错:",
|
|
167
|
+
console.error("设置默认值出错:", i2, e3);
|
|
171
168
|
}
|
|
172
169
|
}
|
|
173
170
|
}
|
|
174
|
-
return
|
|
171
|
+
return i2;
|
|
175
172
|
}
|
|
176
|
-
function
|
|
173
|
+
function M(e2) {
|
|
177
174
|
return null != e2 && "" !== e2;
|
|
178
175
|
}
|
|
179
|
-
function
|
|
180
|
-
!Array.isArray(
|
|
176
|
+
function I(e2, t2, n2, i2) {
|
|
177
|
+
!Array.isArray(n2) || i2 ? o(e2, t2, n2) : o(e2, t2, n2.join(","));
|
|
181
178
|
}
|
|
182
|
-
function
|
|
183
|
-
let
|
|
184
|
-
if (t2 && (
|
|
179
|
+
function T(e2, t2, n2, i2) {
|
|
180
|
+
let s2;
|
|
181
|
+
if (t2 && (s2 = r(e2, t2), null != s2 && null != s2 && n2)) {
|
|
185
182
|
let e3 = false;
|
|
186
|
-
"checkbox" ==
|
|
183
|
+
"checkbox" == n2 ? e3 = true : "select" == n2 && (e3 = i2), e3 && (s2 = (s2 + "").split(","));
|
|
187
184
|
}
|
|
188
|
-
return
|
|
185
|
+
return s2;
|
|
189
186
|
}
|
|
190
187
|
function j(e2, t2) {
|
|
191
188
|
var _a, _b;
|
|
192
189
|
if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
|
|
193
|
-
const
|
|
194
|
-
if (e2.autoPermissions) for (const
|
|
190
|
+
const n2 = [];
|
|
191
|
+
if (e2.autoPermissions) for (const i2 of e2.autoPermissions) n2.push(t2.code + "." + i2.simpleCode);
|
|
195
192
|
if (e2.functionCodes) {
|
|
196
|
-
const
|
|
197
|
-
for (let e3 = 0; e3 <
|
|
198
|
-
const r2 =
|
|
193
|
+
const i2 = e2.sourceTypes ? e2.sourceTypes : [], s2 = e2.functionCodes;
|
|
194
|
+
for (let e3 = 0; e3 < s2.length; e3++) {
|
|
195
|
+
const r2 = s2[e3], o2 = e3 < i2.length ? i2[e3] : "";
|
|
199
196
|
let a2 = "";
|
|
200
|
-
if ("service" ==
|
|
201
|
-
else if ("standard" ===
|
|
197
|
+
if ("service" == o2) a2 = r2;
|
|
198
|
+
else if ("standard" === o2) a2 = t2.code + "." + r2;
|
|
202
199
|
else {
|
|
203
200
|
a2 = "custom" === O(r2, t2).type ? r2 : t2.code + "." + r2;
|
|
204
201
|
}
|
|
205
|
-
|
|
202
|
+
n2.includes(a2) || n2.push(a2);
|
|
206
203
|
}
|
|
207
204
|
}
|
|
208
|
-
return
|
|
205
|
+
return n2.join(",");
|
|
209
206
|
}
|
|
210
207
|
function O(e2, t2) {
|
|
211
|
-
const
|
|
212
|
-
if (
|
|
213
|
-
for (let t3 = 0; t3 <
|
|
208
|
+
const n2 = t2.pagePermissions;
|
|
209
|
+
if (n2 && n2.length > 0) {
|
|
210
|
+
for (let t3 = 0; t3 < n2.length; t3++) if (n2[t3].simpleCode === e2) return n2[t3];
|
|
214
211
|
}
|
|
215
212
|
return null;
|
|
216
213
|
}
|
|
217
|
-
function
|
|
218
|
-
const r2 =
|
|
214
|
+
function x(n2, i2, s2) {
|
|
215
|
+
const r2 = n2.tableRuntimes, o2 = t(i2);
|
|
219
216
|
let a2;
|
|
220
|
-
const l2 =
|
|
221
|
-
return
|
|
217
|
+
const l2 = n2.code;
|
|
218
|
+
return o2 && Object.keys(o2) > 0 && (a2 = JSON.stringify(o2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: r2, additionalParamMapJson: a2, pageCode: l2, publishVersion: s2, pageType: n2.pageType });
|
|
222
219
|
}
|
|
223
|
-
const
|
|
224
|
-
function
|
|
220
|
+
const R = ["button-detail", "print-label"];
|
|
221
|
+
function _(e2, t2, n2) {
|
|
225
222
|
var _a, _b;
|
|
226
|
-
const
|
|
227
|
-
let
|
|
228
|
-
if (r2 &&
|
|
229
|
-
const
|
|
230
|
-
false === (
|
|
223
|
+
const s2 = t2.props && t2.props.base ? t2.props.base.prop : null, r2 = u(e2);
|
|
224
|
+
let o2 = false;
|
|
225
|
+
if (r2 && R.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
226
|
+
const n3 = e2.fieldPermissionMap.get("all_fields");
|
|
227
|
+
false === (n3 == null ? void 0 : n3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", o2 = true);
|
|
231
228
|
}
|
|
232
|
-
if (
|
|
233
|
-
const a2 =
|
|
229
|
+
if (s2) {
|
|
230
|
+
const a2 = i(s2);
|
|
234
231
|
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[a2] || (e2.rules[a2] = []), t2.props.rules.forEach((e3) => {
|
|
235
|
-
d(e3), !
|
|
236
|
-
}), e2.rules[a2] = t2.props.rules), r2 && !
|
|
237
|
-
const
|
|
238
|
-
if (!
|
|
232
|
+
d(e3), !n2 && e3 && e3.required && (e3.required = false);
|
|
233
|
+
}), e2.rules[a2] = t2.props.rules), r2 && !o2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
234
|
+
const i2 = e2.fieldPermissionMap.get(a2);
|
|
235
|
+
if (!n2 && e2.workflowRules && (e2.workflowRules[a2] || e2.workflowRules.rules && e2.workflowRules.rules[a2])) {
|
|
239
236
|
let t3 = e2.workflowRules[a2];
|
|
240
237
|
if (!t3 && e2.workflowRules.rules && (t3 = e2.workflowRules.rules[a2]), t3 && Array.isArray(t3) && t3.length > 0) for (let e3 = 0; e3 < t3.length; e3++) {
|
|
241
|
-
const
|
|
242
|
-
if (
|
|
243
|
-
|
|
238
|
+
const n3 = t3[e3];
|
|
239
|
+
if (n3 && n3.required) {
|
|
240
|
+
n3.required = false;
|
|
244
241
|
break;
|
|
245
242
|
}
|
|
246
243
|
}
|
|
247
244
|
else t3 && t3.required && (t3.required = false);
|
|
248
245
|
}
|
|
249
|
-
t2.runtime.props || (t2.runtime.props = {}),
|
|
246
|
+
t2.runtime.props || (t2.runtime.props = {}), i2 ? (!n2 && i2.canEdit && (i2.canEdit = false), false === i2.canEdit ? t2.runtime.props.state = "disabled" : i2.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true)) : t2.runtime.props.state = "";
|
|
250
247
|
}
|
|
251
248
|
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: a2, events: t2.props.customRuleEvents }));
|
|
252
249
|
}
|
|
253
250
|
}
|
|
254
|
-
function
|
|
251
|
+
function V(e2, t2) {
|
|
255
252
|
if (e2.initInfo) {
|
|
256
|
-
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((
|
|
257
|
-
const
|
|
258
|
-
if (
|
|
259
|
-
let
|
|
260
|
-
if (
|
|
261
|
-
const e3 = p(
|
|
262
|
-
e3.name = t2,
|
|
253
|
+
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((n2) => {
|
|
254
|
+
const i2 = e2.initInfo[n2];
|
|
255
|
+
if (i2) if ("dynamicControlFormEdit" === n2) {
|
|
256
|
+
let n3 = i2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
|
|
257
|
+
if (n3 && n3.length > 0 && (n3 = n3.filter((e3) => "_all_fields" === e3.name), n3 && n3.length > 0)) {
|
|
258
|
+
const e3 = p(n3[0]);
|
|
259
|
+
e3.name = t2, n3 = [e3];
|
|
263
260
|
}
|
|
264
|
-
l.dynamicControlFormEdit(e2,
|
|
265
|
-
} else "disableElement" ===
|
|
261
|
+
l.dynamicControlFormEdit(e2, n3, false);
|
|
262
|
+
} else "disableElement" === n2 ? i2.indexOf(t2) >= 0 && l.disableElement(e2, [t2], false) : "enableElement" === n2 ? i2.indexOf(t2) >= 0 && l.enableElement(e2, [t2], false) : "hideElement" === n2 ? i2.indexOf(t2) >= 0 && l.hideElement(e2, [t2], false) : "showElement" === n2 && i2.indexOf(t2) >= 0 && l.showElement(e2, [t2], false);
|
|
266
263
|
});
|
|
267
264
|
}
|
|
268
265
|
}
|
|
269
266
|
export {
|
|
270
|
-
|
|
267
|
+
V as controlObjectRenderState,
|
|
271
268
|
y as convertToPageContext,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
269
|
+
T as getDefaultValue,
|
|
270
|
+
A as getFormModelFields,
|
|
271
|
+
k as getModelFields,
|
|
275
272
|
j as getPermissionCodes,
|
|
276
273
|
P as packageAdditionalMapWithLocationSearch,
|
|
277
274
|
E as packageAdditionalMapWithPageRequest,
|
|
278
|
-
|
|
279
|
-
|
|
275
|
+
v as packageAdditionalMapWithRoute,
|
|
276
|
+
_ as packageFormRules,
|
|
280
277
|
f as queryPageDesignByCode,
|
|
281
278
|
m as queryPageDesignWhenPreview,
|
|
282
|
-
|
|
279
|
+
x as queryPageSuperGrids
|
|
283
280
|
};
|
|
@@ -2,50 +2,50 @@ import { ref as e, nextTick as o } from "vue";
|
|
|
2
2
|
import { defineStore as t } from "pinia";
|
|
3
3
|
import n from "./eventBus.js";
|
|
4
4
|
const u = t("pageContextUtil", () => {
|
|
5
|
-
const t2 = e({ systemCode: "", systemVersion: -1 }), u2 = e(false), a = e(false),
|
|
6
|
-
let
|
|
7
|
-
function
|
|
8
|
-
|
|
5
|
+
const t2 = e({ systemCode: "", systemVersion: -1 }), u2 = e(false), a = e(false), i = e(false), l = e([]), r = e(0), s = e(0);
|
|
6
|
+
let v = null, c = -1, d = -1, m = 0;
|
|
7
|
+
function f() {
|
|
8
|
+
v && clearTimeout(v), v = setTimeout(() => {
|
|
9
9
|
o(() => {
|
|
10
10
|
!function() {
|
|
11
11
|
const e2 = r.value, o2 = s.value;
|
|
12
|
-
if (m++, m >= 100) return void (e2 > 0 && e2 === o2 &&
|
|
12
|
+
if (m++, m >= 100) return void (e2 > 0 && e2 === o2 && p(true));
|
|
13
13
|
if (e2 > 0 && e2 === o2) {
|
|
14
|
-
if (e2 === c && o2 ===
|
|
15
|
-
c = e2,
|
|
16
|
-
} else c = -1,
|
|
14
|
+
if (e2 === c && o2 === d && !u2.value) return void p(true);
|
|
15
|
+
c = e2, d = o2, f();
|
|
16
|
+
} else c = -1, d = -1, f();
|
|
17
17
|
}();
|
|
18
18
|
});
|
|
19
19
|
}, 30);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function p(e2) {
|
|
22
22
|
u2.value = e2, C();
|
|
23
23
|
}
|
|
24
24
|
function C() {
|
|
25
|
-
u2.value && a.value && !
|
|
25
|
+
u2.value && a.value && !i.value && (n.$emit("pageLoaded"), i.value = true);
|
|
26
26
|
}
|
|
27
27
|
return { pageContext: t2, setPageContext: function(e2) {
|
|
28
28
|
t2.value = e2;
|
|
29
29
|
}, countComponentsTotalNmber: function() {
|
|
30
|
-
r.value++, u2.value = false,
|
|
30
|
+
r.value++, u2.value = false, i.value = false;
|
|
31
31
|
}, countComponentsLoadedNumber: function() {
|
|
32
|
-
s.value++,
|
|
33
|
-
}, componentsTotalNmber: r, componentsLoadedNumber: s, setPageComponentsLoaded:
|
|
32
|
+
s.value++, f();
|
|
33
|
+
}, componentsTotalNmber: r, componentsLoadedNumber: s, setPageComponentsLoaded: p, setFormPageDataLoadState: function(e2) {
|
|
34
34
|
a.value = e2, C();
|
|
35
35
|
}, formPageDataLoaded: a, pageComponentsLoaded: u2, restorePageLoadState: function() {
|
|
36
|
-
u2.value = false, a.value = false,
|
|
37
|
-
}, pageLoaded:
|
|
38
|
-
return
|
|
36
|
+
u2.value = false, a.value = false, i.value = false;
|
|
37
|
+
}, pageLoaded: i, getPageLoaded: function() {
|
|
38
|
+
return i.value;
|
|
39
39
|
}, setPageLoaded: function(e2) {
|
|
40
|
-
|
|
40
|
+
i.value = e2;
|
|
41
41
|
}, setAutoAnchorComponentConditions: function(e2, o2) {
|
|
42
|
-
|
|
42
|
+
l.value.push({ uuid: e2, conditions: o2 });
|
|
43
43
|
}, getAutoAnchorComponentConditions: function() {
|
|
44
|
-
return
|
|
44
|
+
return l.value;
|
|
45
45
|
}, resetAutoAnchorComponentConditions: function() {
|
|
46
|
-
|
|
46
|
+
l.value = [];
|
|
47
47
|
}, resetComponentCounters: function() {
|
|
48
|
-
r.value = 0, s.value = 0, u2.value = false,
|
|
48
|
+
r.value = 0, s.value = 0, u2.value = false, i.value = false, c = -1, d = -1, m = 0, v && (clearTimeout(v), v = null);
|
|
49
49
|
} };
|
|
50
50
|
});
|
|
51
51
|
export {
|
|
@@ -8,7 +8,7 @@ import { ExpressionEvaluator as r } from "../views/assemblys/chart/table/chart-t
|
|
|
8
8
|
import { getFormPropName as u } from "./page-helper-util.js";
|
|
9
9
|
function a(t2) {
|
|
10
10
|
const e2 = t2.pageContext && t2.pageContext.code;
|
|
11
|
-
|
|
11
|
+
o.$emit(e2 + "_open-dialog", t2);
|
|
12
12
|
}
|
|
13
13
|
function p(t2, e2) {
|
|
14
14
|
const o2 = t2.tableName;
|
|
@@ -18,7 +18,7 @@ function p(t2, e2) {
|
|
|
18
18
|
}
|
|
19
19
|
function l(t2, e2, o2, i2) {
|
|
20
20
|
const r2 = !(!e2.props || !e2.props.base) && e2.props.base.showOperation, u2 = e2.btnList;
|
|
21
|
-
|
|
21
|
+
e2.btnList, r2 && u2 && u2.forEach((e3) => {
|
|
22
22
|
const r3 = {}, u3 = Object.assign({}, e3.props.base);
|
|
23
23
|
if ("custom" === e3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === e3.isPermission || e3.isPermission + "" == "true") {
|
|
24
24
|
const o3 = n(e3, t2);
|
|
@@ -73,7 +73,7 @@ function b(o2, n2, i2) {
|
|
|
73
73
|
const s2 = t(o2, i2);
|
|
74
74
|
return e.get(s2 + "/common/last-unread-file-task/" + n2);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function d(o2, n2, i2) {
|
|
77
77
|
const s2 = t(o2, i2);
|
|
78
78
|
return e.put(s2 + "/common/file-task-read/" + n2);
|
|
79
79
|
}
|
|
@@ -85,5 +85,5 @@ export {
|
|
|
85
85
|
m as isHasFieldAuth,
|
|
86
86
|
f as isHasFieldPermissionAuth,
|
|
87
87
|
a as popupToPage,
|
|
88
|
-
|
|
88
|
+
d as setFileTaskRead
|
|
89
89
|
};
|
package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as i, normalizeStyle as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as i, normalizeStyle as u, unref as s, withDirectives as l, createVNode as c, vShow as p } from "vue";
|
|
2
2
|
import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as m, clearChartSelected as h, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { getChartDatasFromPage as v, updateChartDatasources as x, monitorFieldChange as C } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { updateChartOption as
|
|
5
|
-
import { doClickJumpPageEvent as
|
|
4
|
+
import { updateChartOption as I } from "../../../../utils/charts/chart-columnline-util.js";
|
|
5
|
+
import { doClickJumpPageEvent as k } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import y from "../common/common-chart-header.vue.js";
|
|
7
7
|
import { use as R } from "echarts/core";
|
|
8
8
|
import { CanvasRenderer as j } from "echarts/renderers";
|
|
@@ -18,14 +18,11 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
|
|
|
18
18
|
"clearDrill" == F ? U.value && U.value.closeDrill && U.value.closeDrill(0) : "clickEvent" === F && Z(e3);
|
|
19
19
|
}
|
|
20
20
|
function Z(e3) {
|
|
21
|
-
if (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
console.log("clik2", r2);
|
|
25
|
-
const o2 = B[r2];
|
|
26
|
-
if (console.log("clik3", o2), !o2) return;
|
|
21
|
+
if (e3.seriesIndex >= Q.series.length) return;
|
|
22
|
+
const r2 = Q.series[e3.seriesIndex].uuid, o2 = B[r2];
|
|
23
|
+
if (!o2) return;
|
|
27
24
|
const t2 = { data: e3.data, dataIndex: e3.dataIndex, name: e3.name, seriesId: e3.seriesId, seriesIndex: e3.seriesIndex, seriesName: e3.seriesName, seriesType: e3.seriesType, value: e3.value };
|
|
28
|
-
|
|
25
|
+
k(H.pageContext, o2, t2);
|
|
29
26
|
}
|
|
30
27
|
g(H.configure, Q), o(() => {
|
|
31
28
|
const e3 = v(H.pageContext, H.configure);
|
|
@@ -35,7 +32,7 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
|
|
|
35
32
|
});
|
|
36
33
|
let $ = M.groupValue;
|
|
37
34
|
function ee(e3) {
|
|
38
|
-
L
|
|
35
|
+
L && (true !== e3 && (L.autoRefresh = true), x(H.pageContext, [L], M.drillParams));
|
|
39
36
|
}
|
|
40
37
|
t(M, () => {
|
|
41
38
|
$ != M.groupValue && ($ = M.groupValue, L && (L.services[0].groupValue = M.groupValue), ee(false));
|
|
@@ -43,14 +40,13 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
|
|
|
43
40
|
const re = M.monitorFields;
|
|
44
41
|
function oe(e3) {
|
|
45
42
|
var _a;
|
|
46
|
-
|
|
47
|
-
e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh && z || h(H.pageContext, H.configure, (_a = S.value) == null ? void 0 : _a.chart), L.autoRefresh = false, k(H.pageContext, H.configure, Q, e3), S.value && S.value.setOption(Q, true);
|
|
43
|
+
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh && z || h(H.pageContext, H.configure, (_a = S.value) == null ? void 0 : _a.chart), L.autoRefresh = false, I(H.pageContext, H.configure, Q, e3), S.value && S.value.setOption(Q, true));
|
|
48
44
|
}
|
|
49
45
|
return C(H.pageContext, re, () => {
|
|
50
46
|
ee(true);
|
|
51
47
|
}), A2({ updateChartDatas: oe, exportChart: function() {
|
|
52
48
|
return d(S.value, M);
|
|
53
|
-
}, chartOption: Q }), (r2, o2) => (a(), n("div", { style:
|
|
49
|
+
}, chartOption: Q }), (r2, o2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: N }, [l(c(y, { ref_key: "headerRef", ref: U, headerInfo: s(M), configure: e2.configure, pageContext: e2.pageContext, onDrillEnd: Y, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e2.pageContext.showHomepageSearch]]), c(s(E), { ref_key: "chartRef", ref: S, class: "amb-chart-content", theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
54
50
|
} });
|
|
55
51
|
export {
|
|
56
52
|
A as default
|
package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js
CHANGED
|
@@ -2,10 +2,10 @@ import { defineComponent as e, watch as l, resolveComponent as o, createBlock as
|
|
|
2
2
|
const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup(e2) {
|
|
3
3
|
const t2 = e2;
|
|
4
4
|
return l(t2.headerInfo, () => {
|
|
5
|
-
|
|
5
|
+
t2.headerInfo;
|
|
6
6
|
}), (l2, t3) => {
|
|
7
|
-
const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"),
|
|
8
|
-
return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[0] || (t3[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: n(() => [(r(true), u(d, null, p(e2.headerInfo.options, (e3) => (r(), a(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (r(true), u(d, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[1] || (t3[1] = (l4) => e2.headerInfo.groupValue = l4), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (r(), a(
|
|
7
|
+
const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), V = o("el-radio-button"), b = o("el-radio-group");
|
|
8
|
+
return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[0] || (t3[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: n(() => [(r(true), u(d, null, p(e2.headerInfo.options, (e3) => (r(), a(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (r(true), u(d, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[1] || (t3[1] = (l4) => e2.headerInfo.groupValue = l4), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (r(), a(b, { key: 2, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[2] || (t3[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: n(() => [(r(true), u(d, null, p(e2.headerInfo.options, (e3) => (r(), a(V, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
|
|
9
9
|
};
|
|
10
10
|
} });
|
|
11
11
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, resolveComponent as r, createElementBlock as n, openBlock as t, createElementVNode as a, createCommentVNode as l, withDirectives as i, createBlock as d, normalizeStyle as f, toDisplayString as h, vShow as s, createVNode as c, withCtx as I, unref as
|
|
2
|
-
import { Search as
|
|
1
|
+
import { defineComponent as e, ref as o, resolveComponent as r, createElementBlock as n, openBlock as t, createElementVNode as a, createCommentVNode as l, withDirectives as i, createBlock as d, normalizeStyle as f, toDisplayString as h, vShow as s, createVNode as c, withCtx as I, unref as u } from "vue";
|
|
2
|
+
import { Search as p } from "@element-plus/icons-vue";
|
|
3
3
|
import g from "./common-chart-header-group.vue.js";
|
|
4
4
|
import m from "./common-chart-header-breadcrumb.vue.js";
|
|
5
5
|
import b from "./common-homepage-search.vue.js";
|
|
@@ -8,7 +8,7 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
|
|
|
8
8
|
const N = e2, D = o(null), A = o(), R = _;
|
|
9
9
|
function S(e3) {
|
|
10
10
|
const o2 = N.headerInfo.drillOptions.length;
|
|
11
|
-
if (e3 >= o2)
|
|
11
|
+
if (e3 >= o2) N.headerInfo.drillOptions;
|
|
12
12
|
else {
|
|
13
13
|
for (let r2 = o2 - 1; r2 >= e3; r2--) N.headerInfo.drillOptions.splice(r2, 1);
|
|
14
14
|
q(e3);
|
|
@@ -45,14 +45,14 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
|
|
|
45
45
|
return P2({ drill: function(e3, o2) {
|
|
46
46
|
const r2 = N.headerInfo.drillOptions.length;
|
|
47
47
|
if (r2 + 1 >= N.headerInfo.options.length) {
|
|
48
|
-
return F(o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : void 0),
|
|
48
|
+
return F(o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : void 0), void R("drill-end", e3);
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
N.headerInfo.options;
|
|
51
51
|
const n2 = N.headerInfo.options[r2], t2 = o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : null, a2 = { fieldName: n2.target ? n2.target.replace(".", "_") : "", rawFieldName: n2.target ? n2.target : "", label: e3.name, value: e3.name, data: t2 };
|
|
52
52
|
N.headerInfo.drillOptions.push(a2), q(r2 + 1);
|
|
53
53
|
}, closeDrill: S }), (o2, v2) => {
|
|
54
54
|
const y2 = r("el-icon"), O2 = r("el-tooltip");
|
|
55
|
-
return t(), n("div", w, [a("div", x, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && (!e2.headerInfo.textAlign || "left" == e2.headerInfo.textAlign)]]), !e2.headerInfo.showDrill || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(m, { key: 0, ref_key: "drillObjRef", ref: D, headerInfo: e2.headerInfo, onCloseDrill: S }, null, 8, ["headerInfo"])), !e2.headerInfo.showGroup || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"]))]), a("div", k, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && "center" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "center" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "center" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), a("div", j, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && "right" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "right" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "right" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), e2.pageContext.showHomepageSearch ? (t(), n("div", C, [c(O2, { content: "打开查询弹窗", effect: "light" }, { default: I(() => [c(y2, { onClick: G }, { default: I(() => [c(p
|
|
55
|
+
return t(), n("div", w, [a("div", x, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && (!e2.headerInfo.textAlign || "left" == e2.headerInfo.textAlign)]]), !e2.headerInfo.showDrill || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(m, { key: 0, ref_key: "drillObjRef", ref: D, headerInfo: e2.headerInfo, onCloseDrill: S }, null, 8, ["headerInfo"])), !e2.headerInfo.showGroup || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"]))]), a("div", k, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && "center" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "center" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "center" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), a("div", j, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && "right" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "right" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "right" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), e2.pageContext.showHomepageSearch ? (t(), n("div", C, [c(O2, { content: "打开查询弹窗", effect: "light" }, { default: I(() => [c(y2, { onClick: G }, { default: I(() => [c(u(p))]), _: 1 })]), _: 1 }), c(b, { ref_key: "commonHomepageSearchRef", ref: A, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"])])) : l("", true)]);
|
|
56
56
|
};
|
|
57
57
|
} });
|
|
58
58
|
export {
|