@pubinfo/core 2.0.0-beta.25 → 2.0.0-beta.27
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/{AppSetting-DodCOb_z.js → AppSetting-8APd2n5W.js} +16 -16
- package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-CMOw56Mk.js → HCheckList.vue_vue_type_script_setup_true_lang-xHHNH-Do.js} +2 -2
- package/dist/{PreferencesContent-Dic24ifo.js → PreferencesContent-B6v1Y85P.js} +86 -83
- package/dist/{SettingBreadcrumb-DWpbGcSy.js → SettingBreadcrumb-DRbL0ad_.js} +2 -2
- package/dist/{SettingCopyright-CIY0pFMT.js → SettingCopyright-BQF1UDPx.js} +1 -1
- package/dist/{SettingEnableTransition-f0xuLIrZ.js → SettingEnableTransition-COQvH_bE.js} +1 -1
- package/dist/{SettingHome-BFtJsJsN.js → SettingHome-BL-JRz6C.js} +1 -1
- package/dist/{SettingMenu-DuPD3iSG.js → SettingMenu-CL08Xnqj.js} +2 -2
- package/dist/{SettingMode-nZ65qSWK.js → SettingMode-CHFQfbwC.js} +1 -1
- package/dist/{SettingNavSearch-CrarPE7d.js → SettingNavSearch-D3EfJLm4.js} +1 -1
- package/dist/{SettingOther-BddvExCF.js → SettingOther-D8vWJBqB.js} +1 -1
- package/dist/{SettingPage-C6Na8HEN.js → SettingPage-C6834qKt.js} +1 -1
- package/dist/{SettingTabbar-nuwfRRaE.js → SettingTabbar-C4Nk7PaM.js} +2 -2
- package/dist/SettingThemes-CAiwgt41.js +145 -0
- package/dist/{SettingToolbar-BdizZaGF.js → SettingToolbar-Bue6Bsao.js} +1 -1
- package/dist/{SettingTopbar-D5BX5vS_.js → SettingTopbar-CklZW6nz.js} +2 -2
- package/dist/{SettingWidthMode-CHrLW3gs.js → SettingWidthMode-Ba5CjpXS.js} +1 -1
- package/dist/{TopThinMode-CttqTmaT.js → TopThinMode-BKgHAbKj.js} +1 -1
- package/dist/{_...all_--d4S-8dL.js → _...all_-CiLs5zE0.js} +1 -1
- package/dist/{colors-BOKDjZQI.js → colors-ehvAxkYC.js} +1 -1
- package/dist/index-64V9RiCt.js +240 -0
- package/dist/{index-Cf8yM5Cv.js → index-BK4luc55.js} +4 -4
- package/dist/index-BLvVzLOl.js +147 -0
- package/dist/{index-DORROKh7.js → index-BjAXx4BA.js} +3 -3
- package/dist/{index-dPREgrj8.js → index-C5TqLQ-T.js} +12 -12
- package/dist/{index-Bz9lh14R.js → index-CAjh59MN.js} +2 -2
- package/dist/{index-B0i20hau.js → index-CqQ-P_1q.js} +4 -4
- package/dist/index-DTsHMiQx.js +12711 -0
- package/dist/{index-DltN2SCZ.js → index-hjeR7S9d.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/{menu-Ddxel9ck.js → menu-D3oKigWX.js} +5 -5
- package/dist/pages/system/change-organization/index.vue.d.ts +1 -1
- package/dist/pages/system/change-password/index.vue.d.ts +1 -1
- package/dist/{pick-DEgsMKda.js → pick-Cku6R96i.js} +1 -1
- package/dist/request.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-Bmtn9Oo4.js → toolbar-collapse-BhNN4H7Y.js} +419 -387
- package/package.json +3 -3
- package/src/layout/components/SettingBar/components/SettingThemes.vue +7 -5
- package/src/layout/components/Tools/Preferences/PreferencesContent.vue +2 -1
- package/src/layout/components/Tools/index.vue +1 -8
- package/src/pages/system/change-organization/index.vue +73 -65
- package/src/pages/system/change-password/index.vue +44 -36
- package/src/pages/system/not-permission/index.vue +2 -2
- package/dist/SettingThemes-DBq6j0zt.js +0 -144
- package/dist/index-CC3GE307.js +0 -137
- package/dist/index-Cygbc-66.js +0 -230
- package/dist/index-D0CMv5FJ.js +0 -12737
- package/src/layout/components/Tools/I18nSelector.vue +0 -52
- package/src/pages/system/change-password/page.vue +0 -58
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { _ as T } from "./HDivider-DgXBhPr0.js";
|
|
2
|
+
import { markRaw as b, createElementBlock as r, openBlock as n, createElementVNode as s, defineComponent as k, useModel as V, withDirectives as S, createStaticVNode as $, vModelCheckbox as w, toRef as D, computed as B, createBlock as N, withCtx as j, createVNode as h, unref as o, isRef as L, Fragment as g, renderList as f, normalizeClass as M, normalizeStyle as v, toDisplayString as z } from "vue";
|
|
3
|
+
import "./menu-D3oKigWX.js";
|
|
4
|
+
import "pinia-plugin-persistedstate";
|
|
5
|
+
import { d as F, u as R } from "./index-DTsHMiQx.js";
|
|
6
|
+
import { getThemes as A } from "@pubinfo/config/themes";
|
|
7
|
+
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const E = {
|
|
9
|
+
viewBox: "-5 -2 24 24",
|
|
10
|
+
width: "1.2em",
|
|
11
|
+
height: "1.2em"
|
|
12
|
+
};
|
|
13
|
+
function H(p, e) {
|
|
14
|
+
return n(), r("svg", E, e[0] || (e[0] = [
|
|
15
|
+
s("path", {
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
d: "M3 0h8a3 3 0 0 1 3 3v15a2 2 0 0 1-3.348 1.477L7.674 16.76a1 1 0 0 0-1.348 0l-2.978 2.717A2 2 0 0 1 0 18V3a3 3 0 0 1 3-3"
|
|
18
|
+
}, null, -1)
|
|
19
|
+
]));
|
|
20
|
+
}
|
|
21
|
+
const I = b({ name: "jam-bookmark-f", render: H }), U = {
|
|
22
|
+
viewBox: "0 0 16 16",
|
|
23
|
+
width: "1.2em",
|
|
24
|
+
height: "1.2em"
|
|
25
|
+
};
|
|
26
|
+
function W(p, e) {
|
|
27
|
+
return n(), r("svg", U, e[0] || (e[0] = [
|
|
28
|
+
s("path", {
|
|
29
|
+
fill: "currentColor",
|
|
30
|
+
"fill-rule": "evenodd",
|
|
31
|
+
d: "M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m3.78-9.72a.75.75 0 0 0-1.06-1.06L6.75 9.19L5.53 7.97a.75.75 0 0 0-1.06 1.06l1.75 1.75a.75.75 0 0 0 1.06 0z",
|
|
32
|
+
"clip-rule": "evenodd"
|
|
33
|
+
}, null, -1)
|
|
34
|
+
]));
|
|
35
|
+
}
|
|
36
|
+
const J = b({ name: "pajamas-check-circle-filled", render: W }), O = {
|
|
37
|
+
flex: "",
|
|
38
|
+
"justify-center": "",
|
|
39
|
+
"pb-15px": ""
|
|
40
|
+
}, P = { class: "toggleWrapper" }, q = /* @__PURE__ */ k({
|
|
41
|
+
name: "DayNightToggle",
|
|
42
|
+
__name: "DayNightToggle",
|
|
43
|
+
props: {
|
|
44
|
+
modelValue: {},
|
|
45
|
+
modelModifiers: {}
|
|
46
|
+
},
|
|
47
|
+
emits: ["update:modelValue"],
|
|
48
|
+
setup(p) {
|
|
49
|
+
const e = V(p, "modelValue");
|
|
50
|
+
return (_, l) => (n(), r("div", O, [
|
|
51
|
+
s("div", P, [
|
|
52
|
+
S(s("input", {
|
|
53
|
+
id: "dn",
|
|
54
|
+
"onUpdate:modelValue": l[0] || (l[0] = (m) => e.value = m),
|
|
55
|
+
type: "checkbox",
|
|
56
|
+
class: "dn"
|
|
57
|
+
}, null, 512), [
|
|
58
|
+
[w, e.value]
|
|
59
|
+
]),
|
|
60
|
+
l[1] || (l[1] = $('<label for="dn" class="toggle" data-v-d927ea22><span class="toggle__handler" data-v-d927ea22><span class="crater crater--1" data-v-d927ea22></span><span class="crater crater--2" data-v-d927ea22></span><span class="crater crater--3" data-v-d927ea22></span></span><span class="star star--1" data-v-d927ea22></span><span class="star star--2" data-v-d927ea22></span><span class="star star--3" data-v-d927ea22></span><span class="star star--4" data-v-d927ea22></span><span class="star star--5" data-v-d927ea22></span><span class="star star--6" data-v-d927ea22></span></label>', 1))
|
|
61
|
+
])
|
|
62
|
+
]));
|
|
63
|
+
}
|
|
64
|
+
}), G = /* @__PURE__ */ x(q, [["__scopeId", "data-v-d927ea22"]]), K = { class: "themes" }, Q = ["onClick"], X = {
|
|
65
|
+
class: "theme-type",
|
|
66
|
+
flex: "",
|
|
67
|
+
"items-center": ""
|
|
68
|
+
}, Y = { class: "theme-point" }, Z = { class: "explosion" }, ee = /* @__PURE__ */ k({
|
|
69
|
+
name: "SettingThemes",
|
|
70
|
+
__name: "SettingThemes",
|
|
71
|
+
setup(p) {
|
|
72
|
+
const { isDark: e } = F(), { settingsStore: _ } = R(), l = D(_.settings, "app"), m = [
|
|
73
|
+
"--ui-primary",
|
|
74
|
+
"--ui-text",
|
|
75
|
+
"--g-bg",
|
|
76
|
+
"--g-header-bg",
|
|
77
|
+
"--g-main-sidebar-bg",
|
|
78
|
+
"--g-sub-sidebar-bg"
|
|
79
|
+
], y = B(() => {
|
|
80
|
+
const c = A();
|
|
81
|
+
return Object.keys(c).map((t) => {
|
|
82
|
+
const d = c[t], a = m.map((u) => d[u].startsWith("#") ? d[u] : `rgb(${d[u]})`), i = c[t].label;
|
|
83
|
+
return {
|
|
84
|
+
label: t,
|
|
85
|
+
value: d,
|
|
86
|
+
colors: a,
|
|
87
|
+
name: i
|
|
88
|
+
};
|
|
89
|
+
}).filter(
|
|
90
|
+
(t) => t.value["color-scheme"] === l.value.colorScheme
|
|
91
|
+
);
|
|
92
|
+
});
|
|
93
|
+
function C(c) {
|
|
94
|
+
const t = c.label;
|
|
95
|
+
e.value ? l.value.darkTheme = t : l.value.lightTheme = t;
|
|
96
|
+
}
|
|
97
|
+
return (c, t) => {
|
|
98
|
+
const d = T;
|
|
99
|
+
return n(), N(d, { title: "颜色主题风格" }, {
|
|
100
|
+
default: j(() => [
|
|
101
|
+
s("div", null, [
|
|
102
|
+
h(G, {
|
|
103
|
+
modelValue: o(e),
|
|
104
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => L(e) ? e.value = a : null)
|
|
105
|
+
}, null, 8, ["modelValue"])
|
|
106
|
+
]),
|
|
107
|
+
s("div", K, [
|
|
108
|
+
(n(!0), r(g, null, f(o(y), (a) => (n(), r("div", {
|
|
109
|
+
key: a.label,
|
|
110
|
+
class: M(["theme", { active: o(e) ? o(l).darkTheme === a.label : o(l).lightTheme === a.label }]),
|
|
111
|
+
onClick: (i) => C(a)
|
|
112
|
+
}, [
|
|
113
|
+
s("div", X, [
|
|
114
|
+
s("span", {
|
|
115
|
+
style: v({ color: a.colors.at(0) }),
|
|
116
|
+
"mr-5px": ""
|
|
117
|
+
}, [
|
|
118
|
+
h(o(I))
|
|
119
|
+
], 4),
|
|
120
|
+
s("span", {
|
|
121
|
+
style: v({ color: a.colors.at(0) }),
|
|
122
|
+
"text-sm": ""
|
|
123
|
+
}, z(a.name || a.label), 5)
|
|
124
|
+
]),
|
|
125
|
+
s("div", Y, [
|
|
126
|
+
(n(!0), r(g, null, f(a.colors, (i) => (n(), r("div", {
|
|
127
|
+
key: i,
|
|
128
|
+
class: "point",
|
|
129
|
+
style: v({ backgroundColor: i })
|
|
130
|
+
}, null, 4))), 128))
|
|
131
|
+
]),
|
|
132
|
+
s("div", Z, [
|
|
133
|
+
h(o(J))
|
|
134
|
+
])
|
|
135
|
+
], 10, Q))), 128))
|
|
136
|
+
])
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
}), de = /* @__PURE__ */ x(ee, [["__scopeId", "data-v-f75d0f5f"]]);
|
|
143
|
+
export {
|
|
144
|
+
de as default
|
|
145
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as b } from "./HDivider-DgXBhPr0.js";
|
|
2
2
|
import { _ as V } from "./HToggle-Cd71WKvG.js";
|
|
3
|
-
import { u as f, c as g } from "./index-
|
|
3
|
+
import { u as f, c as g } from "./index-DTsHMiQx.js";
|
|
4
4
|
import { defineComponent as c, toRef as v, createBlock as x, openBlock as _, withCtx as i, createElementVNode as s, createElementBlock as C, createCommentVNode as N, createVNode as o, createTextVNode as m, unref as t } from "vue";
|
|
5
5
|
import { R as u } from "./question-line-CfkciTFq.js";
|
|
6
6
|
const R = { class: "setting-item" }, S = { class: "label" }, T = { class: "setting-item" }, U = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as u } from "./HDivider-DgXBhPr0.js";
|
|
2
2
|
import { _ as c } from "./HToggle-Cd71WKvG.js";
|
|
3
|
-
import { u as b, c as f } from "./index-
|
|
4
|
-
import { _ as g } from "./HCheckList.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as b, c as f } from "./index-DTsHMiQx.js";
|
|
4
|
+
import { _ as g } from "./HCheckList.vue_vue_type_script_setup_true_lang-xHHNH-Do.js";
|
|
5
5
|
import { defineComponent as T, toRefs as V, createBlock as v, openBlock as x, withCtx as a, createElementVNode as n, createVNode as s, unref as t, createTextVNode as k } from "vue";
|
|
6
6
|
import { R as C } from "./question-line-CfkciTFq.js";
|
|
7
7
|
const H = { class: "setting-item" }, w = { class: "setting-item" }, N = { class: "label" }, D = /* @__PURE__ */ T({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as h } from "./HDivider-DgXBhPr0.js";
|
|
2
|
-
import { u as v, c as g } from "./index-
|
|
2
|
+
import { u as v, c as g } from "./index-DTsHMiQx.js";
|
|
3
3
|
import { defineComponent as k, toRef as w, reactive as x, createBlock as a, openBlock as t, withCtx as n, createElementVNode as s, createElementBlock as d, Fragment as r, renderList as b, unref as c, normalizeClass as C, createCommentVNode as M, createVNode as l } from "vue";
|
|
4
4
|
import { E, a as y } from "./right-Bfe2p1o0.js";
|
|
5
5
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as a, ref as l, createElementBlock as m, openBlock as i, withModifiers as c, createVNode as d, normalizeClass as f, unref as e } from "vue";
|
|
2
|
-
import { u as p, _ } from "./index-
|
|
2
|
+
import { u as p, _ } from "./index-DTsHMiQx.js";
|
|
3
3
|
import { useRoute as h } from "vue-router";
|
|
4
4
|
const R = /* @__PURE__ */ a({
|
|
5
5
|
name: "TopThinMode",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as u } from "./HButton.vue_vue_type_script_setup_true_lang-CYAzn9Mg.js";
|
|
2
2
|
import { defineComponent as c, ref as f, onMounted as d, createElementBlock as m, openBlock as p, createElementVNode as o, createVNode as _, withCtx as x, createTextVNode as v, toDisplayString as w, unref as g } from "vue";
|
|
3
|
-
import { e as b, a as k } from "./menu-
|
|
3
|
+
import { e as b, a as k } from "./menu-D3oKigWX.js";
|
|
4
4
|
import "pinia-plugin-persistedstate";
|
|
5
5
|
import { useRoute as N, useRouter as S, onBeforeRouteLeave as h } from "vue-router";
|
|
6
6
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a6 as t } from "./menu-
|
|
1
|
+
import { a6 as t } from "./menu-D3oKigWX.js";
|
|
2
2
|
const n = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
|
|
3
3
|
function C(e, s) {
|
|
4
4
|
return n.reduce((o, r) => {
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { P as V, _ as R, a as F, b as T, c as j, d as z, e as B, f as S, g as W, h as M } from "./toolbar-collapse-BhNN4H7Y.js";
|
|
2
|
+
import { defineComponent as N, mergeModels as $, useModel as I, reactive as O, ref as b, createElementBlock as q, openBlock as E, createVNode as t, unref as s, withCtx as _, createTextVNode as h, nextTick as D, computed as J, createBlock as Q, createElementVNode as u, isRef as P } from "vue";
|
|
3
|
+
import { by as X, bz as A, u as G, aQ as H, v as K } from "./menu-D3oKigWX.js";
|
|
4
|
+
import "pinia-plugin-persistedstate";
|
|
5
|
+
import { useRouter as L, useRoute as Y } from "vue-router";
|
|
6
|
+
import { P as Z } from "./index-CqQ-P_1q.js";
|
|
7
|
+
import { J as ee, _ as se, M as oe } from "./index-hjeR7S9d.js";
|
|
8
|
+
import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
var ae = "Expected a function";
|
|
10
|
+
function re(l, i, r) {
|
|
11
|
+
if (typeof l != "function")
|
|
12
|
+
throw new TypeError(ae);
|
|
13
|
+
return setTimeout(function() {
|
|
14
|
+
l.apply(void 0, r);
|
|
15
|
+
}, i);
|
|
16
|
+
}
|
|
17
|
+
var ne = X(function(l, i, r) {
|
|
18
|
+
return re(l, A(i) || 0, r);
|
|
19
|
+
});
|
|
20
|
+
const le = /* @__PURE__ */ N({
|
|
21
|
+
name: "ChangePasswordForm",
|
|
22
|
+
__name: "index",
|
|
23
|
+
props: /* @__PURE__ */ $({
|
|
24
|
+
token: {}
|
|
25
|
+
}, {
|
|
26
|
+
validate: { type: Boolean, default: !1 },
|
|
27
|
+
validateModifiers: {}
|
|
28
|
+
}),
|
|
29
|
+
emits: ["update:validate"],
|
|
30
|
+
setup(l, { expose: i }) {
|
|
31
|
+
const r = l, x = I(l, "validate"), o = O({
|
|
32
|
+
password: "",
|
|
33
|
+
newPassword: "",
|
|
34
|
+
repeatNewPassword: ""
|
|
35
|
+
}), d = L(), f = b(), c = G();
|
|
36
|
+
async function a(p, 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 n(p, e) {
|
|
43
|
+
if (await D(), !e)
|
|
44
|
+
return Promise.reject(new Error("请再次输入新密码"));
|
|
45
|
+
if (!x.value)
|
|
46
|
+
return Promise.reject(new Error("密码安全校验不通过"));
|
|
47
|
+
}
|
|
48
|
+
const w = {
|
|
49
|
+
password: [{
|
|
50
|
+
required: !0,
|
|
51
|
+
whitespace: !0,
|
|
52
|
+
message: "请输入密码"
|
|
53
|
+
}],
|
|
54
|
+
newPassword: [{ validator: n }],
|
|
55
|
+
repeatNewPassword: [{ validator: a }]
|
|
56
|
+
};
|
|
57
|
+
async function C() {
|
|
58
|
+
var p;
|
|
59
|
+
try {
|
|
60
|
+
await ((p = f.value) == null ? void 0 : p.validate()), await c.changeUserPassword({
|
|
61
|
+
oldPassword: o.password,
|
|
62
|
+
newPassword: o.newPassword,
|
|
63
|
+
token: r.token
|
|
64
|
+
}), K.success("密码修改成功"), ne(() => {
|
|
65
|
+
k();
|
|
66
|
+
}, 800);
|
|
67
|
+
} catch {
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function k() {
|
|
71
|
+
d.go(-1);
|
|
72
|
+
}
|
|
73
|
+
return i({
|
|
74
|
+
formState: o
|
|
75
|
+
}), (p, e) => {
|
|
76
|
+
const g = oe, v = se, y = H, U = ee;
|
|
77
|
+
return E(), q("div", null, [
|
|
78
|
+
t(U, {
|
|
79
|
+
ref_key: "changePasswordForm",
|
|
80
|
+
ref: f,
|
|
81
|
+
model: s(o),
|
|
82
|
+
rules: w
|
|
83
|
+
}, {
|
|
84
|
+
default: _(() => [
|
|
85
|
+
t(v, { name: "password" }, {
|
|
86
|
+
default: _(() => [
|
|
87
|
+
t(g, {
|
|
88
|
+
value: s(o).password,
|
|
89
|
+
"onUpdate:value": e[0] || (e[0] = (m) => s(o).password = m),
|
|
90
|
+
"allow-clear": "",
|
|
91
|
+
size: "large",
|
|
92
|
+
placeholder: "请输入旧密码",
|
|
93
|
+
"visibility-toggle": ""
|
|
94
|
+
}, null, 8, ["value"])
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}),
|
|
98
|
+
t(v, { name: "newPassword" }, {
|
|
99
|
+
default: _(() => [
|
|
100
|
+
t(g, {
|
|
101
|
+
value: s(o).newPassword,
|
|
102
|
+
"onUpdate:value": e[1] || (e[1] = (m) => s(o).newPassword = m),
|
|
103
|
+
"allow-clear": "",
|
|
104
|
+
size: "large",
|
|
105
|
+
placeholder: "请输入新密码",
|
|
106
|
+
"visibility-toggle": ""
|
|
107
|
+
}, null, 8, ["value"])
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
}),
|
|
111
|
+
t(v, { name: "repeatNewPassword" }, {
|
|
112
|
+
default: _(() => [
|
|
113
|
+
t(g, {
|
|
114
|
+
value: s(o).repeatNewPassword,
|
|
115
|
+
"onUpdate:value": e[2] || (e[2] = (m) => s(o).repeatNewPassword = m),
|
|
116
|
+
"allow-clear": "",
|
|
117
|
+
size: "large",
|
|
118
|
+
placeholder: "请再次输入新密码",
|
|
119
|
+
"visibility-toggle": ""
|
|
120
|
+
}, null, 8, ["value"])
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}),
|
|
124
|
+
t(v, null, {
|
|
125
|
+
default: _(() => [
|
|
126
|
+
t(y, {
|
|
127
|
+
type: "primary",
|
|
128
|
+
block: "",
|
|
129
|
+
"h-48px": "",
|
|
130
|
+
"mb-10px": "",
|
|
131
|
+
onClick: C
|
|
132
|
+
}, {
|
|
133
|
+
default: _(() => e[3] || (e[3] = [
|
|
134
|
+
h(" 修改密码 ")
|
|
135
|
+
])),
|
|
136
|
+
_: 1
|
|
137
|
+
}),
|
|
138
|
+
t(y, {
|
|
139
|
+
block: "",
|
|
140
|
+
"h-48px": "",
|
|
141
|
+
onClick: k
|
|
142
|
+
}, {
|
|
143
|
+
default: _(() => e[4] || (e[4] = [
|
|
144
|
+
h(" 返回 ")
|
|
145
|
+
])),
|
|
146
|
+
_: 1
|
|
147
|
+
})
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
})
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
}, 8, ["model"])
|
|
154
|
+
]);
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
}), ie = { class: "password-bg" }, de = {
|
|
158
|
+
flex: "~ auto center",
|
|
159
|
+
"w-full": "",
|
|
160
|
+
"h-0": ""
|
|
161
|
+
}, ue = {
|
|
162
|
+
"h-full": "",
|
|
163
|
+
flex: "~",
|
|
164
|
+
"justify-between": "",
|
|
165
|
+
"items-center": ""
|
|
166
|
+
}, _e = {
|
|
167
|
+
"w-650px": "",
|
|
168
|
+
"mr-20px": ""
|
|
169
|
+
}, ce = { class: "change-password-form" }, pe = {
|
|
170
|
+
flex: "~ col center",
|
|
171
|
+
"mb-40px": ""
|
|
172
|
+
}, me = {
|
|
173
|
+
"w-88px": "",
|
|
174
|
+
"h-88px": "",
|
|
175
|
+
flex: "~ center",
|
|
176
|
+
rounded: "50%",
|
|
177
|
+
"mb-15px": ""
|
|
178
|
+
}, fe = /* @__PURE__ */ N({
|
|
179
|
+
name: "ChangePassword",
|
|
180
|
+
__name: "index",
|
|
181
|
+
setup(l) {
|
|
182
|
+
const i = b(), r = J({
|
|
183
|
+
get() {
|
|
184
|
+
var c;
|
|
185
|
+
return (c = i.value) == null ? void 0 : c.formState.newPassword;
|
|
186
|
+
},
|
|
187
|
+
set() {
|
|
188
|
+
}
|
|
189
|
+
}), o = Y().params.changePassWordToken, d = b(!1);
|
|
190
|
+
function f(c) {
|
|
191
|
+
var w;
|
|
192
|
+
const a = /* @__PURE__ */ Object.assign({ "../../../assets/icons/403.svg": M, "../../../assets/icons/403_dark.svg": W, "../../../assets/icons/404.svg": S, "../../../assets/icons/404_dark.svg": B, "../../../assets/icons/change-org.svg": z, "../../../assets/icons/favorites.svg": j, "../../../assets/icons/mima.svg": T, "../../../assets/icons/toolbar-collapse.svg": F }), n = `../../../assets/icons/${c}.svg`;
|
|
193
|
+
return (w = a[n]) == null ? void 0 : w.default;
|
|
194
|
+
}
|
|
195
|
+
return (c, a) => (E(), Q(s(V), { "load-icon": f }, {
|
|
196
|
+
default: _(() => [
|
|
197
|
+
u("div", ie, [
|
|
198
|
+
u("main", de, [
|
|
199
|
+
u("div", ue, [
|
|
200
|
+
u("div", _e, [
|
|
201
|
+
t(s(Z), {
|
|
202
|
+
modelValue: s(r),
|
|
203
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => P(r) ? r.value = n : null),
|
|
204
|
+
validate: s(d),
|
|
205
|
+
"onUpdate:validate": a[1] || (a[1] = (n) => P(d) ? d.value = n : null)
|
|
206
|
+
}, null, 8, ["modelValue", "validate"])
|
|
207
|
+
]),
|
|
208
|
+
u("div", ce, [
|
|
209
|
+
u("div", pe, [
|
|
210
|
+
u("div", me, [
|
|
211
|
+
t(s(R), {
|
|
212
|
+
name: "mima",
|
|
213
|
+
color: "transparent",
|
|
214
|
+
size: 88
|
|
215
|
+
})
|
|
216
|
+
]),
|
|
217
|
+
a[3] || (a[3] = u("span", {
|
|
218
|
+
text: "18px",
|
|
219
|
+
font: "bold"
|
|
220
|
+
}, " 更改密码 ", -1))
|
|
221
|
+
]),
|
|
222
|
+
t(le, {
|
|
223
|
+
ref_key: "ChangePassWordForm",
|
|
224
|
+
ref: i,
|
|
225
|
+
validate: s(d),
|
|
226
|
+
"onUpdate:validate": a[2] || (a[2] = (n) => P(d) ? d.value = n : null),
|
|
227
|
+
token: s(o)
|
|
228
|
+
}, null, 8, ["validate", "token"])
|
|
229
|
+
])
|
|
230
|
+
])
|
|
231
|
+
])
|
|
232
|
+
])
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
}));
|
|
236
|
+
}
|
|
237
|
+
}), he = /* @__PURE__ */ te(fe, [["__scopeId", "data-v-ea9fbca0"]]);
|
|
238
|
+
export {
|
|
239
|
+
he as default
|
|
240
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createVNode as p, defineComponent as pe, computed as I, ref as ne, cloneVNode as Uo, isVNode as Rt, inject as qe, provide as Qe, onUnmounted as tl, shallowRef as re, watch as we, watchEffect as Fe, onMounted as Ze, createTextVNode as An, Fragment as nt, onBeforeUnmount as at, isRef as Pr, reactive as Et, toRefs as Qn, toRaw as kt, nextTick as Ct, onUpdated as nl, unref as Tt, toRef as Be, getCurrentInstance as ol, Transition as ed, withDirectives as td, vShow as nd, Teleport as od, useAttrs as xv, onBeforeUpdate as ld, getCurrentScope as Cv, onScopeDispose as wv, onActivated as vi, onBeforeMount as Pv, Text as ad, mergeProps as Vt, Comment as Iv, resolveDynamicComponent as Vs, createElementBlock as Ov, openBlock as Dv, createElementVNode as Tv, withCtx as Ls } from "vue";
|
|
2
|
-
import { a0 as Wa, a1 as rd, a2 as Ev, a3 as kv, a4 as vt, a5 as Ye, a6 as y, a7 as Ve, a8 as X, a9 as L, aa as de, ab as It, ac as No, ad as ge, ae as st, af as Ot, ag as jt, ah as on, ai as et, aj as id, ak as nn, al as Ir, am as tt, an as hi, ao as na, ap as sd, aq as ht, ar as ud, as as ot, at as rn, au as lt, av as oa, aw as yt, ax as la, ay as ze, az as Ue, aA as Ro, aB as Fn, aC as Or, aD as mi, aE as Mv, aF as xe, aG as Xe, aH as Ee, aI as Ge, aJ as an, aK as Nv, aL as ut, aM as Rv, aN as _v, aO as cd, aP as Io, aQ as wn, aR as Bv, aS as Ks, aT as Rn, aU as Hn, aV as Kt, aW as eo, h as Ln, aX as dd, aY as it, aZ as Un, a_ as aa, a$ as Vo, b0 as ra, b1 as Av, b2 as Fv, b3 as Ya, b4 as Vn, b5 as Hv, b6 as io, b7 as ia, b8 as fd, b9 as zs, ba as Vv, bb as kn, bc as Lv, bd as Kv, be as Kl, bf as zv, bg as jv, bh as Wv, bi as Dr, bj as pd, bk as Ut, bl as Yv, bm as Gv, bn as Xv, bo as Uv, bp as js, bq as qv, br as Ws, bs as Qv, bt as to, bu as gi, bv as Jv, bw as Zv, bx as eh } from "./menu-
|
|
3
|
-
import { a as th, T as ll, B as sa, R as no, S as vd, u as Mt, F as Pn, g as so, b as fn, c as nh, d as oh, r as hd, e as lh, y as ua, f as md, h as gd, i as ca, j as al, k as qo, l as bi, C as ah, m as yi, n as bd, o as rh, p as yd, N as Ys, q as da, s as Gs, t as ih, v as sh, A as uh, w as ch, x as dh, z as fh, D as Xs, I as Sd, E as ph, G as vh, _ as $d, H as hh, J as mh, K as gh, L as bh } from "./index-
|
|
2
|
+
import { a0 as Wa, a1 as rd, a2 as Ev, a3 as kv, a4 as vt, a5 as Ye, a6 as y, a7 as Ve, a8 as X, a9 as L, aa as de, ab as It, ac as No, ad as ge, ae as st, af as Ot, ag as jt, ah as on, ai as et, aj as id, ak as nn, al as Ir, am as tt, an as hi, ao as na, ap as sd, aq as ht, ar as ud, as as ot, at as rn, au as lt, av as oa, aw as yt, ax as la, ay as ze, az as Ue, aA as Ro, aB as Fn, aC as Or, aD as mi, aE as Mv, aF as xe, aG as Xe, aH as Ee, aI as Ge, aJ as an, aK as Nv, aL as ut, aM as Rv, aN as _v, aO as cd, aP as Io, aQ as wn, aR as Bv, aS as Ks, aT as Rn, aU as Hn, aV as Kt, aW as eo, h as Ln, aX as dd, aY as it, aZ as Un, a_ as aa, a$ as Vo, b0 as ra, b1 as Av, b2 as Fv, b3 as Ya, b4 as Vn, b5 as Hv, b6 as io, b7 as ia, b8 as fd, b9 as zs, ba as Vv, bb as kn, bc as Lv, bd as Kv, be as Kl, bf as zv, bg as jv, bh as Wv, bi as Dr, bj as pd, bk as Ut, bl as Yv, bm as Gv, bn as Xv, bo as Uv, bp as js, bq as qv, br as Ws, bs as Qv, bt as to, bu as gi, bv as Jv, bw as Zv, bx as eh } from "./menu-D3oKigWX.js";
|
|
3
|
+
import { a as th, T as ll, B as sa, R as no, S as vd, u as Mt, F as Pn, g as so, b as fn, c as nh, d as oh, r as hd, e as lh, y as ua, f as md, h as gd, i as ca, j as al, k as qo, l as bi, C as ah, m as yi, n as bd, o as rh, p as yd, N as Ys, q as da, s as Gs, t as ih, v as sh, A as uh, w as ch, x as dh, z as fh, D as Xs, I as Sd, E as ph, G as vh, _ as $d, H as hh, J as mh, K as gh, L as bh } from "./index-hjeR7S9d.js";
|
|
4
4
|
import { onMounted as yh, nextTick as xd, isRef as Sh, ref as Cd, getCurrentInstance as Si, unref as $h, getCurrentScope as xh, onScopeDispose as Ch, watch as Tr, computed as wh, customRef as Ph, onUpdated as Ih, isVue2 as Oh } from "vue-demi";
|
|
5
|
-
import { p as $i } from "./pick-
|
|
6
|
-
import { T as Dh } from "./index-
|
|
5
|
+
import { p as $i } from "./pick-Cku6R96i.js";
|
|
6
|
+
import { T as Dh } from "./index-CAjh59MN.js";
|
|
7
7
|
function Th() {
|
|
8
8
|
}
|
|
9
9
|
function Eh(e) {
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { P as z, _ as p, a as B, b as N, c as O, d as V, e as j, f as E, g as L, h as P } from "./toolbar-collapse-BhNN4H7Y.js";
|
|
2
|
+
import { defineComponent as S, toRaw as T, computed as $, ref as A, createBlock as f, openBlock as r, unref as s, withCtx as a, createElementVNode as e, createElementBlock as b, Fragment as R, renderList as D, normalizeClass as F, createVNode as d, createCommentVNode as x, toDisplayString as Q, createTextVNode as u } from "vue";
|
|
3
|
+
import { u as U, aQ as q, v as m } from "./menu-D3oKigWX.js";
|
|
4
|
+
import "pinia-plugin-persistedstate";
|
|
5
|
+
import { useRouter as G } from "vue-router";
|
|
6
|
+
import { T as H } from "./index-CAjh59MN.js";
|
|
7
|
+
import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const K = { class: "change-org" }, M = {
|
|
9
|
+
"w-full": "",
|
|
10
|
+
"h-full": "",
|
|
11
|
+
flex: "~",
|
|
12
|
+
"justify-center": ""
|
|
13
|
+
}, W = {
|
|
14
|
+
"w-620px": "",
|
|
15
|
+
"pt-20vh": ""
|
|
16
|
+
}, X = ["onClick"], Y = {
|
|
17
|
+
flex: "~",
|
|
18
|
+
"h-full": ""
|
|
19
|
+
}, Z = {
|
|
20
|
+
flex: "~ col",
|
|
21
|
+
"h-full": "",
|
|
22
|
+
"justify-center": "",
|
|
23
|
+
ml: "18px"
|
|
24
|
+
}, oo = {
|
|
25
|
+
text: "20px black dark:[#86909C]",
|
|
26
|
+
flex: "~",
|
|
27
|
+
"items-center": ""
|
|
28
|
+
}, eo = { "mr-10px": "" }, to = /* @__PURE__ */ S({
|
|
29
|
+
name: "ChangeOrganization",
|
|
30
|
+
__name: "index",
|
|
31
|
+
setup(so) {
|
|
32
|
+
const i = U(), k = G(), h = T(i.user.orgList), v = $(() => h.map((o) => ({
|
|
33
|
+
orgId: o.orgId,
|
|
34
|
+
label: o.orgName,
|
|
35
|
+
...o
|
|
36
|
+
}))), l = A(-1);
|
|
37
|
+
function C(t) {
|
|
38
|
+
l.value = t;
|
|
39
|
+
}
|
|
40
|
+
function I() {
|
|
41
|
+
k.go(-1);
|
|
42
|
+
}
|
|
43
|
+
async function y() {
|
|
44
|
+
const t = v.value[l.value], o = t == null ? void 0 : t.orgId;
|
|
45
|
+
o ? o === i.user.orgId ? m.error("请避免切换到当前已选组织") : (await i.changeOrg(o), m.success("组织切换成功")) : m.error("请选择要切换的组织");
|
|
46
|
+
}
|
|
47
|
+
function w(t) {
|
|
48
|
+
var n;
|
|
49
|
+
const o = /* @__PURE__ */ Object.assign({ "../../../assets/icons/403.svg": P, "../../../assets/icons/403_dark.svg": L, "../../../assets/icons/404.svg": E, "../../../assets/icons/404_dark.svg": j, "../../../assets/icons/change-org.svg": V, "../../../assets/icons/favorites.svg": O, "../../../assets/icons/mima.svg": N, "../../../assets/icons/toolbar-collapse.svg": B }), _ = `../../../assets/icons/${t}.svg`;
|
|
50
|
+
return (n = o[_]) == null ? void 0 : n.default;
|
|
51
|
+
}
|
|
52
|
+
return (t, o) => {
|
|
53
|
+
const _ = H, n = q;
|
|
54
|
+
return r(), f(s(z), { "load-icon": w }, {
|
|
55
|
+
default: a(() => [
|
|
56
|
+
e("div", K, [
|
|
57
|
+
e("div", M, [
|
|
58
|
+
e("div", W, [
|
|
59
|
+
o[4] || (o[4] = e("div", {
|
|
60
|
+
text: "30px",
|
|
61
|
+
font: "bold",
|
|
62
|
+
"mb-40px": "",
|
|
63
|
+
flex: "~",
|
|
64
|
+
items: "center"
|
|
65
|
+
}, " 请选择组织 ", -1)),
|
|
66
|
+
(r(!0), b(R, null, D(s(v), (g, c) => (r(), b("div", {
|
|
67
|
+
key: c,
|
|
68
|
+
onClick: (no) => C(c)
|
|
69
|
+
}, [
|
|
70
|
+
e("div", {
|
|
71
|
+
class: F(["org-item", { active: c === s(l) }])
|
|
72
|
+
}, [
|
|
73
|
+
e("div", Y, [
|
|
74
|
+
d(s(p), {
|
|
75
|
+
name: "change-org",
|
|
76
|
+
size: "48px"
|
|
77
|
+
}),
|
|
78
|
+
e("div", Z, [
|
|
79
|
+
e("div", oo, [
|
|
80
|
+
e("span", eo, Q(g.label), 1),
|
|
81
|
+
s(i).user.orgId === g.orgId ? (r(), f(_, {
|
|
82
|
+
key: 0,
|
|
83
|
+
color: "blue"
|
|
84
|
+
}, {
|
|
85
|
+
default: a(() => o[0] || (o[0] = [
|
|
86
|
+
u(" 当前使用组织 ")
|
|
87
|
+
])),
|
|
88
|
+
_: 1
|
|
89
|
+
})) : x("", !0),
|
|
90
|
+
g.main ? (r(), f(_, {
|
|
91
|
+
key: 1,
|
|
92
|
+
color: "red"
|
|
93
|
+
}, {
|
|
94
|
+
default: a(() => o[1] || (o[1] = [
|
|
95
|
+
u(" 主组织 ")
|
|
96
|
+
])),
|
|
97
|
+
_: 1
|
|
98
|
+
})) : x("", !0)
|
|
99
|
+
])
|
|
100
|
+
])
|
|
101
|
+
]),
|
|
102
|
+
e("div", null, [
|
|
103
|
+
d(s(p), {
|
|
104
|
+
class: "arrow",
|
|
105
|
+
name: "i-iconamoon-arrow-right-6-circle-duotone",
|
|
106
|
+
color: c === s(l) ? "#1677ff" : "#8E97A3",
|
|
107
|
+
size: "22px"
|
|
108
|
+
}, null, 8, ["color"])
|
|
109
|
+
])
|
|
110
|
+
], 2)
|
|
111
|
+
], 8, X))), 128)),
|
|
112
|
+
e("div", null, [
|
|
113
|
+
d(n, {
|
|
114
|
+
type: "primary",
|
|
115
|
+
block: "",
|
|
116
|
+
"h-40px": "",
|
|
117
|
+
"mb-15px": "",
|
|
118
|
+
onClick: y
|
|
119
|
+
}, {
|
|
120
|
+
default: a(() => o[2] || (o[2] = [
|
|
121
|
+
u(" 确定 ")
|
|
122
|
+
])),
|
|
123
|
+
_: 1
|
|
124
|
+
}),
|
|
125
|
+
d(n, {
|
|
126
|
+
block: "",
|
|
127
|
+
"h-40px": "",
|
|
128
|
+
onClick: I
|
|
129
|
+
}, {
|
|
130
|
+
default: a(() => o[3] || (o[3] = [
|
|
131
|
+
u(" 返回 ")
|
|
132
|
+
])),
|
|
133
|
+
_: 1
|
|
134
|
+
})
|
|
135
|
+
])
|
|
136
|
+
])
|
|
137
|
+
])
|
|
138
|
+
])
|
|
139
|
+
]),
|
|
140
|
+
_: 1
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
}), go = /* @__PURE__ */ J(to, [["__scopeId", "data-v-b22e34db"]]);
|
|
145
|
+
export {
|
|
146
|
+
go as default
|
|
147
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { markRaw as V, createElementBlock as M, openBlock as r, createElementVNode as s, defineComponent as Q, resolveComponent as J, renderSlot as w, createBlock as B, withCtx as f, mergeProps as L, Fragment as U, renderList as k, normalizeClass as G, createCommentVNode as N, unref as t, toDisplayString as O, ref as z, computed as X, onMounted as W, watch as q, createVNode as E, createTextVNode as _ } from "vue";
|
|
2
|
-
import { bZ as $ } from "./menu-
|
|
2
|
+
import { bZ as $ } from "./menu-D3oKigWX.js";
|
|
3
3
|
import "pinia-plugin-persistedstate";
|
|
4
4
|
import "vue-router";
|
|
5
|
-
import { _ as T } from "./
|
|
6
|
-
import { u as ee, a as te } from "./index-
|
|
5
|
+
import { _ as T } from "./toolbar-collapse-BhNN4H7Y.js";
|
|
6
|
+
import { u as ee, a as te } from "./index-DTsHMiQx.js";
|
|
7
7
|
import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const ne = {
|
|
9
9
|
viewBox: "0 0 24 24",
|