mixapply 1.1.41 → 1.1.42
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/mixapply.css +1 -1
- package/mixapply.js +85 -81
- package/mixapply.umd.cjs +5 -5
- package/package.json +1 -1
package/mixapply.js
CHANGED
|
@@ -64981,7 +64981,8 @@ const Dhe = /* @__PURE__ */ C6(Ahe), Mhe = {
|
|
|
64981
64981
|
setMosaic: !1,
|
|
64982
64982
|
conditions: [],
|
|
64983
64983
|
created: 0,
|
|
64984
|
-
isJump: !1
|
|
64984
|
+
isJump: !1,
|
|
64985
|
+
retained: 0
|
|
64985
64986
|
}, vpe = { DEFAULT: dpe, OPTIONS: fpe, COMMON: hpe }, ppe = /* @__PURE__ */ Object.assign(vpe, {
|
|
64986
64987
|
__name: "grd",
|
|
64987
64988
|
props: {
|
|
@@ -65072,11 +65073,11 @@ const Dhe = /* @__PURE__ */ C6(Ahe), Mhe = {
|
|
|
65072
65073
|
action: _5[L.gridType].action,
|
|
65073
65074
|
where_and: []
|
|
65074
65075
|
};
|
|
65075
|
-
if (["object"
|
|
65076
|
+
if (["object"].includes(L.gridType) ? (M.order_by = "created", M.order_type = A.sort.value) : (M.order_by = JSON.stringify(["created", A.sort.value]), delete M.order_type), L.created) {
|
|
65076
65077
|
let k = c[L.created];
|
|
65077
65078
|
M.where_and.push(["created", ">=", k[0]]), M.where_and.push(["created", "<=", k[1]]);
|
|
65078
65079
|
}
|
|
65079
|
-
L.setCondition && g(M), L.gridType === "retainer" && M.where_and.push(["retained", "=", 1]), Gt.platform((k) => {
|
|
65080
|
+
L.setCondition && g(M), L.gridType === "retainer" && Number(L.retained) && M.where_and.push(["retained", "=", Number(L.retained) - 1]), Gt.platform((k) => {
|
|
65080
65081
|
o.value = k.result.data, L.gridType === "object" && L.setMosaic && L.mosaics.forEach((R) => {
|
|
65081
65082
|
o.value.forEach((N) => {
|
|
65082
65083
|
N[R.fv] = D[N.uid][R.fv];
|
|
@@ -65111,9 +65112,10 @@ const Dhe = /* @__PURE__ */ C6(Ahe), Mhe = {
|
|
|
65111
65112
|
page_index: n.current,
|
|
65112
65113
|
page_size: 9999,
|
|
65113
65114
|
block_mapping: _5[A.gridType].block_mapping,
|
|
65114
|
-
action: _5[A.gridType].action
|
|
65115
|
+
action: _5[A.gridType].action,
|
|
65116
|
+
order_by: JSON.stringify(["created", D.sort.value])
|
|
65115
65117
|
};
|
|
65116
|
-
A.gridType === "retainer"
|
|
65118
|
+
A.gridType === "retainer" && Number(A.retained) && (M.where_and && M.where_and.push(["retained", "=", Number(A.retained) - 1]), !M.where_and && (M.where_and = [["retained", "=", Number(A.retained) - 1]])), A.setCondition && g(M), Gt.platform((k) => {
|
|
65117
65119
|
o.value = k.result.data, n.total = k.result.total_records, Ke(() => {
|
|
65118
65120
|
w();
|
|
65119
65121
|
});
|
|
@@ -65252,7 +65254,7 @@ const Dhe = /* @__PURE__ */ C6(Ahe), Mhe = {
|
|
|
65252
65254
|
], 4);
|
|
65253
65255
|
};
|
|
65254
65256
|
}
|
|
65255
|
-
}), gpe = /* @__PURE__ */ Ct(ppe, [["__scopeId", "data-v-
|
|
65257
|
+
}), gpe = /* @__PURE__ */ Ct(ppe, [["__scopeId", "data-v-b29aa922"]]), pm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
65256
65258
|
__proto__: null,
|
|
65257
65259
|
default: gpe
|
|
65258
65260
|
}, Symbol.toStringTag, { value: "Module" })), mpe = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e数据%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-200.000000,%20-723.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M201.563218,739.132184%20C200.699877,739.132184%20200,738.432307%20200,737.568966%20L200,737.568966%20L200,724.695402%20C200,723.832061%20200.699877,723.132184%20201.563218,723.132184%20L201.563218,723.132184%20L214.436782,723.132184%20C215.300123,723.132184%20216,723.832061%20216,724.695402%20L216,724.695402%20L216,737.568966%20C216,738.432307%20215.300123,739.132184%20214.436782,739.132184%20L214.436782,739.132184%20Z%20M204.646,734.098184%20L201.287,734.098184%20L201.287356,737.568966%20C201.287356,737.699555%20201.378097,737.808951%20201.499966,737.837542%20L201.563218,737.844828%20L204.646,737.844184%20L204.646,734.098184%20Z%20M209.679,734.098184%20L205.933,734.098184%20L205.933,737.844184%20L209.679,737.844184%20L209.679,734.098184%20Z%20M214.712,734.098184%20L210.966,734.098184%20L210.966,737.844184%20L214.436782,737.844828%20C214.567371,737.844828%20214.676767,737.754087%20214.705358,737.632218%20L214.712644,737.568966%20L214.712,734.098184%20Z%20M204.646,729.452184%20L201.287,729.452184%20L201.287,732.811184%20L204.646,732.811184%20L204.646,729.452184%20Z%20M209.679,729.452184%20L205.933,729.452184%20L205.933,732.811184%20L209.679,732.811184%20L209.679,729.452184%20Z%20M214.712,729.452184%20L210.966,729.452184%20L210.966,732.811184%20L214.712,732.811184%20L214.712,729.452184%20Z%20M204.646,724.419184%20L201.563218,724.41954%20C201.410864,724.41954%20201.287356,724.543048%20201.287356,724.695402%20L201.287356,724.695402%20L201.287,728.165184%20L204.646,728.165184%20L204.646,724.419184%20Z%20M209.679,724.419184%20L205.933,724.419184%20L205.933,728.165184%20L209.679,728.165184%20L209.679,724.419184%20Z%20M214.436782,724.41954%20L210.966,724.419184%20L210.966,728.165184%20L214.712,728.165184%20L214.712644,724.695402%20C214.712644,724.564813%20214.621903,724.455417%20214.500034,724.426826%20L214.436782,724.41954%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", ype = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e数据%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-200.000000,%20-723.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M201.563218,739.132184%20C200.699877,739.132184%20200,738.432307%20200,737.568966%20L200,737.568966%20L200,724.695402%20C200,723.832061%20200.699877,723.132184%20201.563218,723.132184%20L201.563218,723.132184%20L214.436782,723.132184%20C215.300123,723.132184%20216,723.832061%20216,724.695402%20L216,724.695402%20L216,737.568966%20C216,738.432307%20215.300123,739.132184%20214.436782,739.132184%20L214.436782,739.132184%20Z%20M204.646,734.098184%20L201.287,734.098184%20L201.287356,737.568966%20C201.287356,737.699555%20201.378097,737.808951%20201.499966,737.837542%20L201.563218,737.844828%20L204.646,737.844184%20L204.646,734.098184%20Z%20M209.679,734.098184%20L205.933,734.098184%20L205.933,737.844184%20L209.679,737.844184%20L209.679,734.098184%20Z%20M214.712,734.098184%20L210.966,734.098184%20L210.966,737.844184%20L214.436782,737.844828%20C214.567371,737.844828%20214.676767,737.754087%20214.705358,737.632218%20L214.712644,737.568966%20L214.712,734.098184%20Z%20M204.646,729.452184%20L201.287,729.452184%20L201.287,732.811184%20L204.646,732.811184%20L204.646,729.452184%20Z%20M209.679,729.452184%20L205.933,729.452184%20L205.933,732.811184%20L209.679,732.811184%20L209.679,729.452184%20Z%20M214.712,729.452184%20L210.966,729.452184%20L210.966,732.811184%20L214.712,732.811184%20L214.712,729.452184%20Z%20M204.646,724.419184%20L201.563218,724.41954%20C201.410864,724.41954%20201.287356,724.543048%20201.287356,724.695402%20L201.287356,724.695402%20L201.287,728.165184%20L204.646,728.165184%20L204.646,724.419184%20Z%20M209.679,724.419184%20L205.933,724.419184%20L205.933,728.165184%20L209.679,728.165184%20L209.679,724.419184%20Z%20M214.436782,724.41954%20L210.966,724.419184%20L210.966,728.165184%20L214.712,728.165184%20L214.712644,724.695402%20C214.712644,724.564813%20214.621903,724.455417%20214.500034,724.426826%20L214.436782,724.41954%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", bpe = { class: "echart-body" }, _pe = { class: "w-[100%] flex flex-col" }, Spe = { key: 0 }, Cpe = { key: 2 }, wpe = {
|
|
@@ -69050,7 +69052,7 @@ const Rge = "FeatureCollection", Nge = /* @__PURE__ */ JSON.parse('[{"type":"Fea
|
|
|
69050
69052
|
}
|
|
69051
69053
|
}
|
|
69052
69054
|
];
|
|
69053
|
-
}, h = (m) => Number(m) && Number(o) ? (Number(m) / Number(o) * 100).toFixed(2) + "%" : 0, f = (m) => {
|
|
69055
|
+
}, h = (m) => Number(m) && Number(o) ? (Number(m) / Number(o) * 100).toFixed(2) + "%" : Number(o) === 0 ? "100%" : 0, f = (m) => {
|
|
69054
69056
|
var w;
|
|
69055
69057
|
const { data: b, options: y, common: S } = s.conf, C = S.source || "mosaic";
|
|
69056
69058
|
if (["statistics", "calculate"].includes(C) && (m = yn(m, b)), !m.history.length) return;
|
|
@@ -69068,7 +69070,7 @@ const Rge = "FeatureCollection", Nge = /* @__PURE__ */ JSON.parse('[{"type":"Fea
|
|
|
69068
69070
|
var A, D, M, k, R, N, P;
|
|
69069
69071
|
y.multiObject && (w = st(E, y.useAlias, s.uid));
|
|
69070
69072
|
let L = null;
|
|
69071
|
-
["statistics", "calculate"].includes(C) ? L = (k = (M = (D = (A = m[w]) == null ? void 0 : A[C]) == null ? void 0 : D.data) == null ? void 0 : M[E.fv]) == null ? void 0 : k.data : L = (P = (N = (R = m[w]) == null ? void 0 : R[C]) == null ? void 0 : N.data) == null ? void 0 : P[E.fv], E.value = L, _.series[0].data[T].value = L;
|
|
69073
|
+
["statistics", "calculate"].includes(C) ? L = ((k = (M = (D = (A = m[w]) == null ? void 0 : A[C]) == null ? void 0 : D.data) == null ? void 0 : M[E.fv]) == null ? void 0 : k.data) ?? E.value ?? 0 : L = ((P = (N = (R = m[w]) == null ? void 0 : R[C]) == null ? void 0 : N.data) == null ? void 0 : P[E.fv]) ?? E.value ?? 0, E.value = L, _.series[0].data[T].value = L;
|
|
69072
69074
|
}), o = b.reduce((E, T) => E + Number(T.value), 0).toFixed(S.fixed.value), _.title[0].text = [`{value|${o}}`, `{name|${(x = S == null ? void 0 : S.totalText) == null ? void 0 : x.value}}`].join(`
|
|
69073
69075
|
`), a.setOption(_);
|
|
69074
69076
|
}, g = async () => {
|
|
@@ -69136,7 +69138,7 @@ const Rge = "FeatureCollection", Nge = /* @__PURE__ */ JSON.parse('[{"type":"Fea
|
|
|
69136
69138
|
xe(m.$slots, "default", {}, void 0, !0)
|
|
69137
69139
|
], 4));
|
|
69138
69140
|
}
|
|
69139
|
-
}), Zme = /* @__PURE__ */ Ct(Yme, [["__scopeId", "data-v-
|
|
69141
|
+
}), Zme = /* @__PURE__ */ Ct(Yme, [["__scopeId", "data-v-8c61243e"]]), Dm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
69140
69142
|
__proto__: null,
|
|
69141
69143
|
default: Zme
|
|
69142
69144
|
}, Symbol.toStringTag, { value: "Module" })), Kme = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e饼状图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-101.000000,%20-888.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M109.65,888.3%20C114.068274,888.3%20117.65,891.881726%20117.65,896.3%20C117.65,896.655494%20117.361815,896.943678%20117.006322,896.943678%20L117.006322,896.943678%20L110.42435,896.943678%20C110.35217,896.943678%20110.293678,897.00217%20110.293678,897.07435%20L110.293678,897.07435%20L110.293678,903.656322%20C110.293678,904.011815%20110.005494,904.3%20109.65,904.3%20C105.231726,904.3%20101.65,900.718274%20101.65,896.3%20C101.65,891.881726%20105.231726,888.3%20109.65,888.3%20Z%20M116.619147,897.979371%20C116.974641,897.979371%20117.262825,898.267555%20117.262825,898.623049%20L117.262825,898.623049%20L117.262825,903.269147%20C117.262825,903.624641%20116.974641,903.912825%20116.619147,903.912825%20L116.619147,903.912825%20L111.973049,903.912825%20C111.617555,903.912825%20111.329371,903.624641%20111.329371,903.269147%20L111.329371,903.269147%20L111.329371,898.623049%20C111.329371,898.267555%20111.617555,897.979371%20111.973049,897.979371%20L111.973049,897.979371%20Z%20M109.65,889.587356%20C105.942713,889.587356%20102.937356,892.592713%20102.937356,896.3%20C102.937356,899.78485%20105.59289,902.649474%20108.990767,902.980683%20L108.990767,902.980683%20L109.006322,902.981379%20L109.006322,897.07435%20C109.006322,896.334692%20109.572602,895.72732%20110.295278,895.662117%20L110.295278,895.662117%20L110.42435,895.656322%20L116.331379,895.656322%20L116.305497,895.420134%20C115.883945,892.200222%20113.180401,889.698255%20109.871576,889.590944%20L109.871576,889.590944%20Z%20M115.974598,899.266437%20L112.616437,899.266437%20L112.616437,902.624598%20L115.974598,902.624598%20L115.974598,899.266437%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", qme = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e饼状图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-101.000000,%20-888.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M109.65,888.3%20C114.068274,888.3%20117.65,891.881726%20117.65,896.3%20C117.65,896.655494%20117.361815,896.943678%20117.006322,896.943678%20L117.006322,896.943678%20L110.42435,896.943678%20C110.35217,896.943678%20110.293678,897.00217%20110.293678,897.07435%20L110.293678,897.07435%20L110.293678,903.656322%20C110.293678,904.011815%20110.005494,904.3%20109.65,904.3%20C105.231726,904.3%20101.65,900.718274%20101.65,896.3%20C101.65,891.881726%20105.231726,888.3%20109.65,888.3%20Z%20M116.619147,897.979371%20C116.974641,897.979371%20117.262825,898.267555%20117.262825,898.623049%20L117.262825,898.623049%20L117.262825,903.269147%20C117.262825,903.624641%20116.974641,903.912825%20116.619147,903.912825%20L116.619147,903.912825%20L111.973049,903.912825%20C111.617555,903.912825%20111.329371,903.624641%20111.329371,903.269147%20L111.329371,903.269147%20L111.329371,898.623049%20C111.329371,898.267555%20111.617555,897.979371%20111.973049,897.979371%20L111.973049,897.979371%20Z%20M109.65,889.587356%20C105.942713,889.587356%20102.937356,892.592713%20102.937356,896.3%20C102.937356,899.78485%20105.59289,902.649474%20108.990767,902.980683%20L108.990767,902.980683%20L109.006322,902.981379%20L109.006322,897.07435%20C109.006322,896.334692%20109.572602,895.72732%20110.295278,895.662117%20L110.295278,895.662117%20L110.42435,895.656322%20L116.331379,895.656322%20L116.305497,895.420134%20C115.883945,892.200222%20113.180401,889.698255%20109.871576,889.590944%20L109.871576,889.590944%20Z%20M115.974598,899.266437%20L112.616437,899.266437%20L112.616437,902.624598%20L115.974598,902.624598%20L115.974598,899.266437%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Xme = {
|
|
@@ -71216,45 +71218,46 @@ const Rge = "FeatureCollection", Nge = /* @__PURE__ */ JSON.parse('[{"type":"Fea
|
|
|
71216
71218
|
indicator: [],
|
|
71217
71219
|
series: []
|
|
71218
71220
|
}), c = q(0), d = () => {
|
|
71219
|
-
var
|
|
71220
|
-
const { conf:
|
|
71221
|
+
var S, C, _, w, x, E, T, L, A, D, M, k, R, N, P, B, $, j, J, K, Q, ie, ae, fe, ue, ce;
|
|
71222
|
+
const { conf: y } = s;
|
|
71221
71223
|
l.value = {
|
|
71222
|
-
bgColor: ((
|
|
71223
|
-
titleSize: ((
|
|
71224
|
-
barHeight: ((
|
|
71225
|
-
textColor: ((
|
|
71226
|
-
tabColor: ((
|
|
71227
|
-
activeBgColor: ((
|
|
71228
|
-
borderColor: ((
|
|
71229
|
-
activeBorder: ((
|
|
71230
|
-
barColor: ((
|
|
71231
|
-
radiusSize: ((
|
|
71232
|
-
textSize: ((
|
|
71233
|
-
type: ((
|
|
71234
|
-
tags: ((
|
|
71224
|
+
bgColor: ((C = (S = y == null ? void 0 : y.options) == null ? void 0 : S.bgColor) == null ? void 0 : C.value) || "#73bff9",
|
|
71225
|
+
titleSize: ((w = (_ = y == null ? void 0 : y.options) == null ? void 0 : _.titleSize) == null ? void 0 : w.value) || 12,
|
|
71226
|
+
barHeight: ((E = (x = y == null ? void 0 : y.options) == null ? void 0 : x.barHeight) == null ? void 0 : E.value) || 5,
|
|
71227
|
+
textColor: ((L = (T = y == null ? void 0 : y.options) == null ? void 0 : T.textColor) == null ? void 0 : L.value) || "#111",
|
|
71228
|
+
tabColor: ((D = (A = y == null ? void 0 : y.options) == null ? void 0 : A.tabColor) == null ? void 0 : D.value) || "#1b428a",
|
|
71229
|
+
activeBgColor: ((k = (M = y == null ? void 0 : y.options) == null ? void 0 : M.activeBgColor) == null ? void 0 : k.value) || "#3e4db3",
|
|
71230
|
+
borderColor: ((N = (R = y == null ? void 0 : y.options) == null ? void 0 : R.borderColor) == null ? void 0 : N.value) || "rgba(139, 217, 246, 0.39)",
|
|
71231
|
+
activeBorder: ((B = (P = y == null ? void 0 : y.options) == null ? void 0 : P.activeBorder) == null ? void 0 : B.value) || "#07f4ff",
|
|
71232
|
+
barColor: ((j = ($ = y == null ? void 0 : y.options) == null ? void 0 : $.barColor) == null ? void 0 : j.value) || "#202755",
|
|
71233
|
+
radiusSize: ((K = (J = y == null ? void 0 : y.options) == null ? void 0 : J.radiusSize) == null ? void 0 : K.value) ?? 4,
|
|
71234
|
+
textSize: ((ie = (Q = y == null ? void 0 : y.options) == null ? void 0 : Q.textSize) == null ? void 0 : ie.value) ?? 12,
|
|
71235
|
+
type: ((fe = (ae = y == null ? void 0 : y.options) == null ? void 0 : ae.type) == null ? void 0 : fe.value) || !1,
|
|
71236
|
+
tags: ((ce = (ue = y == null ? void 0 : y.options) == null ? void 0 : ue.tags) == null ? void 0 : ce.value) || []
|
|
71235
71237
|
}, Ke(() => {
|
|
71236
|
-
let
|
|
71237
|
-
|
|
71238
|
+
let he = document.querySelector("#" + n);
|
|
71239
|
+
he && (a || (a = z1(he), i = k1({
|
|
71238
71240
|
strategy: "scroll"
|
|
71239
71241
|
//<- For ultra performance.
|
|
71240
|
-
}), i.listenTo(
|
|
71242
|
+
}), i.listenTo(he, function() {
|
|
71241
71243
|
a.resize();
|
|
71242
71244
|
})), h(c.value));
|
|
71243
71245
|
});
|
|
71244
|
-
}, h = (
|
|
71245
|
-
const { data:
|
|
71246
|
-
c.value =
|
|
71247
|
-
let
|
|
71248
|
-
|
|
71249
|
-
|
|
71250
|
-
name:
|
|
71251
|
-
|
|
71252
|
-
value: w.value,
|
|
71246
|
+
}, h = (y) => {
|
|
71247
|
+
const { data: S, options: C, name: _ } = s.conf;
|
|
71248
|
+
c.value = y, u.indicator = [], u.series = [];
|
|
71249
|
+
let w = {};
|
|
71250
|
+
w.name = _, w.value = [], S.forEach((x) => {
|
|
71251
|
+
C.tags.value[c.value].flag.includes(x.fv) && (u.indicator.push({
|
|
71252
|
+
name: x.name,
|
|
71253
|
+
value: x.value,
|
|
71253
71254
|
min: 0
|
|
71254
|
-
}),
|
|
71255
|
-
}),
|
|
71256
|
-
|
|
71257
|
-
|
|
71255
|
+
}), w.value.push(x.value));
|
|
71256
|
+
}), o.value = Math.max(...w.value), u.indicator.forEach((x) => {
|
|
71257
|
+
x.max = o.value;
|
|
71258
|
+
}), u.series.push(w), a.setOption(p(), !0);
|
|
71259
|
+
}, f = (y) => o.value === 0 ? "100%" : (y / o.value * 100).toFixed(2) + "%", p = () => {
|
|
71260
|
+
const { data: y, name: S } = s.conf;
|
|
71258
71261
|
return {
|
|
71259
71262
|
radar: {
|
|
71260
71263
|
shape: l.value.type,
|
|
@@ -71294,7 +71297,7 @@ const Rge = "FeatureCollection", Nge = /* @__PURE__ */ JSON.parse('[{"type":"Fea
|
|
|
71294
71297
|
},
|
|
71295
71298
|
series: [
|
|
71296
71299
|
{
|
|
71297
|
-
name:
|
|
71300
|
+
name: S ?? "",
|
|
71298
71301
|
type: "radar",
|
|
71299
71302
|
data: u.series ?? [],
|
|
71300
71303
|
areaStyle: {},
|
|
@@ -71305,57 +71308,58 @@ const Rge = "FeatureCollection", Nge = /* @__PURE__ */ JSON.parse('[{"type":"Fea
|
|
|
71305
71308
|
}
|
|
71306
71309
|
]
|
|
71307
71310
|
};
|
|
71308
|
-
},
|
|
71309
|
-
const { data:
|
|
71310
|
-
["statistics", "calculate"].includes(
|
|
71311
|
-
|
|
71311
|
+
}, g = (y) => {
|
|
71312
|
+
const { data: S, common: C } = s.conf, _ = C.source || "mosaic";
|
|
71313
|
+
["statistics", "calculate"].includes(_) && (y = yn(y, S)), y.history.length && (y.history.forEach((w, x) => {
|
|
71314
|
+
var E, T;
|
|
71315
|
+
S[x].value = ((T = w[0]) == null ? void 0 : T[(E = S[x]) == null ? void 0 : E.fv]) ?? S[x].value ?? 0;
|
|
71312
71316
|
}), h(c.value));
|
|
71313
|
-
},
|
|
71314
|
-
const { data:
|
|
71315
|
-
if (!
|
|
71316
|
-
let
|
|
71317
|
-
|
|
71318
|
-
var
|
|
71319
|
-
|
|
71320
|
-
let
|
|
71321
|
-
["statistics", "calculate"].includes(
|
|
71317
|
+
}, v = (y) => {
|
|
71318
|
+
const { data: S, common: C } = s.conf, _ = C.source || "mosaic";
|
|
71319
|
+
if (!y || !a) return;
|
|
71320
|
+
let w = "";
|
|
71321
|
+
C.multiObject || (w = st(C, C.useAlias, s.uid)), S.forEach((x, E) => {
|
|
71322
|
+
var L, A, D, M, k, R, N;
|
|
71323
|
+
C.multiObject && (w = st(x, C.useAlias, s.uid));
|
|
71324
|
+
let T = null;
|
|
71325
|
+
["statistics", "calculate"].includes(_) ? T = ((M = (D = (A = (L = y[w]) == null ? void 0 : L[_]) == null ? void 0 : A.data) == null ? void 0 : D[x.fv]) == null ? void 0 : M.data) ?? x.value ?? 0 : T = ((N = (R = (k = y[w]) == null ? void 0 : k[_]) == null ? void 0 : R.data) == null ? void 0 : N[x.fv]) ?? x.value ?? 0, x.value = T;
|
|
71322
71326
|
}), h(c.value);
|
|
71323
|
-
},
|
|
71327
|
+
}, m = async () => {
|
|
71324
71328
|
try {
|
|
71325
|
-
const
|
|
71326
|
-
|
|
71327
|
-
} catch (
|
|
71328
|
-
console.error("获取历史数据时出错:",
|
|
71329
|
+
const S = await new g1().getHistoryData(s, "lin");
|
|
71330
|
+
g(S);
|
|
71331
|
+
} catch (y) {
|
|
71332
|
+
console.error("获取历史数据时出错:", y);
|
|
71329
71333
|
} finally {
|
|
71330
|
-
const
|
|
71331
|
-
e.value && e.value.port.postMessage({ request:
|
|
71334
|
+
const y = V1(s.conf, s.uid);
|
|
71335
|
+
e.value && e.value.port.postMessage({ request: y, type: "send" }), r.value && r.value.send(JSON.stringify(y));
|
|
71332
71336
|
}
|
|
71333
|
-
},
|
|
71337
|
+
}, b = Ft(d, 200);
|
|
71334
71338
|
return be(
|
|
71335
71339
|
() => s.conf,
|
|
71336
71340
|
() => {
|
|
71337
|
-
s.mode === "edit" &&
|
|
71341
|
+
s.mode === "edit" && b();
|
|
71338
71342
|
},
|
|
71339
71343
|
{ deep: !0 }
|
|
71340
71344
|
), Vt(() => {
|
|
71341
|
-
s.conf.socketData &&
|
|
71345
|
+
s.conf.socketData && v(s.conf.socketData);
|
|
71342
71346
|
}), $e(() => {
|
|
71343
|
-
d(), s.mode === "preview" &&
|
|
71347
|
+
d(), s.mode === "preview" && m();
|
|
71344
71348
|
}), Kt(() => {
|
|
71345
71349
|
i && i.uninstall(document.querySelector("#" + n)), a && a.clear(), a && W1(a), a = null;
|
|
71346
|
-
}), (
|
|
71350
|
+
}), (y, S) => (H(), Y("div", Rbe, [
|
|
71347
71351
|
G("div", Nbe, [
|
|
71348
|
-
(H(!0), Y(He, null, ct(l.value.tags, (
|
|
71349
|
-
key:
|
|
71350
|
-
class: le(["btn-item", { active: c.value ===
|
|
71352
|
+
(H(!0), Y(He, null, ct(l.value.tags, (C, _) => (H(), Y("div", {
|
|
71353
|
+
key: _,
|
|
71354
|
+
class: le(["btn-item", { active: c.value === _ }]),
|
|
71351
71355
|
style: oe({
|
|
71352
|
-
borderColor: c.value ===
|
|
71353
|
-
backgroundColor: c.value ===
|
|
71356
|
+
borderColor: c.value === _ ? l.value.activeBorder + " !important" : l.value.borderColor + " !important",
|
|
71357
|
+
backgroundColor: c.value === _ ? l.value.activeBgColor : l.value.tabColor,
|
|
71354
71358
|
color: l.value.textColor,
|
|
71355
71359
|
fontSize: `${l.value.titleSize}px`
|
|
71356
71360
|
}),
|
|
71357
|
-
onClick: (
|
|
71358
|
-
}, de(
|
|
71361
|
+
onClick: (w) => h(_)
|
|
71362
|
+
}, de(C.label), 15, Pbe))), 128))
|
|
71359
71363
|
]),
|
|
71360
71364
|
G("div", {
|
|
71361
71365
|
class: "radar-wrap",
|
|
@@ -71372,35 +71376,35 @@ const Rge = "FeatureCollection", Nge = /* @__PURE__ */ JSON.parse('[{"type":"Fea
|
|
|
71372
71376
|
class: "w-[50%] h-[100%]"
|
|
71373
71377
|
}),
|
|
71374
71378
|
G("div", Fbe, [
|
|
71375
|
-
(H(!0), Y(He, null, ct(u.indicator, (
|
|
71379
|
+
(H(!0), Y(He, null, ct(u.indicator, (C, _) => (H(), Y("div", {
|
|
71376
71380
|
class: "bar-item-crosswise",
|
|
71377
|
-
key:
|
|
71381
|
+
key: _
|
|
71378
71382
|
}, [
|
|
71379
71383
|
G("div", {
|
|
71380
71384
|
class: "bar-title",
|
|
71381
|
-
title:
|
|
71385
|
+
title: C.name,
|
|
71382
71386
|
style: oe({ color: l.value.textColor })
|
|
71383
|
-
}, de(
|
|
71387
|
+
}, de(C.name), 13, Bbe),
|
|
71384
71388
|
G("div", {
|
|
71385
71389
|
class: "bar",
|
|
71386
71390
|
style: oe({ backgroundColor: l.value.barColor, height: `${l.value.barHeight}px` })
|
|
71387
71391
|
}, [
|
|
71388
71392
|
G("div", {
|
|
71389
71393
|
class: "progress",
|
|
71390
|
-
style: oe({ backgroundColor:
|
|
71394
|
+
style: oe({ backgroundColor: C.color || z(ra)[_], width: f(C.value) })
|
|
71391
71395
|
}, null, 4)
|
|
71392
71396
|
], 4),
|
|
71393
71397
|
G("div", {
|
|
71394
71398
|
class: "bar-value",
|
|
71395
71399
|
style: oe({ color: l.value.textColor })
|
|
71396
|
-
}, de(
|
|
71400
|
+
}, de(C.value || 0), 5)
|
|
71397
71401
|
]))), 128))
|
|
71398
71402
|
])
|
|
71399
71403
|
], 4),
|
|
71400
|
-
xe(
|
|
71404
|
+
xe(y.$slots, "default", {}, void 0, !0)
|
|
71401
71405
|
]));
|
|
71402
71406
|
}
|
|
71403
|
-
}), Ybe = /* @__PURE__ */ Ct(Wbe, [["__scopeId", "data-v-
|
|
71407
|
+
}), Ybe = /* @__PURE__ */ Ct(Wbe, [["__scopeId", "data-v-677e8c2d"]]), Bm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
71404
71408
|
__proto__: null,
|
|
71405
71409
|
default: Ybe
|
|
71406
71410
|
}, Symbol.toStringTag, { value: "Module" })), Zbe = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e桑基图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-104.000000,%20-1128.000000)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M119.247329,1128.05%20C119.512288,1128.05%20119.731261,1128.24689%20119.765916,1128.50235%20L119.770694,1128.57336%20L119.770694,1143.52664%20C119.770694,1143.81568%20119.536375,1144.05%20119.247329,1144.05%20C118.98237,1144.05%20118.763398,1143.85311%20118.728742,1143.59765%20L118.723965,1143.52664%20L118.72348,1139.79084%20C117.56923,1139.58573%20116.44436,1139.24442%20115.375349,1138.77418%20L114.942038,1138.57503%20C114.252785,1138.8504%20113.580222,1139.16248%20112.927685,1139.50961%20C110.915224,1140.56725%20108.715224,1141.2498%20106.444376,1141.52335%20L106.312021,1141.537%20L106.31275,1143.52664%20C106.31275,1143.81568%20106.078431,1144.05%20105.789385,1144.05%20C105.524426,1144.05%20105.305454,1143.85311%20105.270798,1143.59765%20L105.266021,1143.52664%20L105.266021,1128.57336%20C105.266021,1128.28432%20105.500339,1128.05%20105.789385,1128.05%20C106.054344,1128.05%20106.273317,1128.24689%20106.307972,1128.50235%20L106.31275,1128.57336%20L106.312839,1131.26902%20C107.347402,1131.59714%20108.304953,1132.12257%20109.124935,1132.81923%20L109.369608,1133.03598%20C110.020476,1132.74226%20110.651317,1132.41015%20111.258793,1132.04132%20C113.524576,1130.74832%20116.103627,1130.0653%20118.723624,1130.04997%20L118.723965,1128.57336%20C118.723965,1128.28432%20118.958283,1128.05%20119.247329,1128.05%20Z%20M116.340569,1138.10774%20C117.109995,1138.414%20117.908209,1138.64444%20118.722842,1138.79616%20L118.723417,1137.60828%20C117.915824,1137.70219%20117.118171,1137.86916%20116.340569,1138.10774%20Z%20M109.181023,1134.21088%20C108.292696,1134.57422%20107.371263,1134.85419%20106.429337,1135.04973%20L106.312021,1135.071%20L106.312021,1138.532%20L106.43317,1138.51692%20C108.016878,1138.28807%20109.554229,1137.81981%20110.987274,1137.12854%20L111.414,1136.91449%20L111.831223,1136.70754%20C111.255456,1136.24693%20110.718073,1135.74459%20110.224081,1135.20554%20C109.860262,1134.83672%20109.514802,1134.50961%20109.181023,1134.21088%20Z%20M111.812866,1132.91582%20C111.292171,1133.2279%20110.756457,1133.51328%20110.205723,1133.77196%20C110.46607,1134.01061%20110.726417,1134.27931%20110.998446,1134.56802%20C111.562532,1135.16883%20112.185028,1135.71789%20112.855923,1136.20854%20C114.693593,1135.32818%20116.684743,1134.78626%20118.723539,1134.60487%20L118.723759,1131.06729%20C116.2993,1131.09796%20113.914626,1131.7301%20111.812866,1132.91582%20Z%20M106.31244,1132.33171%20L106.312021,1134.046%20L106.430502,1134.02203%20C107.059661,1133.88024%20107.678353,1133.69786%20108.283159,1133.4749%20C107.696639,1132.98733%20107.028791,1132.60203%20106.31244,1132.33171%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Kbe = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e桑基图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-104.000000,%20-1128.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M119.247329,1128.05%20C119.512288,1128.05%20119.731261,1128.24689%20119.765916,1128.50235%20L119.770694,1128.57336%20L119.770694,1143.52664%20C119.770694,1143.81568%20119.536375,1144.05%20119.247329,1144.05%20C118.98237,1144.05%20118.763398,1143.85311%20118.728742,1143.59765%20L118.723965,1143.52664%20L118.72348,1139.79084%20C117.56923,1139.58573%20116.44436,1139.24442%20115.375349,1138.77418%20L114.942038,1138.57503%20C114.252785,1138.8504%20113.580222,1139.16248%20112.927685,1139.50961%20C110.915224,1140.56725%20108.715224,1141.2498%20106.444376,1141.52335%20L106.312021,1141.537%20L106.31275,1143.52664%20C106.31275,1143.81568%20106.078431,1144.05%20105.789385,1144.05%20C105.524426,1144.05%20105.305454,1143.85311%20105.270798,1143.59765%20L105.266021,1143.52664%20L105.266021,1128.57336%20C105.266021,1128.28432%20105.500339,1128.05%20105.789385,1128.05%20C106.054344,1128.05%20106.273317,1128.24689%20106.307972,1128.50235%20L106.31275,1128.57336%20L106.312839,1131.26902%20C107.347402,1131.59714%20108.304953,1132.12257%20109.124935,1132.81923%20L109.369608,1133.03598%20C110.020476,1132.74226%20110.651317,1132.41015%20111.258793,1132.04132%20C113.524576,1130.74832%20116.103627,1130.0653%20118.723624,1130.04997%20L118.723965,1128.57336%20C118.723965,1128.28432%20118.958283,1128.05%20119.247329,1128.05%20Z%20M116.340569,1138.10774%20C117.109995,1138.414%20117.908209,1138.64444%20118.722842,1138.79616%20L118.723417,1137.60828%20C117.915824,1137.70219%20117.118171,1137.86916%20116.340569,1138.10774%20Z%20M109.181023,1134.21088%20C108.292696,1134.57422%20107.371263,1134.85419%20106.429337,1135.04973%20L106.312021,1135.071%20L106.312021,1138.532%20L106.43317,1138.51692%20C108.016878,1138.28807%20109.554229,1137.81981%20110.987274,1137.12854%20L111.414,1136.91449%20L111.831223,1136.70754%20C111.255456,1136.24693%20110.718073,1135.74459%20110.224081,1135.20554%20C109.860262,1134.83672%20109.514802,1134.50961%20109.181023,1134.21088%20Z%20M111.812866,1132.91582%20C111.292171,1133.2279%20110.756457,1133.51328%20110.205723,1133.77196%20C110.46607,1134.01061%20110.726417,1134.27931%20110.998446,1134.56802%20C111.562532,1135.16883%20112.185028,1135.71789%20112.855923,1136.20854%20C114.693593,1135.32818%20116.684743,1134.78626%20118.723539,1134.60487%20L118.723759,1131.06729%20C116.2993,1131.09796%20113.914626,1131.7301%20111.812866,1132.91582%20Z%20M106.31244,1132.33171%20L106.312021,1134.046%20L106.430502,1134.02203%20C107.059661,1133.88024%20107.678353,1133.69786%20108.283159,1133.4749%20C107.696639,1132.98733%20107.028791,1132.60203%20106.31244,1132.33171%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", qbe = {
|