sooyie-pgss 0.0.5 → 0.0.6
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/{apiCall-DGnOSgOg.mjs → apiCall-B-uq340z.mjs} +55 -54
- package/dist/{app-info-C7WoB98-.mjs → app-info-Cw_eyZTg.mjs} +1 -1
- package/dist/{app-info.vue_vue_type_script_setup_true_lang-DxE5gyRR.mjs → app-info.vue_vue_type_script_setup_true_lang-BUL_tSli.mjs} +4 -4
- package/dist/{constant--xMn450l.mjs → constant-KIlcvlH7.mjs} +1 -1
- package/dist/dateFormat-Bq1a2pSJ.mjs +15 -0
- package/dist/{edit-D8MlG11t.mjs → edit-BWwsW4lY.mjs} +2 -2
- package/dist/{edit-BlxqUB6-.mjs → edit-BhgyLRMN.mjs} +1 -1
- package/dist/{edit-DinuxU0s.mjs → edit-CONEPS6o.mjs} +106 -106
- package/dist/index-BO3Wh1We.mjs +52 -0
- package/dist/index-BjyqkRSF.mjs +110 -0
- package/dist/{index-CsOsVLtX.mjs → index-BkjILuRR.mjs} +2 -2
- package/dist/index-BzcWIZeM.mjs +341 -0
- package/dist/{index-LG1LjGBS.mjs → index-CLmQf2ec.mjs} +3 -3
- package/dist/{index-K_0ErcZa.mjs → index-Cc_rS2lk.mjs} +1 -1
- package/dist/{index-D3PDeVuz.mjs → index-gj9-Uezz.mjs} +3 -3
- package/dist/{index-Bt1ubLNz.mjs → index-hXLLE5vI.mjs} +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{info-CRvLnd_-.mjs → info-B8gsATXc.mjs} +1 -1
- package/dist/{info-CvKFPpGc.mjs → info-Cf-H4Nq1.mjs} +1 -1
- package/dist/{info-BVeWJFsE.mjs → info-D4ej9h0v.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/src/api/pgss/pgss-prompt-template/types.d.ts +1 -0
- package/dts/src/constant.d.ts +1 -1
- package/dts/src/views/pgss/pgss-app-info/edit.vue.d.ts +1 -1
- 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/package.json +1 -1
- package/dist/index-BCe402UQ.mjs +0 -107
- package/dist/index-Cby2_cMl.mjs +0 -306
- package/dist/index-Du-Gyipf.mjs +0 -58
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as w, ref as f, resolveComponent as A, openBlock as C, createElementBlock as T, createElementVNode as
|
|
1
|
+
import { defineComponent as w, ref as f, resolveComponent as A, openBlock as C, createElementBlock as T, createElementVNode as s, Fragment as R, renderList as Y, normalizeClass as V, toDisplayString as b, createVNode as L, computed as m, onMounted as E, onUnmounted as M } from "vue";
|
|
2
2
|
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
3
|
import { i as N } from "./index-DmqVT2Yh.mjs";
|
|
4
4
|
import { a as z } from "./index-MA9jC8ZF.mjs";
|
|
5
|
-
|
|
5
|
+
import { a as I } from "./dateFormat-Bq1a2pSJ.mjs";
|
|
6
|
+
const P = { class: "time-filter-bar" }, F = { class: "quick-options" }, U = ["onClick"], q = /* @__PURE__ */ w({
|
|
6
7
|
__name: "DateRangePicker",
|
|
7
8
|
props: {
|
|
8
9
|
// 默认选中的快捷选项
|
|
@@ -17,58 +18,58 @@ const I = { class: "time-filter-bar" }, P = { class: "quick-options" }, F = ["on
|
|
|
17
18
|
{ label: "今天", value: "today" },
|
|
18
19
|
{ label: "近7天", value: "last7" },
|
|
19
20
|
{ label: "近30天", value: "last30" }
|
|
20
|
-
], h = (
|
|
21
|
-
const d = /* @__PURE__ */ new Date(), p = (
|
|
22
|
-
const i =
|
|
21
|
+
], h = (n) => {
|
|
22
|
+
const d = /* @__PURE__ */ new Date(), p = (a) => a.toString().padStart(2, "0"), r = (a) => {
|
|
23
|
+
const i = a.getFullYear(), D = a.getMonth() + 1, e = a.getDate();
|
|
23
24
|
return `${i}-${p(D)}-${p(e)}`;
|
|
24
25
|
};
|
|
25
|
-
switch (
|
|
26
|
+
switch (n) {
|
|
26
27
|
case "today": {
|
|
27
|
-
const
|
|
28
|
-
return [
|
|
28
|
+
const a = r(d);
|
|
29
|
+
return [a, a];
|
|
29
30
|
}
|
|
30
31
|
case "last7": {
|
|
31
|
-
const
|
|
32
|
-
return i.setDate(i.getDate() - 6), [r(i), r(
|
|
32
|
+
const a = /* @__PURE__ */ new Date(), i = /* @__PURE__ */ new Date();
|
|
33
|
+
return i.setDate(i.getDate() - 6), [r(i), r(a)];
|
|
33
34
|
}
|
|
34
35
|
case "last30": {
|
|
35
|
-
const
|
|
36
|
-
return i.setDate(i.getDate() - 29), [r(i), r(
|
|
36
|
+
const a = /* @__PURE__ */ new Date(), i = /* @__PURE__ */ new Date();
|
|
37
|
+
return i.setDate(i.getDate() - 29), [r(i), r(a)];
|
|
37
38
|
}
|
|
38
39
|
default:
|
|
39
40
|
return [];
|
|
40
41
|
}
|
|
41
|
-
}, y = (
|
|
42
|
-
c.value =
|
|
43
|
-
const d = h(
|
|
44
|
-
u.value = d, l("change", d,
|
|
45
|
-
}, x = (
|
|
46
|
-
if (!
|
|
42
|
+
}, y = (n) => {
|
|
43
|
+
c.value = n;
|
|
44
|
+
const d = h(n);
|
|
45
|
+
u.value = d, l("change", d, n);
|
|
46
|
+
}, x = (n) => {
|
|
47
|
+
if (!n || n.length === 0) {
|
|
47
48
|
c.value = "", l("change", [], "");
|
|
48
49
|
return;
|
|
49
50
|
}
|
|
50
|
-
c.value = "custom", l("change",
|
|
51
|
+
c.value = "custom", l("change", n, "custom");
|
|
51
52
|
};
|
|
52
53
|
{
|
|
53
|
-
const
|
|
54
|
-
u.value =
|
|
54
|
+
const n = h(o.defaultType);
|
|
55
|
+
u.value = n;
|
|
55
56
|
}
|
|
56
|
-
return (
|
|
57
|
+
return (n, d) => {
|
|
57
58
|
const p = A("el-date-picker");
|
|
58
|
-
return C(), T("div",
|
|
59
|
-
|
|
60
|
-
(C(), T(
|
|
59
|
+
return C(), T("div", P, [
|
|
60
|
+
s("div", F, [
|
|
61
|
+
(C(), T(R, null, Y(g, (r) => s("span", {
|
|
61
62
|
key: r.value,
|
|
62
63
|
class: V(["option-item", { active: c.value === r.value }]),
|
|
63
|
-
onClick: (
|
|
64
|
-
}, b(r.label), 11,
|
|
64
|
+
onClick: (a) => y(r.value)
|
|
65
|
+
}, b(r.label), 11, U)), 64))
|
|
65
66
|
]),
|
|
66
67
|
L(p, {
|
|
67
68
|
modelValue: u.value,
|
|
68
69
|
"onUpdate:modelValue": d[0] || (d[0] = (r) => u.value = r),
|
|
69
70
|
type: "daterange",
|
|
70
|
-
"start-placeholder":
|
|
71
|
-
"end-placeholder":
|
|
71
|
+
"start-placeholder": n.$t("liveVideo.startTime"),
|
|
72
|
+
"end-placeholder": n.$t("liveVideo.endTime"),
|
|
72
73
|
format: "YYYY-MM-DD",
|
|
73
74
|
"value-format": "YYYY-MM-DD",
|
|
74
75
|
onChange: x,
|
|
@@ -78,7 +79,7 @@ const I = { class: "time-filter-bar" }, P = { class: "quick-options" }, F = ["on
|
|
|
78
79
|
]);
|
|
79
80
|
};
|
|
80
81
|
}
|
|
81
|
-
}),
|
|
82
|
+
}), B = /* @__PURE__ */ $(q, [["__scopeId", "data-v-e20d4afb"]]), O = { class: "chart-card" }, W = { class: "card-top" }, G = { class: "card-filter" }, Q = { class: "api-bottom-info" }, Z = { class: "info-item" }, j = { class: "val" }, H = { class: "info-item" }, J = { class: "val success" }, K = { class: "info-item" }, X = { class: "val" }, ee = /* @__PURE__ */ w({
|
|
82
83
|
__name: "apiCall",
|
|
83
84
|
setup(S) {
|
|
84
85
|
const _ = f();
|
|
@@ -97,7 +98,7 @@ const I = { class: "time-filter-bar" }, P = { class: "quick-options" }, F = ["on
|
|
|
97
98
|
if (c.value) return "--";
|
|
98
99
|
const e = l.value;
|
|
99
100
|
return !e.length || u.value ? "0" : (((t = e[e.length - 1]) == null ? void 0 : t.useTimes) ?? 0).toLocaleString();
|
|
100
|
-
}),
|
|
101
|
+
}), n = m(() => {
|
|
101
102
|
if (c.value) return "--";
|
|
102
103
|
if (u.value || !l.value.length) return "0.00%";
|
|
103
104
|
const e = l.value.reduce(
|
|
@@ -157,7 +158,7 @@ const I = { class: "time-filter-bar" }, P = { class: "quick-options" }, F = ["on
|
|
|
157
158
|
startValue: Math.max(0, l.value.length - 7)
|
|
158
159
|
}));
|
|
159
160
|
}
|
|
160
|
-
function
|
|
161
|
+
function a(e) {
|
|
161
162
|
c.value = !0, u.value = !1, z.countStatus(e ?? {}).then((t) => {
|
|
162
163
|
var v;
|
|
163
164
|
l.value = ((v = t.data) == null ? void 0 : v.results) || [], r();
|
|
@@ -169,55 +170,55 @@ const I = { class: "time-filter-bar" }, P = { class: "quick-options" }, F = ["on
|
|
|
169
170
|
}
|
|
170
171
|
function i(e, t) {
|
|
171
172
|
if (!e || e.length < 2) {
|
|
172
|
-
|
|
173
|
+
a();
|
|
173
174
|
return;
|
|
174
175
|
}
|
|
175
|
-
|
|
176
|
+
a({ startDate: e[0], endDate: e[1] });
|
|
176
177
|
}
|
|
177
178
|
function D() {
|
|
178
179
|
o == null || o.resize();
|
|
179
180
|
}
|
|
180
181
|
return E(() => {
|
|
181
|
-
p(), window.addEventListener("resize", D);
|
|
182
|
+
p(), a(I(6)), window.addEventListener("resize", D);
|
|
182
183
|
}), M(() => {
|
|
183
184
|
window.removeEventListener("resize", D), o && (o.dispose(), o = null);
|
|
184
185
|
}), (e, t) => {
|
|
185
|
-
const v =
|
|
186
|
-
return C(), T("div",
|
|
187
|
-
|
|
188
|
-
t[0] || (t[0] =
|
|
189
|
-
|
|
186
|
+
const v = B;
|
|
187
|
+
return C(), T("div", O, [
|
|
188
|
+
s("div", W, [
|
|
189
|
+
t[0] || (t[0] = s("div", { class: "card-title-row" }, [
|
|
190
|
+
s("span", { class: "card-title" }, "API调用次数")
|
|
190
191
|
], -1)),
|
|
191
|
-
|
|
192
|
+
s("div", G, [
|
|
192
193
|
L(v, {
|
|
193
194
|
defaultType: "last7",
|
|
194
195
|
onChange: i
|
|
195
196
|
})
|
|
196
197
|
])
|
|
197
198
|
]),
|
|
198
|
-
|
|
199
|
+
s("div", {
|
|
199
200
|
class: "chart-content",
|
|
200
201
|
ref_key: "apiChartRef",
|
|
201
202
|
ref: _
|
|
202
203
|
}, null, 512),
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
t[1] || (t[1] =
|
|
206
|
-
|
|
204
|
+
s("div", Q, [
|
|
205
|
+
s("div", Z, [
|
|
206
|
+
t[1] || (t[1] = s("div", { class: "label" }, "今日总调用", -1)),
|
|
207
|
+
s("div", j, b(x.value) + " 次", 1)
|
|
207
208
|
]),
|
|
208
|
-
|
|
209
|
-
t[2] || (t[2] =
|
|
210
|
-
|
|
209
|
+
s("div", H, [
|
|
210
|
+
t[2] || (t[2] = s("div", { class: "label" }, "平均成功率", -1)),
|
|
211
|
+
s("div", J, b(n.value), 1)
|
|
211
212
|
]),
|
|
212
|
-
|
|
213
|
-
t[3] || (t[3] =
|
|
214
|
-
|
|
213
|
+
s("div", K, [
|
|
214
|
+
t[3] || (t[3] = s("div", { class: "label" }, "平均响应耗时", -1)),
|
|
215
|
+
s("div", X, b(d.value), 1)
|
|
215
216
|
])
|
|
216
217
|
])
|
|
217
218
|
]);
|
|
218
219
|
};
|
|
219
220
|
}
|
|
220
|
-
}),
|
|
221
|
+
}), le = /* @__PURE__ */ $(ee, [["__scopeId", "data-v-cf1d035f"]]);
|
|
221
222
|
export {
|
|
222
|
-
|
|
223
|
+
le as default
|
|
223
224
|
};
|
|
@@ -2,12 +2,12 @@ import { defineComponent as ye, getCurrentInstance as ve, ref as T, watch as _e,
|
|
|
2
2
|
import { useTableHooks as be } from "jmash-core";
|
|
3
3
|
import { useI18n as ge } from "vue-i18n";
|
|
4
4
|
import { a as ke } from "./index-MA9jC8ZF.mjs";
|
|
5
|
-
import { D as L } from "./index-
|
|
6
|
-
import Ce from "./edit-
|
|
5
|
+
import { D as L } from "./index-Cc_rS2lk.mjs";
|
|
6
|
+
import Ce from "./edit-BhgyLRMN.mjs";
|
|
7
7
|
import { _ as Te } from "./resetPwd.vue_vue_type_script_setup_true_lang-Dx51Xvte.mjs";
|
|
8
|
-
import he from "./info-
|
|
8
|
+
import he from "./info-D4ej9h0v.mjs";
|
|
9
9
|
import { useRouter as Ve } from "vue-router";
|
|
10
|
-
import { C as $e } from "./constant
|
|
10
|
+
import { C as $e } from "./constant-KIlcvlH7.mjs";
|
|
11
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"],
|
|
@@ -26,7 +26,7 @@ i(s, "MODULE_BUSINESS_FOCUS", "business_focus"), // 特殊人群标识
|
|
|
26
26
|
i(s, "MODULE_ID_SPECIAL_FLAG", "identity_special"), // 常用办事事项
|
|
27
27
|
i(s, "MODULE_BUSINESS_MATTER", "business_matter"), // 待办事项提醒
|
|
28
28
|
i(s, "MODULE_INTENT_REMINDER", "intent_reminder"), // 职业类别
|
|
29
|
-
i(s, "MODULE_JOB_CATEGORY", "
|
|
29
|
+
i(s, "MODULE_JOB_CATEGORY", "identity_job");
|
|
30
30
|
export {
|
|
31
31
|
s as C
|
|
32
32
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function n(t) {
|
|
2
|
+
return t < 10 ? `0${t}` : `${t}`;
|
|
3
|
+
}
|
|
4
|
+
function r(t) {
|
|
5
|
+
const e = t == null ? /* @__PURE__ */ new Date() : new Date(t);
|
|
6
|
+
return isNaN(e.getTime()) ? "" : `${e.getFullYear()}-${n(e.getMonth() + 1)}-${n(e.getDate())}`;
|
|
7
|
+
}
|
|
8
|
+
function o(t, e = /* @__PURE__ */ new Date()) {
|
|
9
|
+
const D = r(e), a = new Date(e);
|
|
10
|
+
return a.setDate(a.getDate() - t), { startDate: r(a), endDate: D };
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
o as a,
|
|
14
|
+
r as f
|
|
15
|
+
};
|
|
@@ -2,9 +2,9 @@ import { defineComponent as oe, ref as R, reactive as B, computed as N, useModel
|
|
|
2
2
|
import { ElMessage as H } from "element-plus";
|
|
3
3
|
import { d as re } from "./index-CkVsz6yH.mjs";
|
|
4
4
|
import { useI18n as ie } from "vue-i18n";
|
|
5
|
-
import { D as V, p as D } from "./index-
|
|
5
|
+
import { D as V, p as D } from "./index-Cc_rS2lk.mjs";
|
|
6
6
|
import { u as pe } from "./index-CeyTmMNJ.mjs";
|
|
7
|
-
import { C as de } from "./constant
|
|
7
|
+
import { C as de } from "./constant-KIlcvlH7.mjs";
|
|
8
8
|
import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
9
|
const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { class: "variable-palette" }, _e = { class: "palette-label" }, ge = { class: "palette-pills" }, ve = ["onClick"], he = { class: "variable-palette" }, ye = { class: "palette-row" }, Ce = { class: "palette-pills" }, be = ["onClick"], Te = { class: "variable-palette" }, we = { class: "template-footer" }, ke = { class: "char-count" }, Ne = {
|
|
10
10
|
key: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
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-KIlcvlH7.mjs";
|
|
4
4
|
import { useI18n as z } from "vue-i18n";
|
|
5
5
|
import { a as _ } from "./index-MA9jC8ZF.mjs";
|
|
6
6
|
import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|