super-page-runtime 2.3.18-tmp2 → 2.3.18-tmp3
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 +49 -48
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -12
- package/dist/es/components/runtime/utils/charts/chart-util.js +58 -56
- package/dist/es/components/runtime/utils/events/event-util.js +111 -111
- package/dist/es/components/runtime/utils/events/print-label.js +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +524 -512
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
- package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
- package/dist/es/components/runtime/utils/page-init-util.js +82 -79
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +28 -28
- 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 +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 +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/table-runtime.vue2.js +86 -85
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +24 -22
- 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 +63 -63
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +40 -38
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +90 -87
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +39 -38
- 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 +26 -26
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +49 -49
- 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 +1 -0
- 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 +16 -16
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +6 -6
- package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +9 -9
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +171 -170
- package/dist/es/style.css +76 -76
- package/package.json +1 -1
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import e from "agilebuilder-ui/src/utils/request";
|
|
2
2
|
import { getAdditionalParamMap as t } from "./events/standard-event.js";
|
|
3
3
|
import { PageDimensions as i } from "./interfaces/page-design-types.js";
|
|
4
|
-
import { getFormPropName as
|
|
4
|
+
import { getFormPropName as o, getVariableValue as n, setVariableValue as s, formatVariableValue as r } 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 p, deepCopy as u } 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((i2,
|
|
11
|
+
return new Promise((i2, o2) => {
|
|
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
|
-
t3 && (e2.systemParam =
|
|
17
|
-
t4 ? (e2.contextParam =
|
|
16
|
+
t3 && (e2.systemParam = y(t3)), g(e2.listViewTableName, e2.listViewTablePublishVersion).then((t4) => {
|
|
17
|
+
t4 ? (e2.contextParam = y(t4.contextParam), e2.branchFieldAuth = t4.branchFieldAuth, e2.isWorkflowEntity = t4.isWorkflowEntity, e2.dataTypeMaps = t4.dataTypeMaps, i2(e2)) : i2(null);
|
|
18
18
|
});
|
|
19
19
|
}) : i2(null);
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
function m(e2, t2) {
|
|
24
|
-
return new Promise((i2,
|
|
25
|
-
e2 ? b().then((
|
|
26
|
-
|
|
27
|
-
e2.contextParam =
|
|
24
|
+
return new Promise((i2, o2) => {
|
|
25
|
+
e2 ? b().then((n2) => {
|
|
26
|
+
n2 && (e2.systemParam = y(n2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? j(e2, t2, e2.systemVersion).then((t3) => {
|
|
27
|
+
e2.contextParam = y(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, e2.superGridItems = t3.superGrids, i2(e2);
|
|
28
28
|
}).catch((e3) => {
|
|
29
|
-
|
|
29
|
+
console.log("queryPageSuperGrids error", e3), o2(e3);
|
|
30
30
|
}) : g("", "").then((t3) => {
|
|
31
|
-
t3 ? (e2.contextParam =
|
|
31
|
+
t3 ? (e2.contextParam = y(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, i2(e2)) : i2(null);
|
|
32
32
|
}).catch((e3) => {
|
|
33
|
-
|
|
33
|
+
console.log("queryPageRuntimeParam error", e3), o2(e3);
|
|
34
34
|
});
|
|
35
35
|
}) : i2(null);
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
function g(t2, i2) {
|
|
39
|
-
let
|
|
40
|
-
return t2 && i2 && (
|
|
39
|
+
let o2 = "";
|
|
40
|
+
return t2 && i2 && (o2 = "?listViewTableName=" + t2 + "&listViewTablePublishVersion=" + i2), e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + o2);
|
|
41
41
|
}
|
|
42
42
|
function b() {
|
|
43
43
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/system-param");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function h(e2) {
|
|
46
46
|
var _a, _b, _c;
|
|
47
47
|
if (null == e2) return null;
|
|
48
48
|
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, isWorkflowEntity: void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, branchFieldAuth: e2.branchFieldAuth, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam }, propTitleMap: {} };
|
|
@@ -66,7 +66,7 @@ function y(e2) {
|
|
|
66
66
|
return e3 > 768 ? i.PC : e3 > 414 ? i.IPAD : i.PHONE;
|
|
67
67
|
}(), t2.events = e2.runtime && e2.runtime.events ? e2.runtime.events : [], t2;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function y(e2) {
|
|
70
70
|
try {
|
|
71
71
|
const t2 = function(e3) {
|
|
72
72
|
if (!e3) return e3;
|
|
@@ -103,10 +103,10 @@ function P(e2) {
|
|
|
103
103
|
const i2 = t2.split("&");
|
|
104
104
|
for (const t3 of i2) {
|
|
105
105
|
const i3 = t3.split("=");
|
|
106
|
-
let
|
|
107
|
-
if (
|
|
106
|
+
let o2 = i3[0];
|
|
107
|
+
if (o2) {
|
|
108
108
|
const t4 = i3.length > 1 ? i3[1] : "";
|
|
109
|
-
|
|
109
|
+
o2.indexOf("ai__") >= 0 && (o2 = o2.substring(o2.indexOf("ai__") + 4)), e2[o2] = t4;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -114,116 +114,119 @@ function P(e2) {
|
|
|
114
114
|
}
|
|
115
115
|
function E(e2, t2) {
|
|
116
116
|
if (e2) {
|
|
117
|
-
Object.assign(t2, e2);
|
|
118
|
-
|
|
117
|
+
console.log("packageAdditionalMapWithPageRequest----pageRequest=", e2), Object.assign(t2, e2);
|
|
118
|
+
v(e2.paramStoreId, t2), delete e2.paramStoreId, console.log("packageAdditionalMapWithPageRequest----requestObj=", t2), e2.jumpMode && (t2.jumpMode = e2.jumpMode);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
if (
|
|
123
|
-
Object.assign(t2, e2.query)
|
|
124
|
-
|
|
121
|
+
function k(e2, t2) {
|
|
122
|
+
if (console.log("packageAdditionalMapWithRoute----route=", e2), e2) {
|
|
123
|
+
if (e2.params && Object.assign(t2, e2.params), console.log("packageAdditionalMapWithRoute----route.query=", e2.query), e2.query) {
|
|
124
|
+
Object.assign(t2, e2.query);
|
|
125
|
+
v(e2.query.paramStoreId, t2);
|
|
126
|
+
}
|
|
127
|
+
console.log("packageAdditionalMapWithRoute----requestObj=", t2);
|
|
125
128
|
}
|
|
126
129
|
}
|
|
127
|
-
function
|
|
130
|
+
function v(e2, t2) {
|
|
128
131
|
if (e2) {
|
|
129
132
|
const i2 = a(e2);
|
|
130
133
|
if (i2) {
|
|
131
134
|
const e3 = JSON.parse(i2);
|
|
132
|
-
Object.assign(t2, e3);
|
|
135
|
+
Object.assign(t2, e3), console.log("已获取到附加参数", e3);
|
|
133
136
|
}
|
|
134
137
|
}
|
|
135
138
|
}
|
|
136
|
-
function
|
|
137
|
-
let i2,
|
|
138
|
-
t2 || (i2 = e2.props.base ? e2.props.base : {},
|
|
139
|
-
let
|
|
140
|
-
return t2 && !t2.startsWith("${") ?
|
|
139
|
+
function M(e2, t2) {
|
|
140
|
+
let i2, o2 = t2;
|
|
141
|
+
t2 || (i2 = e2.props.base ? e2.props.base : {}, o2 = i2.prop);
|
|
142
|
+
let n2 = null;
|
|
143
|
+
return t2 && !t2.startsWith("${") ? n2 = ["data", t2] : !e2 || o2 && o2.startsWith("${") ? o2.startsWith("${") ? (o2 = o2.substring(2, o2.length - 1), n2 = o2.split("."), e2 && n2.length < 2 && (n2 = [e2.uuid])) : e2 && (n2 = ["page", e2.uuid]) : n2 = ["page", e2.uuid], n2 || e2 ? n2 : ["temp"];
|
|
141
144
|
}
|
|
142
|
-
function
|
|
145
|
+
function A(e2, t2, i2) {
|
|
143
146
|
var _a;
|
|
144
|
-
const
|
|
147
|
+
const o2 = M(t2, i2), r2 = e2.entity;
|
|
145
148
|
if (null == r2.data.ID && null == r2.data.id) {
|
|
146
149
|
let i3, a2, l2 = false;
|
|
147
150
|
t2 && (i3 = t2.props.base ? t2.props.base : {}, a2 = t2.name, l2 = i3.multiple);
|
|
148
|
-
const p2 =
|
|
151
|
+
const p2 = n(r2, o2);
|
|
149
152
|
if (null == p2) {
|
|
150
153
|
const t3 = i3 ? i3.defaultValue : null;
|
|
151
154
|
if (t3) try {
|
|
152
|
-
const
|
|
153
|
-
if (null !=
|
|
155
|
+
const n2 = C(e2, t3, a2, l2);
|
|
156
|
+
if (null != n2 && "" !== n2) s(r2, o2, n2);
|
|
154
157
|
else if (((_a = i3.moreDefaultValue) == null ? void 0 : _a.length) > 0) {
|
|
155
158
|
const t4 = i3.moreDefaultValue;
|
|
156
159
|
for (let i4 = 0; i4 < t4.length; i4++) {
|
|
157
|
-
const
|
|
158
|
-
if (null !=
|
|
159
|
-
|
|
160
|
+
const n3 = C(e2, t4[i4], a2, l2);
|
|
161
|
+
if (null != n3 && "" !== n3) {
|
|
162
|
+
s(r2, o2, n3);
|
|
160
163
|
break;
|
|
161
164
|
}
|
|
162
165
|
}
|
|
163
166
|
}
|
|
164
167
|
} catch (e3) {
|
|
165
|
-
console.error("设置默认值出错:",
|
|
168
|
+
console.error("设置默认值出错:", o2, e3);
|
|
166
169
|
}
|
|
167
170
|
}
|
|
168
171
|
}
|
|
169
|
-
return
|
|
172
|
+
return o2;
|
|
170
173
|
}
|
|
171
|
-
function
|
|
172
|
-
let
|
|
173
|
-
if (t2 && (
|
|
174
|
+
function C(e2, t2, i2, o2) {
|
|
175
|
+
let n2;
|
|
176
|
+
if (t2 && (n2 = r(e2, t2), null != n2 && null != n2 && i2)) {
|
|
174
177
|
let e3 = false;
|
|
175
|
-
"checkbox" == i2 ? e3 = true : "select" == i2 && (e3 =
|
|
178
|
+
"checkbox" == i2 ? e3 = true : "select" == i2 && (e3 = o2), e3 && (n2 = (n2 + "").split(","));
|
|
176
179
|
}
|
|
177
|
-
return
|
|
180
|
+
return n2;
|
|
178
181
|
}
|
|
179
|
-
function
|
|
182
|
+
function R(e2, t2) {
|
|
180
183
|
var _a, _b;
|
|
181
184
|
if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
|
|
182
185
|
const i2 = [];
|
|
183
|
-
if (e2.autoPermissions) for (const
|
|
186
|
+
if (e2.autoPermissions) for (const o2 of e2.autoPermissions) i2.push(t2.code + "." + o2.simpleCode);
|
|
184
187
|
if (e2.functionCodes) {
|
|
185
|
-
const
|
|
186
|
-
for (let e3 = 0; e3 <
|
|
187
|
-
const
|
|
188
|
+
const o2 = e2.sourceTypes ? e2.sourceTypes : [], n2 = e2.functionCodes;
|
|
189
|
+
for (let e3 = 0; e3 < n2.length; e3++) {
|
|
190
|
+
const s2 = n2[e3], r2 = e3 < o2.length ? o2[e3] : "";
|
|
188
191
|
let a2 = "";
|
|
189
|
-
if ("service" == r2) a2 =
|
|
190
|
-
else if ("standard" === r2) a2 = t2.code + "." +
|
|
192
|
+
if ("service" == r2) a2 = s2;
|
|
193
|
+
else if ("standard" === r2) a2 = t2.code + "." + s2;
|
|
191
194
|
else {
|
|
192
|
-
a2 = "custom" ===
|
|
195
|
+
a2 = "custom" === I(s2, t2).type ? s2 : t2.code + "." + s2;
|
|
193
196
|
}
|
|
194
197
|
i2.includes(a2) || i2.push(a2);
|
|
195
198
|
}
|
|
196
199
|
}
|
|
197
200
|
return i2.join(",");
|
|
198
201
|
}
|
|
199
|
-
function
|
|
202
|
+
function I(e2, t2) {
|
|
200
203
|
const i2 = t2.pagePermissions;
|
|
201
204
|
if (i2 && i2.length > 0) {
|
|
202
205
|
for (let t3 = 0; t3 < i2.length; t3++) if (i2[t3].simpleCode === e2) return i2[t3];
|
|
203
206
|
}
|
|
204
207
|
return null;
|
|
205
208
|
}
|
|
206
|
-
function j(i2,
|
|
207
|
-
const
|
|
209
|
+
function j(i2, o2, n2) {
|
|
210
|
+
const s2 = i2.tableRuntimes, r2 = t(o2);
|
|
208
211
|
let a2;
|
|
209
212
|
const l2 = i2.code;
|
|
210
|
-
return r2 && Object.keys(r2) > 0 && (a2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes:
|
|
213
|
+
return r2 && Object.keys(r2) > 0 && (a2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: s2, additionalParamMapJson: a2, pageCode: l2, publishVersion: n2, pageType: i2.pageType });
|
|
211
214
|
}
|
|
212
215
|
const O = ["button-detail", "print-label"];
|
|
213
|
-
function
|
|
216
|
+
function T(e2, t2, i2) {
|
|
214
217
|
var _a, _b;
|
|
215
|
-
const
|
|
218
|
+
const n2 = t2.props && t2.props.base ? t2.props.base.prop : null, s2 = p(e2);
|
|
216
219
|
let r2 = false;
|
|
217
|
-
if (
|
|
220
|
+
if (s2 && O.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
218
221
|
const i3 = e2.fieldPermissionMap.get("all_fields");
|
|
219
222
|
false === (i3 == null ? void 0 : i3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", r2 = true);
|
|
220
223
|
}
|
|
221
|
-
if (
|
|
222
|
-
const a2 =
|
|
224
|
+
if (n2) {
|
|
225
|
+
const a2 = o(n2);
|
|
223
226
|
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[a2] || (e2.rules[a2] = []), t2.props.rules.forEach((e3) => {
|
|
224
227
|
d(e3), !i2 && e3 && e3.required && (e3.required = false);
|
|
225
|
-
}), e2.rules[a2] = t2.props.rules),
|
|
226
|
-
const
|
|
228
|
+
}), e2.rules[a2] = t2.props.rules), s2 && !r2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
229
|
+
const o2 = e2.fieldPermissionMap.get(a2);
|
|
227
230
|
if (!i2 && e2.workflowRules && (e2.workflowRules[a2] || e2.workflowRules.rules && e2.workflowRules.rules[a2])) {
|
|
228
231
|
let t3 = e2.workflowRules[a2];
|
|
229
232
|
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++) {
|
|
@@ -235,37 +238,37 @@ function x(e2, t2, i2) {
|
|
|
235
238
|
}
|
|
236
239
|
else t3 && t3.required && (t3.required = false);
|
|
237
240
|
}
|
|
238
|
-
t2.runtime.props || (t2.runtime.props = {}),
|
|
241
|
+
t2.runtime.props || (t2.runtime.props = {}), o2 ? (!i2 && o2.canEdit && (o2.canEdit = false), false === o2.canEdit ? t2.runtime.props.state = "disabled" : o2.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true)) : t2.runtime.props.state = "";
|
|
239
242
|
}
|
|
240
243
|
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: a2, events: t2.props.customRuleEvents }));
|
|
241
244
|
}
|
|
242
245
|
}
|
|
243
|
-
function
|
|
246
|
+
function q(e2, t2) {
|
|
244
247
|
if (e2.initInfo) {
|
|
245
248
|
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((i2) => {
|
|
246
|
-
const
|
|
247
|
-
if (
|
|
248
|
-
let i3 =
|
|
249
|
+
const o2 = e2.initInfo[i2];
|
|
250
|
+
if (o2) if ("dynamicControlFormEdit" === i2) {
|
|
251
|
+
let i3 = o2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
|
|
249
252
|
if (i3 && i3.length > 0 && (i3 = i3.filter((e3) => "_all_fields" === e3.name), i3 && i3.length > 0)) {
|
|
250
253
|
const e3 = u(i3[0]);
|
|
251
254
|
e3.name = t2, i3 = [e3];
|
|
252
255
|
}
|
|
253
256
|
l.dynamicControlFormEdit(e2, i3, false);
|
|
254
|
-
} else "disableElement" === i2 ?
|
|
257
|
+
} else "disableElement" === i2 ? o2.indexOf(t2) >= 0 && l.disableElement(e2, [t2], false) : "enableElement" === i2 ? o2.indexOf(t2) >= 0 && l.enableElement(e2, [t2], false) : "hideElement" === i2 ? o2.indexOf(t2) >= 0 && l.hideElement(e2, [t2], false) : "showElement" === i2 && o2.indexOf(t2) >= 0 && l.showElement(e2, [t2], false);
|
|
255
258
|
});
|
|
256
259
|
}
|
|
257
260
|
}
|
|
258
261
|
export {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
262
|
+
q as controlObjectRenderState,
|
|
263
|
+
h as convertToPageContext,
|
|
264
|
+
C as getDefaultValue,
|
|
265
|
+
A as getFormModelFields,
|
|
266
|
+
M as getModelFields,
|
|
267
|
+
R as getPermissionCodes,
|
|
265
268
|
P as packageAdditionalMapWithLocationSearch,
|
|
266
269
|
E as packageAdditionalMapWithPageRequest,
|
|
267
|
-
|
|
268
|
-
|
|
270
|
+
k as packageAdditionalMapWithRoute,
|
|
271
|
+
T as packageFormRules,
|
|
269
272
|
f as queryPageDesignByCode,
|
|
270
273
|
m as queryPageDesignWhenPreview,
|
|
271
274
|
j as queryPageSuperGrids
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ref as e } from "vue";
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import
|
|
4
|
-
const t =
|
|
5
|
-
const
|
|
6
|
-
return { pageContext:
|
|
7
|
-
|
|
2
|
+
import { defineStore as o } from "pinia";
|
|
3
|
+
import a from "./eventBus.js";
|
|
4
|
+
const t = o("pageContextUtil", () => {
|
|
5
|
+
const o2 = e({ systemCode: "", systemVersion: -1 }), t2 = e(false), n = e(false), u = e(false), l = e(0), d = e(0);
|
|
6
|
+
return { pageContext: o2, setPageContext: function(e2) {
|
|
7
|
+
o2.value = e2;
|
|
8
8
|
}, countComponentsTotalNmber: function() {
|
|
9
9
|
l.value++, t2.value = false, u.value = false;
|
|
10
10
|
}, countComponentsLoadedNumber: function() {
|
|
11
|
-
|
|
12
|
-
}, componentsTotalNmber: l, componentsLoadedNumber:
|
|
13
|
-
t2.value = e2, t2.value && n.value && (
|
|
11
|
+
d.value++, u.value = false;
|
|
12
|
+
}, componentsTotalNmber: l, componentsLoadedNumber: d, setPageComponentsLoaded: function(e2) {
|
|
13
|
+
t2.value = e2, t2.value && n.value && (a.$emit("pageLoaded"), u.value = true);
|
|
14
14
|
}, setFormPageDataLoadState: function(e2) {
|
|
15
|
-
n.value = e2, t2.value && n.value && (t2.value, n.value, u.value = true);
|
|
15
|
+
n.value = e2, t2.value && n.value && (console.log("setpageLoaded+++++++++++++++++++", t2.value, n.value), u.value = true);
|
|
16
16
|
}, formPageDataLoaded: n, pageComponentsLoaded: t2, restorePageLoadState: function() {
|
|
17
17
|
t2.value = false, n.value = false, u.value = false;
|
|
18
18
|
}, pageLoaded: u, getPageLoaded: function() {
|
|
@@ -3,46 +3,46 @@ import "agilebuilder-ui/src/utils/util";
|
|
|
3
3
|
import { ExpressionEvaluator as t } from "../views/assemblys/chart/table/chart-table-util.js";
|
|
4
4
|
import { getCustomFunc as e } from "./events/event-util.js";
|
|
5
5
|
import "agilebuilder-ui/src/utils/request";
|
|
6
|
-
import
|
|
7
|
-
import { getPermissionCodes as
|
|
6
|
+
import o from "./eventBus.js";
|
|
7
|
+
import { getPermissionCodes as i } from "./page-init-util.js";
|
|
8
8
|
import { $t as n } from "./i18n-util.js";
|
|
9
9
|
import { getFormPropName as s } from "./page-helper-util.js";
|
|
10
10
|
function r(t2) {
|
|
11
11
|
const e2 = t2.pageContext && t2.pageContext.code;
|
|
12
|
-
|
|
12
|
+
console.log("弹框显示页面--popupToPage====params=", t2), o.$emit(e2 + "_open-dialog", t2);
|
|
13
13
|
}
|
|
14
14
|
function u(t2, e2) {
|
|
15
|
-
const
|
|
16
|
-
if (!e2 &&
|
|
17
|
-
let
|
|
18
|
-
return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (
|
|
15
|
+
const o2 = t2.tableName;
|
|
16
|
+
if (!e2 && o2) return o2;
|
|
17
|
+
let i2;
|
|
18
|
+
return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (i2 = JSON.parse(t2.tableRuntimes[e2].configure)), i2 && i2.props && i2.props.dataOrigin ? i2.props.dataOrigin.tableName : null;
|
|
19
19
|
}
|
|
20
|
-
function l(t2, e2,
|
|
20
|
+
function l(t2, e2, o2, s2) {
|
|
21
21
|
const r2 = !(!e2.props || !e2.props.base) && e2.props.base.showOperation, u2 = e2.btnList;
|
|
22
|
-
e2.btnList, r2 && u2 && u2.forEach((e3) => {
|
|
22
|
+
console.log("configure.btnList===", e2.btnList, "configure====", e2), r2 && u2 && u2.forEach((e3) => {
|
|
23
23
|
const r3 = {}, u3 = Object.assign({}, e3.props.base);
|
|
24
24
|
if ("custom" === e3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === e3.isPermission || e3.isPermission + "" == "true") {
|
|
25
|
-
const
|
|
26
|
-
|
|
25
|
+
const o3 = i(e3, t2);
|
|
26
|
+
o3 && (u3.permission = o3);
|
|
27
27
|
}
|
|
28
28
|
if (u3.label = n(u3.title), u3.sourceButton = { uuid: e3.uuid }, r3.props = u3, void 0 !== s2) {
|
|
29
29
|
const t3 = s2(e3);
|
|
30
30
|
r3.onClick = (t3 == null ? void 0 : t3.onClick) ?? t3, r3.eventName = t3 == null ? void 0 : t3.eventName;
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
o2.push(r3);
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
function p(
|
|
35
|
+
function p(o2, i2, n2, s2) {
|
|
36
36
|
let r2;
|
|
37
37
|
const u2 = n2 == null ? void 0 : n2.some((n3) => {
|
|
38
38
|
let u3 = false;
|
|
39
39
|
if (n3.scopeFunc) {
|
|
40
|
-
const t2 = e(
|
|
40
|
+
const t2 = e(o2, n3.scopeFunc);
|
|
41
41
|
if (t2) {
|
|
42
|
-
t2.apply(t2, [{ pageContext:
|
|
42
|
+
t2.apply(t2, [{ pageContext: o2, configureObj: i2, row: s2 }]) && (u3 = true);
|
|
43
43
|
}
|
|
44
44
|
} else if (n3.showCondition && n3.showCondition.length > 0) {
|
|
45
|
-
t.evaluate(
|
|
45
|
+
t.evaluate(o2, n3.showCondition, s2) && (u3 = true);
|
|
46
46
|
} else u3 = true;
|
|
47
47
|
if (u3) return r2 = n3, true;
|
|
48
48
|
});
|
|
@@ -50,23 +50,23 @@ function p(i2, o2, n2, s2) {
|
|
|
50
50
|
}
|
|
51
51
|
function a(t2, e2) {
|
|
52
52
|
var _a;
|
|
53
|
-
const
|
|
54
|
-
let
|
|
53
|
+
const o2 = t2.tableName;
|
|
54
|
+
let i2 = "";
|
|
55
55
|
const n2 = (_a = e2 == null ? void 0 : e2.props) == null ? void 0 : _a.base;
|
|
56
56
|
if (n2 && n2.prop) {
|
|
57
57
|
const t3 = n2.prop;
|
|
58
|
-
|
|
58
|
+
i2 = s(t3);
|
|
59
59
|
}
|
|
60
|
-
return c(t2,
|
|
60
|
+
return c(t2, o2, i2);
|
|
61
61
|
}
|
|
62
|
-
function c(t2, e2,
|
|
63
|
-
if (!
|
|
64
|
-
const
|
|
65
|
-
if (
|
|
66
|
-
const t3 =
|
|
67
|
-
if (t3 && t3[e2] && t3[e2].indexOf(
|
|
68
|
-
const n2 =
|
|
69
|
-
if (n2 && n2[e2] && n2[e2].indexOf(
|
|
62
|
+
function c(t2, e2, o2) {
|
|
63
|
+
if (!o2 || !e2) return true;
|
|
64
|
+
const i2 = t2.branchFieldAuth;
|
|
65
|
+
if (i2) {
|
|
66
|
+
const t3 = i2.hasAuthFields;
|
|
67
|
+
if (t3 && t3[e2] && t3[e2].indexOf(o2) >= 0) return true;
|
|
68
|
+
const n2 = i2.allAuthFields;
|
|
69
|
+
if (n2 && n2[e2] && n2[e2].indexOf(o2) >= 0) return false;
|
|
70
70
|
}
|
|
71
71
|
return true;
|
|
72
72
|
}
|
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 l, unref as s, withDirectives as u, 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 k } from "../../../../utils/charts/chart-columnline-util.js";
|
|
5
|
+
import { doClickJumpPageEvent as I } 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,11 +18,14 @@ 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 (e3.seriesIndex >= Q.series.length) return;
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
if (console.log("clik0", e3), e3.seriesIndex >= Q.series.length) return;
|
|
22
|
+
console.log("clik1", e3);
|
|
23
|
+
const r2 = Q.series[e3.seriesIndex].uuid;
|
|
24
|
+
console.log("clik2", r2);
|
|
25
|
+
const o2 = B[r2];
|
|
26
|
+
if (console.log("clik3", o2), !o2) return;
|
|
24
27
|
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 };
|
|
25
|
-
|
|
28
|
+
I(H.pageContext, o2, t2);
|
|
26
29
|
}
|
|
27
30
|
g(H.configure, Q), o(() => {
|
|
28
31
|
const e3 = v(H.pageContext, H.configure);
|
|
@@ -32,7 +35,7 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
|
|
|
32
35
|
});
|
|
33
36
|
let $ = M.groupValue;
|
|
34
37
|
function ee(e3) {
|
|
35
|
-
L
|
|
38
|
+
L ? (true !== e3 && (L.autoRefresh = true), x(H.pageContext, [L], M.drillParams)) : console.log("无数据源配置,不需要查询!");
|
|
36
39
|
}
|
|
37
40
|
t(M, () => {
|
|
38
41
|
$ != M.groupValue && ($ = M.groupValue, L && (L.services[0].groupValue = M.groupValue), ee(false));
|
|
@@ -40,13 +43,14 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
|
|
|
40
43
|
const re = M.monitorFields;
|
|
41
44
|
function oe(e3) {
|
|
42
45
|
var _a;
|
|
43
|
-
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender
|
|
46
|
+
if (e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender) return e3.hasRender = true, void console.log("重复更新!", e3);
|
|
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);
|
|
44
48
|
}
|
|
45
49
|
return C(H.pageContext, re, () => {
|
|
46
50
|
ee(true);
|
|
47
51
|
}), A2({ updateChartDatas: oe, exportChart: function() {
|
|
48
52
|
return d(S.value, M);
|
|
49
|
-
}, chartOption: Q }), (e3, r2) => (a(), n("div", { style:
|
|
53
|
+
}, chartOption: Q }), (e3, r2) => (a(), n("div", { style: l(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: N }, [u(c(y, { ref_key: "headerRef", ref: U, headerInfo: s(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.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));
|
|
50
54
|
} });
|
|
51
55
|
export {
|
|
52
56
|
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
|
-
t2.headerInfo;
|
|
5
|
+
console.log("props.headerInfo", 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"), I = o("el-radio-button"), V = 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(V, { 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(I, { 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 p } from "vue";
|
|
2
|
+
import { Search as u } 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) N.headerInfo.drillOptions;
|
|
11
|
+
if (e3 >= o2) console.log("无效的取消操作,", e3, 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), void R("drill-end", e3);
|
|
48
|
+
return F(o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : void 0), console.log("钻取到最底层了!"), void R("drill-end", e3);
|
|
49
49
|
}
|
|
50
|
-
N.headerInfo.options;
|
|
50
|
+
console.log("props.headerInfo.options", r2, 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(u
|
|
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(u))]), _: 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 {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as
|
|
2
|
-
import { getCustomTheme as f, initChartOption as
|
|
3
|
-
import { getChartDatasFromPage as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as u, unref as c, withDirectives as i, createVNode as l, vShow as p } from "vue";
|
|
2
|
+
import { getCustomTheme as f, initChartOption as g, exportCommonChart as m } from "../../../../utils/charts/chart-util.js";
|
|
3
|
+
import { getChartDatasFromPage as h, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as C } from "../../../../utils/charts/chart-gauge-util.js";
|
|
5
5
|
import v from "../common/common-chart-header.vue.js";
|
|
6
6
|
import { use as y } from "echarts/core";
|
|
@@ -10,25 +10,26 @@ import { GridComponent as V, TitleComponent as _, TooltipComponent as j, Toolbox
|
|
|
10
10
|
import I from "vue-echarts";
|
|
11
11
|
const k = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: k2 }) {
|
|
12
12
|
y([R, b, V, _, j, w]);
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const e3 =
|
|
13
|
+
const O = e2, A = r(null), D = r(), H = r(null), z = O.configure.runtime ? O.configure.runtime : {}, F = z.style, P = z.class, S = z.dataConfig, T = z.headerInfo ? z.headerInfo : {}, q = z.chartOption, B = O.configure.props ? O.configure.props : {}, E = f(B.customTheme);
|
|
14
|
+
g(O.configure, q), o(() => {
|
|
15
|
+
const e3 = h(O.pageContext, O.configure);
|
|
16
16
|
e3 && L(e3);
|
|
17
17
|
});
|
|
18
18
|
let G = T.groupValue;
|
|
19
19
|
function J() {
|
|
20
|
-
S
|
|
20
|
+
S ? d(O.pageContext, [S], T.drillParams) : console.log("无数据源配置,不需要查询!");
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
t(T, () => {
|
|
23
23
|
G != T.groupValue && (G = T.groupValue, S && (S.services[0].groupValue = T.groupValue), J());
|
|
24
24
|
});
|
|
25
25
|
const K = T.monitorFields;
|
|
26
26
|
function L(e3) {
|
|
27
|
-
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender
|
|
27
|
+
if (e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender) return e3.hasRender = true, void console.log("重复更新!", e3);
|
|
28
|
+
e3.hasRender = true, console.log("gauge resultData", e3), C(O.pageContext, O.configure, q, e3), console.log("chartOption", q), D.value && D.value.setOption(q, true);
|
|
28
29
|
}
|
|
29
|
-
return x(
|
|
30
|
-
return
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style: u(
|
|
30
|
+
return x(O.pageContext, K, J), k2({ updateChartDatas: L, exportChart: function() {
|
|
31
|
+
return m(D.value, T);
|
|
32
|
+
} }), (e3, r2) => (n(), a("div", { style: u(c(F)), class: s([c(P), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: A }, [i(l(v, { ref_key: "headerRef", ref: H, headerInfo: c(T), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, c(T).showHeader || e3.pageContext.showHomepageSearch]]), l(c(I), { ref_key: "chartRef", ref: D, class: "amb-chart-content", theme: c(E), option: c(q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
33
|
} });
|
|
33
34
|
export {
|
|
34
35
|
k as default
|