zsysview 0.1.34 → 0.1.35
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/{backup-BLE-nrg2.js → backup-BomDF70f.js} +1 -1
- package/dist/{building-BT7LQTNX.js → building-D7SfeTp3.js} +1 -1
- package/dist/change_password-DD2T6X7I.js +17 -0
- package/dist/change_password_panel.vue_vue_type_script_setup_true_lang-CDSXHHec.js +155 -0
- package/dist/{department-BgggtWRy.js → department-BULuEdr3.js} +1 -1
- package/dist/{help-DEEzBbCi.js → help-Dq_D2MVF.js} +1 -1
- package/dist/{index-AWs6yDvi.js → index-CtKk28NV.js} +148 -142
- package/dist/{log-BM0xYm3t.js → log-CdUReCmA.js} +1 -1
- package/dist/login-CBHzo0k4.js +143 -0
- package/dist/{main-DargS7FG.js → main-9qsBz3n1.js} +12 -6
- package/dist/{notification-DyEvP4zX.js → notification-BLE-evDJ.js} +1 -1
- package/dist/nyxxx.mp3 +0 -0
- package/dist/{position-B_nM9rnB.js → position-CZLL-EtO.js} +3 -2
- package/dist/{role-DlnOMUpa.js → role-CCfEGckq.js} +1 -1
- package/dist/{self-CZDkNDaW.js → self-zgC9Bxvr.js} +1 -1
- package/dist/{systemsetting-B9_eHvzU.js → systemsetting-Clvu_Ins.js} +1 -1
- package/dist/{user-ziHTW4a_.js → user-DfIRlt4y.js} +149 -14
- package/dist/{version-DD_ggGRu.js → version-C6UTuUy4.js} +1 -1
- package/dist/zsysview.css +1 -1
- package/dist/zsysview.es.d.ts +238 -234
- package/dist/zsysview.es.js +14 -14
- package/package.json +1 -1
- package/dist/change_password-DkRK4FEF.js +0 -132
- package/dist/login-DDqlMXu_.js +0 -112
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, reactive, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode } from "vue";
|
|
2
|
-
import { e as useRouter, i as _sfc_main$1, H as HttpApiV1, Z as ZSYSMessage } from "./index-AWs6yDvi.js";
|
|
3
|
-
import { h } from "./index.es-DrN1BLo5.js";
|
|
4
|
-
const _hoisted_1 = { style: { padding: "0px 20px", "margin-top": "20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "change_password",
|
|
6
|
-
setup(__props) {
|
|
7
|
-
const ruleFormRef = ref(), r = useRouter(), goBack = () => {
|
|
8
|
-
r.back();
|
|
9
|
-
}, view = reactive({
|
|
10
|
-
isloading: !1
|
|
11
|
-
}), form_data = reactive({
|
|
12
|
-
old_p: "",
|
|
13
|
-
new_p1: "",
|
|
14
|
-
new_p2: ""
|
|
15
|
-
}), rules = reactive({
|
|
16
|
-
old_p: [
|
|
17
|
-
{ required: !0, message: "请输入旧密码", trigger: "blur" }
|
|
18
|
-
],
|
|
19
|
-
new_p1: [
|
|
20
|
-
{ required: !0, message: "请输入新密码", trigger: "blur" },
|
|
21
|
-
{ min: 6, max: 18, message: "密码长度为6-18位", trigger: "blur" }
|
|
22
|
-
],
|
|
23
|
-
new_p2: [
|
|
24
|
-
{ required: !0, message: "请输入新密码", trigger: "blur" },
|
|
25
|
-
{ min: 6, max: 18, message: "密码长度为6-18位", trigger: "blur" }
|
|
26
|
-
]
|
|
27
|
-
}), submitForm = (formEl) => {
|
|
28
|
-
formEl && formEl.validate((valid) => {
|
|
29
|
-
valid ? (view.isloading = !0, HttpApiV1.Post(HttpApiV1.url_change_password, {
|
|
30
|
-
old_p: h.hashStr(form_data.old_p),
|
|
31
|
-
new_p: h.hashStr(form_data.new_p1)
|
|
32
|
-
}).then((res) => {
|
|
33
|
-
res.IsSuccess ? (ZSYSMessage.ShowSuccess("密码修改成功"), r.back()) : ZSYSMessage.ShowError("密码修改失败");
|
|
34
|
-
}).catch((err) => {
|
|
35
|
-
console.log(err);
|
|
36
|
-
}).finally(() => {
|
|
37
|
-
view.isloading = !1;
|
|
38
|
-
})) : console.log("error submit!");
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
return (_ctx, _cache) => {
|
|
42
|
-
const _component_el_input = resolveComponent("el-input"), _component_el_form_item = resolveComponent("el-form-item"), _component_el_button = resolveComponent("el-button"), _component_el_form = resolveComponent("el-form");
|
|
43
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
44
|
-
createVNode(_sfc_main$1),
|
|
45
|
-
createElementVNode("div", _hoisted_1, [
|
|
46
|
-
createVNode(_component_el_form, {
|
|
47
|
-
ref_key: "ruleFormRef",
|
|
48
|
-
ref: ruleFormRef,
|
|
49
|
-
"label-width": "auto",
|
|
50
|
-
style: { "max-width": "400px", "margin-left": "80px" },
|
|
51
|
-
rules,
|
|
52
|
-
model: form_data,
|
|
53
|
-
"status-icon": ""
|
|
54
|
-
}, {
|
|
55
|
-
default: withCtx(() => [
|
|
56
|
-
createVNode(_component_el_form_item, {
|
|
57
|
-
label: "旧密码",
|
|
58
|
-
prop: "old_p"
|
|
59
|
-
}, {
|
|
60
|
-
default: withCtx(() => [
|
|
61
|
-
createVNode(_component_el_input, {
|
|
62
|
-
modelValue: form_data.old_p,
|
|
63
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form_data.old_p = $event),
|
|
64
|
-
size: "large",
|
|
65
|
-
"show-password": ""
|
|
66
|
-
}, null, 8, ["modelValue"])
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
}),
|
|
70
|
-
createVNode(_component_el_form_item, {
|
|
71
|
-
label: "新密码",
|
|
72
|
-
prop: "new_p1"
|
|
73
|
-
}, {
|
|
74
|
-
default: withCtx(() => [
|
|
75
|
-
createVNode(_component_el_input, {
|
|
76
|
-
modelValue: form_data.new_p1,
|
|
77
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form_data.new_p1 = $event),
|
|
78
|
-
size: "large",
|
|
79
|
-
"show-password": ""
|
|
80
|
-
}, null, 8, ["modelValue"])
|
|
81
|
-
]),
|
|
82
|
-
_: 1
|
|
83
|
-
}),
|
|
84
|
-
createVNode(_component_el_form_item, {
|
|
85
|
-
label: "再次输入新密码",
|
|
86
|
-
prop: "new_p2"
|
|
87
|
-
}, {
|
|
88
|
-
default: withCtx(() => [
|
|
89
|
-
createVNode(_component_el_input, {
|
|
90
|
-
modelValue: form_data.new_p2,
|
|
91
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form_data.new_p2 = $event),
|
|
92
|
-
size: "large",
|
|
93
|
-
"show-password": ""
|
|
94
|
-
}, null, 8, ["modelValue"])
|
|
95
|
-
]),
|
|
96
|
-
_: 1
|
|
97
|
-
}),
|
|
98
|
-
createVNode(_component_el_form_item, { style: { "margin-left": "120px" } }, {
|
|
99
|
-
default: withCtx(() => [
|
|
100
|
-
createVNode(_component_el_button, {
|
|
101
|
-
type: "primary",
|
|
102
|
-
onClick: _cache[3] || (_cache[3] = ($event) => submitForm(ruleFormRef.value)),
|
|
103
|
-
loading: view.isloading
|
|
104
|
-
}, {
|
|
105
|
-
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
106
|
-
createTextVNode("确认修改", -1)
|
|
107
|
-
])]),
|
|
108
|
-
_: 1
|
|
109
|
-
}, 8, ["loading"]),
|
|
110
|
-
createVNode(_component_el_button, {
|
|
111
|
-
onClick: goBack,
|
|
112
|
-
disabled: view.isloading
|
|
113
|
-
}, {
|
|
114
|
-
default: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
115
|
-
createTextVNode("返回", -1)
|
|
116
|
-
])]),
|
|
117
|
-
_: 1
|
|
118
|
-
}, 8, ["disabled"])
|
|
119
|
-
]),
|
|
120
|
-
_: 1
|
|
121
|
-
})
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
}, 8, ["rules", "model"])
|
|
125
|
-
])
|
|
126
|
-
], 64);
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
export {
|
|
131
|
-
_sfc_main as default
|
|
132
|
-
};
|
package/dist/login-DDqlMXu_.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { defineComponent, reactive, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, withKeys, createTextVNode, createElementVNode, toDisplayString, inject } from "vue";
|
|
2
|
-
import { e as useRouter, p as useRoute, H as HttpApiV1, Z as ZSYSMessage, _ as _export_sfc } from "./index-AWs6yDvi.js";
|
|
3
|
-
import { h } from "./index.es-DrN1BLo5.js";
|
|
4
|
-
const _hoisted_1 = {
|
|
5
|
-
class: "bg",
|
|
6
|
-
style: { "background-image": "url('/public/img/login_bg.jpg')" }
|
|
7
|
-
}, _hoisted_2 = {
|
|
8
|
-
class: "card-header",
|
|
9
|
-
style: {}
|
|
10
|
-
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
-
__name: "login",
|
|
12
|
-
setup(__props) {
|
|
13
|
-
const r = useRouter(), route = useRoute(), d = reactive({
|
|
14
|
-
u: "",
|
|
15
|
-
p: ""
|
|
16
|
-
}), view = reactive({
|
|
17
|
-
loading: !1
|
|
18
|
-
}), ToPasswordInput = () => {
|
|
19
|
-
}, login2 = () => {
|
|
20
|
-
view.loading = !0;
|
|
21
|
-
let data = {
|
|
22
|
-
u: d.u,
|
|
23
|
-
p: h.hashStr(d.p)
|
|
24
|
-
};
|
|
25
|
-
HttpApiV1.Post(HttpApiV1.url_login, data).then((res) => {
|
|
26
|
-
res.IsSuccess ? (ZSYSMessage.ShowSuccess("登录成功"), r.push(route.query.redirect || "/desktop")) : ZSYSMessage.ShowError(res.message);
|
|
27
|
-
}).catch(() => {
|
|
28
|
-
console.log("请求失败"), ZSYSMessage.ShowError("登录服务器失败");
|
|
29
|
-
}).finally(() => {
|
|
30
|
-
view.loading = !1;
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
return (_ctx, _cache) => {
|
|
34
|
-
const _component_el_image = resolveComponent("el-image"), _component_el_input = resolveComponent("el-input"), _component_el_form_item = resolveComponent("el-form-item"), _component_el_button = resolveComponent("el-button"), _component_el_form = resolveComponent("el-form"), _component_el_card = resolveComponent("el-card");
|
|
35
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
36
|
-
createVNode(_component_el_card, {
|
|
37
|
-
style: { width: "300px", "text-align": "center" },
|
|
38
|
-
shadow: "always",
|
|
39
|
-
class: "align-center"
|
|
40
|
-
}, {
|
|
41
|
-
header: withCtx(() => [
|
|
42
|
-
createElementVNode("div", _hoisted_2, [
|
|
43
|
-
createElementVNode("span", null, toDisplayString(inject("appname")), 1)
|
|
44
|
-
])
|
|
45
|
-
]),
|
|
46
|
-
default: withCtx(() => [
|
|
47
|
-
createVNode(_component_el_image, {
|
|
48
|
-
style: { height: "100px" },
|
|
49
|
-
src: "/public/img/logo_100.png"
|
|
50
|
-
}),
|
|
51
|
-
createVNode(_component_el_form, {
|
|
52
|
-
"label-width": "auto",
|
|
53
|
-
"label-position": "top"
|
|
54
|
-
}, {
|
|
55
|
-
default: withCtx(() => [
|
|
56
|
-
createVNode(_component_el_form_item, { label: "用户名" }, {
|
|
57
|
-
default: withCtx(() => [
|
|
58
|
-
createVNode(_component_el_input, {
|
|
59
|
-
size: "large",
|
|
60
|
-
autofocus: !0,
|
|
61
|
-
modelValue: d.u,
|
|
62
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => d.u = $event),
|
|
63
|
-
clearable: "",
|
|
64
|
-
onKeyup: withKeys(ToPasswordInput, ["enter", "native"])
|
|
65
|
-
}, null, 8, ["modelValue"])
|
|
66
|
-
]),
|
|
67
|
-
_: 1
|
|
68
|
-
}),
|
|
69
|
-
createVNode(_component_el_form_item, { label: "密码" }, {
|
|
70
|
-
default: withCtx(() => [
|
|
71
|
-
createVNode(_component_el_input, {
|
|
72
|
-
ref: "PasswordInput",
|
|
73
|
-
size: "large",
|
|
74
|
-
modelValue: d.p,
|
|
75
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => d.p = $event),
|
|
76
|
-
clearable: "",
|
|
77
|
-
"show-password": "",
|
|
78
|
-
onKeyup: withKeys(login2, ["enter", "native"])
|
|
79
|
-
}, null, 8, ["modelValue"])
|
|
80
|
-
]),
|
|
81
|
-
_: 1
|
|
82
|
-
}),
|
|
83
|
-
createVNode(_component_el_form_item, null, {
|
|
84
|
-
default: withCtx(() => [
|
|
85
|
-
createVNode(_component_el_button, {
|
|
86
|
-
type: "primary",
|
|
87
|
-
size: "large",
|
|
88
|
-
loading: view.loading,
|
|
89
|
-
onClick: login2,
|
|
90
|
-
style: { width: "100%" }
|
|
91
|
-
}, {
|
|
92
|
-
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
93
|
-
createTextVNode("登录", -1)
|
|
94
|
-
])]),
|
|
95
|
-
_: 1
|
|
96
|
-
}, 8, ["loading"])
|
|
97
|
-
]),
|
|
98
|
-
_: 1
|
|
99
|
-
})
|
|
100
|
-
]),
|
|
101
|
-
_: 1
|
|
102
|
-
})
|
|
103
|
-
]),
|
|
104
|
-
_: 1
|
|
105
|
-
})
|
|
106
|
-
]);
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
}), login = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8dfd6f39"]]);
|
|
110
|
-
export {
|
|
111
|
-
login as default
|
|
112
|
-
};
|