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.
Files changed (30) hide show
  1. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  2. package/dist/apiCall-DGnOSgOg.mjs +223 -0
  3. package/dist/{app-info-BbQUujMP.mjs → app-info-B4CG9SYQ.mjs} +1 -1
  4. 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
  5. package/dist/{edit-DCqiYilp.mjs → edit-CR3tiHFR.mjs} +5 -4
  6. package/dist/{edit-Dhe1Mlih.mjs → edit-Do1a4xeJ.mjs} +4 -3
  7. package/dist/{edit-DlJbNEVn.mjs → edit-sq0ohOci.mjs} +5 -4
  8. package/dist/image-CROZrkNB.mjs +103 -0
  9. package/dist/{index-BQctarUx.mjs → index-AzecE6QF.mjs} +3 -3
  10. package/dist/{index-CoKl3CjE.mjs → index-B0w3Hvh3.mjs} +3 -3
  11. package/dist/{index-quJUd8pu.mjs → index-BEtcyjc1.mjs} +11 -10
  12. package/dist/index-BUiu8rPV.mjs +1918 -0
  13. package/dist/{index-B2aeDXDI.mjs → index-BapHEpjV.mjs} +1 -1
  14. package/dist/index-CM5e4jX-.mjs +107 -0
  15. package/dist/{index-DmneBhrk.mjs → index-C_8_sh8W.mjs} +1 -1
  16. package/dist/index-CeyTmMNJ.mjs +109 -0
  17. package/dist/{index-B4yFC5Qp.mjs → index-CoC7n2M9.mjs} +9 -8
  18. package/dist/index-DmqVT2Yh.mjs +43857 -0
  19. package/dist/index-MA9jC8ZF.mjs +109 -0
  20. package/dist/index.mjs +3036 -4
  21. package/dist/{info-B3MSviL1.mjs → info-Bba_NzcG.mjs} +45 -44
  22. package/dist/{info-BcEJCDoh.mjs → info-CunGvr-S.mjs} +5 -4
  23. package/dist/{resetPwd-C00poFAP.mjs → resetPwd-CeTAHbCm.mjs} +1 -1
  24. package/dist/{resetPwd.vue_vue_type_script_setup_true_lang-jrWExNFq.mjs → resetPwd.vue_vue_type_script_setup_true_lang-Dx51Xvte.mjs} +1 -1
  25. package/dist/{simulateNum-p0ftrVo6.mjs → simulateNum-DcFDMOSh.mjs} +1 -1
  26. 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
  27. package/dts/src/index.d.ts +1 -2
  28. package/package.json +1 -1
  29. package/dist/index-CRP6JuIH.mjs +0 -1932
  30. package/dist/index-D7pM0eGF.mjs +0 -47526
@@ -7,7 +7,7 @@ import { reactive as me, ref as C, defineComponent as O, computed as i, openBloc
7
7
  import "vue-router";
8
8
  import "vue-i18n";
9
9
  import "element-plus";
10
- import { a as Jt } from "./index-D7pM0eGF.mjs";
10
+ import { a as Jt } from "./index-MA9jC8ZF.mjs";
11
11
  var qt = Object.defineProperty, Zt = (e, t, n) => t in e ? qt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, pe = (e, t, n) => (Zt(e, typeof t != "symbol" ? t + "" : t, n), n);
12
12
  class Qt {
13
13
  getKey(t) {
@@ -0,0 +1,107 @@
1
+ import { defineComponent as N, ref as p, computed as i, openBlock as S, createElementBlock as D, createElementVNode as t, createTextVNode as n, toDisplayString as o, normalizeStyle as P, createVNode as _ } from "vue";
2
+ import { u as A } from "./index-CeyTmMNJ.mjs";
3
+ import { useRoute as B } from "vue-router";
4
+ import { a as T } from "./index-MA9jC8ZF.mjs";
5
+ import F from "./apiCall-DGnOSgOg.mjs";
6
+ import I from "./image-CROZrkNB.mjs";
7
+ import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
8
+ const k = { class: "dashboard-container" }, z = { class: "top-card-group" }, E = { class: "metric-card" }, R = { class: "card-value" }, $ = { class: "card-desc" }, q = { class: "metric-card" }, w = { class: "card-value" }, L = { class: "progress-bar" }, j = { class: "metric-card" }, G = { class: "card-value" }, H = { class: "metric-card" }, J = { class: "card-value" }, K = { class: "card-desc" }, M = { class: "text-red" }, O = { class: "gray-text" }, Q = { class: "bottom-card-group" }, U = /* @__PURE__ */ N({
9
+ __name: "index",
10
+ setup(W) {
11
+ const x = B(), d = p({});
12
+ function g() {
13
+ A.countTotal({ tenant: x.query.tenant }).then((e) => {
14
+ d.value = e.data || {};
15
+ }).catch((e) => {
16
+ console.error("[pgss-homepage] countTotal 调用失败:", e);
17
+ });
18
+ }
19
+ g();
20
+ const f = i(
21
+ () => (d.value.totalSize ?? 0).toLocaleString()
22
+ ), v = i(
23
+ () => Number(d.value.avgComplete ?? 0).toFixed(1)
24
+ ), c = (e) => {
25
+ var s, a;
26
+ return ((a = (s = d.value.userTypeCount) == null ? void 0 : s.find(
27
+ (l) => l.identityType === e
28
+ )) == null ? void 0 : a.count) ?? 0;
29
+ }, u = (e) => e >= 1e4 ? `${(e / 1e4).toFixed(1)}万` : `${e}`, C = i(
30
+ () => u(c("natural"))
31
+ ), y = i(() => u(c("legal"))), h = i(() => u(c("other"))), m = p(0);
32
+ T.countTotal().then((e) => {
33
+ m.value = e.data.appCount ?? 0;
34
+ });
35
+ const r = p({});
36
+ T.countStatus().then((e) => {
37
+ r.value = e.data;
38
+ });
39
+ const b = i(() => {
40
+ var a, l;
41
+ const e = Number(((a = r.value) == null ? void 0 : a.useTimes) ?? 0), s = Number(((l = r.value) == null ? void 0 : l.errorTimes) ?? 0);
42
+ return e ? (s / e * 100).toFixed(2) : "0.00";
43
+ });
44
+ return (e, s) => {
45
+ var a, l;
46
+ return S(), D("div", k, [
47
+ t("div", z, [
48
+ t("div", E, [
49
+ s[1] || (s[1] = t("div", { class: "card-title" }, [
50
+ n(" 用户画像总数量 "),
51
+ t("span", { class: "tag" }, "含模拟数据")
52
+ ], -1)),
53
+ t("div", R, [
54
+ n(o(f.value) + " ", 1),
55
+ s[0] || (s[0] = t("span", { class: "unit" }, "条", -1))
56
+ ]),
57
+ t("div", $, " 自然人" + o(C.value) + " · 法人" + o(y.value) + " · 非法人组织" + o(h.value), 1)
58
+ ]),
59
+ t("div", q, [
60
+ s[3] || (s[3] = t("div", { class: "card-title" }, [
61
+ n(" 画像平均完整度 "),
62
+ t("span", { class: "tag" }, "全部画像")
63
+ ], -1)),
64
+ t("div", w, [
65
+ n(o(v.value), 1),
66
+ s[2] || (s[2] = t("span", { class: "unit" }, "%", -1))
67
+ ]),
68
+ t("div", L, [
69
+ t("div", {
70
+ class: "progress-inner",
71
+ style: P({ width: v.value + "%" })
72
+ }, null, 4)
73
+ ])
74
+ ]),
75
+ t("div", j, [
76
+ s[5] || (s[5] = t("div", { class: "card-title" }, " 已接入智能体数量 ", -1)),
77
+ t("div", G, [
78
+ n(o(m.value) + " ", 1),
79
+ s[4] || (s[4] = t("span", { class: "unit" }, "个", -1))
80
+ ])
81
+ ]),
82
+ t("div", H, [
83
+ s[7] || (s[7] = t("div", { class: "card-title" }, [
84
+ n(" 今日API调用总量 "),
85
+ t("span", { class: "tag" }, "提示词增强")
86
+ ], -1)),
87
+ t("div", J, [
88
+ n(o(((a = r.value) == null ? void 0 : a.useTimes) ?? 0), 1),
89
+ s[6] || (s[6] = t("span", { class: "unit" }, "次", -1))
90
+ ]),
91
+ t("div", K, [
92
+ t("span", M, "失败" + o(((l = r.value) == null ? void 0 : l.errorTimes) ?? 0) + "次", 1),
93
+ t("span", O, "失败率 " + o(b.value) + "%", 1)
94
+ ])
95
+ ])
96
+ ]),
97
+ t("div", Q, [
98
+ _(I),
99
+ _(F, { apiCallCountText: r.value }, null, 8, ["apiCallCountText"])
100
+ ])
101
+ ]);
102
+ };
103
+ }
104
+ }), at = /* @__PURE__ */ V(U, [["__scopeId", "data-v-045b9c2a"]]);
105
+ export {
106
+ at as default
107
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as G, ref as I, getCurrentInstance as x, resolveComponent as d, openBlock as k, createElementBlock as J, createElementVNode as T, createVNode as n, withCtx as s, withKeys as O, unref as u, createTextVNode as S, toDisplayString as v, createBlock as W, isRef as M, createCommentVNode as X } from "vue";
2
2
  import { useUserStore as g, clearEmpty as c, request as f, useTableHooks as Z } from "jmash-core";
3
3
  import { useI18n as ee } from "vue-i18n";
4
- import { D as Y } from "./index-B2aeDXDI.mjs";
4
+ import { D as Y } from "./index-BapHEpjV.mjs";
5
5
  import { useRoute as te } from "vue-router";
6
6
  class ae {
7
7
  getKey(e) {
@@ -0,0 +1,109 @@
1
+ import { useUserStore as r, clearEmpty as n, request as s } from "jmash-core";
2
+ class o {
3
+ getKey(t) {
4
+ return {
5
+ userId: t.userId
6
+ };
7
+ }
8
+ // 查询翻页信息用户画像
9
+ findPage(t) {
10
+ const e = r().user.tenant;
11
+ return t && (t.hasIdentityType = t.identityType !== void 0, t.hasIdentityAgeRange = t.identityAgeRange !== void 0), n(t), s({
12
+ url: "/v1/pgss/user_portrait/page/" + e,
13
+ method: "get",
14
+ params: t
15
+ });
16
+ }
17
+ // 查询列表信息用户画像
18
+ findList(t) {
19
+ const e = r().user.tenant;
20
+ return n(t), s({
21
+ url: "/v1/pgss/user_portrait/list/" + e,
22
+ method: "get",
23
+ params: t
24
+ });
25
+ }
26
+ // 查询用户画像
27
+ findById(t) {
28
+ const e = r().user.tenant;
29
+ return n(t), s({
30
+ url: "/v1/pgss/user_portrait/id/" + e + "/" + t.userId,
31
+ method: "get"
32
+ });
33
+ }
34
+ // 创建实体用户画像
35
+ create(t) {
36
+ return t.tenant = r().user.tenant, n(t), s({
37
+ url: "/v1/pgss/user_portrait",
38
+ method: "post",
39
+ data: t
40
+ });
41
+ }
42
+ // 修改实体用户画像
43
+ update(t) {
44
+ return t.tenant = r().user.tenant, n(t), s({
45
+ url: "/v1/pgss/user_portrait",
46
+ method: "patch",
47
+ data: t
48
+ });
49
+ }
50
+ // 删除用户画像
51
+ delete(t) {
52
+ return t.tenant = r().user.tenant, n(t), s({
53
+ url: "/v1/pgss/user_portrait/id",
54
+ method: "delete",
55
+ params: t
56
+ });
57
+ }
58
+ // 批量删除用户画像
59
+ batchDelete(t) {
60
+ const e = t.map((u) => u.userId), a = {
61
+ tenant: r().user.tenant,
62
+ userId: e
63
+ };
64
+ return n(a), s({
65
+ url: "/v1/pgss/user_portrait/batch",
66
+ method: "put",
67
+ data: a
68
+ });
69
+ }
70
+ // 模拟用户画像
71
+ simulateNum(t) {
72
+ return t.tenant = r().user.tenant, n(t), s({
73
+ url: "/v1/pgss/user_portrait/simulate",
74
+ method: "post",
75
+ data: t
76
+ });
77
+ }
78
+ // 查询用户画像表字段
79
+ findFields(t) {
80
+ const e = r().user.tenant;
81
+ return n(t), s({
82
+ url: "/v1/pgss/user_portrait/columns/" + e,
83
+ method: "get",
84
+ params: t
85
+ });
86
+ }
87
+ // 统计用户画像总量
88
+ countTotal(t) {
89
+ const e = r().user.tenant;
90
+ return s({
91
+ url: "/v1/pgss/user_portrait/count/" + e,
92
+ method: "get",
93
+ params: t
94
+ });
95
+ }
96
+ // 统计画像综合完整度
97
+ countComplete(t) {
98
+ const e = r().user.tenant;
99
+ return s({
100
+ url: "/v1/pgss/user_portrait/count_score/" + e,
101
+ method: "get",
102
+ params: t
103
+ });
104
+ }
105
+ }
106
+ const d = new o();
107
+ export {
108
+ d as u
109
+ };
@@ -1,6 +1,7 @@
1
1
  import { defineComponent as h, ref as r, computed as i, openBlock as T, createElementBlock as g, createElementVNode as e, toDisplayString as u, createVNode as x } from "vue";
2
- import { _ as b } from "./app-info.vue_vue_type_script_setup_true_lang-CILQM5Dm.mjs";
3
- import { a as D, _ as y } from "./index-D7pM0eGF.mjs";
2
+ import { _ as b } from "./app-info.vue_vue_type_script_setup_true_lang-OxZnXojA.mjs";
3
+ import { a as D } from "./index-MA9jC8ZF.mjs";
4
+ import { _ as y } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
5
  function d(s) {
5
6
  return s < 10 ? `0${s}` : `${s}`;
6
7
  }
@@ -21,19 +22,19 @@ const S = { class: "api-dashboard" }, $ = { class: "card-row" }, w = { class: "s
21
22
  const a = Number(n.value.useTimes ?? 0), t = Number(n.value.successTimes ?? 0);
22
23
  return a ? (t / a * 100).toFixed(2) + "%" : "0.00%";
23
24
  });
24
- function p() {
25
+ function m() {
25
26
  const a = N(/* @__PURE__ */ new Date());
26
27
  l.value = !0, D.countStatus({ startDate: a, endDate: a }).then((t) => {
27
28
  var c;
28
- const m = ((c = t.data) == null ? void 0 : c.results) || [];
29
- n.value = m[0] ?? null;
29
+ const p = ((c = t.data) == null ? void 0 : c.results) || [];
30
+ n.value = p[0] ?? null;
30
31
  }).catch((t) => {
31
32
  console.error("[app-info-index] countStatus 调用失败:", t), n.value = null;
32
33
  }).finally(() => {
33
34
  l.value = !1;
34
35
  });
35
36
  }
36
- return p(), (a, t) => (T(), g("div", S, [
37
+ return m(), (a, t) => (T(), g("div", S, [
37
38
  e("div", $, [
38
39
  e("div", w, [
39
40
  t[0] || (t[0] = e("div", { class: "stat-label" }, "已接入应用", -1)),
@@ -51,7 +52,7 @@ const S = { class: "api-dashboard" }, $ = { class: "card-row" }, w = { class: "s
51
52
  x(b, { onTotalChange: v })
52
53
  ]));
53
54
  }
54
- }), M = /* @__PURE__ */ y(I, [["__scopeId", "data-v-ac0bbd63"]]);
55
+ }), R = /* @__PURE__ */ y(I, [["__scopeId", "data-v-ac0bbd63"]]);
55
56
  export {
56
- M as default
57
+ R as default
57
58
  };