super-page-runtime 2.2.86 → 2.2.89-sit10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +56 -56
- package/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +45 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -16
- package/dist/es/components/runtime/utils/charts/chart-util.js +2 -4
- package/dist/es/components/runtime/utils/events/event-util.js +113 -113
- package/dist/es/components/runtime/utils/events/print-label.js +42 -43
- package/dist/es/components/runtime/utils/events/standard-event.js +541 -543
- package/dist/es/components/runtime/utils/events/validator-util.js +32 -32
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +210 -210
- package/dist/es/components/runtime/utils/page-init-util.js +43 -47
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/utils/table-utils.js +32 -27
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +12 -16
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +9 -11
- 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 +13 -14
- 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 +16 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +19 -13
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +18 -19
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -26
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -4
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +11 -8
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +85 -88
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +108 -111
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +57 -58
- 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 +29 -29
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +50 -49
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +59 -51
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +41 -42
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -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 +0 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -7
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +123 -125
- package/dist/es/style.css +101 -92
- package/package.json +2 -2
|
@@ -1,16 +1,16 @@
|
|
|
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 s } from "./interfaces/page-design-types.js";
|
|
4
|
-
import { getFormPropName as i, getValueFromVariable as
|
|
4
|
+
import { getFormPropName as i, getValueFromVariable as n, setVariableValue as o, formatVariableValue as r } from "./page-helper-util.js";
|
|
5
5
|
import { getSessionCache as l } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { functions as a } 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
|
-
import { isMobileBrowser as
|
|
10
|
-
function
|
|
9
|
+
import { isMobileBrowser as m } from "agilebuilder-ui/src/utils/common-util";
|
|
10
|
+
function f(t2) {
|
|
11
11
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t2);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function c(e2) {
|
|
14
14
|
var _a;
|
|
15
15
|
if (null == e2) return null;
|
|
16
16
|
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, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: g(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: e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam } };
|
|
@@ -23,7 +23,7 @@ function f(e2) {
|
|
|
23
23
|
for (const t3 of e2.variables) t3.name && (t3.isArrayElement ? s2[t3.name] = [] : t3.defaultValue ? s2[t3.name] = t3.defaultValue : s2[t3.name] = void 0);
|
|
24
24
|
}
|
|
25
25
|
return function(e3) {
|
|
26
|
-
if (
|
|
26
|
+
if (m()) {
|
|
27
27
|
e3.entity.page._isMobile = "true";
|
|
28
28
|
const t3 = navigator ? navigator.userAgent : null;
|
|
29
29
|
t3 ? t3.indexOf(" uni-app ") > 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");
|
|
@@ -40,7 +40,6 @@ function g(e2) {
|
|
|
40
40
|
e3.duplicateFieldList && e3.duplicateFieldList.length > 0 && (e3.duplicateFieldList = e3.duplicateFieldList.map((e4) => "string" == typeof e4 ? { propDbName: e4 } : e4));
|
|
41
41
|
}), e2.props.judgeHeavyList) : null;
|
|
42
42
|
} catch (e3) {
|
|
43
|
-
console.error("getJudgeHeavyList error:", e3);
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
function b(e2) {
|
|
@@ -57,17 +56,14 @@ function b(e2) {
|
|
|
57
56
|
}
|
|
58
57
|
function y(e2, t2) {
|
|
59
58
|
if (e2) {
|
|
60
|
-
|
|
61
|
-
E(e2.paramStoreId, t2), delete e2.paramStoreId,
|
|
59
|
+
Object.assign(t2, e2);
|
|
60
|
+
E(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
63
|
function h(e2, t2) {
|
|
65
|
-
if (
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
E(e2.query.paramStoreId, t2);
|
|
69
|
-
}
|
|
70
|
-
console.log("packageAdditionalMapWithRoute----requestObj=", t2);
|
|
64
|
+
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
|
|
65
|
+
Object.assign(t2, e2.query);
|
|
66
|
+
E(e2.query.paramStoreId, t2);
|
|
71
67
|
}
|
|
72
68
|
}
|
|
73
69
|
function E(e2, t2) {
|
|
@@ -75,49 +71,49 @@ function E(e2, t2) {
|
|
|
75
71
|
const s2 = l(e2);
|
|
76
72
|
if (s2) {
|
|
77
73
|
const e3 = JSON.parse(s2);
|
|
78
|
-
Object.assign(t2, e3)
|
|
74
|
+
Object.assign(t2, e3);
|
|
79
75
|
}
|
|
80
76
|
}
|
|
81
77
|
}
|
|
82
78
|
function v(e2, t2) {
|
|
83
79
|
let s2, i2 = t2;
|
|
84
80
|
t2 || (s2 = e2.props.base ? e2.props.base : {}, i2 = s2.prop);
|
|
85
|
-
let
|
|
86
|
-
return t2 && !t2.startsWith("${") ?
|
|
81
|
+
let n2 = null;
|
|
82
|
+
return t2 && !t2.startsWith("${") ? n2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), n2 = i2.split("."), e2 && n2.length < 2 && (n2 = [e2.uuid])) : e2 && (n2 = ["page", e2.uuid]) : n2 = ["page", e2.uuid], n2 || e2 ? n2 : ["temp"];
|
|
87
83
|
}
|
|
88
|
-
function
|
|
84
|
+
function w(e2, t2, s2) {
|
|
89
85
|
const i2 = v(t2, s2), r2 = e2.entity;
|
|
90
86
|
if (null == r2.data.ID && null == r2.data.id) {
|
|
91
87
|
let l2, a2, p2 = false;
|
|
92
88
|
t2 && (l2 = t2.props.base ? t2.props.base : {}, a2 = t2.name, p2 = l2.multiple);
|
|
93
|
-
const u2 =
|
|
89
|
+
const u2 = n(r2, s2, null);
|
|
94
90
|
if (null == u2) {
|
|
95
91
|
const t3 = P(e2, l2 ? l2.defaultValue : null, a2, p2);
|
|
96
|
-
null != t3 &&
|
|
92
|
+
null != t3 && o(r2, i2, t3);
|
|
97
93
|
}
|
|
98
94
|
}
|
|
99
95
|
return i2;
|
|
100
96
|
}
|
|
101
97
|
function P(e2, t2, s2, i2) {
|
|
102
|
-
let
|
|
103
|
-
if (t2 && (
|
|
98
|
+
let n2;
|
|
99
|
+
if (t2 && (n2 = r(e2, t2), null != n2 && null != n2 && s2)) {
|
|
104
100
|
let e3 = false;
|
|
105
|
-
"checkbox" == s2 ? e3 = true : "select" == s2 && (e3 = i2), e3 && (
|
|
101
|
+
"checkbox" == s2 ? e3 = true : "select" == s2 && (e3 = i2), e3 && (n2 = (n2 + "").split(","));
|
|
106
102
|
}
|
|
107
|
-
return
|
|
103
|
+
return n2;
|
|
108
104
|
}
|
|
109
|
-
function
|
|
105
|
+
function M(e2, t2) {
|
|
110
106
|
const s2 = [];
|
|
111
107
|
if (e2.autoPermissions) for (const i2 of e2.autoPermissions) s2.push(t2.code + "." + i2.simpleCode);
|
|
112
108
|
if (e2.functionCodes) {
|
|
113
|
-
const i2 = e2.sourceTypes ? e2.sourceTypes : [],
|
|
114
|
-
for (let e3 = 0; e3 <
|
|
115
|
-
const
|
|
109
|
+
const i2 = e2.sourceTypes ? e2.sourceTypes : [], n2 = e2.functionCodes;
|
|
110
|
+
for (let e3 = 0; e3 < n2.length; e3++) {
|
|
111
|
+
const o2 = n2[e3], r2 = e3 < i2.length ? i2[e3] : "";
|
|
116
112
|
let l2 = "";
|
|
117
|
-
if ("service" == r2) l2 =
|
|
118
|
-
else if ("standard" === r2) l2 = t2.code + "." +
|
|
113
|
+
if ("service" == r2) l2 = o2;
|
|
114
|
+
else if ("standard" === r2) l2 = t2.code + "." + o2;
|
|
119
115
|
else {
|
|
120
|
-
l2 = "custom" === j(
|
|
116
|
+
l2 = "custom" === j(o2, t2).type ? o2 : t2.code + "." + o2;
|
|
121
117
|
}
|
|
122
118
|
s2.includes(l2) || s2.push(l2);
|
|
123
119
|
}
|
|
@@ -131,33 +127,33 @@ function j(e2, t2) {
|
|
|
131
127
|
}
|
|
132
128
|
return null;
|
|
133
129
|
}
|
|
134
|
-
function C(s2, i2,
|
|
135
|
-
const
|
|
130
|
+
function C(s2, i2, n2) {
|
|
131
|
+
const o2 = s2.tableRuntimes, r2 = t(i2);
|
|
136
132
|
let l2;
|
|
137
133
|
const a2 = i2.code;
|
|
138
|
-
return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes:
|
|
134
|
+
return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: l2, pageCode: a2, publishVersion: n2, pageType: s2.pageType });
|
|
139
135
|
}
|
|
140
136
|
const I = ["button-detail", "print-label"];
|
|
141
137
|
function O(e2, t2) {
|
|
142
138
|
var _a, _b;
|
|
143
139
|
const s2 = t2.props && t2.props.base ? t2.props.base.prop : null;
|
|
144
|
-
let
|
|
140
|
+
let n2 = false;
|
|
145
141
|
if (p(e2) && I.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
146
142
|
const s3 = e2.fieldPermissionMap.get("all_fields");
|
|
147
|
-
false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled",
|
|
143
|
+
false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", n2 = true);
|
|
148
144
|
}
|
|
149
145
|
if (s2) {
|
|
150
|
-
const
|
|
151
|
-
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[
|
|
146
|
+
const o2 = i(s2);
|
|
147
|
+
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[o2] || (e2.rules[o2] = []), t2.props.rules.forEach((e3) => {
|
|
152
148
|
d(e3);
|
|
153
|
-
}), e2.rules[
|
|
154
|
-
const s3 = e2.fieldPermissionMap.get(
|
|
149
|
+
}), e2.rules[o2] = t2.props.rules), !n2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
150
|
+
const s3 = e2.fieldPermissionMap.get(o2);
|
|
155
151
|
t2.runtime.props || (t2.runtime.props = {}), s3 ? false === s3.canEdit ? t2.runtime.props.state = "disabled" : s3.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true) : t2.runtime.props.state = "";
|
|
156
152
|
}
|
|
157
|
-
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop:
|
|
153
|
+
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: o2, events: t2.props.customRuleEvents }));
|
|
158
154
|
}
|
|
159
155
|
}
|
|
160
|
-
function
|
|
156
|
+
function _(e2, t2) {
|
|
161
157
|
if (e2.initInfo) {
|
|
162
158
|
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((s2) => {
|
|
163
159
|
const i2 = e2.initInfo[s2];
|
|
@@ -173,16 +169,16 @@ function k(e2, t2) {
|
|
|
173
169
|
}
|
|
174
170
|
}
|
|
175
171
|
export {
|
|
176
|
-
|
|
177
|
-
|
|
172
|
+
_ as controlObjectRenderState,
|
|
173
|
+
c as convertToPageContext,
|
|
178
174
|
P as getDefaultValue,
|
|
179
|
-
|
|
175
|
+
w as getFormModelFields,
|
|
180
176
|
v as getModelFields,
|
|
181
|
-
|
|
177
|
+
M as getPermissionCodes,
|
|
182
178
|
b as packageAdditionalMapWithLocationSearch,
|
|
183
179
|
y as packageAdditionalMapWithPageRequest,
|
|
184
180
|
h as packageAdditionalMapWithRoute,
|
|
185
181
|
O as packageFormRules,
|
|
186
|
-
|
|
182
|
+
f as queryPageDesignByCode,
|
|
187
183
|
C as queryPageSuperGrids
|
|
188
184
|
};
|
|
@@ -12,7 +12,7 @@ const t = o("pageContextUtil", () => {
|
|
|
12
12
|
}, componentsTotalNmber: l, componentsLoadedNumber: d, setPageComponentsLoaded: function(e2) {
|
|
13
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 && (
|
|
15
|
+
n.value = e2, 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,49 +3,54 @@ import "agilebuilder-ui/src/utils/util";
|
|
|
3
3
|
import "agilebuilder-ui/src/utils/request";
|
|
4
4
|
import t from "./eventBus.js";
|
|
5
5
|
import { getPermissionCodes as e } from "./page-init-util.js";
|
|
6
|
-
import { getCustomFunc as o } from "./events/event-util.js";
|
|
7
|
-
import { $t as
|
|
8
|
-
import { ExpressionEvaluator as
|
|
9
|
-
function
|
|
10
|
-
const
|
|
11
|
-
|
|
6
|
+
import { getEventNameByType as i, getCustomFunc as o } from "./events/event-util.js";
|
|
7
|
+
import { $t as s } from "./i18n-util.js";
|
|
8
|
+
import { ExpressionEvaluator as n } from "../views/assemblys/chart/table/chart-table-util.js";
|
|
9
|
+
function r(e2) {
|
|
10
|
+
const i2 = e2.pageContext && e2.pageContext.code;
|
|
11
|
+
t.$emit(i2 + "_open-dialog", e2);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
const
|
|
15
|
-
if (!e2 &&
|
|
16
|
-
let
|
|
17
|
-
return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (
|
|
13
|
+
function u(t2, e2) {
|
|
14
|
+
const i2 = t2.tableName;
|
|
15
|
+
if (!e2 && i2) return i2;
|
|
16
|
+
let o2;
|
|
17
|
+
return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (o2 = JSON.parse(t2.tableRuntimes[e2].configure)), o2 && o2.props && o2.props.dataOrigin ? o2.props.dataOrigin.tableName : null;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
if ("custom" === o3.name ?
|
|
19
|
+
function l(t2, o2, n2, r2) {
|
|
20
|
+
const u2 = !(!o2.props || !o2.props.base) && o2.props.base.showOperation, l2 = o2.btnList;
|
|
21
|
+
u2 && l2 && l2.forEach((o3) => {
|
|
22
|
+
const u3 = {}, l3 = Object.assign({}, o3.props.base);
|
|
23
|
+
if ("custom" === o3.name ? l3.customControl = l3.name : l3.elementType = "el-button", void 0 === o3.isPermission || o3.isPermission + "" == "true") {
|
|
24
24
|
const i2 = e(o3, t2);
|
|
25
|
-
i2 && (
|
|
25
|
+
i2 && (l3.permission = i2);
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
l3.label = s(l3.title), l3.sourceButton = { uuid: o3.uuid }, u3.props = l3, void 0 !== r2 && (u3.onClick = r2(o3));
|
|
28
|
+
try {
|
|
29
|
+
u3.eventName = i(o3, "click");
|
|
30
|
+
} catch (t3) {
|
|
31
|
+
}
|
|
32
|
+
n2.push(u3);
|
|
28
33
|
});
|
|
29
34
|
}
|
|
30
|
-
function
|
|
35
|
+
function a(t2, e2, i2, s2) {
|
|
31
36
|
let r2;
|
|
32
37
|
const u2 = i2 == null ? void 0 : i2.some((i3) => {
|
|
33
38
|
let u3 = false;
|
|
34
39
|
if (i3.scopeFunc) {
|
|
35
|
-
const
|
|
36
|
-
if (
|
|
37
|
-
|
|
40
|
+
const n2 = o(t2, i3.scopeFunc);
|
|
41
|
+
if (n2) {
|
|
42
|
+
n2.apply(n2, [{ pageContext: t2, configureObj: e2, row: s2 }]) && (u3 = true);
|
|
38
43
|
}
|
|
39
44
|
} else if (i3.showCondition && i3.showCondition.length > 0) {
|
|
40
|
-
|
|
45
|
+
n.evaluate(t2, i3.showCondition, s2) && (u3 = true);
|
|
41
46
|
} else u3 = true;
|
|
42
47
|
if (u3) return r2 = i3, true;
|
|
43
48
|
});
|
|
44
49
|
return { show: u2, toPage: r2 };
|
|
45
50
|
}
|
|
46
51
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
a as expressJump,
|
|
53
|
+
l as getOperationButtons,
|
|
54
|
+
u as getTableNameByTableUuid,
|
|
55
|
+
r as popupToPage
|
|
51
56
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, onMounted as i, nextTick as t, resolveComponent as n, createElementBlock as a, openBlock as u, createBlock as o, unref as c, normalizeStyle as s, normalizeClass as p, withCtx as r, createCommentVNode as v, Fragment as y, createTextVNode as g, toDisplayString as d } from "vue";
|
|
2
2
|
import { SuperIcon as k } from "agilebuilder-ui";
|
|
3
3
|
import { handleAfterInitEvent as f, handleEvent as m } from "../../../../utils/events/event-util.js";
|
|
4
|
-
import { $t as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
import { $t as x } from "../../../../utils/i18n-util.js";
|
|
5
|
+
const C = { class: "page-runtime-header-btn" }, V = e({ __name: "button-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
|
|
6
|
+
const T = e2, b = T.configure.runtime ? T.configure.runtime : {}, z = l(b.props ? b.props : {}), _ = b.style, h = b.class;
|
|
7
7
|
function P() {
|
|
8
8
|
return "disabled" === z.value.state || R();
|
|
9
9
|
}
|
|
10
10
|
function R() {
|
|
11
|
-
return void 0 !==
|
|
11
|
+
return void 0 !== T.pageContext.canClick && void 0 !== T.pageContext.clickUuid && (!T.pageContext.canClick && T.pageContext.clickUuid === T.configure.uuid);
|
|
12
12
|
}
|
|
13
13
|
const j = l(null);
|
|
14
14
|
return i(() => {
|
|
15
15
|
t(() => {
|
|
16
|
-
f(null,
|
|
16
|
+
f(null, T.pageContext, T.configure, { componentRef: j.value, entity: T.pageContext.entity.data, pageData: T.pageContext.entity.page });
|
|
17
17
|
});
|
|
18
18
|
}), V2({ click: function() {
|
|
19
19
|
j.value && j.value.$el.click();
|
|
20
20
|
} }), (e3, l2) => {
|
|
21
21
|
const i2 = n("el-link"), t2 = n("el-button");
|
|
22
|
-
return u(), a("span",
|
|
22
|
+
return u(), a("span", C, [z.value.text ? (u(), o(i2, { key: 0, ref_key: "componentRef", ref: j, disabled: P(), class: p(c(h)), style: s(c(_)), type: z.value.type, size: z.value.size, loading: R(), onClick: l2[0] || (l2[0] = (l3) => c(m)(l3, e3.pageContext, e3.configure, "click")) }, { default: r(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (u(), a(y, { key: 0 }, [g(d(c(x)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(y, { key: 0 }, [g(" ")], 64)) : v("", true)], 64)) : v("", true), z.value.iconType && z.value.iconValue ? (u(), o(c(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : v("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (u(), a(y, { key: 2 }, [z.value.iconValue ? (u(), a(y, { key: 0 }, [g(" ")], 64)) : v("", true), g(" " + d(c(x)(z.value.title)), 1)], 64)) : v("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "loading"])) : (u(), o(t2, { key: 1, ref_key: "componentRef", ref: j, disabled: P(), class: p(c(h)), style: s(c(_)), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain, loading: R(), onClick: l2[1] || (l2[1] = (l3) => c(m)(l3, e3.pageContext, e3.configure, "click")) }, { default: r(() => [z.value.title && "right" == z.value.iconPosition ? (u(), a(y, { key: 0 }, [g(d(c(x)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(y, { key: 0 }, [g(" ")], 64)) : v("", true)], 64)) : v("", true), z.value.iconType && z.value.iconValue ? (u(), o(c(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : v("", true), z.value.title && "right" != z.value.iconPosition ? (u(), a(y, { key: 2 }, [z.value.iconValue ? (u(), a(y, { key: 0 }, [g(" ")], 64)) : v("", true), g(" " + d(c(x)(z.value.title)), 1)], 64)) : v("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]))]);
|
|
23
23
|
};
|
|
24
24
|
} });
|
|
25
25
|
export {
|
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
|
|
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
|
-
import { getChartDatasFromPage as
|
|
4
|
-
import { updateChartOption as
|
|
5
|
-
import { doClickJumpPageEvent as
|
|
3
|
+
import { getChartDatasFromPage as x, updateChartDatasources as v, monitorFieldChange as C } from "../../../../utils/page-helper-util.js";
|
|
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 R from "../common/common-chart-header.vue.js";
|
|
7
7
|
import { use as j } from "echarts/core";
|
|
8
8
|
import { CanvasRenderer as y } from "echarts/renderers";
|
|
@@ -18,24 +18,21 @@ const H = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
|
|
|
18
18
|
"clearDrill" == q ? z.value && z.value.closeDrill && z.value.closeDrill(0) : "clickEvent" === q && 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(N.pageContext, o2, t2);
|
|
29
26
|
}
|
|
30
27
|
g(N.configure, Q), o(() => {
|
|
31
|
-
const e3 =
|
|
28
|
+
const e3 = x(N.pageContext, N.configure);
|
|
32
29
|
e3 && oe(e3), U.value && (F || Object.keys(B).length > 0) && U.value.chart.on("click", function(e4) {
|
|
33
30
|
F ? z.value && z.value.drill && z.value.drill(e4, N.configure.cacheDatas) : Z(e4);
|
|
34
31
|
}), !F && N.configure.clickSet && U.value && m(N.pageContext, N.configure, U.value.chart);
|
|
35
32
|
});
|
|
36
33
|
let $ = M.groupValue;
|
|
37
34
|
function ee(e3) {
|
|
38
|
-
L
|
|
35
|
+
L && (true !== e3 && (L.autoRefresh = true), v(N.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 H = 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 && F || h(N.pageContext, N.configure, (_a = U.value) == null ? void 0 : _a.chart), L.autoRefresh = false, k(N.pageContext, N.configure, Q, e3);
|
|
43
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh && F || h(N.pageContext, N.configure, (_a = U.value) == null ? void 0 : _a.chart), L.autoRefresh = false, I(N.pageContext, N.configure, Q, e3));
|
|
48
44
|
}
|
|
49
45
|
return C(N.pageContext, re, () => {
|
|
50
46
|
ee(true);
|
|
51
47
|
}), H2({ updateChartDatas: oe, exportChart: function() {
|
|
52
48
|
return d(U.value);
|
|
53
|
-
}, chartOption: Q }), (e3, r2) => (
|
|
49
|
+
}, chartOption: Q }), (e3, r2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: S }, [l(c(R, { ref_key: "headerRef", ref: z, headerInfo: s(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.pageContext.showHomepageSearch]]), c(s(O), { ref_key: "chartRef", ref: U, theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
54
50
|
} });
|
|
55
51
|
export {
|
|
56
52
|
H as default
|
package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as
|
|
2
|
-
const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup(e2) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
};
|
|
10
|
-
} });
|
|
1
|
+
import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as d, Fragment as n, renderList as p } from "vue";
|
|
2
|
+
const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup: (e2) => (l(e2.headerInfo, () => {
|
|
3
|
+
}), (l2, t2) => {
|
|
4
|
+
const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), V = o("el-radio-button"), b = o("el-radio-group");
|
|
5
|
+
return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[0] || (t2[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, 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(n, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[1] || (t2[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": t2[2] || (t2[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, null, p(e2.headerInfo.options, (e3) => (r(), a(V, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
|
|
6
|
+
}) });
|
|
11
7
|
export {
|
|
12
8
|
t as default
|
|
13
9
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
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";
|
|
6
|
-
import { setVariableValueWithProp as v, getValueFromSource as y, setValueForVariableName as
|
|
7
|
-
const
|
|
6
|
+
import { setVariableValueWithProp as v, getValueFromSource as y, setValueForVariableName as w } from "../../../../utils/page-helper-util.js";
|
|
7
|
+
const x = { class: "amb-widget-chart-header" }, O = { class: "amb-widget-chart-header-item" }, k = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" }, j = { class: "amb-widget-chart-header-item" }, C = { key: 0, class: "amb-widget-chart-header-item" }, P = e({ __name: "common-chart-header", props: { headerInfo: { type: Object, required: true }, configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["drill-end"], setup(e2, { expose: P2, emit: _ }) {
|
|
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)
|
|
12
|
-
else {
|
|
11
|
+
if (!(e3 >= o2)) {
|
|
13
12
|
for (let r2 = o2 - 1; r2 >= e3; r2--) N.headerInfo.drillOptions.splice(r2, 1);
|
|
14
13
|
q(e3);
|
|
15
14
|
}
|
|
@@ -35,7 +34,7 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
|
|
|
35
34
|
for (let e4 of o2.variables) {
|
|
36
35
|
if (!e4.fieldName || !e4.variable) continue;
|
|
37
36
|
const o3 = y(r2, e4.fieldName, void 0);
|
|
38
|
-
|
|
37
|
+
w(N.pageContext.entity, e4.variable, o3);
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
N.headerInfo.drillOptions || (N.headerInfo.drillOptions = []);
|
|
@@ -45,14 +44,13 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
|
|
|
45
44
|
return P2({ drill: function(e3, o2) {
|
|
46
45
|
const r2 = N.headerInfo.drillOptions.length;
|
|
47
46
|
if (r2 + 1 >= N.headerInfo.options.length) {
|
|
48
|
-
return F(o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : void 0),
|
|
47
|
+
return F(o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : void 0), void R("drill-end", e3);
|
|
49
48
|
}
|
|
50
|
-
console.log("props.headerInfo.options", r2, N.headerInfo.options);
|
|
51
49
|
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
50
|
N.headerInfo.drillOptions.push(a2), q(r2 + 1);
|
|
53
51
|
}, closeDrill: S }), (o2, v2) => {
|
|
54
|
-
const y2 = r("el-icon"),
|
|
55
|
-
return t(), n("div",
|
|
52
|
+
const y2 = r("el-icon"), w2 = r("el-tooltip");
|
|
53
|
+
return t(), n("div", x, [a("div", O, [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(w2, { 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
54
|
};
|
|
57
55
|
} });
|
|
58
56
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
2
|
-
import { getCustomTheme as
|
|
3
|
-
import { getChartDatasFromPage as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as u, normalizeStyle as i, unref as s, withDirectives as p, createVNode as c, vShow as f } from "vue";
|
|
2
|
+
import { getCustomTheme as m, initChartOption as g, exportCommonChart as h } from "../../../../utils/charts/chart-util.js";
|
|
3
|
+
import { getChartDatasFromPage as l, 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 R } from "echarts/core";
|
|
@@ -10,26 +10,25 @@ import { GridComponent as _, TitleComponent as j, TooltipComponent as w, Toolbox
|
|
|
10
10
|
import k from "vue-echarts";
|
|
11
11
|
const b = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: b2 }) {
|
|
12
12
|
R([y, V, _, j, w, I]);
|
|
13
|
-
const
|
|
14
|
-
g(
|
|
15
|
-
const e3 =
|
|
13
|
+
const H = e2, z = r(null), D = r(null), F = r(null), O = H.configure.runtime ? H.configure.runtime : {}, P = O.style, S = O.class, T = O.dataConfig, q = O.headerInfo ? O.headerInfo : {}, A = O.chartOption, B = H.configure.props ? H.configure.props : {}, E = m(B.customTheme);
|
|
14
|
+
g(H.configure, A), t(() => {
|
|
15
|
+
const e3 = l(H.pageContext, H.configure);
|
|
16
16
|
e3 && L(e3);
|
|
17
17
|
});
|
|
18
18
|
let G = q.groupValue;
|
|
19
19
|
function J() {
|
|
20
|
-
T
|
|
20
|
+
T && d(H.pageContext, [T], q.drillParams);
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
o(q, () => {
|
|
23
23
|
G != q.groupValue && (G = q.groupValue, T && (T.services[0].groupValue = q.groupValue), J());
|
|
24
24
|
});
|
|
25
25
|
const K = q.monitorFields;
|
|
26
26
|
function L(e3) {
|
|
27
|
-
|
|
28
|
-
e3.hasRender = true, console.log("gauge resultData", e3), C(D.pageContext, D.configure, A, e3), console.log("chartOption", A);
|
|
27
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(H.pageContext, H.configure, A, e3));
|
|
29
28
|
}
|
|
30
|
-
return x(
|
|
31
|
-
return
|
|
32
|
-
} }), (e3,
|
|
29
|
+
return x(H.pageContext, K, J), b2({ updateChartDatas: L, exportChart: function() {
|
|
30
|
+
return h(D.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: i(s(P)), class: u([s(S), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: z }, [p(c(v, { ref_key: "headerRef", ref: F, headerInfo: s(q), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, s(q).showHeader || e3.pageContext.showHomepageSearch]]), c(s(k), { ref_key: "chartRef", ref: D, theme: s(E), option: s(A), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
33
32
|
} });
|
|
34
33
|
export {
|
|
35
34
|
b as default
|
|
@@ -11,36 +11,35 @@ import { GridComponent as _, LegendComponent as b, TitleComponent as w, TooltipC
|
|
|
11
11
|
import E from "vue-echarts";
|
|
12
12
|
const H = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
13
13
|
D([V, y, _, b, w, I, P]);
|
|
14
|
-
const
|
|
14
|
+
const S = e2, T = r(null), U = r(null), z = r(null), F = S.configure.props ? S.configure.props.enableDrill : null, O = S.configure.props ? S.configure.props.drillEndTrigger : null, q = S.configure.props ? S.configure.props.linkPage : null, A = S.configure.runtime ? S.configure.runtime : {}, B = A.style, G = A.class, J = A.dataConfig, K = A.headerInfo ? A.headerInfo : {}, L = A.chartOption, M = S.configure.props ? S.configure.props : {}, N = f(M.customTheme);
|
|
15
15
|
function Q(e3) {
|
|
16
|
-
"clearDrill" ==
|
|
16
|
+
"clearDrill" == O ? z.value && z.value.closeDrill && z.value.closeDrill(0) : "clickEvent" == O && W();
|
|
17
17
|
}
|
|
18
18
|
function W() {
|
|
19
|
-
q && q.jumpPageUrl && x(
|
|
19
|
+
q && q.jumpPageUrl && x(S.pageContext, S.configure, void 0);
|
|
20
20
|
}
|
|
21
|
-
g(
|
|
22
|
-
const e3 = C(
|
|
23
|
-
e3 && $(e3),
|
|
24
|
-
|
|
25
|
-
}), !
|
|
21
|
+
g(S.configure, L), o(() => {
|
|
22
|
+
const e3 = C(S.pageContext, S.configure);
|
|
23
|
+
e3 && $(e3), U.value && (F || q && q.jumpPageUrl) && U.value.chart.on("click", function(e4) {
|
|
24
|
+
F ? z.value && z.value.drill && z.value.drill(e4, S.configure.cacheDatas) : W();
|
|
25
|
+
}), !F && S.configure.clickSet && U.value && h(S.pageContext, S.configure, U.value.chart);
|
|
26
26
|
});
|
|
27
27
|
let X = K.groupValue;
|
|
28
28
|
function Y(e3) {
|
|
29
|
-
J
|
|
29
|
+
J && (true !== e3 && (J.autoRefresh = true), R(S.pageContext, [J], K.drillParams));
|
|
30
30
|
}
|
|
31
31
|
t(K, () => {
|
|
32
32
|
X != K.groupValue && (X = K.groupValue, J && (J.services[0].groupValue = K.groupValue), Y(false));
|
|
33
33
|
});
|
|
34
34
|
const Z = K.monitorFields;
|
|
35
35
|
function $(e3) {
|
|
36
|
-
|
|
37
|
-
e3.hasRender = true, J.autoRefresh || (X = e3.groupValue, X && "checkbox" !== K.groupComponent && (X = X.join(",")), K.groupValue = X), J.autoRefresh && z || m(O.pageContext, O.configure, T.value.chart), J.autoRefresh = false, v(O.pageContext, O.configure, L, e3), console.log("chartOption--pie", L);
|
|
36
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, J.autoRefresh || (X = e3.groupValue, X && "checkbox" !== K.groupComponent && (X = X.join(",")), K.groupValue = X), J.autoRefresh && F || m(S.pageContext, S.configure, U.value.chart), J.autoRefresh = false, v(S.pageContext, S.configure, L, e3));
|
|
38
37
|
}
|
|
39
|
-
return j(
|
|
38
|
+
return j(S.pageContext, Z, () => {
|
|
40
39
|
Y(true);
|
|
41
40
|
}), H2({ updateChartDatas: $, exportChart: function() {
|
|
42
|
-
return d(
|
|
43
|
-
} }), (e3, r2) => (a(), n("div", { style: l(i(B)), class: u([i(G), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref:
|
|
41
|
+
return d(U.value);
|
|
42
|
+
} }), (e3, r2) => (a(), n("div", { style: l(i(B)), class: u([i(G), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: T }, [c(p(k, { ref_key: "headerRef", ref: z, headerInfo: i(K), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Q }, null, 8, ["headerInfo", "configure", "pageContext"]), [[s, i(K).showHeader || e3.pageContext.showHomepageSearch]]), p(i(E), { ref_key: "chartRef", ref: U, theme: i(N), option: i(L), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
44
43
|
} });
|
|
45
44
|
export {
|
|
46
45
|
H as default
|