jmash-core 0.0.108 → 0.0.110
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/{401-Cje8e0iQ.mjs → 401-Uu9uc5AZ.mjs} +1 -1
- package/dist/{404-Dcy7ErNt.mjs → 404-Bv4HWETa.mjs} +1 -1
- package/dist/{BarChart-oW-R1RXw.mjs → BarChart-CYiicJy4.mjs} +1 -1
- package/dist/{index-BnPTCkJp.mjs → index-BLFj1FIB.mjs} +6855 -6559
- package/dist/{index-C1KAa9PO.mjs → index-CSpzpS5Q.mjs} +3 -3
- package/dist/index-CyDktxrD.mjs +45 -0
- package/dist/{index-CAh0BAJl.mjs → index-Ywpo9w9-.mjs} +15 -15
- package/dist/index-yDhj6f4D.mjs +227 -0
- package/dist/index.mjs +55 -51
- package/dist/{profile-DSyIwcjT.mjs → profile-DLMrjX4f.mjs} +6 -6
- package/dist/{runAs-ByT2IRUb.mjs → runAs-CLd5eBdV.mjs} +1 -1
- package/dist/runAs.vue_vue_type_script_setup_true_lang-Chc0acxM.mjs +141 -0
- package/dist/style.css +1 -1
- package/dist/{types-DaRQE9AI.mjs → types-BEVVO8kD.mjs} +79 -63
- package/dist/{updatePwd-BW1ZcKeg.mjs → updatePwd-BggDYrPh.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-CASn5sxv.mjs → updatePwd.vue_vue_type_script_setup_true_lang-473g6F8e.mjs} +9 -9
- package/dts/src/api/auth/index.d.ts +5 -1
- package/dts/src/api/auth/types.d.ts +54 -4
- package/dts/src/components/{DictRadio → JmashAMap}/index.vue.d.ts +17 -11
- package/dts/src/components/{Upload → JmashTMaps}/index.vue.d.ts +7 -5
- package/dts/src/components/SvgIcon/index.vue.d.ts +1 -1
- package/dts/src/index.d.ts +4 -4
- package/dts/src/lang/package/zh-cn.d.ts +1 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +1 -1
- package/dts/src/router/index.d.ts +1 -0
- package/dts/src/types/index.d.ts +12 -0
- package/dts/src/utils/AMap.d.ts +4 -0
- package/dts/src/utils/TMap.d.ts +1 -0
- package/dts/src/utils/common.d.ts +8 -5
- package/dts/src/views/change-organ/index.vue.d.ts +2 -0
- package/dts/src/views/dashboard/components/BarChart.vue.d.ts +1 -1
- package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +1 -1
- package/dts/src/views/dashboard/components/PieChart.vue.d.ts +1 -1
- package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +1 -1
- package/package.json +85 -85
- package/dist/index-pfRSPpqI.mjs +0 -268
- package/dist/picture-CBRsHLZl.mjs +0 -22
- package/dist/runAs.vue_vue_type_script_setup_true_lang-CKnm9qB3.mjs +0 -140
- package/dts/src/components/DictSelect/index.vue.d.ts +0 -50
- package/dts/src/components/Pagination/index.vue.d.ts +0 -88
- package/dts/src/components/Table/index.vue.d.ts +0 -64
- package/dts/src/components/Upload/MultiUpload.vue.d.ts +0 -65
- package/dts/src/components/Upload/SingleUpload.vue.d.ts +0 -18
- package/dts/src/components/Upload/importUpload.vue.d.ts +0 -31
package/package.json
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "jmash-core",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"module": "dist/index.mjs",
|
|
6
|
-
"types": "dts/src/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"dts/src"
|
|
10
|
-
],
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"eslint-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
"element-plus": "^
|
|
53
|
-
"
|
|
54
|
-
"vue": "^
|
|
55
|
-
"
|
|
56
|
-
"vue
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "jmash-core",
|
|
3
|
+
"version": "0.0.110",
|
|
4
|
+
"private": false,
|
|
5
|
+
"module": "dist/index.mjs",
|
|
6
|
+
"types": "dts/src/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"dts/src"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "pnpm build:generate && vite serve --mode development",
|
|
13
|
+
"build": "pnpm build:generate && vite build && pnpm build:dts",
|
|
14
|
+
"build:generate": "tsx build/generate.ts",
|
|
15
|
+
"preview": "vite preview",
|
|
16
|
+
"build-only": "vite build",
|
|
17
|
+
"build:dts": "vue-tsc --declaration --emitDeclarationOnly",
|
|
18
|
+
"type-check": "vue-tsc --build --force",
|
|
19
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
20
|
+
"format": "prettier --write src/"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@eslint/js": "^9.11.0",
|
|
24
|
+
"@iconify-json/ep": "^1.1.15",
|
|
25
|
+
"@intlify/core-base": "^9.10.2",
|
|
26
|
+
"@rushstack/eslint-patch": "^1.3.3",
|
|
27
|
+
"@tsconfig/node20": "^20.1.2",
|
|
28
|
+
"@types/node": "^20.11.10",
|
|
29
|
+
"@vitejs/plugin-vue": "^5.0.3",
|
|
30
|
+
"@vue/tsconfig": "^0.5.1",
|
|
31
|
+
"@vueuse/core": "^10.9.0",
|
|
32
|
+
"axios": "^1.6.7",
|
|
33
|
+
"camelcase": "^8.0.0",
|
|
34
|
+
"chalk": "^5.3.0",
|
|
35
|
+
"consola": "^3.2.3",
|
|
36
|
+
"eslint": "^9.11.0",
|
|
37
|
+
"eslint-plugin-vue": "^9.28.0",
|
|
38
|
+
"fast-glob": "^3.3.2",
|
|
39
|
+
"fs-extra": "^11.2.0",
|
|
40
|
+
"globals": "^15.9.0",
|
|
41
|
+
"npm-run-all2": "^6.1.1",
|
|
42
|
+
"pinia": "^2.1.7",
|
|
43
|
+
"prettier": "^3.0.3",
|
|
44
|
+
"qs": "^6.12.0",
|
|
45
|
+
"sass": "^1.71.1",
|
|
46
|
+
"sass-loader": "^14.1.1",
|
|
47
|
+
"tsx": "^4.7.1",
|
|
48
|
+
"typescript": "~5.3.0",
|
|
49
|
+
"typescript-eslint": "^8.6.0",
|
|
50
|
+
"unocss": "^0.58.5",
|
|
51
|
+
"unplugin-auto-import": "^0.17.5",
|
|
52
|
+
"unplugin-element-plus": "^0.8.0",
|
|
53
|
+
"unplugin-icons": "^0.18.5",
|
|
54
|
+
"unplugin-vue-components": "^0.26.0",
|
|
55
|
+
"vite": "^5.0.11",
|
|
56
|
+
"vue": "^3.4.21",
|
|
57
|
+
"vue-i18n": "^9.10.1",
|
|
58
|
+
"vue-router": "^4.3.0",
|
|
59
|
+
"vue-tsc": "^1.8.27"
|
|
60
|
+
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"axios": "^1.7.7",
|
|
63
|
+
"element-plus": "^2.8.7",
|
|
64
|
+
"pinia": "^2.2.4",
|
|
65
|
+
"vue": "^3.5.11",
|
|
66
|
+
"vue-i18n": "^9.14.1",
|
|
67
|
+
"vue-router": "^4.4.5"
|
|
68
|
+
},
|
|
69
|
+
"dependencies": {
|
|
70
|
+
"@element-plus/icons-vue": "^2.3.1",
|
|
71
|
+
"@vueuse/core": "^10.9.0",
|
|
72
|
+
"crypto-js": "^4.2.0",
|
|
73
|
+
"echarts": "^5.5.0",
|
|
74
|
+
"file-saver": "^2.0.5",
|
|
75
|
+
"lodash-es": "^4.17.21",
|
|
76
|
+
"lrz": "^4.9.41",
|
|
77
|
+
"moment": "^2.30.1",
|
|
78
|
+
"nprogress": "^0.2.0",
|
|
79
|
+
"path-browserify": "^1.0.1",
|
|
80
|
+
"path-to-regexp": "^6.2.1",
|
|
81
|
+
"qs": "^6.12.0",
|
|
82
|
+
"sm-crypto": "^0.3.13",
|
|
83
|
+
"sortablejs": "^1.15.2"
|
|
84
|
+
}
|
|
85
|
+
}
|
package/dist/index-pfRSPpqI.mjs
DELETED
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
import { _ as oe } from "./picture-CBRsHLZl.mjs";
|
|
2
|
-
import { defineComponent as te, ref as d, watchEffect as se, computed as le, onMounted as ne, resolveComponent as c, openBlock as v, createElementBlock as A, createElementVNode as n, createVNode as t, unref as o, isRef as ae, withCtx as r, toDisplayString as R, createTextVNode as D, createBlock as U, Fragment as re, renderList as ce, createCommentVNode as ie, withKeys as N, withModifiers as de, withDirectives as pe, vShow as ue, pushScopeId as me, popScopeId as _e } from "vue";
|
|
3
|
-
import { useI18n as ge } from "vue-i18n";
|
|
4
|
-
import { d as I, u as T, o as fe, c as he, _ as ve, S as m, y as we, t as ye, z as ke, A as Ce, r as Ve, i as be } from "./index-BnPTCkJp.mjs";
|
|
5
|
-
import { ElForm as z } from "element-plus";
|
|
6
|
-
import { useRoute as Se } from "vue-router";
|
|
7
|
-
const B = (_) => (me("data-v-5014ef67"), _ = _(), _e(), _), xe = { class: "login-container" }, $e = { class: "absolute top-0 flex items-center justify-end px-5 h-20 w-full" }, Re = { class: "text-center relative" }, De = { class: "p-2" }, Ie = { class: "p-2" }, Ee = { class: "p-2" }, Le = { class: "p-2" }, qe = { class: "captcha" }, Ae = { class: "image-slot" }, Ue = { class: "forgot-pwd" }, Ne = { class: "absolute bottom-1 text-[10px] text-center" }, Te = /* @__PURE__ */ B(() => /* @__PURE__ */ n("p", null, "Copyright © 2024 All Rights Reserved. Apache 2.0 协议.", -1)), ze = /* @__PURE__ */ B(() => /* @__PURE__ */ n("p", null, "备案号: XXXX .", -1)), Be = [
|
|
8
|
-
Te,
|
|
9
|
-
ze
|
|
10
|
-
], Fe = 992, Ke = /* @__PURE__ */ te({
|
|
11
|
-
__name: "index",
|
|
12
|
-
setup(_) {
|
|
13
|
-
const w = I(), { title: F, version: K } = w, y = d(w.theme === "dark"), X = (e) => {
|
|
14
|
-
we(e), w.changeSetting({
|
|
15
|
-
key: "theme",
|
|
16
|
-
value: e ? "dark" : "light"
|
|
17
|
-
});
|
|
18
|
-
}, k = T(), { width: j } = fe();
|
|
19
|
-
se(() => {
|
|
20
|
-
j.value < Fe ? k.toggleDevice("mobile") : k.toggleDevice("desktop");
|
|
21
|
-
});
|
|
22
|
-
const C = d(!1), E = d(!1), g = d(!1), L = d(), q = d(z), V = d([]), a = d({
|
|
23
|
-
scope: "",
|
|
24
|
-
username: "",
|
|
25
|
-
password: ""
|
|
26
|
-
}), { t: b } = ge(), M = le(() => {
|
|
27
|
-
const e = k.language === "en" ? "Please enter " : "请输入";
|
|
28
|
-
return {
|
|
29
|
-
username: [
|
|
30
|
-
{
|
|
31
|
-
required: !0,
|
|
32
|
-
trigger: "blur",
|
|
33
|
-
message: `${e}${b("login.username")}`
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
password: [
|
|
37
|
-
{
|
|
38
|
-
required: !0,
|
|
39
|
-
trigger: "blur",
|
|
40
|
-
validator: (s, p, u) => {
|
|
41
|
-
p.length < 5 ? u(new Error("The password can not be less than 5 digits")) : u();
|
|
42
|
-
},
|
|
43
|
-
message: `${e}${b("login.password")}`
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
captchaCode: [
|
|
47
|
-
{
|
|
48
|
-
required: !0,
|
|
49
|
-
trigger: "blur",
|
|
50
|
-
message: `${e}${b("login.captchaCode")}`
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
};
|
|
54
|
-
});
|
|
55
|
-
function O(e) {
|
|
56
|
-
const { key: s } = e;
|
|
57
|
-
E.value = s && s.length === 1 && s >= "A" && s <= "Z";
|
|
58
|
-
}
|
|
59
|
-
function f() {
|
|
60
|
-
ye().then(({ data: e }) => {
|
|
61
|
-
a.value.captchaKey = e.captchaId, L.value = e.base64Image;
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
function P() {
|
|
65
|
-
ke().then(({ data: e }) => {
|
|
66
|
-
V.value = e.roleList;
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
const W = Se(), H = he();
|
|
70
|
-
function S() {
|
|
71
|
-
q.value.validate((e) => {
|
|
72
|
-
if (e) {
|
|
73
|
-
C.value = !0;
|
|
74
|
-
let s = { ...a.value };
|
|
75
|
-
s.password = Ce(a.value.password), a.value.password = "", H.login(s).then(() => {
|
|
76
|
-
const p = W.query, u = p.redirect ?? "/", x = Object.keys(p).reduce((h, i) => (i !== "redirect" && (h[i] = p[i]), h), {});
|
|
77
|
-
Ve.value.push({ path: u, query: x }), f();
|
|
78
|
-
}).catch(() => {
|
|
79
|
-
f();
|
|
80
|
-
}).finally(() => {
|
|
81
|
-
C.value = !1;
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
return ne(() => {
|
|
87
|
-
f(), P();
|
|
88
|
-
const e = I().theme;
|
|
89
|
-
I().changeSetting({ key: "theme", value: e }), e == "dark" ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
|
|
90
|
-
}), (e, s) => {
|
|
91
|
-
const p = c("el-switch"), u = c("el-tag"), x = c("el-option"), h = c("el-select"), i = c("el-form-item"), $ = c("el-input"), Q = c("el-tooltip"), Z = oe, G = c("el-image"), J = c("router-link"), Y = c("el-button"), ee = c("el-card");
|
|
92
|
-
return v(), A("div", xe, [
|
|
93
|
-
n("div", $e, [
|
|
94
|
-
t(p, {
|
|
95
|
-
modelValue: o(y),
|
|
96
|
-
"onUpdate:modelValue": s[0] || (s[0] = (l) => ae(y) ? y.value = l : null),
|
|
97
|
-
"inline-prompt": "",
|
|
98
|
-
"active-color": "var(--el-fill-color-dark)",
|
|
99
|
-
"inactive-color": "var(--el-color-primary)",
|
|
100
|
-
onChange: X
|
|
101
|
-
}, null, 8, ["modelValue"]),
|
|
102
|
-
t(ve, { class: "ml-2 cursor-pointer" })
|
|
103
|
-
]),
|
|
104
|
-
t(ee, { class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83" }, {
|
|
105
|
-
default: r(() => [
|
|
106
|
-
n("div", Re, [
|
|
107
|
-
n("h2", null, R(o(F)), 1),
|
|
108
|
-
t(u, { class: "ml-2 absolute top-0 right-0" }, {
|
|
109
|
-
default: r(() => [
|
|
110
|
-
D(R(o(K)), 1)
|
|
111
|
-
]),
|
|
112
|
-
_: 1
|
|
113
|
-
})
|
|
114
|
-
]),
|
|
115
|
-
t(o(z), {
|
|
116
|
-
ref_key: "loginFormRef",
|
|
117
|
-
ref: q,
|
|
118
|
-
model: o(a),
|
|
119
|
-
rules: o(M),
|
|
120
|
-
size: "large",
|
|
121
|
-
class: "login-form"
|
|
122
|
-
}, {
|
|
123
|
-
default: r(() => [
|
|
124
|
-
o(V).length > 0 ? (v(), U(i, {
|
|
125
|
-
key: 0,
|
|
126
|
-
prop: "scope"
|
|
127
|
-
}, {
|
|
128
|
-
default: r(() => [
|
|
129
|
-
n("div", De, [
|
|
130
|
-
t(m, { "icon-class": "user" })
|
|
131
|
-
]),
|
|
132
|
-
t(h, {
|
|
133
|
-
modelValue: o(a).scope,
|
|
134
|
-
"onUpdate:modelValue": s[1] || (s[1] = (l) => o(a).scope = l),
|
|
135
|
-
placeholder: "Select",
|
|
136
|
-
class: "flex-1"
|
|
137
|
-
}, {
|
|
138
|
-
default: r(() => [
|
|
139
|
-
(v(!0), A(re, null, ce(o(V), (l) => (v(), U(x, {
|
|
140
|
-
key: l.roleCode,
|
|
141
|
-
label: l.roleName,
|
|
142
|
-
value: l.roleCode
|
|
143
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
144
|
-
]),
|
|
145
|
-
_: 1
|
|
146
|
-
}, 8, ["modelValue"])
|
|
147
|
-
]),
|
|
148
|
-
_: 1
|
|
149
|
-
})) : ie("", !0),
|
|
150
|
-
t(i, { prop: "username" }, {
|
|
151
|
-
default: r(() => [
|
|
152
|
-
n("div", Ie, [
|
|
153
|
-
t(m, { "icon-class": "user" })
|
|
154
|
-
]),
|
|
155
|
-
t($, {
|
|
156
|
-
ref: "username",
|
|
157
|
-
modelValue: o(a).username,
|
|
158
|
-
"onUpdate:modelValue": s[2] || (s[2] = (l) => o(a).username = l),
|
|
159
|
-
class: "flex-1",
|
|
160
|
-
placeholder: e.$t("login.username"),
|
|
161
|
-
name: "username"
|
|
162
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
163
|
-
]),
|
|
164
|
-
_: 1
|
|
165
|
-
}),
|
|
166
|
-
t(Q, {
|
|
167
|
-
disabled: o(E) === !1,
|
|
168
|
-
content: "Caps lock is On",
|
|
169
|
-
placement: "right"
|
|
170
|
-
}, {
|
|
171
|
-
default: r(() => [
|
|
172
|
-
t(i, { prop: "password" }, {
|
|
173
|
-
default: r(() => [
|
|
174
|
-
n("span", Ee, [
|
|
175
|
-
t(m, { "icon-class": "password" })
|
|
176
|
-
]),
|
|
177
|
-
t($, {
|
|
178
|
-
modelValue: o(a).password,
|
|
179
|
-
"onUpdate:modelValue": s[3] || (s[3] = (l) => o(a).password = l),
|
|
180
|
-
class: "flex-1",
|
|
181
|
-
placeholder: e.$t("login.password"),
|
|
182
|
-
type: o(g) === !1 ? "password" : "input",
|
|
183
|
-
name: "password",
|
|
184
|
-
onKeyup: [
|
|
185
|
-
O,
|
|
186
|
-
N(S, ["enter"])
|
|
187
|
-
]
|
|
188
|
-
}, null, 8, ["modelValue", "placeholder", "type"]),
|
|
189
|
-
n("span", {
|
|
190
|
-
class: "mr-2",
|
|
191
|
-
onClick: s[4] || (s[4] = (l) => g.value = !o(g))
|
|
192
|
-
}, [
|
|
193
|
-
t(m, {
|
|
194
|
-
"icon-class": o(g) === !1 ? "eye" : "eye-open",
|
|
195
|
-
class: "cursor-pointer"
|
|
196
|
-
}, null, 8, ["icon-class"])
|
|
197
|
-
])
|
|
198
|
-
]),
|
|
199
|
-
_: 1
|
|
200
|
-
})
|
|
201
|
-
]),
|
|
202
|
-
_: 1
|
|
203
|
-
}, 8, ["disabled"]),
|
|
204
|
-
t(i, { prop: "captchaCode" }, {
|
|
205
|
-
default: r(() => [
|
|
206
|
-
n("span", Le, [
|
|
207
|
-
t(m, { "icon-class": "captcha" })
|
|
208
|
-
]),
|
|
209
|
-
t($, {
|
|
210
|
-
modelValue: o(a).captchaCode,
|
|
211
|
-
"onUpdate:modelValue": s[5] || (s[5] = (l) => o(a).captchaCode = l),
|
|
212
|
-
"auto-complete": "off",
|
|
213
|
-
placeholder: e.$t("login.captchaCode"),
|
|
214
|
-
class: "w-[60%]",
|
|
215
|
-
onKeyup: N(S, ["enter"])
|
|
216
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
217
|
-
n("div", qe, [
|
|
218
|
-
t(G, {
|
|
219
|
-
src: o(L),
|
|
220
|
-
onClick: f,
|
|
221
|
-
class: "w-[130px] h-[50px] cursor-pointer"
|
|
222
|
-
}, {
|
|
223
|
-
error: r(() => [
|
|
224
|
-
n("div", Ae, [
|
|
225
|
-
t(Z)
|
|
226
|
-
])
|
|
227
|
-
]),
|
|
228
|
-
_: 1
|
|
229
|
-
}, 8, ["src"])
|
|
230
|
-
])
|
|
231
|
-
]),
|
|
232
|
-
_: 1
|
|
233
|
-
}),
|
|
234
|
-
n("div", Ue, [
|
|
235
|
-
t(J, { to: "/secondLogin" }, {
|
|
236
|
-
default: r(() => [
|
|
237
|
-
D("手机号/邮箱登录")
|
|
238
|
-
]),
|
|
239
|
-
_: 1
|
|
240
|
-
})
|
|
241
|
-
]),
|
|
242
|
-
t(Y, {
|
|
243
|
-
loading: o(C),
|
|
244
|
-
type: "primary",
|
|
245
|
-
class: "w-full",
|
|
246
|
-
onClick: de(S, ["prevent"])
|
|
247
|
-
}, {
|
|
248
|
-
default: r(() => [
|
|
249
|
-
D(R(e.$t("login.login")), 1)
|
|
250
|
-
]),
|
|
251
|
-
_: 1
|
|
252
|
-
}, 8, ["loading"])
|
|
253
|
-
]),
|
|
254
|
-
_: 1
|
|
255
|
-
}, 8, ["model", "rules"])
|
|
256
|
-
]),
|
|
257
|
-
_: 1
|
|
258
|
-
}),
|
|
259
|
-
pe(n("div", Ne, Be, 512), [
|
|
260
|
-
[ue, o(T)().device == "desktop"]
|
|
261
|
-
])
|
|
262
|
-
]);
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
}), He = /* @__PURE__ */ be(Ke, [["__scopeId", "data-v-5014ef67"]]);
|
|
266
|
-
export {
|
|
267
|
-
He as default
|
|
268
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { openBlock as t, createElementBlock as l, createElementVNode as e } from "vue";
|
|
2
|
-
const o = {
|
|
3
|
-
viewBox: "0 0 1024 1024",
|
|
4
|
-
width: "1.2em",
|
|
5
|
-
height: "1.2em"
|
|
6
|
-
}, n = /* @__PURE__ */ e("path", {
|
|
7
|
-
fill: "currentColor",
|
|
8
|
-
d: "M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"
|
|
9
|
-
}, null, -1), c = /* @__PURE__ */ e("path", {
|
|
10
|
-
fill: "currentColor",
|
|
11
|
-
d: "M384 288q64 0 64 64t-64 64t-64-64t64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472l122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888l49.92 39.936l-215.808 269.824l-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072l-.64-.512a32 32 0 0 0-44.8 5.952z"
|
|
12
|
-
}, null, -1), r = [
|
|
13
|
-
n,
|
|
14
|
-
c
|
|
15
|
-
];
|
|
16
|
-
function a(_, i) {
|
|
17
|
-
return t(), l("svg", o, [...r]);
|
|
18
|
-
}
|
|
19
|
-
const s = { name: "ep-picture", render: a };
|
|
20
|
-
export {
|
|
21
|
-
s as _
|
|
22
|
-
};
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { c as n, H as N, h as V, I as B, E as P, S as U } from "./index-BnPTCkJp.mjs";
|
|
2
|
-
import { defineComponent as S, ref as y, useModel as M, reactive as A, resolveComponent as f, openBlock as d, createBlock as D, withCtx as l, createVNode as c, unref as o, createTextVNode as m, toDisplayString as s, createElementBlock as C, withDirectives as _, vShow as g, createCommentVNode as v } from "vue";
|
|
3
|
-
const $ = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "distance-left"
|
|
6
|
-
}, L = ["onClick"], j = /* @__PURE__ */ S({
|
|
7
|
-
__name: "runAs",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: { type: Boolean },
|
|
10
|
-
modelModifiers: {}
|
|
11
|
-
},
|
|
12
|
-
emits: ["update:modelValue"],
|
|
13
|
-
setup(I) {
|
|
14
|
-
const r = y(!1), p = y([]), i = n().user, u = M(I, "modelValue"), k = A([
|
|
15
|
-
{
|
|
16
|
-
label: "用户名",
|
|
17
|
-
prop: "loginName",
|
|
18
|
-
width: "100",
|
|
19
|
-
sortable: !0,
|
|
20
|
-
isColumn: !0
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
label: "用户昵称",
|
|
24
|
-
prop: "nickName",
|
|
25
|
-
width: "100",
|
|
26
|
-
isColumn: !0
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
label: "手机号",
|
|
30
|
-
prop: "mobilePhone",
|
|
31
|
-
slotName: "mobilePhone",
|
|
32
|
-
columnType: "slot",
|
|
33
|
-
width: "120",
|
|
34
|
-
isColumn: !0,
|
|
35
|
-
sortable: !0
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
label: "邮箱",
|
|
39
|
-
prop: "email",
|
|
40
|
-
width: "180",
|
|
41
|
-
slotName: "email",
|
|
42
|
-
columnType: "slot",
|
|
43
|
-
isColumn: !0,
|
|
44
|
-
sortable: !0
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
label: "状态",
|
|
48
|
-
width: "101",
|
|
49
|
-
slotName: "status",
|
|
50
|
-
columnType: "slot",
|
|
51
|
-
isColumn: !0
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
label: "操作",
|
|
55
|
-
width: "100",
|
|
56
|
-
slotName: "operation",
|
|
57
|
-
columnType: "slot",
|
|
58
|
-
fixed: "right",
|
|
59
|
-
isColumn: !0
|
|
60
|
-
}
|
|
61
|
-
]);
|
|
62
|
-
r.value = !0;
|
|
63
|
-
function w(t) {
|
|
64
|
-
t.showEncrypt = !t.showEncrypt;
|
|
65
|
-
}
|
|
66
|
-
N().then(({ data: t }) => {
|
|
67
|
-
r.value = !1, p.value = t.results;
|
|
68
|
-
});
|
|
69
|
-
function E(t) {
|
|
70
|
-
V.confirm("确定切换用户身份吗?", "提示", {
|
|
71
|
-
confirmButtonText: "确定",
|
|
72
|
-
cancelButtonText: "取消",
|
|
73
|
-
type: "warning"
|
|
74
|
-
}).then(() => {
|
|
75
|
-
console.log(n()), B(t.userId).then(async (a) => {
|
|
76
|
-
a.status === 200 && (n().user.roleCodes = [], n().user.permCodes = [], u.value = !1, location.reload(), P({
|
|
77
|
-
message: "切换成功",
|
|
78
|
-
type: "success"
|
|
79
|
-
}));
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
return (t, a) => {
|
|
84
|
-
const h = U, T = f("Table"), x = f("el-dialog");
|
|
85
|
-
return d(), D(x, {
|
|
86
|
-
title: "切换身份",
|
|
87
|
-
modelValue: u.value,
|
|
88
|
-
"onUpdate:modelValue": a[0] || (a[0] = (e) => u.value = e),
|
|
89
|
-
width: "800px"
|
|
90
|
-
}, {
|
|
91
|
-
default: l(() => [
|
|
92
|
-
c(T, {
|
|
93
|
-
class: "table-top",
|
|
94
|
-
ref: "multipleTableRef",
|
|
95
|
-
"row-keys": "userId",
|
|
96
|
-
"list-loading": o(r),
|
|
97
|
-
"table-data": o(p),
|
|
98
|
-
"table-label": o(k)
|
|
99
|
-
}, {
|
|
100
|
-
mobilePhone: l((e) => [
|
|
101
|
-
m(s(e.data.row.showEncrypt ? e.data.row.mobilePhone : e.data.row.mobilePhoneIns), 1)
|
|
102
|
-
]),
|
|
103
|
-
email: l((e) => [
|
|
104
|
-
m(s(e.data.row.showEncrypt ? e.data.row.email : e.data.row.emailIns), 1)
|
|
105
|
-
]),
|
|
106
|
-
status: l((e) => [
|
|
107
|
-
m(s(e.data.row.userId.replace(/-/g, "") === o(i).primaryUserId ? "原身份" : "") + " " + s(e.data.row.userId == o(i).userId ? "当前身份" : ""), 1)
|
|
108
|
-
]),
|
|
109
|
-
operation: l((e) => [
|
|
110
|
-
e.data.row.mobilePhoneIns ? (d(), C("span", $, [
|
|
111
|
-
_(c(h, {
|
|
112
|
-
"icon-class": "close-eye",
|
|
113
|
-
onClick: (b) => w(e.data.row)
|
|
114
|
-
}, null, 8, ["onClick"]), [
|
|
115
|
-
[g, !e.data.row.showEncrypt]
|
|
116
|
-
]),
|
|
117
|
-
_(c(h, {
|
|
118
|
-
"icon-class": "eye-open",
|
|
119
|
-
onClick: (b) => w(e.data.row)
|
|
120
|
-
}, null, 8, ["onClick"]), [
|
|
121
|
-
[g, e.data.row.showEncrypt]
|
|
122
|
-
])
|
|
123
|
-
])) : v("", !0),
|
|
124
|
-
e.data.row.userId !== o(i).userId ? (d(), C("span", {
|
|
125
|
-
key: 1,
|
|
126
|
-
class: "el-button-color",
|
|
127
|
-
onClick: (b) => E(e.data.row)
|
|
128
|
-
}, " 切换 ", 8, L)) : v("", !0)
|
|
129
|
-
]),
|
|
130
|
-
_: 1
|
|
131
|
-
}, 8, ["list-loading", "table-data", "table-label"])
|
|
132
|
-
]),
|
|
133
|
-
_: 1
|
|
134
|
-
}, 8, ["modelValue"]);
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
export {
|
|
139
|
-
j as _
|
|
140
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
currentInterface: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
dictValue: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
dictType: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
placeholder: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
clearable: {
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
default: boolean;
|
|
21
|
-
};
|
|
22
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
23
|
-
currentInterface: {
|
|
24
|
-
type: StringConstructor;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
dictValue: {
|
|
28
|
-
type: StringConstructor;
|
|
29
|
-
default: string;
|
|
30
|
-
};
|
|
31
|
-
dictType: {
|
|
32
|
-
type: StringConstructor;
|
|
33
|
-
default: string;
|
|
34
|
-
};
|
|
35
|
-
placeholder: {
|
|
36
|
-
type: StringConstructor;
|
|
37
|
-
default: string;
|
|
38
|
-
};
|
|
39
|
-
clearable: {
|
|
40
|
-
type: BooleanConstructor;
|
|
41
|
-
default: boolean;
|
|
42
|
-
};
|
|
43
|
-
}>>, {
|
|
44
|
-
placeholder: string;
|
|
45
|
-
clearable: boolean;
|
|
46
|
-
currentInterface: string;
|
|
47
|
-
dictValue: string;
|
|
48
|
-
dictType: string;
|
|
49
|
-
}, {}>;
|
|
50
|
-
export default _default;
|