zsysview 0.1.32 → 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-CFP-AaRe.js → backup-BomDF70f.js} +1 -1
- package/dist/{building-B7v1XYt4.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-H0OWUP2i.js → department-BULuEdr3.js} +1 -1
- package/dist/{help-B26v9Pv0.js → help-Dq_D2MVF.js} +1 -1
- package/dist/{index-CykFl1gC.js → index-CtKk28NV.js} +148 -142
- package/dist/{log-BkyTl8mJ.js → log-CdUReCmA.js} +1 -1
- package/dist/login-CBHzo0k4.js +143 -0
- package/dist/{main-CaGZzTs5.js → main-9qsBz3n1.js} +59 -14
- package/dist/{notification-BkXC5HhX.js → notification-BLE-evDJ.js} +1 -1
- package/dist/nyxxx.mp3 +0 -0
- package/dist/{position-B2UBV5IO.js → position-CZLL-EtO.js} +3 -2
- package/dist/{role-CfgfAT_T.js → role-CCfEGckq.js} +1 -1
- package/dist/{self-CZsHWkxs.js → self-zgC9Bxvr.js} +1 -1
- package/dist/{systemsetting-DmUR8BVh.js → systemsetting-Clvu_Ins.js} +1 -1
- package/dist/{user-D_zF6s3M.js → user-DfIRlt4y.js} +149 -14
- package/dist/{version-CWqvE4zd.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-CTEnFhqW.js +0 -132
- package/dist/login-DXqQgLQ2.js +0 -112
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode, createCommentVNode } from "vue";
|
|
2
|
-
import { H as HttpApiV1, i as _sfc_main$1, k as _sfc_main$2, Z as ZSYSMessage } from "./index-
|
|
2
|
+
import { H as HttpApiV1, i as _sfc_main$1, k as _sfc_main$2, Z as ZSYSMessage } from "./index-CtKk28NV.js";
|
|
3
3
|
const _hoisted_1 = { style: { padding: "0px 20px" } }, _hoisted_2 = { key: 0 }, _hoisted_3 = { key: 0 }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "backup",
|
|
5
5
|
setup(__props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx } from "vue";
|
|
2
|
-
import { _ as _export_sfc } from "./index-
|
|
2
|
+
import { _ as _export_sfc } from "./index-CtKk28NV.js";
|
|
3
3
|
const _sfc_main = {}, _hoisted_1 = { style: { padding: "0px 20px", "margin-top": "20px" } };
|
|
4
4
|
function _sfc_render(_ctx, _cache) {
|
|
5
5
|
const _component_breadcrumb = resolveComponent("breadcrumb"), _component_el_result = resolveComponent("el-result");
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode } from "vue";
|
|
2
|
+
import { i as _sfc_main$1 } from "./index-CtKk28NV.js";
|
|
3
|
+
import { _ as _sfc_main$2 } from "./change_password_panel.vue_vue_type_script_setup_true_lang-CDSXHHec.js";
|
|
4
|
+
const _hoisted_1 = { style: { padding: "0px 20px", "margin-top": "20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "change_password",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
return (_ctx, _cache) => (openBlock(), createElementBlock(Fragment, null, [
|
|
8
|
+
createVNode(_sfc_main$1),
|
|
9
|
+
createElementVNode("div", _hoisted_1, [
|
|
10
|
+
createVNode(_sfc_main$2)
|
|
11
|
+
])
|
|
12
|
+
], 64));
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
_sfc_main as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { defineComponent, ref, reactive, resolveComponent, createBlock, openBlock, withCtx, createCommentVNode, createVNode, createTextVNode } from "vue";
|
|
2
|
+
import { e as useRouter, Z as ZSYSMessage, H as HttpApiV1 } from "./index-CtKk28NV.js";
|
|
3
|
+
import { h } from "./index.es-DrN1BLo5.js";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "change_password_panel",
|
|
6
|
+
props: {
|
|
7
|
+
after_login: { type: Boolean, default: !0 },
|
|
8
|
+
//预选数据
|
|
9
|
+
username: { type: String, default: "" },
|
|
10
|
+
old_p: { type: String, default: "" }
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props, ruleFormRef = ref(), r = useRouter(), goBack = () => {
|
|
14
|
+
r.back();
|
|
15
|
+
}, view = reactive({
|
|
16
|
+
isloading: !1
|
|
17
|
+
}), form_data = reactive({
|
|
18
|
+
username: "",
|
|
19
|
+
old_p: "",
|
|
20
|
+
new_p1: "",
|
|
21
|
+
new_p2: ""
|
|
22
|
+
});
|
|
23
|
+
props.username != "" && (form_data.username = props.username), props.old_p != "" && (form_data.old_p = props.old_p);
|
|
24
|
+
const rules = reactive({
|
|
25
|
+
old_p: [{ required: !0, message: "请输入旧密码", trigger: "blur" }],
|
|
26
|
+
new_p1: [
|
|
27
|
+
{ required: !0, message: "请输入新密码", trigger: "blur" },
|
|
28
|
+
{ min: 6, max: 18, message: "密码长度为6-18位", trigger: "blur" }
|
|
29
|
+
],
|
|
30
|
+
new_p2: [
|
|
31
|
+
{ required: !0, message: "请输入新密码", trigger: "blur" },
|
|
32
|
+
{ min: 6, max: 18, message: "密码长度为6-18位", trigger: "blur" }
|
|
33
|
+
]
|
|
34
|
+
}), submitForm = (formEl) => {
|
|
35
|
+
formEl && formEl.validate((valid) => {
|
|
36
|
+
if (valid) {
|
|
37
|
+
if (form_data.new_p1 != form_data.new_p2) {
|
|
38
|
+
ZSYSMessage.ShowError("两次密码不一致,请重新输入");
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
view.isloading = !0, props.after_login ? HttpApiV1.Post(HttpApiV1.url_change_password, {
|
|
42
|
+
old_p: h.hashStr(form_data.old_p),
|
|
43
|
+
new_p: h.hashStr(form_data.new_p1)
|
|
44
|
+
}).then((res) => {
|
|
45
|
+
res.IsSuccess ? (ZSYSMessage.ShowSuccess("密码修改成功"), r.back()) : ZSYSMessage.ShowError("密码修改失败");
|
|
46
|
+
}).catch((err) => {
|
|
47
|
+
console.log(err);
|
|
48
|
+
}).finally(() => {
|
|
49
|
+
view.isloading = !1;
|
|
50
|
+
}) : HttpApiV1.Post(HttpApiV1.url_user_change_pwd_by_username, {
|
|
51
|
+
username: props.username,
|
|
52
|
+
old_p: h.hashStr(form_data.old_p),
|
|
53
|
+
new_p: h.hashStr(form_data.new_p1)
|
|
54
|
+
}).then((res) => {
|
|
55
|
+
res.IsSuccess ? (ZSYSMessage.ShowSuccess("修改成功,请用新密码登录"), setTimeout(() => {
|
|
56
|
+
location.href = "/";
|
|
57
|
+
}, 1500)) : ZSYSMessage.ShowError("密码修改失败");
|
|
58
|
+
}).catch((err) => {
|
|
59
|
+
console.log(err);
|
|
60
|
+
}).finally(() => {
|
|
61
|
+
view.isloading = !1;
|
|
62
|
+
});
|
|
63
|
+
} else
|
|
64
|
+
console.log("error submit!");
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
return (_ctx, _cache) => {
|
|
68
|
+
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");
|
|
69
|
+
return openBlock(), createBlock(_component_el_form, {
|
|
70
|
+
ref_key: "ruleFormRef",
|
|
71
|
+
ref: ruleFormRef,
|
|
72
|
+
"label-width": "auto",
|
|
73
|
+
style: { "max-width": "400px", "margin-left": "80px" },
|
|
74
|
+
rules,
|
|
75
|
+
model: form_data,
|
|
76
|
+
"status-icon": ""
|
|
77
|
+
}, {
|
|
78
|
+
default: withCtx(() => [
|
|
79
|
+
props.after_login ? (openBlock(), createBlock(_component_el_form_item, {
|
|
80
|
+
key: 0,
|
|
81
|
+
label: "旧密码",
|
|
82
|
+
prop: "old_p"
|
|
83
|
+
}, {
|
|
84
|
+
default: withCtx(() => [
|
|
85
|
+
createVNode(_component_el_input, {
|
|
86
|
+
modelValue: form_data.old_p,
|
|
87
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form_data.old_p = $event),
|
|
88
|
+
size: "large",
|
|
89
|
+
"show-password": ""
|
|
90
|
+
}, null, 8, ["modelValue"])
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
})) : createCommentVNode("", !0),
|
|
94
|
+
createVNode(_component_el_form_item, {
|
|
95
|
+
label: "新密码",
|
|
96
|
+
prop: "new_p1"
|
|
97
|
+
}, {
|
|
98
|
+
default: withCtx(() => [
|
|
99
|
+
createVNode(_component_el_input, {
|
|
100
|
+
modelValue: form_data.new_p1,
|
|
101
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form_data.new_p1 = $event),
|
|
102
|
+
size: "large",
|
|
103
|
+
"show-password": ""
|
|
104
|
+
}, null, 8, ["modelValue"])
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
}),
|
|
108
|
+
createVNode(_component_el_form_item, {
|
|
109
|
+
label: "再次输入新密码",
|
|
110
|
+
prop: "new_p2"
|
|
111
|
+
}, {
|
|
112
|
+
default: withCtx(() => [
|
|
113
|
+
createVNode(_component_el_input, {
|
|
114
|
+
modelValue: form_data.new_p2,
|
|
115
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form_data.new_p2 = $event),
|
|
116
|
+
size: "large",
|
|
117
|
+
"show-password": ""
|
|
118
|
+
}, null, 8, ["modelValue"])
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
}),
|
|
122
|
+
createVNode(_component_el_form_item, { style: { "margin-left": "120px" } }, {
|
|
123
|
+
default: withCtx(() => [
|
|
124
|
+
createVNode(_component_el_button, {
|
|
125
|
+
type: "primary",
|
|
126
|
+
onClick: _cache[3] || (_cache[3] = ($event) => submitForm(ruleFormRef.value)),
|
|
127
|
+
loading: view.isloading
|
|
128
|
+
}, {
|
|
129
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
130
|
+
createTextVNode("确认修改", -1)
|
|
131
|
+
])]),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 8, ["loading"]),
|
|
134
|
+
props.after_login ? (openBlock(), createBlock(_component_el_button, {
|
|
135
|
+
key: 0,
|
|
136
|
+
onClick: goBack,
|
|
137
|
+
disabled: view.isloading
|
|
138
|
+
}, {
|
|
139
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
140
|
+
createTextVNode("返回", -1)
|
|
141
|
+
])]),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["disabled"])) : createCommentVNode("", !0)
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
})
|
|
147
|
+
]),
|
|
148
|
+
_: 1
|
|
149
|
+
}, 8, ["rules", "model"]);
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
export {
|
|
154
|
+
_sfc_main as _
|
|
155
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, reactive, resolveComponent, resolveDirective, createBlock, openBlock, withCtx, withDirectives, withModifiers, createVNode, createElementVNode, createCommentVNode, createTextVNode, onMounted, onUnmounted, createElementBlock, Fragment, unref } from "vue";
|
|
2
|
-
import { z as zsysEventBus, l as useMagicKeys, w as whenever, H as HttpApiV1, Z as ZSYSMessage, i as _sfc_main$2,
|
|
2
|
+
import { z as zsysEventBus, l as useMagicKeys, w as whenever, H as HttpApiV1, Z as ZSYSMessage, i as _sfc_main$2, p as refresh_default, m as _sfc_main$3 } from "./index-CtKk28NV.js";
|
|
3
3
|
const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "department_edit_dialog",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, reactive, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { i as _sfc_main$1 } from "./index-
|
|
2
|
+
import { i as _sfc_main$1 } from "./index-CtKk28NV.js";
|
|
3
3
|
const _hoisted_1 = { style: { padding: "0px 20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "help",
|
|
5
5
|
setup(__props) {
|