sooyie-pgss 0.0.5 → 0.0.7

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.
Files changed (36) hide show
  1. package/dist/{apiCall-DGnOSgOg.mjs → apiCall-B-uq340z.mjs} +55 -54
  2. package/dist/{app-info-C7WoB98-.mjs → app-info-Cw_eyZTg.mjs} +1 -1
  3. 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
  4. package/dist/{constant--xMn450l.mjs → constant-KIlcvlH7.mjs} +1 -1
  5. package/dist/dateFormat-Bq1a2pSJ.mjs +15 -0
  6. package/dist/{edit-D8MlG11t.mjs → edit-BWwsW4lY.mjs} +2 -2
  7. package/dist/{edit-BlxqUB6-.mjs → edit-BhgyLRMN.mjs} +1 -1
  8. package/dist/{edit-DinuxU0s.mjs → edit-CONEPS6o.mjs} +106 -106
  9. package/dist/index-BO3Wh1We.mjs +52 -0
  10. package/dist/index-BjyqkRSF.mjs +110 -0
  11. package/dist/{index-CsOsVLtX.mjs → index-BkjILuRR.mjs} +2 -2
  12. package/dist/index-BzcWIZeM.mjs +341 -0
  13. package/dist/{index-LG1LjGBS.mjs → index-CLmQf2ec.mjs} +3 -3
  14. package/dist/{index-K_0ErcZa.mjs → index-Cc_rS2lk.mjs} +1 -1
  15. package/dist/{index-D3PDeVuz.mjs → index-gj9-Uezz.mjs} +3 -3
  16. package/dist/{index-Bt1ubLNz.mjs → index-hXLLE5vI.mjs} +2 -2
  17. package/dist/index-x65eowQY.mjs +266 -0
  18. package/dist/index.mjs +178 -138
  19. package/dist/{info-CRvLnd_-.mjs → info-B8gsATXc.mjs} +1 -1
  20. package/dist/{info-CvKFPpGc.mjs → info-Cf-H4Nq1.mjs} +1 -1
  21. package/dist/{info-BVeWJFsE.mjs → info-D4ej9h0v.mjs} +1 -1
  22. package/dist/style.css +1 -1
  23. package/dts/src/api/pgss/pgss-chat/index.d.ts +7 -0
  24. package/dts/src/api/pgss/pgss-chat/types.d.ts +16 -0
  25. package/dts/src/api/pgss/pgss-prompt-template/types.d.ts +1 -0
  26. package/dts/src/constant.d.ts +1 -1
  27. package/dts/src/lang/pgss/en.d.ts +19 -0
  28. package/dts/src/lang/pgss/zh-cn.d.ts +19 -0
  29. package/dts/src/views/pgss/pgss-app-info/edit.vue.d.ts +1 -1
  30. package/dts/src/views/pgss/pgss-chat/index.vue.d.ts +2 -0
  31. package/dts/src/views/pgss/pgss-prompt-template/edit.vue.d.ts +1 -1
  32. package/dts/src/views/pgss/pgss-prompt-template-custom/edit.vue.d.ts +1 -1
  33. package/package.json +1 -1
  34. package/dist/index-BCe402UQ.mjs +0 -107
  35. package/dist/index-Cby2_cMl.mjs +0 -306
  36. 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 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";
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
- const I = { class: "time-filter-bar" }, P = { class: "quick-options" }, F = ["onClick"], U = /* @__PURE__ */ w({
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 = (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();
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 (s) {
26
+ switch (n) {
26
27
  case "today": {
27
- const n = r(d);
28
- return [n, n];
28
+ const a = r(d);
29
+ return [a, a];
29
30
  }
30
31
  case "last7": {
31
- const n = /* @__PURE__ */ new Date(), i = /* @__PURE__ */ new Date();
32
- return i.setDate(i.getDate() - 6), [r(i), r(n)];
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 n = /* @__PURE__ */ new Date(), i = /* @__PURE__ */ new Date();
36
- return i.setDate(i.getDate() - 29), [r(i), r(n)];
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 = (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) {
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", s, "custom");
51
+ c.value = "custom", l("change", n, "custom");
51
52
  };
52
53
  {
53
- const s = h(o.defaultType);
54
- u.value = s;
54
+ const n = h(o.defaultType);
55
+ u.value = n;
55
56
  }
56
- return (s, d) => {
57
+ return (n, d) => {
57
58
  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", {
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: (n) => y(r.value)
64
- }, b(r.label), 11, F)), 64))
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": s.$t("liveVideo.startTime"),
71
- "end-placeholder": s.$t("liveVideo.endTime"),
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
- }), 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
+ }), 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
- }), s = m(() => {
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 n(e) {
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
- n();
173
+ a();
173
174
  return;
174
175
  }
175
- n({ startDate: e[0], endDate: e[1] });
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 = 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调用次数")
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
- a("div", W, [
192
+ s("div", G, [
192
193
  L(v, {
193
194
  defaultType: "last7",
194
195
  onChange: i
195
196
  })
196
197
  ])
197
198
  ]),
198
- a("div", {
199
+ s("div", {
199
200
  class: "chart-content",
200
201
  ref_key: "apiChartRef",
201
202
  ref: _
202
203
  }, 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)
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
- a("div", j, [
209
- t[2] || (t[2] = a("div", { class: "label" }, "平均成功率", -1)),
210
- a("div", H, b(s.value), 1)
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
- a("div", J, [
213
- t[3] || (t[3] = a("div", { class: "label" }, "平均响应耗时", -1)),
214
- a("div", K, b(d.value), 1)
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
- }), ne = /* @__PURE__ */ $(X, [["__scopeId", "data-v-831a1ff6"]]);
221
+ }), le = /* @__PURE__ */ $(ee, [["__scopeId", "data-v-cf1d035f"]]);
221
222
  export {
222
- ne as default
223
+ le as default
223
224
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./app-info.vue_vue_type_script_setup_true_lang-DxE5gyRR.mjs";
1
+ import { _ as f } from "./app-info.vue_vue_type_script_setup_true_lang-BUL_tSli.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -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-K_0ErcZa.mjs";
6
- import Ce from "./edit-BlxqUB6-.mjs";
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-BVeWJFsE.mjs";
8
+ import he from "./info-D4ej9h0v.mjs";
9
9
  import { useRouter as Ve } from "vue-router";
10
- import { C as $e } from "./constant--xMn450l.mjs";
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", "indentity_job");
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-K_0ErcZa.mjs";
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--xMn450l.mjs";
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--xMn450l.mjs";
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";