jmash-core 0.0.96 → 0.0.97
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-gR-a4eWP.mjs +100 -0
- package/dist/404-CvF2Wpf5.mjs +37 -0
- package/dist/BarChart--k4pvqvu.mjs +199 -0
- package/dist/FunnelChart-Ci14WUay.mjs +107 -0
- package/dist/PieChart-C60V9Kgc.mjs +4 -0
- package/dist/PieChart.vue_vue_type_script_setup_true_lang-D1-1NDvg.mjs +89 -0
- package/dist/RadarChart-BBq1VxXC.mjs +4 -0
- package/dist/RadarChart.vue_vue_type_script_setup_true_lang-BNLujpKR.mjs +108 -0
- package/dist/favicon.ico +0 -0
- package/dist/index-B3bBQvl1.mjs +43717 -0
- package/dist/index-Bw3IdFvk.mjs +19539 -0
- package/dist/index-ByS03yYq.mjs +1629 -0
- package/dist/index-CsnH0_yb.mjs +367 -0
- package/dist/index-DSalnTBz.mjs +267 -0
- package/dist/index-uykKwY2Z.mjs +12 -0
- package/dist/index.mjs +58 -0
- package/dist/picture-CBRsHLZl.mjs +22 -0
- package/dist/profile-DB5oJY6F.mjs +267 -0
- package/dist/runAs-BgAqMTuy.mjs +4 -0
- package/dist/runAs.vue_vue_type_script_setup_true_lang-SOwNuXuK.mjs +2496 -0
- package/dist/style.css +1 -0
- package/dist/types-4mFLhd4n.mjs +204 -0
- package/dist/updatePwd-Dr2JoWzO.mjs +4 -0
- package/dist/updatePwd.vue_vue_type_script_setup_true_lang-sFzRukhN.mjs +146 -0
- package/dts/src/App.vue.d.ts +2 -0
- package/dts/src/api/auth/index.d.ts +66 -0
- package/dts/src/api/auth/types.d.ts +201 -0
- package/dts/src/api/file/index.d.ts +33 -0
- package/dts/src/api/file/types.d.ts +14 -0
- package/dts/src/api/index.d.ts +38 -0
- package/dts/src/api/types.d.ts +85 -0
- package/dts/src/assets/components/icon-a-fixed.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-a-list.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-anquanrizhi.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-api.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-bumenguanli.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-caozuoguanliyuan.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-captcha.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-cascader.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-client.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-close-all.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-close-eye.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-close-left.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-close-other.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-close-right.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-close.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-dept.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-dict.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-document.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-download.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-drag.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-edit.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-email.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-exit-fullscreen.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-eye-open.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-fullscreen-exit.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-fullscreen.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-gangweiguanli.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-github.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-homepage.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-icon.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-indent-decrease.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-ip.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-jiemianxijietubiao-26.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-language.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-link.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-lock.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-log.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-menu.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-message.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-mokuaiguanli.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-money.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-monitor.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-moon.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-order.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-password.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-peoples.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-phone.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-project.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-publish.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-quanxianguanli.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-redis.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-refresh.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-role.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-security.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-setting.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-shoujihao.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-shrink.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-size.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-sunny.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-system.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-table.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-team.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-todolist.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-tree.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-user.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-visit.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-xingming.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-yonghuguanli.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-youxiang.vue.d.ts +2 -0
- package/dts/src/assets/components/index.d.ts +69 -0
- package/dts/src/assets/index.d.ts +2 -0
- package/dts/src/components/AppLink/index.vue.d.ts +19 -0
- package/dts/src/components/Breadcrumb/index.vue.d.ts +2 -0
- package/dts/src/components/DictRadio/index.vue.d.ts +32 -0
- package/dts/src/components/DictSelect/index.vue.d.ts +50 -0
- package/dts/src/components/Dictionary/index.vue.d.ts +47 -0
- package/dts/src/components/GithubCorner/index.vue.d.ts +2 -0
- package/dts/src/components/Hamburger/index.vue.d.ts +18 -0
- package/dts/src/components/IconSelect/index.vue.d.ts +20 -0
- package/dts/src/components/IconSelect/requireIcons.d.ts +3 -0
- package/dts/src/components/JmashColumnSelect/index.vue.d.ts +17 -0
- package/dts/src/components/JmashEnumSelect/index.vue.d.ts +23 -0
- package/dts/src/components/JmashPagination/index.vue.d.ts +32 -0
- package/dts/src/components/JmashTable/index.vue.d.ts +46 -0
- package/dts/src/components/JmashUploadFile/index.vue.d.ts +7 -0
- package/dts/src/components/JmashUploadImage/index.vue.d.ts +37 -0
- package/dts/src/components/LangSelect/index.vue.d.ts +2 -0
- package/dts/src/components/Pagination/index.vue.d.ts +88 -0
- package/dts/src/components/RightPanel/index.vue.d.ts +21 -0
- package/dts/src/components/SizeSelect/index.vue.d.ts +2 -0
- package/dts/src/components/SvgIcon/index.vue.d.ts +43 -0
- package/dts/src/components/Table/index.vue.d.ts +64 -0
- package/dts/src/components/Upload/MultiUpload.vue.d.ts +65 -0
- package/dts/src/components/Upload/SingleUpload.vue.d.ts +18 -0
- package/dts/src/components/Upload/importUpload.vue.d.ts +31 -0
- package/dts/src/components/Upload/index.vue.d.ts +18 -0
- package/dts/src/components/index.d.ts +0 -0
- package/dts/src/directive/index.d.ts +5 -0
- package/dts/src/directive/permission/index.d.ts +9 -0
- package/dts/src/enums/DeviceEnum.d.ts +13 -0
- package/dts/src/enums/LayoutEnum.d.ts +17 -0
- package/dts/src/enums/MenuTypeEnum.d.ts +21 -0
- package/dts/src/enums/SidebarStatusEnum.d.ts +13 -0
- package/dts/src/enums/ThemeEnum.d.ts +17 -0
- package/dts/src/hooks/table.d.ts +43 -0
- package/dts/src/hooks/useList.d.ts +1 -0
- package/dts/src/index.d.ts +38 -0
- package/dts/src/lang/index.d.ts +2 -0
- package/dts/src/lang/package/en.d.ts +147 -0
- package/dts/src/lang/package/zh-cn.d.ts +151 -0
- package/dts/src/layout/components/AppMain/index.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/components/NavbarLeft.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/components/NavbarRight.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/index.vue.d.ts +2 -0
- package/dts/src/layout/components/Settings/components/LayoutSelect.vue.d.ts +10 -0
- package/dts/src/layout/components/Settings/components/ThemeColorPicker.vue.d.ts +10 -0
- package/dts/src/layout/components/Settings/index.vue.d.ts +2 -0
- package/dts/src/layout/components/Sidebar/components/SidebarLogo.vue.d.ts +12 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenu.vue.d.ts +50 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItem.vue.d.ts +42 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +32 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue.d.ts +2 -0
- package/dts/src/layout/components/Sidebar/index.vue.d.ts +2 -0
- package/dts/src/layout/components/TagsView/index.vue.d.ts +2 -0
- package/dts/src/layout/index.vue.d.ts +2 -0
- package/dts/src/main.d.ts +1 -0
- package/dts/src/permission.d.ts +1 -0
- package/dts/src/router/index.d.ts +22 -0
- package/dts/src/settings.d.ts +28 -0
- package/dts/src/stores/index.d.ts +7 -0
- package/dts/src/stores/modules/app.d.ts +2 -0
- package/dts/src/stores/modules/permission.d.ts +2 -0
- package/dts/src/stores/modules/settings.d.ts +1 -0
- package/dts/src/stores/modules/tagsView.d.ts +85 -0
- package/dts/src/stores/modules/user.d.ts +2 -0
- package/dts/src/types/index.d.ts +74 -0
- package/dts/src/utils/color.d.ts +69 -0
- package/dts/src/utils/common.d.ts +6 -0
- package/dts/src/utils/file_hash_util.d.ts +28 -0
- package/dts/src/utils/fileajax.d.ts +9 -0
- package/dts/src/utils/grpc.d.ts +3 -0
- package/dts/src/utils/i18n.d.ts +4 -0
- package/dts/src/utils/index.d.ts +33 -0
- package/dts/src/utils/netsecret.d.ts +1 -0
- package/dts/src/utils/nprogress.d.ts +4 -0
- package/dts/src/utils/request.d.ts +4 -0
- package/dts/src/utils/route.d.ts +6 -0
- package/dts/src/utils/scroll-to.d.ts +6 -0
- package/dts/src/utils/sm3.d.ts +10 -0
- package/dts/src/views/dashboard/components/BarChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/components/PieChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/index.vue.d.ts +2 -0
- package/dts/src/views/error-page/401.vue.d.ts +2 -0
- package/dts/src/views/error-page/404.vue.d.ts +2 -0
- package/dts/src/views/login/components/types.vue.d.ts +2 -0
- package/dts/src/views/login/index.vue.d.ts +2 -0
- package/dts/src/views/my/profile.vue.d.ts +2 -0
- package/dts/src/views/my/runAs.vue.d.ts +6 -0
- package/dts/src/views/my/updatePwd.vue.d.ts +18 -0
- package/dts/src/views/redirect/index.vue.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { _ as D } from "./picture-CBRsHLZl.mjs";
|
|
2
|
+
import { defineComponent as E, ref as V, reactive as p, resolveComponent as c, openBlock as N, createElementBlock as $, Fragment as q, createVNode as e, withCtx as l, createTextVNode as u, toDisplayString as f, createElementVNode as _ } from "vue";
|
|
3
|
+
import { p as B, b as I, q as R, v as S, t as z } from "./index-Bw3IdFvk.mjs";
|
|
4
|
+
const A = { class: "h-[40px]" }, M = { class: "image-slot" }, P = { class: "dialog-footer" }, H = /* @__PURE__ */ E({
|
|
5
|
+
__name: "types",
|
|
6
|
+
setup(T) {
|
|
7
|
+
const g = V(), i = p({
|
|
8
|
+
title: "",
|
|
9
|
+
visible: !1
|
|
10
|
+
}), n = p({
|
|
11
|
+
content: "获取验证码",
|
|
12
|
+
timers: 60,
|
|
13
|
+
disabled: !1
|
|
14
|
+
}), o = p({
|
|
15
|
+
name: "",
|
|
16
|
+
captchaId: "",
|
|
17
|
+
captchaCode: "",
|
|
18
|
+
validCode: ""
|
|
19
|
+
}), v = V(), C = p({
|
|
20
|
+
captchaCode: [{ required: !0, message: "请输入验证码", trigger: "blur" }],
|
|
21
|
+
name: [{ required: !0, message: "请输入邮箱或手机号", trigger: "blur" }]
|
|
22
|
+
// validCode: [
|
|
23
|
+
// { required: true, message: "请输入6位数字的验证码", trigger: "blur" },
|
|
24
|
+
// ],
|
|
25
|
+
});
|
|
26
|
+
function h() {
|
|
27
|
+
B().then(({ data: a }) => {
|
|
28
|
+
o.captchaId = a.captchaId, g.value = a.base64Image, i.visible = !0, o.captchaCode = "";
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function w() {
|
|
32
|
+
h();
|
|
33
|
+
}
|
|
34
|
+
const y = async () => {
|
|
35
|
+
var a;
|
|
36
|
+
await ((a = v.value) == null ? void 0 : a.validate((t) => {
|
|
37
|
+
if (t) {
|
|
38
|
+
i.visible = !1;
|
|
39
|
+
const m = {
|
|
40
|
+
tenant: I().user.tenant,
|
|
41
|
+
name: o.name,
|
|
42
|
+
captchaId: o.captchaId,
|
|
43
|
+
captchaCode: o.captchaCode
|
|
44
|
+
};
|
|
45
|
+
R(m).then(({ data: s }) => {
|
|
46
|
+
console.log(s);
|
|
47
|
+
const r = window.setInterval(() => {
|
|
48
|
+
n.content = n.timers + "s后重新发送", n.timers--, n.disabled = !0, n.timers < 0 && (n.timers = 60, n.disabled = !1, n.content = "重新发送验证码", window.clearInterval(r));
|
|
49
|
+
}, 1e3);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}));
|
|
53
|
+
};
|
|
54
|
+
function k() {
|
|
55
|
+
const a = {
|
|
56
|
+
tenant: I().user.tenant,
|
|
57
|
+
directoryId: "jmash",
|
|
58
|
+
name: o.name,
|
|
59
|
+
validCode: o.validCode,
|
|
60
|
+
clientId: S.APP_CLIENT_ID,
|
|
61
|
+
scope: ""
|
|
62
|
+
};
|
|
63
|
+
z(a).then((t) => {
|
|
64
|
+
console.log(t);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
return (a, t) => {
|
|
68
|
+
const m = c("el-input"), s = c("el-form-item"), r = c("el-button"), b = c("el-form"), x = D, F = c("el-image"), U = c("el-dialog");
|
|
69
|
+
return N(), $(q, null, [
|
|
70
|
+
e(b, {
|
|
71
|
+
ref_key: "ruleFormRef",
|
|
72
|
+
ref: v,
|
|
73
|
+
size: "large",
|
|
74
|
+
model: o,
|
|
75
|
+
rules: C
|
|
76
|
+
}, {
|
|
77
|
+
default: l(() => [
|
|
78
|
+
e(s, { prop: "name" }, {
|
|
79
|
+
default: l(() => [
|
|
80
|
+
e(m, {
|
|
81
|
+
modelValue: o.name,
|
|
82
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => o.name = d),
|
|
83
|
+
clearable: "",
|
|
84
|
+
placeholder: "请输入邮箱/已验证手机号"
|
|
85
|
+
}, null, 8, ["modelValue"])
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
}),
|
|
89
|
+
e(s, { prop: "validCode" }, {
|
|
90
|
+
default: l(() => [
|
|
91
|
+
e(m, {
|
|
92
|
+
modelValue: o.validCode,
|
|
93
|
+
"onUpdate:modelValue": t[1] || (t[1] = (d) => o.validCode = d),
|
|
94
|
+
placeholder: "请输入验证码",
|
|
95
|
+
clearable: ""
|
|
96
|
+
}, {
|
|
97
|
+
append: l(() => [
|
|
98
|
+
e(r, {
|
|
99
|
+
disabled: n.disabled,
|
|
100
|
+
onClick: w
|
|
101
|
+
}, {
|
|
102
|
+
default: l(() => [
|
|
103
|
+
u(f(n.content), 1)
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["disabled"])
|
|
107
|
+
]),
|
|
108
|
+
_: 1
|
|
109
|
+
}, 8, ["modelValue"])
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
}),
|
|
113
|
+
e(s, null, {
|
|
114
|
+
default: l(() => [
|
|
115
|
+
e(r, {
|
|
116
|
+
type: "primary",
|
|
117
|
+
class: "w-full",
|
|
118
|
+
onClick: k
|
|
119
|
+
}, {
|
|
120
|
+
default: l(() => [
|
|
121
|
+
u(" 登录 ")
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
})
|
|
125
|
+
]),
|
|
126
|
+
_: 1
|
|
127
|
+
})
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 8, ["model", "rules"]),
|
|
131
|
+
e(U, {
|
|
132
|
+
title: "提示",
|
|
133
|
+
modelValue: i.visible,
|
|
134
|
+
"onUpdate:modelValue": t[4] || (t[4] = (d) => i.visible = d),
|
|
135
|
+
width: "500px"
|
|
136
|
+
}, {
|
|
137
|
+
footer: l(() => [
|
|
138
|
+
_("div", P, [
|
|
139
|
+
e(r, {
|
|
140
|
+
onClick: t[3] || (t[3] = (d) => i.visible = !1)
|
|
141
|
+
}, {
|
|
142
|
+
default: l(() => [
|
|
143
|
+
u(f(a.$t("common.cancel")), 1)
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
}),
|
|
147
|
+
e(r, {
|
|
148
|
+
type: "primary",
|
|
149
|
+
onClick: y
|
|
150
|
+
}, {
|
|
151
|
+
default: l(() => [
|
|
152
|
+
u(f(a.$t("common.confirm")), 1)
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
})
|
|
156
|
+
])
|
|
157
|
+
]),
|
|
158
|
+
default: l(() => [
|
|
159
|
+
e(b, {
|
|
160
|
+
ref: "pwdFormRef",
|
|
161
|
+
size: "large",
|
|
162
|
+
model: o,
|
|
163
|
+
rules: C
|
|
164
|
+
}, {
|
|
165
|
+
default: l(() => [
|
|
166
|
+
e(s, { prop: "captchaCode" }, {
|
|
167
|
+
default: l(() => [
|
|
168
|
+
e(m, {
|
|
169
|
+
modelValue: o.captchaCode,
|
|
170
|
+
"onUpdate:modelValue": t[2] || (t[2] = (d) => o.captchaCode = d),
|
|
171
|
+
"auto-complete": "off",
|
|
172
|
+
placeholder: a.$t("login.captchaCode"),
|
|
173
|
+
class: "w-[60%]"
|
|
174
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
175
|
+
_("div", A, [
|
|
176
|
+
e(F, {
|
|
177
|
+
src: g.value,
|
|
178
|
+
onClick: h,
|
|
179
|
+
class: "w-[130px] h-[40px] cursor-pointer"
|
|
180
|
+
}, {
|
|
181
|
+
error: l(() => [
|
|
182
|
+
_("div", M, [
|
|
183
|
+
e(x)
|
|
184
|
+
])
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
}, 8, ["src"])
|
|
188
|
+
])
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
})
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
}, 8, ["model", "rules"])
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["modelValue"])
|
|
198
|
+
], 64);
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
export {
|
|
203
|
+
H as default
|
|
204
|
+
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { defineComponent as q, ref as v, toRefs as E, reactive as V, resolveComponent as i, openBlock as O, createBlock as A, unref as t, isRef as U, withCtx as n, createElementVNode as B, createVNode as r, createTextVNode as g, toDisplayString as _ } from "vue";
|
|
2
|
+
import { ElMessage as D } from "element-plus";
|
|
3
|
+
import { y as b, aC as I } from "./index-Bw3IdFvk.mjs";
|
|
4
|
+
import { useI18n as S } from "vue-i18n";
|
|
5
|
+
const z = { class: "dialog-footer" }, G = /* @__PURE__ */ q({
|
|
6
|
+
__name: "updatePwd",
|
|
7
|
+
props: {
|
|
8
|
+
pwdVisible: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !1
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
emits: ["dialogActionChange"],
|
|
14
|
+
setup(y, { emit: R }) {
|
|
15
|
+
const { t: a } = S(), p = v(), C = y, { pwdVisible: u } = E(C), c = R;
|
|
16
|
+
let l = V({
|
|
17
|
+
encodeOldPwd: "",
|
|
18
|
+
encodeNewPwd: "",
|
|
19
|
+
confirmPwd: ""
|
|
20
|
+
});
|
|
21
|
+
const N = V({
|
|
22
|
+
encodeOldPwd: [{ required: !0, validator: (o, e, d) => {
|
|
23
|
+
e === "" ? d(new Error(a("password.oldPwdRequired"))) : d();
|
|
24
|
+
}, trigger: "blur" }],
|
|
25
|
+
encodeNewPwd: [{ required: !0, validator: (o, e, d) => {
|
|
26
|
+
e === "" ? d(new Error(a("password.newPwdRequired"))) : /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%?^&*,\._\+(){}])[0-9a-zA-Z!@#$%?^&*,\\._\+(){}]{8,20}$/.test(e) ? d() : d(new Error(a("password.pwdRules")));
|
|
27
|
+
}, trigger: "blur" }],
|
|
28
|
+
confirmPwd: [{ required: !0, validator: (o, e, d) => {
|
|
29
|
+
e === "" ? d(new Error(a("password.confirmPwdRequired"))) : e !== l.encodeNewPwd ? d(new Error(a("password.comparePwd"))) : d();
|
|
30
|
+
}, trigger: "blur" }]
|
|
31
|
+
}), $ = async () => {
|
|
32
|
+
var o;
|
|
33
|
+
await ((o = p.value) == null ? void 0 : o.validate((e) => {
|
|
34
|
+
if (e) {
|
|
35
|
+
let d = b(l.encodeOldPwd), w = b(l.encodeNewPwd);
|
|
36
|
+
I(d, w).then((m) => {
|
|
37
|
+
m.status === 200 && (D({
|
|
38
|
+
message: a("password.successResetPwd"),
|
|
39
|
+
type: "success"
|
|
40
|
+
}), c("dialogActionChange", !1));
|
|
41
|
+
});
|
|
42
|
+
} else
|
|
43
|
+
return Promise.reject();
|
|
44
|
+
}));
|
|
45
|
+
};
|
|
46
|
+
function f() {
|
|
47
|
+
var o;
|
|
48
|
+
(o = p.value) == null || o.resetFields(), c("dialogActionChange", !1);
|
|
49
|
+
}
|
|
50
|
+
return (o, e) => {
|
|
51
|
+
const d = i("el-input"), w = i("el-form-item"), m = i("el-form"), P = i("el-button"), h = i("el-dialog");
|
|
52
|
+
return O(), A(h, {
|
|
53
|
+
title: "修改密码",
|
|
54
|
+
modelValue: t(u),
|
|
55
|
+
"onUpdate:modelValue": e[3] || (e[3] = (s) => U(u) ? u.value = s : null),
|
|
56
|
+
width: "500px",
|
|
57
|
+
onClose: f
|
|
58
|
+
}, {
|
|
59
|
+
footer: n(() => [
|
|
60
|
+
B("div", z, [
|
|
61
|
+
r(P, { onClick: f }, {
|
|
62
|
+
default: n(() => [
|
|
63
|
+
g(_(o.$t("common.cancel")), 1)
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
}),
|
|
67
|
+
r(P, {
|
|
68
|
+
type: "primary",
|
|
69
|
+
onClick: $
|
|
70
|
+
}, {
|
|
71
|
+
default: n(() => [
|
|
72
|
+
g(_(o.$t("common.confirm")), 1)
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
})
|
|
76
|
+
])
|
|
77
|
+
]),
|
|
78
|
+
default: n(() => [
|
|
79
|
+
r(m, {
|
|
80
|
+
ref_key: "pwdRef",
|
|
81
|
+
ref: p,
|
|
82
|
+
model: t(l),
|
|
83
|
+
"label-width": "80px",
|
|
84
|
+
rules: N
|
|
85
|
+
}, {
|
|
86
|
+
default: n(() => [
|
|
87
|
+
r(w, {
|
|
88
|
+
label: o.$t("password.oldPwd"),
|
|
89
|
+
prop: "encodeOldPwd"
|
|
90
|
+
}, {
|
|
91
|
+
default: n(() => [
|
|
92
|
+
r(d, {
|
|
93
|
+
type: "password",
|
|
94
|
+
modelValue: t(l).encodeOldPwd,
|
|
95
|
+
"onUpdate:modelValue": e[0] || (e[0] = (s) => t(l).encodeOldPwd = s),
|
|
96
|
+
placeholder: o.$t("password.oldPwdRequired"),
|
|
97
|
+
"show-password": "",
|
|
98
|
+
clearable: ""
|
|
99
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 8, ["label"]),
|
|
103
|
+
r(w, {
|
|
104
|
+
label: o.$t("password.newPwd"),
|
|
105
|
+
prop: "encodeNewPwd"
|
|
106
|
+
}, {
|
|
107
|
+
default: n(() => [
|
|
108
|
+
r(d, {
|
|
109
|
+
type: "password",
|
|
110
|
+
modelValue: t(l).encodeNewPwd,
|
|
111
|
+
"onUpdate:modelValue": e[1] || (e[1] = (s) => t(l).encodeNewPwd = s),
|
|
112
|
+
placeholder: o.$t("password.newPwdRequired"),
|
|
113
|
+
"show-password": "",
|
|
114
|
+
clearable: ""
|
|
115
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 8, ["label"]),
|
|
119
|
+
r(w, {
|
|
120
|
+
label: o.$t("password.confirmPwd"),
|
|
121
|
+
prop: "confirmPwd"
|
|
122
|
+
}, {
|
|
123
|
+
default: n(() => [
|
|
124
|
+
r(d, {
|
|
125
|
+
type: "password",
|
|
126
|
+
modelValue: t(l).confirmPwd,
|
|
127
|
+
"onUpdate:modelValue": e[2] || (e[2] = (s) => t(l).confirmPwd = s),
|
|
128
|
+
placeholder: o.$t("password.confirmPwdRequired"),
|
|
129
|
+
"show-password": "",
|
|
130
|
+
clearable: ""
|
|
131
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
}, 8, ["label"])
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
}, 8, ["model", "rules"])
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}, 8, ["modelValue"]);
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
export {
|
|
145
|
+
G as _
|
|
146
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { AxiosPromise } from "axios";
|
|
2
|
+
import type { CaptchaResult, LoginData, LoginResult, UserInfo, RolesPerms } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* 登录API
|
|
5
|
+
*
|
|
6
|
+
* @param data {LoginData}
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function loginApi(data: LoginData): AxiosPromise<LoginResult>;
|
|
10
|
+
/**
|
|
11
|
+
* 刷新Token
|
|
12
|
+
*/
|
|
13
|
+
export declare function refreshTokenApi(token: string): AxiosPromise<LoginResult>;
|
|
14
|
+
/**
|
|
15
|
+
* 注销API
|
|
16
|
+
*/
|
|
17
|
+
export declare function logoutApi(accessToken: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
18
|
+
/**
|
|
19
|
+
* 获取验证码
|
|
20
|
+
*/
|
|
21
|
+
export declare function getCaptchaApi(): AxiosPromise<CaptchaResult>;
|
|
22
|
+
/**
|
|
23
|
+
* 获取手机号验证码
|
|
24
|
+
*/
|
|
25
|
+
export declare function sendcode(data: any): AxiosPromise<CaptchaResult>;
|
|
26
|
+
/**
|
|
27
|
+
* 通过验证码登录
|
|
28
|
+
*/
|
|
29
|
+
export declare function logincode(data: any): AxiosPromise<CaptchaResult>;
|
|
30
|
+
/**
|
|
31
|
+
* 用户信息
|
|
32
|
+
*/
|
|
33
|
+
export declare function getUserInfoApi(): AxiosPromise<UserInfo>;
|
|
34
|
+
export declare function updateUser(data: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
35
|
+
export declare function updatePwd(encodeOldPwd: string, encodeNewPwd: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
36
|
+
export declare function allowRunAsUser(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
|
+
/**
|
|
38
|
+
* 切换用户身份
|
|
39
|
+
*/
|
|
40
|
+
export declare function runAsUser(userId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
41
|
+
export declare function selectDsdRoles(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
42
|
+
/**
|
|
43
|
+
* 获取所有角色列表
|
|
44
|
+
*
|
|
45
|
+
* @returns 返回请求响应结果
|
|
46
|
+
*/
|
|
47
|
+
export declare function listRoles(): AxiosPromise<RolesPerms>;
|
|
48
|
+
/**
|
|
49
|
+
* 获取所有路由列表
|
|
50
|
+
*
|
|
51
|
+
* @returns 返回请求结果的Promise对象
|
|
52
|
+
*/
|
|
53
|
+
export declare function listRoutes(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
54
|
+
/**
|
|
55
|
+
* 获取部门树形列表
|
|
56
|
+
*
|
|
57
|
+
* @param deptId 部门ID,可选
|
|
58
|
+
* @returns 返回部门树形列表
|
|
59
|
+
*/
|
|
60
|
+
export declare function treelistDept(deptId?: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
61
|
+
/**
|
|
62
|
+
* 获取树形列表中所有岗位信息
|
|
63
|
+
*
|
|
64
|
+
* @returns 返回请求结果
|
|
65
|
+
*/
|
|
66
|
+
export declare function treelistJob(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import type { RouteComponent, RouteRecordRedirectOption, RouteMeta, RouteRecordName } from "vue-router";
|
|
2
|
+
declare type Lazy<T> = () => Promise<T>;
|
|
3
|
+
/** 路由类型 */
|
|
4
|
+
export interface RouteRecord {
|
|
5
|
+
path: string;
|
|
6
|
+
name?: RouteRecordName;
|
|
7
|
+
redirect?: RouteRecordRedirectOption;
|
|
8
|
+
componentName: RouteComponent | Lazy<RouteComponent> | never | string;
|
|
9
|
+
meta: RouteMeta;
|
|
10
|
+
children?: RouteRecord[] | null;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 登录用户信息
|
|
14
|
+
*/
|
|
15
|
+
export interface UserInfo {
|
|
16
|
+
userId?: string;
|
|
17
|
+
loginName?: string;
|
|
18
|
+
nickName?: string;
|
|
19
|
+
avatar?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 用户存储信息
|
|
23
|
+
*/
|
|
24
|
+
export interface UserStoreInfo {
|
|
25
|
+
userId?: string;
|
|
26
|
+
loginName?: string;
|
|
27
|
+
nickName?: string;
|
|
28
|
+
avatar?: string;
|
|
29
|
+
tenant: string;
|
|
30
|
+
roleCodes: string[];
|
|
31
|
+
permCodes: string[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 登录请求参数
|
|
35
|
+
*/
|
|
36
|
+
export interface LoginData {
|
|
37
|
+
/**
|
|
38
|
+
* 互斥角色
|
|
39
|
+
*/
|
|
40
|
+
scope: string;
|
|
41
|
+
/**
|
|
42
|
+
* 用户名
|
|
43
|
+
*/
|
|
44
|
+
username: string;
|
|
45
|
+
/**
|
|
46
|
+
* 密码
|
|
47
|
+
*/
|
|
48
|
+
password: string;
|
|
49
|
+
/**
|
|
50
|
+
* 验证码缓存key
|
|
51
|
+
*/
|
|
52
|
+
captchaKey?: string;
|
|
53
|
+
/**
|
|
54
|
+
* 验证码
|
|
55
|
+
*/
|
|
56
|
+
captchaCode?: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* 登录响应
|
|
60
|
+
*/
|
|
61
|
+
export interface LoginResult {
|
|
62
|
+
/**
|
|
63
|
+
* 访问token
|
|
64
|
+
*/
|
|
65
|
+
accessToken?: string;
|
|
66
|
+
/**
|
|
67
|
+
* 过期时间(单位:毫秒)
|
|
68
|
+
*/
|
|
69
|
+
expires?: number;
|
|
70
|
+
/**
|
|
71
|
+
* 刷新token
|
|
72
|
+
*/
|
|
73
|
+
refreshToken?: string;
|
|
74
|
+
/**
|
|
75
|
+
* token 类型
|
|
76
|
+
*/
|
|
77
|
+
tokenType?: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* 验证码响应
|
|
81
|
+
*/
|
|
82
|
+
export interface CaptchaResult {
|
|
83
|
+
/** 验证码缓存key */
|
|
84
|
+
captchaId: string;
|
|
85
|
+
/** 问题 */
|
|
86
|
+
question: string;
|
|
87
|
+
/** 验证码图片Base64字符串 */
|
|
88
|
+
base64Image: string;
|
|
89
|
+
}
|
|
90
|
+
export interface SendModelRef {
|
|
91
|
+
/**
|
|
92
|
+
* 操作内容
|
|
93
|
+
*/
|
|
94
|
+
content: string;
|
|
95
|
+
/**
|
|
96
|
+
* 倒计时
|
|
97
|
+
*/
|
|
98
|
+
timers: number;
|
|
99
|
+
/**
|
|
100
|
+
* 按钮启用/禁用
|
|
101
|
+
*/
|
|
102
|
+
disabled: boolean;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* 找回密码
|
|
106
|
+
*/
|
|
107
|
+
export interface VerificateRef {
|
|
108
|
+
/**
|
|
109
|
+
* 邮箱、手机号
|
|
110
|
+
*/
|
|
111
|
+
name: string;
|
|
112
|
+
/**
|
|
113
|
+
* 图片验证码ID
|
|
114
|
+
*/
|
|
115
|
+
captchaId: string;
|
|
116
|
+
/**
|
|
117
|
+
* 图片验证码
|
|
118
|
+
*/
|
|
119
|
+
captchaCode: string;
|
|
120
|
+
/**
|
|
121
|
+
* 手机号、邮箱的验证码
|
|
122
|
+
*/
|
|
123
|
+
validCode: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* 修改密码
|
|
127
|
+
*/
|
|
128
|
+
export interface UpdatePwdForm {
|
|
129
|
+
/**
|
|
130
|
+
* 旧密码
|
|
131
|
+
*/
|
|
132
|
+
encodeOldPwd: string;
|
|
133
|
+
/**
|
|
134
|
+
* 新密码
|
|
135
|
+
*/
|
|
136
|
+
encodeNewPwd: string;
|
|
137
|
+
/**
|
|
138
|
+
* 确认密码
|
|
139
|
+
*/
|
|
140
|
+
confirmPwd: string;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* 找回密码
|
|
144
|
+
*/
|
|
145
|
+
export interface FindPwdRef {
|
|
146
|
+
/**
|
|
147
|
+
* 租户
|
|
148
|
+
*/
|
|
149
|
+
tenant: string;
|
|
150
|
+
/**
|
|
151
|
+
* 新密码
|
|
152
|
+
*/
|
|
153
|
+
pwd: string;
|
|
154
|
+
/**
|
|
155
|
+
* 确认密码
|
|
156
|
+
*/
|
|
157
|
+
repeatPwd: string;
|
|
158
|
+
/**
|
|
159
|
+
* 手机号、邮箱
|
|
160
|
+
*/
|
|
161
|
+
name: string;
|
|
162
|
+
/**
|
|
163
|
+
* 手机号、邮箱的验证码
|
|
164
|
+
*/
|
|
165
|
+
validCode: string;
|
|
166
|
+
/**
|
|
167
|
+
* 目录ID
|
|
168
|
+
*/
|
|
169
|
+
directoryId: string;
|
|
170
|
+
}
|
|
171
|
+
export interface UserForm {
|
|
172
|
+
tenant?: string;
|
|
173
|
+
updateMask?: string;
|
|
174
|
+
requestId?: string;
|
|
175
|
+
userId?: string;
|
|
176
|
+
repeatPwd?: string;
|
|
177
|
+
avatar?: string;
|
|
178
|
+
directoryId?: string;
|
|
179
|
+
loginName?: string;
|
|
180
|
+
nickName?: string;
|
|
181
|
+
realName?: string;
|
|
182
|
+
birthDate?: string;
|
|
183
|
+
gender?: string;
|
|
184
|
+
mobilePhone?: string;
|
|
185
|
+
roleIds: Array<string>;
|
|
186
|
+
email?: string;
|
|
187
|
+
status?: string;
|
|
188
|
+
pwd?: string;
|
|
189
|
+
userJobs?: UserJobsItem[];
|
|
190
|
+
phoneApproved?: boolean;
|
|
191
|
+
emailApproved?: boolean;
|
|
192
|
+
}
|
|
193
|
+
export interface UserJobsItem {
|
|
194
|
+
deptId: string;
|
|
195
|
+
jobId: string;
|
|
196
|
+
}
|
|
197
|
+
export interface RolesPerms {
|
|
198
|
+
roleCodes: string[];
|
|
199
|
+
permCodes: string[];
|
|
200
|
+
}
|
|
201
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { AxiosPromise } from "axios";
|
|
2
|
+
import type { FileInfo, FileBase64Req } from "./types";
|
|
3
|
+
declare class FileApi {
|
|
4
|
+
baseApiUrl(): string;
|
|
5
|
+
/** 上传Url */
|
|
6
|
+
uploadUrl(): string;
|
|
7
|
+
/** Authorization */
|
|
8
|
+
authHeader(): Object;
|
|
9
|
+
/**
|
|
10
|
+
* url 获取图片Full路径
|
|
11
|
+
* @param type resize 等比例缩放,white 补白,trans 补透明,clip 裁剪
|
|
12
|
+
*/
|
|
13
|
+
imageUrl(imageUrl: string, width?: number, height?: number, type?: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Id 获取图片Full路径
|
|
16
|
+
* @param type resize 等比例缩放,white 补白,trans 补透明,clip 裁剪
|
|
17
|
+
*/
|
|
18
|
+
imageIdUrl(imageId: string, width?: number, height?: number, type?: string): string;
|
|
19
|
+
/** url 获取文件Full路径 */
|
|
20
|
+
fileUrl(fileUrl?: string): string;
|
|
21
|
+
/** Id 获取文件Full路径 */
|
|
22
|
+
fileIdUrl(fileId?: string): string;
|
|
23
|
+
/** 文件是否存在 */
|
|
24
|
+
existFileHex(file: File, sm3: string, sha256: string): AxiosPromise<FileInfo>;
|
|
25
|
+
/** 上传文件 */
|
|
26
|
+
uploadBase64File(base64: FileBase64Req): AxiosPromise<FileInfo>;
|
|
27
|
+
/** 上传文件 */
|
|
28
|
+
uploadFileApi(file: File): AxiosPromise<FileInfo>;
|
|
29
|
+
/** 删除文件 */
|
|
30
|
+
deleteFileApi(filePath?: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
|
+
}
|
|
32
|
+
declare const fileApi: FileApi;
|
|
33
|
+
export { fileApi };
|