sooyie-pgss 0.0.2 → 0.0.3
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/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/apiCall-DGnOSgOg.mjs +223 -0
- package/dist/{app-info-BbQUujMP.mjs → app-info-B4CG9SYQ.mjs} +1 -1
- package/dist/{app-info.vue_vue_type_script_setup_true_lang-CILQM5Dm.mjs → app-info.vue_vue_type_script_setup_true_lang-OxZnXojA.mjs} +5 -5
- package/dist/{edit-DCqiYilp.mjs → edit-CR3tiHFR.mjs} +5 -4
- package/dist/{edit-Dhe1Mlih.mjs → edit-Do1a4xeJ.mjs} +4 -3
- package/dist/{edit-DlJbNEVn.mjs → edit-sq0ohOci.mjs} +5 -4
- package/dist/image-CROZrkNB.mjs +103 -0
- package/dist/{index-BQctarUx.mjs → index-AzecE6QF.mjs} +3 -3
- package/dist/{index-CoKl3CjE.mjs → index-B0w3Hvh3.mjs} +3 -3
- package/dist/{index-quJUd8pu.mjs → index-BEtcyjc1.mjs} +11 -10
- package/dist/index-BUiu8rPV.mjs +1918 -0
- package/dist/{index-B2aeDXDI.mjs → index-BapHEpjV.mjs} +1 -1
- package/dist/index-CM5e4jX-.mjs +107 -0
- package/dist/{index-DmneBhrk.mjs → index-C_8_sh8W.mjs} +1 -1
- package/dist/index-CeyTmMNJ.mjs +109 -0
- package/dist/{index-B4yFC5Qp.mjs → index-CoC7n2M9.mjs} +9 -8
- package/dist/index-DmqVT2Yh.mjs +43857 -0
- package/dist/index-MA9jC8ZF.mjs +109 -0
- package/dist/index.mjs +3036 -4
- package/dist/{info-B3MSviL1.mjs → info-Bba_NzcG.mjs} +45 -44
- package/dist/{info-BcEJCDoh.mjs → info-CunGvr-S.mjs} +5 -4
- package/dist/{resetPwd-C00poFAP.mjs → resetPwd-CeTAHbCm.mjs} +1 -1
- package/dist/{resetPwd.vue_vue_type_script_setup_true_lang-jrWExNFq.mjs → resetPwd.vue_vue_type_script_setup_true_lang-Dx51Xvte.mjs} +1 -1
- package/dist/{simulateNum-p0ftrVo6.mjs → simulateNum-DcFDMOSh.mjs} +1 -1
- package/dist/{simulateNum.vue_vue_type_script_setup_true_lang-DY_YkKUO.mjs → simulateNum.vue_vue_type_script_setup_true_lang-ALzj6Sj-.mjs} +1 -1
- package/dts/src/index.d.ts +1 -2
- package/package.json +1 -1
- package/dist/index-CRP6JuIH.mjs +0 -1932
- package/dist/index-D7pM0eGF.mjs +0 -47526
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { defineComponent as w, ref as f, resolveComponent as A, openBlock as C, createElementBlock as T, createElementVNode as a, Fragment as Y, renderList as R, normalizeClass as V, toDisplayString as b, createVNode as L, computed as m, onMounted as E, onUnmounted as M } from "vue";
|
|
2
|
+
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
import { i as N } from "./index-DmqVT2Yh.mjs";
|
|
4
|
+
import { a as z } from "./index-MA9jC8ZF.mjs";
|
|
5
|
+
const I = { class: "time-filter-bar" }, P = { class: "quick-options" }, F = ["onClick"], U = /* @__PURE__ */ w({
|
|
6
|
+
__name: "DateRangePicker",
|
|
7
|
+
props: {
|
|
8
|
+
// 默认选中的快捷选项
|
|
9
|
+
defaultType: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "today"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
emits: ["change"],
|
|
15
|
+
setup(S, { emit: _ }) {
|
|
16
|
+
const o = S, l = _, c = f(o.defaultType), u = f([]), g = [
|
|
17
|
+
{ label: "今天", value: "today" },
|
|
18
|
+
{ label: "近7天", value: "last7" },
|
|
19
|
+
{ label: "近30天", value: "last30" }
|
|
20
|
+
], h = (s) => {
|
|
21
|
+
const d = /* @__PURE__ */ new Date(), p = (n) => n.toString().padStart(2, "0"), r = (n) => {
|
|
22
|
+
const i = n.getFullYear(), D = n.getMonth() + 1, e = n.getDate();
|
|
23
|
+
return `${i}-${p(D)}-${p(e)}`;
|
|
24
|
+
};
|
|
25
|
+
switch (s) {
|
|
26
|
+
case "today": {
|
|
27
|
+
const n = r(d);
|
|
28
|
+
return [n, n];
|
|
29
|
+
}
|
|
30
|
+
case "last7": {
|
|
31
|
+
const n = /* @__PURE__ */ new Date(), i = /* @__PURE__ */ new Date();
|
|
32
|
+
return i.setDate(i.getDate() - 6), [r(i), r(n)];
|
|
33
|
+
}
|
|
34
|
+
case "last30": {
|
|
35
|
+
const n = /* @__PURE__ */ new Date(), i = /* @__PURE__ */ new Date();
|
|
36
|
+
return i.setDate(i.getDate() - 29), [r(i), r(n)];
|
|
37
|
+
}
|
|
38
|
+
default:
|
|
39
|
+
return [];
|
|
40
|
+
}
|
|
41
|
+
}, y = (s) => {
|
|
42
|
+
c.value = s;
|
|
43
|
+
const d = h(s);
|
|
44
|
+
u.value = d, l("change", d, s);
|
|
45
|
+
}, x = (s) => {
|
|
46
|
+
if (!s || s.length === 0) {
|
|
47
|
+
c.value = "", l("change", [], "");
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
c.value = "custom", l("change", s, "custom");
|
|
51
|
+
};
|
|
52
|
+
{
|
|
53
|
+
const s = h(o.defaultType);
|
|
54
|
+
u.value = s;
|
|
55
|
+
}
|
|
56
|
+
return (s, d) => {
|
|
57
|
+
const p = A("el-date-picker");
|
|
58
|
+
return C(), T("div", I, [
|
|
59
|
+
a("div", P, [
|
|
60
|
+
(C(), T(Y, null, R(g, (r) => a("span", {
|
|
61
|
+
key: r.value,
|
|
62
|
+
class: V(["option-item", { active: c.value === r.value }]),
|
|
63
|
+
onClick: (n) => y(r.value)
|
|
64
|
+
}, b(r.label), 11, F)), 64))
|
|
65
|
+
]),
|
|
66
|
+
L(p, {
|
|
67
|
+
modelValue: u.value,
|
|
68
|
+
"onUpdate:modelValue": d[0] || (d[0] = (r) => u.value = r),
|
|
69
|
+
type: "daterange",
|
|
70
|
+
"start-placeholder": s.$t("liveVideo.startTime"),
|
|
71
|
+
"end-placeholder": s.$t("liveVideo.endTime"),
|
|
72
|
+
format: "YYYY-MM-DD",
|
|
73
|
+
"value-format": "YYYY-MM-DD",
|
|
74
|
+
onChange: x,
|
|
75
|
+
class: "date-picker",
|
|
76
|
+
clearable: ""
|
|
77
|
+
}, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
|
|
78
|
+
]);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
}), q = /* @__PURE__ */ $(U, [["__scopeId", "data-v-e20d4afb"]]), B = { class: "chart-card" }, O = { class: "card-top" }, W = { class: "card-filter" }, G = { class: "api-bottom-info" }, Q = { class: "info-item" }, Z = { class: "val" }, j = { class: "info-item" }, H = { class: "val success" }, J = { class: "info-item" }, K = { class: "val" }, X = /* @__PURE__ */ w({
|
|
82
|
+
__name: "apiCall",
|
|
83
|
+
setup(S) {
|
|
84
|
+
const _ = f();
|
|
85
|
+
let o = null;
|
|
86
|
+
const l = f([]), c = f(!0), u = f(!1), g = m(
|
|
87
|
+
() => l.value.map((e) => {
|
|
88
|
+
const t = e.statDate || "";
|
|
89
|
+
return t.length >= 10 ? t.slice(5, 10) : t;
|
|
90
|
+
})
|
|
91
|
+
), h = m(
|
|
92
|
+
() => l.value.map((e) => Number(e.successTimes ?? 0))
|
|
93
|
+
), y = m(
|
|
94
|
+
() => l.value.map((e) => Number(e.errorTimes ?? 0))
|
|
95
|
+
), x = m(() => {
|
|
96
|
+
var t;
|
|
97
|
+
if (c.value) return "--";
|
|
98
|
+
const e = l.value;
|
|
99
|
+
return !e.length || u.value ? "0" : (((t = e[e.length - 1]) == null ? void 0 : t.useTimes) ?? 0).toLocaleString();
|
|
100
|
+
}), s = m(() => {
|
|
101
|
+
if (c.value) return "--";
|
|
102
|
+
if (u.value || !l.value.length) return "0.00%";
|
|
103
|
+
const e = l.value.reduce(
|
|
104
|
+
(v, k) => v + Number(k.useTimes ?? 0),
|
|
105
|
+
0
|
|
106
|
+
), t = l.value.reduce(
|
|
107
|
+
(v, k) => v + Number(k.successTimes ?? 0),
|
|
108
|
+
0
|
|
109
|
+
);
|
|
110
|
+
return e ? (t / e * 100).toFixed(2) + "%" : "0.00%";
|
|
111
|
+
}), d = m(() => c.value ? "--" : "0ms");
|
|
112
|
+
function p() {
|
|
113
|
+
if (!_.value) return;
|
|
114
|
+
o = N(_.value);
|
|
115
|
+
const e = {
|
|
116
|
+
tooltip: { trigger: "axis", axisPointer: { type: "shadow" } },
|
|
117
|
+
legend: [{ data: ["成功调用量", "失败调用量"], left: 0 }],
|
|
118
|
+
grid: { left: "6%", right: "4%", bottom: "10%", containLabel: !0 },
|
|
119
|
+
xAxis: {
|
|
120
|
+
type: "category",
|
|
121
|
+
data: g.value,
|
|
122
|
+
axisLabel: { color: "#666" }
|
|
123
|
+
},
|
|
124
|
+
yAxis: {
|
|
125
|
+
type: "value",
|
|
126
|
+
name: "调用次数",
|
|
127
|
+
nameGap: 10,
|
|
128
|
+
splitLine: { lineStyle: { color: "#eee" } }
|
|
129
|
+
},
|
|
130
|
+
series: [
|
|
131
|
+
{
|
|
132
|
+
name: "成功调用量",
|
|
133
|
+
type: "bar",
|
|
134
|
+
stack: "total",
|
|
135
|
+
barWidth: "40%",
|
|
136
|
+
itemStyle: { color: "#74A9E8" },
|
|
137
|
+
data: h.value
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: "失败调用量",
|
|
141
|
+
type: "bar",
|
|
142
|
+
stack: "total",
|
|
143
|
+
barWidth: "40%",
|
|
144
|
+
itemStyle: { color: "#E64340" },
|
|
145
|
+
data: y.value
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
};
|
|
149
|
+
o.setOption(e);
|
|
150
|
+
}
|
|
151
|
+
function r() {
|
|
152
|
+
o && (o.setOption({
|
|
153
|
+
xAxis: { data: g.value },
|
|
154
|
+
series: [{ data: h.value }, { data: y.value }]
|
|
155
|
+
}), o.dispatchAction({
|
|
156
|
+
type: "dataZoom",
|
|
157
|
+
startValue: Math.max(0, l.value.length - 7)
|
|
158
|
+
}));
|
|
159
|
+
}
|
|
160
|
+
function n(e) {
|
|
161
|
+
c.value = !0, u.value = !1, z.countStatus(e ?? {}).then((t) => {
|
|
162
|
+
var v;
|
|
163
|
+
l.value = ((v = t.data) == null ? void 0 : v.results) || [], r();
|
|
164
|
+
}).catch((t) => {
|
|
165
|
+
console.error("[apiCall] countStatus 调用失败:", t), u.value = !0, l.value = [];
|
|
166
|
+
}).finally(() => {
|
|
167
|
+
c.value = !1;
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
function i(e, t) {
|
|
171
|
+
if (!e || e.length < 2) {
|
|
172
|
+
n();
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
n({ startDate: e[0], endDate: e[1] });
|
|
176
|
+
}
|
|
177
|
+
function D() {
|
|
178
|
+
o == null || o.resize();
|
|
179
|
+
}
|
|
180
|
+
return E(() => {
|
|
181
|
+
p(), window.addEventListener("resize", D);
|
|
182
|
+
}), M(() => {
|
|
183
|
+
window.removeEventListener("resize", D), o && (o.dispose(), o = null);
|
|
184
|
+
}), (e, t) => {
|
|
185
|
+
const v = q;
|
|
186
|
+
return C(), T("div", B, [
|
|
187
|
+
a("div", O, [
|
|
188
|
+
t[0] || (t[0] = a("div", { class: "card-title-row" }, [
|
|
189
|
+
a("span", { class: "card-title" }, "API调用次数")
|
|
190
|
+
], -1)),
|
|
191
|
+
a("div", W, [
|
|
192
|
+
L(v, {
|
|
193
|
+
defaultType: "last7",
|
|
194
|
+
onChange: i
|
|
195
|
+
})
|
|
196
|
+
])
|
|
197
|
+
]),
|
|
198
|
+
a("div", {
|
|
199
|
+
class: "chart-content",
|
|
200
|
+
ref_key: "apiChartRef",
|
|
201
|
+
ref: _
|
|
202
|
+
}, null, 512),
|
|
203
|
+
a("div", G, [
|
|
204
|
+
a("div", Q, [
|
|
205
|
+
t[1] || (t[1] = a("div", { class: "label" }, "今日总调用", -1)),
|
|
206
|
+
a("div", Z, b(x.value) + " 次", 1)
|
|
207
|
+
]),
|
|
208
|
+
a("div", j, [
|
|
209
|
+
t[2] || (t[2] = a("div", { class: "label" }, "平均成功率", -1)),
|
|
210
|
+
a("div", H, b(s.value), 1)
|
|
211
|
+
]),
|
|
212
|
+
a("div", J, [
|
|
213
|
+
t[3] || (t[3] = a("div", { class: "label" }, "平均响应耗时", -1)),
|
|
214
|
+
a("div", K, b(d.value), 1)
|
|
215
|
+
])
|
|
216
|
+
])
|
|
217
|
+
]);
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
}), ne = /* @__PURE__ */ $(X, [["__scopeId", "data-v-831a1ff6"]]);
|
|
221
|
+
export {
|
|
222
|
+
ne as default
|
|
223
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as _e, getCurrentInstance as ye, ref as T, watch as ve, reactive as S, resolveComponent as p, resolveDirective as we, openBlock as r, createElementBlock as h, createElementVNode as V, createVNode as a, withCtx as l, withKeys as U, unref as n, createTextVNode as u, toDisplayString as d, withDirectives as g, createBlock as k, isRef as A, createCommentVNode as D } from "vue";
|
|
2
2
|
import { useTableHooks as be } from "jmash-core";
|
|
3
3
|
import { useI18n as ge } from "vue-i18n";
|
|
4
|
-
import { a as ke } from "./index-
|
|
5
|
-
import { D as L } from "./index-
|
|
6
|
-
import Ce from "./edit-
|
|
7
|
-
import { _ as Te } from "./resetPwd.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import he from "./info-
|
|
4
|
+
import { a as ke } from "./index-MA9jC8ZF.mjs";
|
|
5
|
+
import { D as L } from "./index-BapHEpjV.mjs";
|
|
6
|
+
import Ce from "./edit-Do1a4xeJ.mjs";
|
|
7
|
+
import { _ as Te } from "./resetPwd.vue_vue_type_script_setup_true_lang-Dx51Xvte.mjs";
|
|
8
|
+
import he from "./info-Bba_NzcG.mjs";
|
|
9
9
|
import { useRouter as Ve } from "vue-router";
|
|
10
10
|
import { C as Ie } from "./constant-D4fRv058.mjs";
|
|
11
11
|
const $e = { class: "app-container" }, Re = { class: "search-container" }, De = ["onClick"], Pe = ["onClick"], Ne = { class: "el-dropdown-link" }, He = /* @__PURE__ */ _e({
|
|
@@ -3,8 +3,9 @@ import { ElMessage as I } from "element-plus";
|
|
|
3
3
|
import { d as se } from "./index-CkVsz6yH.mjs";
|
|
4
4
|
import { useI18n as re } from "vue-i18n";
|
|
5
5
|
import { p as R } from "./index-DAKAeNie.mjs";
|
|
6
|
-
import { D as K } from "./index-
|
|
7
|
-
import { u as ne
|
|
6
|
+
import { D as K } from "./index-BapHEpjV.mjs";
|
|
7
|
+
import { u as ne } from "./index-CeyTmMNJ.mjs";
|
|
8
|
+
import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
8
9
|
const me = { class: "form-section" }, ie = { class: "form-section" }, de = { class: "variable-palette" }, ue = { class: "palette-label" }, ce = { class: "palette-pills" }, fe = ["onClick"], ge = { class: "variable-palette" }, _e = { class: "template-footer" }, he = { class: "char-count" }, ve = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "referenced-placeholders"
|
|
@@ -411,7 +412,7 @@ const me = { class: "form-section" }, ie = { class: "form-section" }, de = { cla
|
|
|
411
412
|
}, 8, ["modelValue"]);
|
|
412
413
|
};
|
|
413
414
|
}
|
|
414
|
-
}),
|
|
415
|
+
}), De = /* @__PURE__ */ pe(ke, [["__scopeId", "data-v-bf7a588e"]]);
|
|
415
416
|
export {
|
|
416
|
-
|
|
417
|
+
De as default
|
|
417
418
|
};
|
|
@@ -2,7 +2,8 @@ import { defineComponent as O, ref as S, useModel as F, reactive as N, resolveCo
|
|
|
2
2
|
import { ElMessage as v } from "element-plus";
|
|
3
3
|
import { C as Y } from "./constant-D4fRv058.mjs";
|
|
4
4
|
import { useI18n as z } from "vue-i18n";
|
|
5
|
-
import { a as _
|
|
5
|
+
import { a as _ } from "./index-MA9jC8ZF.mjs";
|
|
6
|
+
import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
7
|
const H = { class: "section-wrap" }, J = { class: "section-wrap" }, Q = { class: "card-inner" }, W = { class: "key-item" }, X = { class: "label-row" }, Z = {
|
|
7
8
|
key: 0,
|
|
8
9
|
class: "key-item",
|
|
@@ -333,7 +334,7 @@ const H = { class: "section-wrap" }, J = { class: "section-wrap" }, Q = { class:
|
|
|
333
334
|
}, 8, ["modelValue"]);
|
|
334
335
|
};
|
|
335
336
|
}
|
|
336
|
-
}),
|
|
337
|
+
}), fe = /* @__PURE__ */ G(se, [["__scopeId", "data-v-b26e9be8"]]);
|
|
337
338
|
export {
|
|
338
|
-
|
|
339
|
+
fe as default
|
|
339
340
|
};
|
|
@@ -3,8 +3,9 @@ import { ElMessage as K } from "element-plus";
|
|
|
3
3
|
import { d as re } from "./index-CkVsz6yH.mjs";
|
|
4
4
|
import { useI18n as ne } from "vue-i18n";
|
|
5
5
|
import { p as S } from "./index-DAKAeNie.mjs";
|
|
6
|
-
import { D as w } from "./index-
|
|
7
|
-
import { u as pe
|
|
6
|
+
import { D as w } from "./index-BapHEpjV.mjs";
|
|
7
|
+
import { u as pe } from "./index-CeyTmMNJ.mjs";
|
|
8
|
+
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
8
9
|
const me = { class: "form-section" }, ie = { class: "form-section" }, ue = { class: "variable-palette" }, ce = { class: "palette-label" }, fe = { class: "palette-pills" }, ge = ["onClick"], _e = { class: "variable-palette" }, he = { class: "template-footer" }, ve = { class: "char-count" }, ye = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "referenced-placeholders"
|
|
@@ -432,7 +433,7 @@ const me = { class: "form-section" }, ie = { class: "form-section" }, ue = { cla
|
|
|
432
433
|
}, 8, ["modelValue"]);
|
|
433
434
|
};
|
|
434
435
|
}
|
|
435
|
-
}),
|
|
436
|
+
}), je = /* @__PURE__ */ de($e, [["__scopeId", "data-v-21627879"]]);
|
|
436
437
|
export {
|
|
437
|
-
|
|
438
|
+
je as default
|
|
438
439
|
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { defineComponent as x, ref as i, onMounted as y, onUnmounted as w, openBlock as b, createElementBlock as C, createElementVNode as c, createTextVNode as L, toDisplayString as R } from "vue";
|
|
2
|
+
import { i as z } from "./index-DmqVT2Yh.mjs";
|
|
3
|
+
import { u as D } from "./index-CeyTmMNJ.mjs";
|
|
4
|
+
import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
|
+
const k = { class: "chart-card" }, A = { class: "card-header" }, S = { class: "header-tip" }, B = /* @__PURE__ */ x({
|
|
6
|
+
__name: "image",
|
|
7
|
+
setup(M) {
|
|
8
|
+
const a = i();
|
|
9
|
+
let e = null;
|
|
10
|
+
const l = i(0), d = i([]), f = ["0-30%", "31-60%", "61-80%", "81-100%"], m = {
|
|
11
|
+
"0-30%": "#E64340",
|
|
12
|
+
"31-60%": "#F5A623",
|
|
13
|
+
"61-80%": "#4285F4",
|
|
14
|
+
"81-100%": "#34B749"
|
|
15
|
+
}, _ = () => {
|
|
16
|
+
a.value && (e = z(a.value), u());
|
|
17
|
+
}, u = () => {
|
|
18
|
+
if (!e) return;
|
|
19
|
+
const o = [], t = [];
|
|
20
|
+
d.value.forEach((s) => {
|
|
21
|
+
o.push(s.scoreRange), t.push({
|
|
22
|
+
value: s.scoreCount,
|
|
23
|
+
itemStyle: { color: m[s.scoreRange] || "#999" },
|
|
24
|
+
label: {
|
|
25
|
+
show: !0,
|
|
26
|
+
position: "top",
|
|
27
|
+
color: "#333"
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
const r = {
|
|
32
|
+
tooltip: {
|
|
33
|
+
trigger: "axis",
|
|
34
|
+
axisPointer: { type: "shadow" }
|
|
35
|
+
},
|
|
36
|
+
grid: { left: "10%", right: "10%", bottom: "5%", containLabel: !1 },
|
|
37
|
+
xAxis: {
|
|
38
|
+
type: "category",
|
|
39
|
+
data: o,
|
|
40
|
+
axisLabel: { color: "#666" },
|
|
41
|
+
axisLine: { show: !1 },
|
|
42
|
+
axisTick: { show: !1 }
|
|
43
|
+
},
|
|
44
|
+
yAxis: {
|
|
45
|
+
type: "value",
|
|
46
|
+
show: !1,
|
|
47
|
+
min: 0
|
|
48
|
+
},
|
|
49
|
+
series: [
|
|
50
|
+
{
|
|
51
|
+
name: "数量",
|
|
52
|
+
type: "bar",
|
|
53
|
+
barWidth: 60,
|
|
54
|
+
data: t,
|
|
55
|
+
// 0值柱子强制显示最小高度
|
|
56
|
+
barMinHeight: 2,
|
|
57
|
+
label: {
|
|
58
|
+
show: !0,
|
|
59
|
+
position: "top",
|
|
60
|
+
color: "#333"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
};
|
|
65
|
+
e.setOption(r);
|
|
66
|
+
}, v = async () => {
|
|
67
|
+
try {
|
|
68
|
+
const t = (await D.countComplete()).data ?? {};
|
|
69
|
+
l.value = t.totalSize ?? 0;
|
|
70
|
+
const r = t.results ?? [], s = f.map((h) => {
|
|
71
|
+
const n = r.find((g) => g.scoreRange === h);
|
|
72
|
+
return {
|
|
73
|
+
scoreRange: h,
|
|
74
|
+
scoreCount: (n == null ? void 0 : n.scoreCount) ?? 0
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
d.value = s, u();
|
|
78
|
+
} catch (o) {
|
|
79
|
+
console.error("获取画像质量分布失败", o);
|
|
80
|
+
}
|
|
81
|
+
}, p = () => {
|
|
82
|
+
e == null || e.resize();
|
|
83
|
+
};
|
|
84
|
+
return y(() => {
|
|
85
|
+
_(), v(), window.addEventListener("resize", p);
|
|
86
|
+
}), w(() => {
|
|
87
|
+
window.removeEventListener("resize", p), e && (e.dispose(), e = null);
|
|
88
|
+
}), (o, t) => (b(), C("div", k, [
|
|
89
|
+
c("div", A, [
|
|
90
|
+
t[0] || (t[0] = L(" 画像质量分布 ", -1)),
|
|
91
|
+
c("span", S, "共" + R(l.value) + "条画像,按综合完整度划分为4个区间,点击柱体可跳转用户画像列表并自动筛选。", 1)
|
|
92
|
+
]),
|
|
93
|
+
c("div", {
|
|
94
|
+
class: "chart-content",
|
|
95
|
+
ref_key: "qualityChartRef",
|
|
96
|
+
ref: a
|
|
97
|
+
}, null, 512)
|
|
98
|
+
]));
|
|
99
|
+
}
|
|
100
|
+
}), T = /* @__PURE__ */ E(B, [["__scopeId", "data-v-27190f36"]]);
|
|
101
|
+
export {
|
|
102
|
+
T as default
|
|
103
|
+
};
|
|
@@ -2,10 +2,10 @@ import { defineComponent as X, getCurrentInstance as Z, ref as T, reactive as D,
|
|
|
2
2
|
import { useTableHooks as te } from "jmash-core";
|
|
3
3
|
import { useI18n as le } from "vue-i18n";
|
|
4
4
|
import { p as oe } from "./index-DAKAeNie.mjs";
|
|
5
|
-
import ae from "./edit-
|
|
5
|
+
import ae from "./edit-sq0ohOci.mjs";
|
|
6
6
|
import "./constant-D4fRv058.mjs";
|
|
7
|
-
import { D as j } from "./index-
|
|
8
|
-
import { u as ne } from "./index-
|
|
7
|
+
import { D as j } from "./index-BapHEpjV.mjs";
|
|
8
|
+
import { u as ne } from "./index-CeyTmMNJ.mjs";
|
|
9
9
|
import { useRoute as se } from "vue-router";
|
|
10
10
|
const me = { class: "app-container" }, re = { class: "search-container" }, pe = ["onClick"], ue = ["onClick"], Ce = /* @__PURE__ */ X({
|
|
11
11
|
__name: "index",
|
|
@@ -2,10 +2,10 @@ import { defineComponent as W, getCurrentInstance as X, ref as T, reactive as R,
|
|
|
2
2
|
import { useTableHooks as ee } from "jmash-core";
|
|
3
3
|
import { useI18n as te } from "vue-i18n";
|
|
4
4
|
import { p as le } from "./index-DAKAeNie.mjs";
|
|
5
|
-
import oe from "./edit-
|
|
5
|
+
import oe from "./edit-CR3tiHFR.mjs";
|
|
6
6
|
import "./constant-D4fRv058.mjs";
|
|
7
|
-
import { D as ae } from "./index-
|
|
8
|
-
import { u as ne } from "./index-
|
|
7
|
+
import { D as ae } from "./index-BapHEpjV.mjs";
|
|
8
|
+
import { u as ne } from "./index-CeyTmMNJ.mjs";
|
|
9
9
|
import { useRoute as me } from "vue-router";
|
|
10
10
|
const se = { class: "app-container" }, re = { class: "search-container" }, pe = ["onClick"], ue = ["onClick"], ke = /* @__PURE__ */ W({
|
|
11
11
|
__name: "index",
|
|
@@ -2,11 +2,12 @@ import { defineComponent as le, ref as k, getCurrentInstance as oe, reactive as
|
|
|
2
2
|
import { useTableHooks as ie } from "jmash-core";
|
|
3
3
|
import { useI18n as re } from "vue-i18n";
|
|
4
4
|
import { u as ue, o as de, s as me } from "./index-CkVsz6yH.mjs";
|
|
5
|
-
import { u as pe
|
|
6
|
-
import
|
|
7
|
-
import { _ as
|
|
8
|
-
import { D as m } from "./index-
|
|
9
|
-
import { C as
|
|
5
|
+
import { u as pe } from "./index-CeyTmMNJ.mjs";
|
|
6
|
+
import ce from "./info-CunGvr-S.mjs";
|
|
7
|
+
import { _ as fe } from "./simulateNum.vue_vue_type_script_setup_true_lang-ALzj6Sj-.mjs";
|
|
8
|
+
import { D as m } from "./index-BapHEpjV.mjs";
|
|
9
|
+
import { C as ye } from "./constant-D4fRv058.mjs";
|
|
10
|
+
import { _ as be } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
10
11
|
const ge = { class: "app-container" }, _e = { class: "search-container" }, ve = { class: "cell-stack" }, we = { class: "cell-main" }, he = { class: "cell-sub" }, ke = { class: "cell-stack" }, Te = { class: "cell-main" }, Ve = { class: "cell-sub" }, Ce = { class: "cell-stack" }, Se = { class: "tag-row" }, Pe = { class: "cell-sub" }, $e = { class: "cell-stack" }, Re = { class: "tag-row" }, Ne = { class: "cell-main" }, Ie = { class: "cell-stack" }, Ue = { class: "cell-main" }, Ee = { class: "cell-sub" }, De = { class: "cell-score" }, Fe = { class: "score-num" }, Ae = { class: "cell-stack" }, je = { class: "cell-main" }, qe = { class: "cell-sub" }, xe = ["onClick"], ze = ["onClick"], Ke = /* @__PURE__ */ le({
|
|
11
12
|
__name: "index",
|
|
12
13
|
setup(Le) {
|
|
@@ -233,7 +234,7 @@ const ge = { class: "app-container" }, _e = { class: "search-container" }, ve =
|
|
|
233
234
|
a(B, {
|
|
234
235
|
modelValue: r.value.businessFocus,
|
|
235
236
|
"onUpdate:modelValue": t[6] || (t[6] = (e) => r.value.businessFocus = e),
|
|
236
|
-
"type-code": o(
|
|
237
|
+
"type-code": o(ye).MODULE_BUSINESS_FOCUS,
|
|
237
238
|
placeholder: s.$t("userPortrait.businessFocusRequired"),
|
|
238
239
|
onKeyup: t[7] || (t[7] = T((e) => o(u).handleQuery(), ["enter"])),
|
|
239
240
|
class: "!w-[203px]"
|
|
@@ -488,14 +489,14 @@ const ge = { class: "app-container" }, _e = { class: "search-container" }, ve =
|
|
|
488
489
|
]),
|
|
489
490
|
_: 1
|
|
490
491
|
}),
|
|
491
|
-
g.value.visible ? (p(), f(
|
|
492
|
+
g.value.visible ? (p(), f(ce, {
|
|
492
493
|
key: 0,
|
|
493
494
|
modelValue: g.value.visible,
|
|
494
495
|
"onUpdate:modelValue": t[18] || (t[18] = (e) => g.value.visible = e),
|
|
495
496
|
title: g.value.title,
|
|
496
497
|
"entity-key": o(E)
|
|
497
498
|
}, null, 8, ["modelValue", "title", "entity-key"])) : U("", !0),
|
|
498
|
-
_.value.visible ? (p(), f(
|
|
499
|
+
_.value.visible ? (p(), f(fe, {
|
|
499
500
|
key: 1,
|
|
500
501
|
modelValue: _.value.visible,
|
|
501
502
|
"onUpdate:modelValue": t[19] || (t[19] = (e) => _.value.visible = e),
|
|
@@ -506,7 +507,7 @@ const ge = { class: "app-container" }, _e = { class: "search-container" }, ve =
|
|
|
506
507
|
]);
|
|
507
508
|
};
|
|
508
509
|
}
|
|
509
|
-
}),
|
|
510
|
+
}), Ze = /* @__PURE__ */ be(Ke, [["__scopeId", "data-v-f7c61051"]]);
|
|
510
511
|
export {
|
|
511
|
-
|
|
512
|
+
Ze as default
|
|
512
513
|
};
|