@pubinfo/core 2.0.0-beta.27 → 2.0.0-beta.28

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 (63) hide show
  1. package/dist/{AppSetting-8APd2n5W.js → AppSetting-DMJZXmzA.js} +21 -20
  2. package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-xHHNH-Do.js → HCheckList.vue_vue_type_script_setup_true_lang-B3wESRn7.js} +2 -2
  3. package/dist/{PreferencesContent-B6v1Y85P.js → PreferencesContent-BniiAnvk.js} +46 -45
  4. package/dist/{SettingBreadcrumb-DRbL0ad_.js → SettingBreadcrumb-C4f3EHvJ.js} +2 -2
  5. package/dist/{SettingCopyright-BQF1UDPx.js → SettingCopyright-BfIv7JmX.js} +1 -1
  6. package/dist/{SettingEnableTransition-COQvH_bE.js → SettingEnableTransition-ltxmSAel.js} +1 -1
  7. package/dist/{SettingHome-BL-JRz6C.js → SettingHome-D3YO-Jml.js} +1 -1
  8. package/dist/{SettingMenu-CL08Xnqj.js → SettingMenu-BFPc8wk1.js} +2 -2
  9. package/dist/{SettingMode-CHFQfbwC.js → SettingMode-FWqs1ki-.js} +1 -1
  10. package/dist/{SettingNavSearch-D3EfJLm4.js → SettingNavSearch-CNH2GsIA.js} +1 -1
  11. package/dist/{SettingOther-D8vWJBqB.js → SettingOther-DeKEcGIY.js} +1 -1
  12. package/dist/{SettingPage-C6834qKt.js → SettingPage-CvRmxfR7.js} +1 -1
  13. package/dist/{SettingTabbar-C4Nk7PaM.js → SettingTabbar-C7I7s-0s.js} +2 -2
  14. package/dist/{SettingThemes-CAiwgt41.js → SettingThemes-DzQ2YBRN.js} +2 -2
  15. package/dist/{SettingToolbar-Bue6Bsao.js → SettingToolbar-BPj0XLJ3.js} +1 -1
  16. package/dist/{SettingTopbar-CklZW6nz.js → SettingTopbar-DVlc3dq-.js} +2 -2
  17. package/dist/{SettingWidthMode-Ba5CjpXS.js → SettingWidthMode-BzNU65dj.js} +1 -1
  18. package/dist/{TopThinMode-BKgHAbKj.js → TopThinMode-DSO5USf6.js} +1 -1
  19. package/dist/{_...all_-CiLs5zE0.js → _...all_-6l5FWUkL.js} +1 -1
  20. package/dist/{colors-ehvAxkYC.js → colors-DiWJrScm.js} +1 -1
  21. package/dist/components/PubinfoIcon/register.d.ts +9 -0
  22. package/dist/index-Be7jJtXg.js +232 -0
  23. package/dist/index-BmMbAV1Y.js +141 -0
  24. package/dist/index-CXsL0aQN.js +13107 -0
  25. package/dist/{index-CqQ-P_1q.js → index-CfasTv4x.js} +8 -8
  26. package/dist/{index-CAjh59MN.js → index-Ckgil96Y.js} +30 -30
  27. package/dist/{index-hjeR7S9d.js → index-De_ME_Ws.js} +2 -2
  28. package/dist/{index-C5TqLQ-T.js → index-Md7zV10q.js} +1 -1
  29. package/dist/{index-BjAXx4BA.js → index-XnF26Tbt.js} +3 -3
  30. package/dist/{index-BK4luc55.js → index-bsi-FZDt.js} +11 -9
  31. package/dist/index.js +33 -32
  32. package/dist/{toolbar-collapse-BhNN4H7Y.js → index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js} +489 -503
  33. package/dist/interface.d.ts +2 -0
  34. package/dist/layout/Layout.vue.d.ts +2 -2
  35. package/dist/{menu-D3oKigWX.js → menu-CC5544p-.js} +3202 -3184
  36. package/dist/pages/system/change-organization/index.vue.d.ts +1 -1
  37. package/dist/pages/system/change-password/index.vue.d.ts +1 -1
  38. package/dist/{pick-Cku6R96i.js → pick-CJo2YiT-.js} +1 -1
  39. package/dist/request.js +399 -390
  40. package/dist/route/routes.d.ts +6 -4
  41. package/dist/style.css +2 -2
  42. package/dist/utils/index.d.ts +6 -0
  43. package/package.json +26 -26
  44. package/src/api/modules/configData/xitongpeizhifuwu.ts +3 -3
  45. package/src/components/PubinfoApp/index.vue +1 -1
  46. package/src/components/PubinfoIcon/index.vue +3 -1
  47. package/src/components/PubinfoIcon/register.ts +19 -0
  48. package/src/components/PubinfoProvider/index.ts +1 -2
  49. package/src/create.ts +7 -0
  50. package/src/interface.ts +2 -0
  51. package/src/layout/Layout.vue +50 -59
  52. package/src/layout/components/Content/index.vue +34 -13
  53. package/src/layout/components/Sidebar/MainSidebar.vue +4 -7
  54. package/src/layout/provider.ts +7 -1
  55. package/src/pages/system/change-organization/index.vue +65 -73
  56. package/src/pages/system/change-password/index.vue +36 -44
  57. package/src/route/routes.ts +26 -8
  58. package/src/stores/modules/route.ts +10 -2
  59. package/src/utils/index.ts +14 -0
  60. package/types/vue-router.d.ts +3 -1
  61. package/dist/index-64V9RiCt.js +0 -240
  62. package/dist/index-BLvVzLOl.js +0 -147
  63. package/dist/index-DTsHMiQx.js +0 -12711
@@ -0,0 +1,232 @@
1
+ import { defineComponent as y, mergeModels as V, useModel as F, reactive as T, ref as P, createElementBlock as h, openBlock as N, createVNode as t, unref as a, withCtx as u, createTextVNode as k, nextTick as j, computed as z, createElementVNode as p, isRef as v } from "vue";
2
+ import { bz as S, bA as W, u as B, aR as M, v as $ } from "./menu-CC5544p-.js";
3
+ import "pinia-plugin-persistedstate";
4
+ import { useRouter as q, useRoute as A } from "vue-router";
5
+ import { _ as D } from "./index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js";
6
+ import { P as I } from "./index-CfasTv4x.js";
7
+ import { J, _ as O, M as X } from "./index-De_ME_Ws.js";
8
+ import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ var H = "Expected a function";
10
+ function K(n, l, s) {
11
+ if (typeof n != "function")
12
+ throw new TypeError(H);
13
+ return setTimeout(function() {
14
+ n.apply(void 0, s);
15
+ }, l);
16
+ }
17
+ var L = S(function(n, l, s) {
18
+ return K(n, W(l) || 0, s);
19
+ });
20
+ const Q = /* @__PURE__ */ y({
21
+ name: "ChangePasswordForm",
22
+ __name: "index",
23
+ props: /* @__PURE__ */ V({
24
+ token: {}
25
+ }, {
26
+ validate: { type: Boolean, default: !1 },
27
+ validateModifiers: {}
28
+ }),
29
+ emits: ["update:validate"],
30
+ setup(n, { expose: l }) {
31
+ const s = n, g = F(n, "validate"), o = T({
32
+ password: "",
33
+ newPassword: "",
34
+ repeatNewPassword: ""
35
+ }), d = q(), m = P(), r = B();
36
+ async function i(w, e) {
37
+ if (!e)
38
+ return Promise.reject(new Error("请再次输入新密码"));
39
+ if (e !== o.newPassword)
40
+ return Promise.reject(new Error("两次输入的密码不匹配,请确保新密码在两个输入框中完全相同"));
41
+ }
42
+ async function E(w, e) {
43
+ if (await j(), !e)
44
+ return Promise.reject(new Error("请再次输入新密码"));
45
+ if (!g.value)
46
+ return Promise.reject(new Error("密码安全校验不通过"));
47
+ }
48
+ const C = {
49
+ password: [{
50
+ required: !0,
51
+ whitespace: !0,
52
+ message: "请输入密码"
53
+ }],
54
+ newPassword: [{ validator: E }],
55
+ repeatNewPassword: [{ validator: i }]
56
+ };
57
+ async function R() {
58
+ var w;
59
+ try {
60
+ await ((w = m.value) == null ? void 0 : w.validate()), await r.changeUserPassword({
61
+ oldPassword: o.password,
62
+ newPassword: o.newPassword,
63
+ token: s.token
64
+ }), $.success("密码修改成功"), L(() => {
65
+ x();
66
+ }, 800);
67
+ } catch {
68
+ }
69
+ }
70
+ function x() {
71
+ d.go(-1);
72
+ }
73
+ return l({
74
+ formState: o
75
+ }), (w, e) => {
76
+ const _ = X, f = O, b = M, U = J;
77
+ return N(), h("div", null, [
78
+ t(U, {
79
+ ref_key: "changePasswordForm",
80
+ ref: m,
81
+ model: a(o),
82
+ rules: C
83
+ }, {
84
+ default: u(() => [
85
+ t(f, { name: "password" }, {
86
+ default: u(() => [
87
+ t(_, {
88
+ value: a(o).password,
89
+ "onUpdate:value": e[0] || (e[0] = (c) => a(o).password = c),
90
+ "allow-clear": "",
91
+ size: "large",
92
+ placeholder: "请输入旧密码",
93
+ "visibility-toggle": ""
94
+ }, null, 8, ["value"])
95
+ ]),
96
+ _: 1
97
+ }),
98
+ t(f, { name: "newPassword" }, {
99
+ default: u(() => [
100
+ t(_, {
101
+ value: a(o).newPassword,
102
+ "onUpdate:value": e[1] || (e[1] = (c) => a(o).newPassword = c),
103
+ "allow-clear": "",
104
+ size: "large",
105
+ placeholder: "请输入新密码",
106
+ "visibility-toggle": ""
107
+ }, null, 8, ["value"])
108
+ ]),
109
+ _: 1
110
+ }),
111
+ t(f, { name: "repeatNewPassword" }, {
112
+ default: u(() => [
113
+ t(_, {
114
+ value: a(o).repeatNewPassword,
115
+ "onUpdate:value": e[2] || (e[2] = (c) => a(o).repeatNewPassword = c),
116
+ "allow-clear": "",
117
+ size: "large",
118
+ placeholder: "请再次输入新密码",
119
+ "visibility-toggle": ""
120
+ }, null, 8, ["value"])
121
+ ]),
122
+ _: 1
123
+ }),
124
+ t(f, null, {
125
+ default: u(() => [
126
+ t(b, {
127
+ type: "primary",
128
+ block: "",
129
+ "h-48px": "",
130
+ "mb-10px": "",
131
+ onClick: R
132
+ }, {
133
+ default: u(() => e[3] || (e[3] = [
134
+ k(" 修改密码 ")
135
+ ])),
136
+ _: 1,
137
+ __: [3]
138
+ }),
139
+ t(b, {
140
+ block: "",
141
+ "h-48px": "",
142
+ onClick: x
143
+ }, {
144
+ default: u(() => e[4] || (e[4] = [
145
+ k(" 返回 ")
146
+ ])),
147
+ _: 1,
148
+ __: [4]
149
+ })
150
+ ]),
151
+ _: 1
152
+ })
153
+ ]),
154
+ _: 1
155
+ }, 8, ["model"])
156
+ ]);
157
+ };
158
+ }
159
+ }), Y = { class: "password-bg" }, Z = {
160
+ flex: "~ auto center",
161
+ "w-full": "",
162
+ "h-0": ""
163
+ }, ee = {
164
+ "h-full": "",
165
+ flex: "~",
166
+ "justify-between": "",
167
+ "items-center": ""
168
+ }, oe = {
169
+ "w-650px": "",
170
+ "mr-20px": ""
171
+ }, te = { class: "change-password-form" }, ae = {
172
+ flex: "~ col center",
173
+ "mb-40px": ""
174
+ }, re = {
175
+ "w-88px": "",
176
+ "h-88px": "",
177
+ flex: "~ center",
178
+ rounded: "50%",
179
+ "mb-15px": ""
180
+ }, se = /* @__PURE__ */ y({
181
+ name: "ChangePassword",
182
+ __name: "index",
183
+ setup(n) {
184
+ const l = P(), s = z({
185
+ get() {
186
+ var m;
187
+ return (m = l.value) == null ? void 0 : m.formState.newPassword;
188
+ },
189
+ set() {
190
+ }
191
+ }), o = A().params.changePassWordToken, d = P(!1);
192
+ return (m, r) => (N(), h("div", Y, [
193
+ p("main", Z, [
194
+ p("div", ee, [
195
+ p("div", oe, [
196
+ t(a(I), {
197
+ modelValue: a(s),
198
+ "onUpdate:modelValue": r[0] || (r[0] = (i) => v(s) ? s.value = i : null),
199
+ validate: a(d),
200
+ "onUpdate:validate": r[1] || (r[1] = (i) => v(d) ? d.value = i : null)
201
+ }, null, 8, ["modelValue", "validate"])
202
+ ]),
203
+ p("div", te, [
204
+ p("div", ae, [
205
+ p("div", re, [
206
+ t(a(D), {
207
+ name: "mima",
208
+ color: "transparent",
209
+ size: 88
210
+ })
211
+ ]),
212
+ r[3] || (r[3] = p("span", {
213
+ text: "18px",
214
+ font: "bold"
215
+ }, " 更改密码 ", -1))
216
+ ]),
217
+ t(Q, {
218
+ ref_key: "ChangePassWordForm",
219
+ ref: l,
220
+ validate: a(d),
221
+ "onUpdate:validate": r[2] || (r[2] = (i) => v(d) ? d.value = i : null),
222
+ token: a(o)
223
+ }, null, 8, ["validate", "token"])
224
+ ])
225
+ ])
226
+ ])
227
+ ]));
228
+ }
229
+ }), ce = /* @__PURE__ */ G(se, [["__scopeId", "data-v-023a7e03"]]);
230
+ export {
231
+ ce as default
232
+ };
@@ -0,0 +1,141 @@
1
+ import { defineComponent as w, toRaw as z, computed as B, ref as N, createElementBlock as _, openBlock as n, createElementVNode as e, Fragment as O, renderList as V, unref as r, normalizeClass as E, createVNode as l, createBlock as x, createCommentVNode as v, toDisplayString as L, withCtx as c, createTextVNode as u } from "vue";
2
+ import { u as R, aR as S, v as m } from "./menu-CC5544p-.js";
3
+ import "pinia-plugin-persistedstate";
4
+ import { useRouter as T } from "vue-router";
5
+ import { _ as k } from "./index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js";
6
+ import { T as j } from "./index-Ckgil96Y.js";
7
+ import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const $ = { class: "change-org" }, D = {
9
+ "w-full": "",
10
+ "h-full": "",
11
+ flex: "~",
12
+ "justify-center": ""
13
+ }, F = {
14
+ "w-620px": "",
15
+ "pt-20vh": ""
16
+ }, U = ["onClick"], q = {
17
+ flex: "~",
18
+ "h-full": ""
19
+ }, G = {
20
+ flex: "~ col",
21
+ "h-full": "",
22
+ "justify-center": "",
23
+ ml: "18px"
24
+ }, H = {
25
+ text: "20px black dark:[#86909C]",
26
+ flex: "~",
27
+ "items-center": ""
28
+ }, J = { "mr-10px": "" }, K = /* @__PURE__ */ w({
29
+ name: "ChangeOrganization",
30
+ __name: "index",
31
+ setup(M) {
32
+ const s = R(), h = T(), b = z(s.user.orgList), f = B(() => b.map((o) => ({
33
+ orgId: o.orgId,
34
+ label: o.orgName,
35
+ ...o
36
+ }))), a = N(-1);
37
+ function C(t) {
38
+ a.value = t;
39
+ }
40
+ function y() {
41
+ h.go(-1);
42
+ }
43
+ async function I() {
44
+ const t = f.value[a.value], o = t == null ? void 0 : t.orgId;
45
+ o ? o === s.user.orgId ? m.error("请避免切换到当前已选组织") : (await s.changeOrg(o), m.success("组织切换成功")) : m.error("请选择要切换的组织");
46
+ }
47
+ return (t, o) => {
48
+ const p = j, g = S;
49
+ return n(), _("div", $, [
50
+ e("div", D, [
51
+ e("div", F, [
52
+ o[4] || (o[4] = e("div", {
53
+ text: "30px",
54
+ font: "bold",
55
+ "mb-40px": "",
56
+ flex: "~",
57
+ items: "center"
58
+ }, " 请选择组织 ", -1)),
59
+ (n(!0), _(O, null, V(r(f), (d, i) => (n(), _("div", {
60
+ key: i,
61
+ onClick: (P) => C(i)
62
+ }, [
63
+ e("div", {
64
+ class: E(["org-item", { active: i === r(a) }])
65
+ }, [
66
+ e("div", q, [
67
+ l(r(k), {
68
+ name: "change-org",
69
+ size: "48px"
70
+ }),
71
+ e("div", G, [
72
+ e("div", H, [
73
+ e("span", J, L(d.label), 1),
74
+ r(s).user.orgId === d.orgId ? (n(), x(p, {
75
+ key: 0,
76
+ color: "blue"
77
+ }, {
78
+ default: c(() => o[0] || (o[0] = [
79
+ u(" 当前使用组织 ")
80
+ ])),
81
+ _: 1,
82
+ __: [0]
83
+ })) : v("", !0),
84
+ d.main ? (n(), x(p, {
85
+ key: 1,
86
+ color: "red"
87
+ }, {
88
+ default: c(() => o[1] || (o[1] = [
89
+ u(" 主组织 ")
90
+ ])),
91
+ _: 1,
92
+ __: [1]
93
+ })) : v("", !0)
94
+ ])
95
+ ])
96
+ ]),
97
+ e("div", null, [
98
+ l(r(k), {
99
+ class: "arrow",
100
+ name: "i-iconamoon-arrow-right-6-circle-duotone",
101
+ color: i === r(a) ? "#1677ff" : "#8E97A3",
102
+ size: "22px"
103
+ }, null, 8, ["color"])
104
+ ])
105
+ ], 2)
106
+ ], 8, U))), 128)),
107
+ e("div", null, [
108
+ l(g, {
109
+ type: "primary",
110
+ block: "",
111
+ "h-40px": "",
112
+ "mb-15px": "",
113
+ onClick: I
114
+ }, {
115
+ default: c(() => o[2] || (o[2] = [
116
+ u(" 确定 ")
117
+ ])),
118
+ _: 1,
119
+ __: [2]
120
+ }),
121
+ l(g, {
122
+ block: "",
123
+ "h-40px": "",
124
+ onClick: y
125
+ }, {
126
+ default: c(() => o[3] || (o[3] = [
127
+ u(" 返回 ")
128
+ ])),
129
+ _: 1,
130
+ __: [3]
131
+ })
132
+ ])
133
+ ])
134
+ ])
135
+ ]);
136
+ };
137
+ }
138
+ }), to = /* @__PURE__ */ A(K, [["__scopeId", "data-v-9b12754a"]]);
139
+ export {
140
+ to as default
141
+ };