sooyie-pgss 0.0.2 → 0.0.4
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-CUc39-ny.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-CgJRP6lc.mjs} +57 -55
- package/dist/{constant-D4fRv058.mjs → constant--xMn450l.mjs} +6 -5
- package/dist/{edit-Dhe1Mlih.mjs → edit-BlxqUB6-.mjs} +5 -4
- package/dist/{edit-DlJbNEVn.mjs → edit-Cla0dDdI.mjs} +8 -7
- package/dist/edit-ivH-z1iI.mjs +436 -0
- package/dist/image-CROZrkNB.mjs +103 -0
- package/dist/index-B79zNTjd.mjs +1918 -0
- package/dist/index-BCe402UQ.mjs +107 -0
- package/dist/{index-B4yFC5Qp.mjs → index-BXMXyvNp.mjs} +24 -23
- package/dist/{index-CoKl3CjE.mjs → index-CFfRjdwg.mjs} +27 -26
- package/dist/{index-quJUd8pu.mjs → index-CRPSCe9-.mjs} +156 -152
- package/dist/{index-BQctarUx.mjs → index-CcJJYhrX.mjs} +27 -26
- package/dist/index-CeyTmMNJ.mjs +109 -0
- package/dist/index-Cg4ZTneB.mjs +363 -0
- package/dist/{index-B2aeDXDI.mjs → index-D0X52CmM.mjs} +176 -173
- package/dist/index-D_e-YTyb.mjs +175 -0
- package/dist/index-DmqVT2Yh.mjs +43857 -0
- package/dist/index-MA9jC8ZF.mjs +109 -0
- package/dist/index.mjs +3039 -4
- package/dist/{info-BcEJCDoh.mjs → info-CshC_g3m.mjs} +5 -4
- package/dist/{info-B3MSviL1.mjs → info-_AfeplKG.mjs} +45 -44
- 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/dist/style.css +1 -1
- package/dts/src/api/pgss/index.d.ts +1 -0
- package/dts/src/api/pgss/pgss-user-portrait/types.d.ts +1 -1
- package/dts/src/constant.d.ts +1 -0
- package/dts/src/index.d.ts +1 -2
- package/dts/src/lang/pgss/zh-cn.d.ts +1 -0
- package/dts/src/router/index.d.ts +1 -0
- package/dts/src/views/pgss/pgss-app-info/edit.vue.d.ts +1 -1
- package/dts/src/views/pgss/pgss-login/index.vue.d.ts +2 -0
- package/dts/src/views/pgss/pgss-prompt-template/edit.vue.d.ts +1 -1
- package/dts/src/views/pgss/pgss-prompt-template-custom/edit.vue.d.ts +1 -1
- package/dts/src/views/pgss/pgss-user-portrait/simulateNum.vue.d.ts +1 -1
- package/package.json +1 -1
- package/dist/edit-DCqiYilp.mjs +0 -417
- package/dist/index-CRP6JuIH.mjs +0 -1932
- package/dist/index-D7pM0eGF.mjs +0 -47526
- package/dist/index-DmneBhrk.mjs +0 -326
|
@@ -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,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ye, getCurrentInstance as ve, ref as T, watch as _e, 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-D0X52CmM.mjs";
|
|
6
|
+
import Ce from "./edit-BlxqUB6-.mjs";
|
|
7
|
+
import { _ as Te } from "./resetPwd.vue_vue_type_script_setup_true_lang-Dx51Xvte.mjs";
|
|
8
|
+
import he from "./info-_AfeplKG.mjs";
|
|
9
9
|
import { useRouter as Ve } from "vue-router";
|
|
10
|
-
import { C as
|
|
11
|
-
const
|
|
10
|
+
import { C as $e } from "./constant--xMn450l.mjs";
|
|
11
|
+
const Ie = { class: "app-container" }, Re = { class: "search-container" }, De = ["onClick"], Pe = ["onClick"], Ne = { class: "el-dropdown-link" }, He = /* @__PURE__ */ ye({
|
|
12
12
|
__name: "app-info",
|
|
13
13
|
emits: ["totalChange"],
|
|
14
14
|
setup(Ue, { emit: E }) {
|
|
15
|
-
const { t:
|
|
16
|
-
let
|
|
15
|
+
const { t: y } = ge(), q = Ve(), { proxy: K } = ve(), Q = E, i = T({});
|
|
16
|
+
let v = T(!1);
|
|
17
17
|
const {
|
|
18
18
|
tableHooks: s,
|
|
19
|
-
multipleTableRef:
|
|
20
|
-
queryFormRef:
|
|
19
|
+
multipleTableRef: z,
|
|
20
|
+
queryFormRef: Y,
|
|
21
21
|
listLoading: H,
|
|
22
22
|
tableData: M,
|
|
23
|
-
total:
|
|
24
|
-
} = be(
|
|
25
|
-
|
|
23
|
+
total: $
|
|
24
|
+
} = be(y, ke, i), B = s.totalRecord;
|
|
25
|
+
_e(
|
|
26
26
|
() => B.value,
|
|
27
27
|
(o) => {
|
|
28
|
-
|
|
28
|
+
Q("totalChange", (o == null ? void 0 : o.totalSize) ?? 0);
|
|
29
29
|
},
|
|
30
30
|
{ deep: !0, immediate: !0 }
|
|
31
31
|
);
|
|
@@ -80,10 +80,10 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
80
80
|
}
|
|
81
81
|
]);
|
|
82
82
|
const m = T({
|
|
83
|
-
title:
|
|
83
|
+
title: y("common.edit"),
|
|
84
84
|
visible: !1
|
|
85
|
-
}),
|
|
86
|
-
title:
|
|
85
|
+
}), _ = T({
|
|
86
|
+
title: y("common.view"),
|
|
87
87
|
visible: !1
|
|
88
88
|
});
|
|
89
89
|
let f = S({});
|
|
@@ -94,13 +94,13 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
94
94
|
"04": "warning"
|
|
95
95
|
}, G = (o) => F[o] ?? "info";
|
|
96
96
|
function O() {
|
|
97
|
-
f = S({}), m.value.title =
|
|
97
|
+
f = S({}), m.value.title = y("common.add"), m.value.visible = !0;
|
|
98
98
|
}
|
|
99
99
|
function J(o) {
|
|
100
|
-
f.appId = o.appId, m.value.title =
|
|
100
|
+
f.appId = o.appId, m.value.title = y("common.edit"), m.value.visible = !0;
|
|
101
101
|
}
|
|
102
102
|
function W(o) {
|
|
103
|
-
f.appId = o.appId,
|
|
103
|
+
f.appId = o.appId, _.value.title = y("common.view"), _.value.visible = !0;
|
|
104
104
|
}
|
|
105
105
|
function X(o) {
|
|
106
106
|
s.selectionRows.value = o;
|
|
@@ -112,7 +112,7 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
112
112
|
o && s.getList();
|
|
113
113
|
}
|
|
114
114
|
function x(o) {
|
|
115
|
-
|
|
115
|
+
v.value = !0, f.appId = o.appId;
|
|
116
116
|
}
|
|
117
117
|
function ee(o) {
|
|
118
118
|
q.push({
|
|
@@ -123,12 +123,12 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
return s.getList(), (o, t) => {
|
|
126
|
-
const te = p("el-input"),
|
|
127
|
-
return r(), h("div",
|
|
126
|
+
const te = p("el-input"), I = p("el-form-item"), w = p("el-col"), oe = p("jmash-dict-select"), le = p("jmash-select"), R = p("el-button"), j = p("el-row"), ae = p("el-form"), ne = p("jmash-column-select"), pe = p("el-tag"), se = p("el-switch"), ie = p("arrow-down"), re = p("el-icon"), N = p("el-dropdown-item"), ue = p("el-dropdown-menu"), de = p("el-dropdown"), me = p("jmash-table"), fe = p("jmash-pagination"), ce = p("el-card"), b = we("hasPerm");
|
|
127
|
+
return r(), h("div", Ie, [
|
|
128
128
|
V("div", Re, [
|
|
129
129
|
a(ae, {
|
|
130
130
|
ref_key: "queryFormRef",
|
|
131
|
-
ref:
|
|
131
|
+
ref: Y,
|
|
132
132
|
model: i.value,
|
|
133
133
|
inline: !0
|
|
134
134
|
}, {
|
|
@@ -137,7 +137,7 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
137
137
|
default: l(() => [
|
|
138
138
|
a(w, { span: 6 }, {
|
|
139
139
|
default: l(() => [
|
|
140
|
-
a(
|
|
140
|
+
a(I, {
|
|
141
141
|
label: o.$t("appInfo.appName"),
|
|
142
142
|
prop: "likeAppName"
|
|
143
143
|
}, {
|
|
@@ -157,7 +157,7 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
157
157
|
}),
|
|
158
158
|
a(w, { span: 6 }, {
|
|
159
159
|
default: l(() => [
|
|
160
|
-
a(
|
|
160
|
+
a(I, {
|
|
161
161
|
label: o.$t("appInfo.appType"),
|
|
162
162
|
prop: "appType"
|
|
163
163
|
}, {
|
|
@@ -167,8 +167,9 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
167
167
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => i.value.appType = e),
|
|
168
168
|
placeholder: o.$t("appInfo.appTypeRequired"),
|
|
169
169
|
onKeyup: t[3] || (t[3] = U((e) => n(s).handleQuery(), ["enter"])),
|
|
170
|
-
"type-code": n(
|
|
171
|
-
class: "!w-[203px]"
|
|
170
|
+
"type-code": n($e).MODULE_APP_TYPE,
|
|
171
|
+
class: "!w-[203px]",
|
|
172
|
+
onChange: t[4] || (t[4] = (e) => n(s).handleQuery())
|
|
172
173
|
}, null, 8, ["modelValue", "placeholder", "type-code"])
|
|
173
174
|
]),
|
|
174
175
|
_: 1
|
|
@@ -178,16 +179,17 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
178
179
|
}),
|
|
179
180
|
a(w, { span: 6 }, {
|
|
180
181
|
default: l(() => [
|
|
181
|
-
a(
|
|
182
|
+
a(I, {
|
|
182
183
|
label: o.$t("appInfo.status"),
|
|
183
184
|
prop: "status"
|
|
184
185
|
}, {
|
|
185
186
|
default: l(() => [
|
|
186
187
|
a(le, {
|
|
187
188
|
modelValue: i.value.status,
|
|
188
|
-
"onUpdate:modelValue": t[
|
|
189
|
+
"onUpdate:modelValue": t[5] || (t[5] = (e) => i.value.status = e),
|
|
189
190
|
placeholder: o.$t("appInfo.statusRequired"),
|
|
190
|
-
onKeyup: t[
|
|
191
|
+
onKeyup: t[6] || (t[6] = U((e) => n(s).handleQuery(), ["enter"])),
|
|
192
|
+
onChange: t[7] || (t[7] = (e) => n(s).handleQuery()),
|
|
191
193
|
data: n(L).statusEnum.values,
|
|
192
194
|
clearable: "",
|
|
193
195
|
class: "!w-[203px]"
|
|
@@ -200,11 +202,11 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
200
202
|
}),
|
|
201
203
|
a(w, { span: 6 }, {
|
|
202
204
|
default: l(() => [
|
|
203
|
-
a(
|
|
205
|
+
a(I, { class: "search-btn" }, {
|
|
204
206
|
default: l(() => [
|
|
205
207
|
a(R, {
|
|
206
208
|
type: "primary",
|
|
207
|
-
onClick: t[
|
|
209
|
+
onClick: t[8] || (t[8] = (e) => n(s).handleQuery())
|
|
208
210
|
}, {
|
|
209
211
|
default: l(() => [
|
|
210
212
|
u(d(o.$t("common.search")), 1)
|
|
@@ -212,7 +214,7 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
212
214
|
_: 1
|
|
213
215
|
}),
|
|
214
216
|
a(R, {
|
|
215
|
-
onClick: t[
|
|
217
|
+
onClick: t[9] || (t[9] = (e) => n(s).resetQuery())
|
|
216
218
|
}, {
|
|
217
219
|
default: l(() => [
|
|
218
220
|
u(d(o.$t("common.reset")), 1)
|
|
@@ -231,7 +233,7 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
231
233
|
]),
|
|
232
234
|
_: 1
|
|
233
235
|
}, 8, ["model"]),
|
|
234
|
-
t[
|
|
236
|
+
t[19] || (t[19] = V("div", { class: "clear" }, null, -1))
|
|
235
237
|
]),
|
|
236
238
|
a(ce, {
|
|
237
239
|
shadow: "never",
|
|
@@ -246,7 +248,7 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
246
248
|
type: "primary",
|
|
247
249
|
onClick: O
|
|
248
250
|
}, {
|
|
249
|
-
default: l(() => [...t[
|
|
251
|
+
default: l(() => [...t[20] || (t[20] = [
|
|
250
252
|
u(" + 新建接入应用 ", -1)
|
|
251
253
|
])]),
|
|
252
254
|
_: 1
|
|
@@ -255,7 +257,7 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
255
257
|
]),
|
|
256
258
|
g((r(), k(R, {
|
|
257
259
|
type: "primary",
|
|
258
|
-
onClick: t[
|
|
260
|
+
onClick: t[10] || (t[10] = (e) => n(s).deleteRecords())
|
|
259
261
|
}, {
|
|
260
262
|
default: l(() => [
|
|
261
263
|
u(d(o.$t("common.batchDelete")), 1)
|
|
@@ -274,7 +276,7 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
274
276
|
default: l(() => [
|
|
275
277
|
a(ne, {
|
|
276
278
|
modelValue: n(C),
|
|
277
|
-
"onUpdate:modelValue": t[
|
|
279
|
+
"onUpdate:modelValue": t[11] || (t[11] = (e) => A(C) ? C.value = e : C = e),
|
|
278
280
|
"label-name": "pgss/pgss-app-info"
|
|
279
281
|
}, null, 8, ["modelValue"])
|
|
280
282
|
]),
|
|
@@ -285,21 +287,21 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
285
287
|
})
|
|
286
288
|
]),
|
|
287
289
|
footer: l(() => [
|
|
288
|
-
n(
|
|
290
|
+
n($) > 0 ? (r(), k(fe, {
|
|
289
291
|
key: 0,
|
|
290
|
-
total: n(
|
|
291
|
-
"onUpdate:total": t[
|
|
292
|
+
total: n($),
|
|
293
|
+
"onUpdate:total": t[12] || (t[12] = (e) => A($) ? $.value = e : null),
|
|
292
294
|
"current-page": i.value.curPage,
|
|
293
|
-
"onUpdate:currentPage": t[
|
|
295
|
+
"onUpdate:currentPage": t[13] || (t[13] = (e) => i.value.curPage = e),
|
|
294
296
|
"page-size": i.value.pageSize,
|
|
295
|
-
"onUpdate:pageSize": t[
|
|
296
|
-
onPagination: t[
|
|
297
|
+
"onUpdate:pageSize": t[14] || (t[14] = (e) => i.value.pageSize = e),
|
|
298
|
+
onPagination: t[15] || (t[15] = (e) => n(s).getList())
|
|
297
299
|
}, null, 8, ["total", "current-page", "page-size"])) : D("", !0)
|
|
298
300
|
]),
|
|
299
301
|
default: l(() => [
|
|
300
302
|
a(me, {
|
|
301
303
|
ref_key: "multipleTableRef",
|
|
302
|
-
ref:
|
|
304
|
+
ref: z,
|
|
303
305
|
"row-key": "appId",
|
|
304
306
|
"list-loading": n(H),
|
|
305
307
|
data: n(M),
|
|
@@ -411,27 +413,27 @@ const $e = { class: "app-container" }, Re = { class: "search-container" }, De =
|
|
|
411
413
|
m.value.visible ? (r(), k(Ce, {
|
|
412
414
|
key: 0,
|
|
413
415
|
modelValue: m.value.visible,
|
|
414
|
-
"onUpdate:modelValue": t[
|
|
416
|
+
"onUpdate:modelValue": t[16] || (t[16] = (e) => m.value.visible = e),
|
|
415
417
|
title: m.value.title,
|
|
416
418
|
"entity-key": n(f),
|
|
417
419
|
onRefresh: P,
|
|
418
420
|
width: "900px"
|
|
419
421
|
}, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0),
|
|
420
|
-
n(
|
|
422
|
+
n(v) ? (r(), k(Te, {
|
|
421
423
|
key: 1,
|
|
422
|
-
modelValue: n(
|
|
423
|
-
"onUpdate:modelValue": t[
|
|
424
|
+
modelValue: n(v),
|
|
425
|
+
"onUpdate:modelValue": t[17] || (t[17] = (e) => A(v) ? v.value = e : v = e),
|
|
424
426
|
"entity-key": n(f),
|
|
425
427
|
title: "重置秘钥",
|
|
426
428
|
width: "550px",
|
|
427
429
|
onRefresh: P
|
|
428
430
|
}, null, 8, ["modelValue", "entity-key"])) : D("", !0),
|
|
429
|
-
|
|
431
|
+
_.value.visible ? (r(), k(he, {
|
|
430
432
|
key: 2,
|
|
431
|
-
modelValue:
|
|
432
|
-
"onUpdate:modelValue": t[
|
|
433
|
+
modelValue: _.value.visible,
|
|
434
|
+
"onUpdate:modelValue": t[18] || (t[18] = (e) => _.value.visible = e),
|
|
433
435
|
"entity-key": n(f),
|
|
434
|
-
title:
|
|
436
|
+
title: _.value.title,
|
|
435
437
|
width: "900px",
|
|
436
438
|
onRefresh: P
|
|
437
439
|
}, null, 8, ["modelValue", "entity-key", "title"])) : D("", !0)
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
var t = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var i = (E,
|
|
4
|
-
import { ref as
|
|
2
|
+
var O = (E, _, e) => _ in E ? t(E, _, { enumerable: !0, configurable: !0, writable: !0, value: e }) : E[_] = e;
|
|
3
|
+
var i = (E, _, e) => O(E, typeof _ != "symbol" ? _ + "" : _, e);
|
|
4
|
+
import { ref as o } from "vue";
|
|
5
5
|
class s {
|
|
6
6
|
}
|
|
7
7
|
//模块
|
|
8
8
|
i(s, "MODULE_PGSS_DICT", "pgss"), // 状态(启用/禁用)
|
|
9
|
-
i(s, "STATUS",
|
|
9
|
+
i(s, "STATUS", o([
|
|
10
10
|
{ key: !0, value: "启用" },
|
|
11
11
|
{ key: !1, value: "禁用" }
|
|
12
12
|
])), // 应用类型
|
|
13
13
|
i(s, "MODULE_APP_TYPE", "app_type"), // 日志状态
|
|
14
14
|
i(s, "MODULE_LOG_STATUS", "sooyie.pgss.protobuf.PromptStatus"), // 画像维度
|
|
15
15
|
i(s, "MODULE_PROFILE", "portrait_weight"), // 维度方案
|
|
16
|
-
i(s, "MODULE_WEIGHT_DICT", "weight_code"), //
|
|
16
|
+
i(s, "MODULE_WEIGHT_DICT", "weight_code"), // 公共信息
|
|
17
|
+
i(s, "MODULE_COMMON_FIELD", "common_field"), // 年龄区间
|
|
17
18
|
i(s, "MODULE_AGERANGE", "sooyie.pgss.protobuf.AgeRange"), // 历史办理阶段
|
|
18
19
|
i(s, "MODULE_HISTORY_STAGE", "sooyie.pgss.protobuf.BusinessStage"), // 用户类型
|
|
19
20
|
i(s, "MODULE_USER_TYPE", "sooyie.pgss.protobuf.IdentityType"), // 咨询用语复杂度
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent as O, ref as S, useModel as F, reactive as N, resolveComponent as u, openBlock as g, createBlock as k, withCtx as a, createVNode as l, unref as p, createElementVNode as o, createTextVNode as d, createElementBlock as P, createCommentVNode as L, mergeModels as T } from "vue";
|
|
2
2
|
import { ElMessage as v } from "element-plus";
|
|
3
|
-
import { C as Y } from "./constant
|
|
3
|
+
import { C as Y } from "./constant--xMn450l.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-D0X52CmM.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"
|
|
@@ -55,12 +56,12 @@ const me = { class: "form-section" }, ie = { class: "form-section" }, ue = { cla
|
|
|
55
56
|
}), I = {}, G = R(() => {
|
|
56
57
|
let t = o.templateContent || "";
|
|
57
58
|
return t ? (Object.keys(I).forEach((e) => {
|
|
58
|
-
const r =
|
|
59
|
+
const r = "({key})", n = I[e];
|
|
59
60
|
t = t.split(r).join(n);
|
|
60
61
|
}), t = t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/^# (.+)$/gm, '<div class="md-h1">$1</div>').replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>").replace(/\n/g, "<br>"), t) : "<div class='empty'>暂无模板内容,请先编辑上方模板</div>";
|
|
61
62
|
});
|
|
62
63
|
function J(t) {
|
|
63
|
-
const e =
|
|
64
|
+
const e = `{${t.fieldName}}`, r = o.templateContent || "", n = document.querySelector(
|
|
64
65
|
".template-content-textarea textarea"
|
|
65
66
|
);
|
|
66
67
|
if (!n) {
|
|
@@ -355,7 +356,7 @@ const me = { class: "form-section" }, ie = { class: "form-section" }, ue = { cla
|
|
|
355
356
|
class: "field-pill",
|
|
356
357
|
key: k.fieldName,
|
|
357
358
|
onClick: (Re) => J(k)
|
|
358
|
-
}, _(k.
|
|
359
|
+
}, _(k.fieldRemark), 9, ge))), 128))
|
|
359
360
|
])
|
|
360
361
|
]))), 128))
|
|
361
362
|
]),
|
|
@@ -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-0fa53af6"]]);
|
|
436
437
|
export {
|
|
437
|
-
|
|
438
|
+
je as default
|
|
438
439
|
};
|