zsysview 0.1.34 → 0.1.37
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-COcCJb62.js} +1 -1
- package/dist/{building-BT7LQTNX.js → building-BChaRK3l.js} +1 -1
- package/dist/change_password-BuCylpBt.js +17 -0
- package/dist/change_password_panel.vue_vue_type_script_setup_true_lang-AKEQjIc3.js +186 -0
- package/dist/{department-BgggtWRy.js → department-DzP9HRBY.js} +1 -1
- package/dist/{help-DEEzBbCi.js → help-1xk-vnLY.js} +1 -1
- package/dist/{index-AWs6yDvi.js → index-AG3yhDG9.js} +165 -144
- package/dist/{log-BM0xYm3t.js → log-MfFiH8pw.js} +1 -1
- package/dist/login--ISRUoev.js +174 -0
- package/dist/{main-DargS7FG.js → main-BDXt3YcM.js} +22 -44
- package/dist/{notification-DyEvP4zX.js → notification-D7Ai1PlH.js} +1 -1
- package/dist/nyxxx.mp3 +0 -0
- package/dist/{position-B_nM9rnB.js → position-LalBjY2P.js} +3 -2
- package/dist/{role-DlnOMUpa.js → role-_YjZ-iFJ.js} +1 -1
- package/dist/{self-CZDkNDaW.js → self-nYVyk5As.js} +1 -1
- package/dist/{systemsetting-B9_eHvzU.js → systemsetting-D-HLfZ2D.js} +28 -49
- package/dist/{user-ziHTW4a_.js → user-CNowCkY5.js} +304 -27
- package/dist/{version-DD_ggGRu.js → version-BF4ogONa.js} +1 -1
- package/dist/zsysview.css +1 -1
- package/dist/zsysview.es.d.ts +244 -235
- package/dist/zsysview.es.js +15 -14
- package/package.json +1 -1
- package/dist/change_password-DkRK4FEF.js +0 -132
- package/dist/login-DDqlMXu_.js +0 -112
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { defineComponent, reactive, resolveComponent, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, withCtx, createBlock, createCommentVNode, withKeys, createTextVNode, toDisplayString, inject } from "vue";
|
|
2
|
+
import { e as useRouter, t as useRoute, H as HttpApiV1, Z as ZSYSMessage, _ as _export_sfc } from "./index-AG3yhDG9.js";
|
|
3
|
+
import { h } from "./index.es-DrN1BLo5.js";
|
|
4
|
+
import { _ as _sfc_main$1 } from "./change_password_panel.vue_vue_type_script_setup_true_lang-AKEQjIc3.js";
|
|
5
|
+
const _hoisted_1 = {
|
|
6
|
+
class: "bg",
|
|
7
|
+
style: { "background-image": 'url("/public/img/login_bg.jpg")' }
|
|
8
|
+
}, _hoisted_2 = {
|
|
9
|
+
class: "card-header",
|
|
10
|
+
style: {}
|
|
11
|
+
}, _hoisted_3 = ["src"], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "login",
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const r = useRouter(), route = useRoute(), d = reactive({
|
|
15
|
+
u: "",
|
|
16
|
+
p: "",
|
|
17
|
+
v: ""
|
|
18
|
+
}), view = reactive({
|
|
19
|
+
loading: !1,
|
|
20
|
+
change_pwd_dialog: !1,
|
|
21
|
+
v: ""
|
|
22
|
+
}), ToPasswordInput = () => {
|
|
23
|
+
}, login2 = () => {
|
|
24
|
+
view.loading = !0;
|
|
25
|
+
let data = {
|
|
26
|
+
u: d.u,
|
|
27
|
+
p: h.hashStr(d.p),
|
|
28
|
+
v: d.v
|
|
29
|
+
};
|
|
30
|
+
HttpApiV1.Post(HttpApiV1.url_login, data).then((res) => {
|
|
31
|
+
res.IsSuccess ? (ZSYSMessage.ShowSuccess("登录成功"), r.push(route.query.redirect || "/desktop")) : (res.error_code == 101 ? view.change_pwd_dialog = !0 : ZSYSMessage.ShowError(res.message), res.error_code == 102 && (view.v = res.data));
|
|
32
|
+
}).catch(() => {
|
|
33
|
+
console.log("请求失败"), ZSYSMessage.ShowError("登录服务器失败");
|
|
34
|
+
}).finally(() => {
|
|
35
|
+
view.loading = !1;
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
async function getVc() {
|
|
39
|
+
let res = await HttpApiV1.Post(HttpApiV1.url_login_vc, { u: d.u });
|
|
40
|
+
if (res.IsSuccess) {
|
|
41
|
+
let data = res.data;
|
|
42
|
+
view.v = data;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
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"), _component_el_alert = resolveComponent("el-alert"), _component_el_dialog = resolveComponent("el-dialog");
|
|
47
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
48
|
+
createElementVNode("div", _hoisted_1, [
|
|
49
|
+
createVNode(_component_el_card, {
|
|
50
|
+
style: { width: "300px", "text-align": "center" },
|
|
51
|
+
shadow: "always",
|
|
52
|
+
class: "align-center"
|
|
53
|
+
}, {
|
|
54
|
+
header: withCtx(() => [
|
|
55
|
+
createElementVNode("div", _hoisted_2, [
|
|
56
|
+
createElementVNode("span", null, toDisplayString(inject("appname")), 1)
|
|
57
|
+
])
|
|
58
|
+
]),
|
|
59
|
+
default: withCtx(() => [
|
|
60
|
+
createVNode(_component_el_image, {
|
|
61
|
+
style: { height: "100px" },
|
|
62
|
+
src: "/public/img/logo_100.png"
|
|
63
|
+
}),
|
|
64
|
+
createVNode(_component_el_form, {
|
|
65
|
+
"label-width": "auto",
|
|
66
|
+
"label-position": "top"
|
|
67
|
+
}, {
|
|
68
|
+
default: withCtx(() => [
|
|
69
|
+
createVNode(_component_el_form_item, { label: "用户名" }, {
|
|
70
|
+
default: withCtx(() => [
|
|
71
|
+
createVNode(_component_el_input, {
|
|
72
|
+
size: "large",
|
|
73
|
+
autofocus: !0,
|
|
74
|
+
modelValue: d.u,
|
|
75
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => d.u = $event),
|
|
76
|
+
clearable: "",
|
|
77
|
+
onKeyup: withKeys(ToPasswordInput, ["enter", "native"])
|
|
78
|
+
}, null, 8, ["modelValue"])
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
}),
|
|
82
|
+
createVNode(_component_el_form_item, { label: "密码" }, {
|
|
83
|
+
default: withCtx(() => [
|
|
84
|
+
createVNode(_component_el_input, {
|
|
85
|
+
ref: "PasswordInput",
|
|
86
|
+
size: "large",
|
|
87
|
+
modelValue: d.p,
|
|
88
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => d.p = $event),
|
|
89
|
+
clearable: "",
|
|
90
|
+
"show-password": "",
|
|
91
|
+
onKeyup: withKeys(login2, ["enter", "native"])
|
|
92
|
+
}, null, 8, ["modelValue"])
|
|
93
|
+
]),
|
|
94
|
+
_: 1
|
|
95
|
+
}),
|
|
96
|
+
view.v != "" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
97
|
+
key: 0,
|
|
98
|
+
label: "验证码"
|
|
99
|
+
}, {
|
|
100
|
+
default: withCtx(() => [
|
|
101
|
+
createVNode(_component_el_input, {
|
|
102
|
+
size: "large",
|
|
103
|
+
modelValue: d.v,
|
|
104
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => d.v = $event),
|
|
105
|
+
clearable: "",
|
|
106
|
+
onKeyup: withKeys(login2, ["enter", "native"]),
|
|
107
|
+
style: { width: "150px" }
|
|
108
|
+
}, null, 8, ["modelValue"]),
|
|
109
|
+
createElementVNode("img", {
|
|
110
|
+
src: view.v,
|
|
111
|
+
style: { height: "40px", width: "100px", "margin-left": "4px", cursor: "pointer" },
|
|
112
|
+
onClick: getVc
|
|
113
|
+
}, null, 8, _hoisted_3)
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
})) : createCommentVNode("", !0),
|
|
117
|
+
createVNode(_component_el_form_item, null, {
|
|
118
|
+
default: withCtx(() => [
|
|
119
|
+
createVNode(_component_el_button, {
|
|
120
|
+
type: "primary",
|
|
121
|
+
size: "large",
|
|
122
|
+
loading: view.loading,
|
|
123
|
+
onClick: login2,
|
|
124
|
+
style: { width: "100%" }
|
|
125
|
+
}, {
|
|
126
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
127
|
+
createTextVNode("登录", -1)
|
|
128
|
+
])]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 8, ["loading"])
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
})
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
})
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
})
|
|
140
|
+
]),
|
|
141
|
+
createVNode(_component_el_dialog, {
|
|
142
|
+
modelValue: view.change_pwd_dialog,
|
|
143
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => view.change_pwd_dialog = $event),
|
|
144
|
+
title: "请修改密码",
|
|
145
|
+
"align-center": !0,
|
|
146
|
+
width: "550",
|
|
147
|
+
draggable: !0,
|
|
148
|
+
overflow: !0,
|
|
149
|
+
"destroy-on-close": "",
|
|
150
|
+
"close-on-click-modal": !1
|
|
151
|
+
}, {
|
|
152
|
+
default: withCtx(() => [
|
|
153
|
+
createVNode(_component_el_alert, {
|
|
154
|
+
title: "为了安全考虑,管理员要求您修改密码",
|
|
155
|
+
type: "warning",
|
|
156
|
+
"show-icon": "",
|
|
157
|
+
closable: !1,
|
|
158
|
+
style: { "margin-bottom": "10px" }
|
|
159
|
+
}),
|
|
160
|
+
createVNode(_sfc_main$1, {
|
|
161
|
+
after_login: !1,
|
|
162
|
+
username: d.u,
|
|
163
|
+
old_p: d.p
|
|
164
|
+
}, null, 8, ["username", "old_p"])
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["modelValue"])
|
|
168
|
+
], 64);
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
}), login = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-38585230"]]);
|
|
172
|
+
export {
|
|
173
|
+
login as default
|
|
174
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, resolveDynamicComponent, toDisplayString, createElementBlock, Fragment, renderList, markRaw, inject, reactive, onMounted, ref, createCommentVNode, unref, createTextVNode, watch } from "vue";
|
|
2
|
-
import { b as bell_default, u as user_default, o as office_building_default, a as avatar_default, r as reading_default, c as copy_document_default, d as operation_default, s as setting_default, q as question_filled_default, H as HttpApiV1, C as CommonHelper, _ as _export_sfc, f as formatPreciseOralTime, O as OpenClientUrlWithID, e as useRouter, g as arrow_down_default, h as useTokenStore
|
|
1
|
+
import { defineComponent, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, resolveDynamicComponent, toDisplayString, createElementBlock, Fragment, renderList, markRaw, inject, reactive, onMounted, ref, createCommentVNode, unref, onUnmounted, createTextVNode, watch } from "vue";
|
|
2
|
+
import { b as bell_default, u as user_default, o as office_building_default, a as avatar_default, r as reading_default, c as copy_document_default, d as operation_default, s as setting_default, q as question_filled_default, H as HttpApiV1, C as CommonHelper, _ as _export_sfc, f as formatPreciseOralTime, Z as ZSYSMessage, O as OpenClientUrlWithID, e as useRouter, g as arrow_down_default, h as useTokenStore } from "./index-AG3yhDG9.js";
|
|
3
3
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "userMenuItem",
|
|
5
5
|
props: {
|
|
@@ -121,38 +121,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
121
121
|
{ name: "使用帮助", icon: markRaw(question_filled_default), url: "/help" }
|
|
122
122
|
], all_menus = [];
|
|
123
123
|
app_menus != null ? all_menus.push(...app_menus, ...sys_menus) : all_menus.push(...sys_menus);
|
|
124
|
-
const menus = reactive([
|
|
125
|
-
/*
|
|
126
|
-
{ name: '首页', icon: markRaw(House), url: '/desktop', show: true },
|
|
127
|
-
{ name: '个人中心', icon: markRaw(User), url: '/self', show: true },
|
|
128
|
-
{ name: '数据看板', icon: markRaw(Odometer), url: '/chart', show: false },
|
|
129
|
-
{ name: '事件管理', icon: markRaw(Collection), url: '/eventgroup/event', show: false },
|
|
130
|
-
// {
|
|
131
|
-
// name: '事件管理', icon: markRaw(Collection), url: '/111', show: false,
|
|
132
|
-
// children: [
|
|
133
|
-
// { name: '数据看板', icon: markRaw(Odometer), url: '/user', show: false },
|
|
134
|
-
// { name: '事件', icon: markRaw(Collection), url: '/eventgroup/event', show: false },
|
|
135
|
-
// ]
|
|
136
|
-
// },
|
|
137
|
-
{ name: '行为分析引擎', icon: markRaw(SetUp), url: '/engine', show: false },
|
|
138
|
-
{ name: '设备管理', icon: markRaw(VideoCamera), url: '/equipment', show: false },
|
|
139
|
-
{ name: '区域管理', icon: markRaw(Location), url: '/area', show: false },
|
|
140
|
-
{ name: '报表与统计', icon: markRaw(Document), url: '/building?1', show: false },
|
|
141
|
-
{ name: '报警与通知', icon: markRaw(Bell), url: '/building?2', show: false },
|
|
142
|
-
{
|
|
143
|
-
name: '系统管理', icon: markRaw(Setting), url: '/zsys', show: false,
|
|
144
|
-
children: [
|
|
145
|
-
{ name: '用户管理', icon: markRaw(User), url: '/user', show: false },
|
|
146
|
-
{ name: '组织架构', icon: markRaw(OfficeBuilding), url: '/department', show: false },
|
|
147
|
-
{ name: '职务', icon: markRaw(Avatar), url: '/position', show: false },
|
|
148
|
-
{ name: '角色权限', icon: markRaw(Avatar), url: '/role', show: false },
|
|
149
|
-
{ name: '日志', icon: markRaw(Reading), url: '/log', show: false },
|
|
150
|
-
{ name: '备份', icon: markRaw(CopyDocument), url: '/backup', show: false },
|
|
151
|
-
{ name: '高级设置', icon: markRaw(Operation), url: '/systemsetting', show: false },
|
|
152
|
-
]
|
|
153
|
-
},
|
|
154
|
-
*/
|
|
155
|
-
]);
|
|
124
|
+
const menus = reactive([]);
|
|
156
125
|
function filterMenusStrict(menus2, userPermissions) {
|
|
157
126
|
return menus2.filter((menu) => {
|
|
158
127
|
let hasPermission = !1;
|
|
@@ -181,7 +150,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
181
150
|
try {
|
|
182
151
|
let res = await HttpApiV1.Post(HttpApiV1.url_user_permission, {});
|
|
183
152
|
if (res.IsSuccess) {
|
|
184
|
-
let ps = res.data, m = filterMenusStrict(all_menus, ps);
|
|
153
|
+
let ps = res.data || [], m = filterMenusStrict(all_menus, ps);
|
|
185
154
|
for (const i of m)
|
|
186
155
|
menus.push({
|
|
187
156
|
name: i.name,
|
|
@@ -226,18 +195,21 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
226
195
|
});
|
|
227
196
|
};
|
|
228
197
|
}
|
|
229
|
-
}), Usermenu = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
198
|
+
}), Usermenu = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-69fc3cad"]]), _hoisted_1$1 = ["onClick"], _hoisted_2$1 = { style: { height: "20px" } }, _hoisted_3$1 = { style: { "font-weight": "bold", float: "left" } }, _hoisted_4$1 = {
|
|
230
199
|
key: 0,
|
|
231
|
-
style: { "background-color": "#
|
|
200
|
+
style: { "background-color": "#ef4444", "border-radius": "50%", height: "5px", width: "5px", float: "right" }
|
|
232
201
|
}, _hoisted_5$1 = { style: { color: "#909399", "font-size": "small", float: "right" } }, _hoisted_6$1 = { style: { width: "100%", display: "inline-block" } }, _hoisted_7$1 = { style: { "font-size": "medium", color: "#374151" } }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
233
202
|
__name: "notification_box",
|
|
234
203
|
setup(__props) {
|
|
235
204
|
const data = ref([]), handleClick = (item) => {
|
|
236
205
|
HttpApiV1.Post(HttpApiV1.url_notification_read, { id: item.notification_id });
|
|
237
206
|
const n = data.value.find((i) => i.notification_id == item.notification_id);
|
|
238
|
-
n && (n.is_read = 1), OpenClientUrlWithID(item.url, item.data_id);
|
|
207
|
+
n && (n.is_read = 1), (item.url || "") == "" ? ZSYSMessage.ShowInfo("该消息没有链接,已为您标记已阅") : OpenClientUrlWithID(item.url, item.data_id);
|
|
239
208
|
}, getdata = async () => {
|
|
240
|
-
let d = [], res = await HttpApiV1.Post(HttpApiV1.url_notification_list, {
|
|
209
|
+
let d = [], res = await HttpApiV1.Post(HttpApiV1.url_notification_list, {
|
|
210
|
+
page_size: 50,
|
|
211
|
+
page_index: 1
|
|
212
|
+
});
|
|
241
213
|
if (res.IsSuccess) {
|
|
242
214
|
let data2 = res.data;
|
|
243
215
|
for (let i = 0; i < data2.listdata.length; i++) {
|
|
@@ -265,7 +237,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
265
237
|
])
|
|
266
238
|
], 8, _hoisted_1$1))), 128));
|
|
267
239
|
}
|
|
268
|
-
}), notification = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
240
|
+
}), notification = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-d682f19d"]]), _hoisted_1 = { style: { "padding-left": "20px", "padding-right": "20px" } }, _hoisted_2 = { style: { height: "60px", "margin-right": "10px", float: "left", display: "flex", "align-items": "center", "justify-content": "center" } }, _hoisted_3 = { style: { float: "left", "line-height": "60px" } }, _hoisted_4 = {
|
|
269
241
|
key: 0,
|
|
270
242
|
style: { color: "rgb(196, 86, 86)" }
|
|
271
243
|
}, _hoisted_5 = { class: "el-dropdown-link" }, _hoisted_6 = { style: { "font-size": "24px" } }, _hoisted_7 = { style: { "text-align": "center" } }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
@@ -325,7 +297,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
325
297
|
const allread = () => {
|
|
326
298
|
HttpApiV1.Post(HttpApiV1.url_notification_all_read, {}), notification_open.value = !1, has_new_notification.value = !1;
|
|
327
299
|
}, getLastNotification = async () => {
|
|
328
|
-
let res = await HttpApiV1.Post(HttpApiV1.url_notification_list, {
|
|
300
|
+
let res = await HttpApiV1.Post(HttpApiV1.url_notification_list, {
|
|
301
|
+
page_size: 50,
|
|
302
|
+
page_index: 1
|
|
303
|
+
});
|
|
329
304
|
if (res.IsSuccess) {
|
|
330
305
|
let data = res.data;
|
|
331
306
|
for (let i = 0; i < data.listdata.length; i++) {
|
|
@@ -334,10 +309,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
334
309
|
}
|
|
335
310
|
}
|
|
336
311
|
};
|
|
312
|
+
let hasNewTimer = null;
|
|
337
313
|
return onMounted(() => {
|
|
338
|
-
getViewTime(), getServerTime(), getVersion(), setInterval(() => {
|
|
314
|
+
getViewTime(), getServerTime(), getVersion(), hasNewTimer = setInterval(() => {
|
|
339
315
|
getLastNotification();
|
|
340
316
|
}, 3e3);
|
|
317
|
+
}), onUnmounted(() => {
|
|
318
|
+
hasNewTimer && (clearInterval(hasNewTimer), hasNewTimer = null);
|
|
341
319
|
}), (_ctx, _cache) => {
|
|
342
320
|
const _component_el_link = resolveComponent("el-link"), _component_el_image = resolveComponent("el-image"), _component_el_tooltip = resolveComponent("el-tooltip"), _component_el_button = resolveComponent("el-button"), _component_el_icon = resolveComponent("el-icon"), _component_el_dropdown_item = resolveComponent("el-dropdown-item"), _component_el_dropdown_menu = resolveComponent("el-dropdown-menu"), _component_el_dropdown = resolveComponent("el-dropdown"), _component_el_space = resolveComponent("el-space"), _component_el_drawer = resolveComponent("el-drawer");
|
|
343
321
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -442,7 +420,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
442
420
|
}, {
|
|
443
421
|
header: withCtx(() => [
|
|
444
422
|
createElementVNode("div", _hoisted_6, [
|
|
445
|
-
_cache[8] || (_cache[8] = createTextVNode("消息盒子", -1)),
|
|
423
|
+
_cache[8] || (_cache[8] = createTextVNode(" 消息盒子", -1)),
|
|
446
424
|
createVNode(_component_el_link, {
|
|
447
425
|
type: "primary",
|
|
448
426
|
style: { "margin-left": "10px" },
|
|
@@ -476,7 +454,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
476
454
|
], 64);
|
|
477
455
|
};
|
|
478
456
|
}
|
|
479
|
-
}), Userheader = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
457
|
+
}), Userheader = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-c75aedcf"]]), _sfc_main = /* @__PURE__ */ defineComponent({
|
|
480
458
|
__name: "main",
|
|
481
459
|
setup(__props) {
|
|
482
460
|
const store = useTokenStore(), r = useRouter();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, computed, resolveComponent, createElementBlock, openBlock, createVNode, createElementVNode, withCtx, createTextVNode, toDisplayString, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { z as zsysEventBus, H as HttpApiV1, j as formatDateTime, i as _sfc_main$1, k as _sfc_main$2, O as OpenClientUrlWithID } from "./index-
|
|
2
|
+
import { z as zsysEventBus, H as HttpApiV1, j as formatDateTime, i as _sfc_main$1, k as _sfc_main$2, O as OpenClientUrlWithID } from "./index-AG3yhDG9.js";
|
|
3
3
|
const _hoisted_1 = { class: "flex_height" }, _hoisted_2 = {
|
|
4
4
|
class: "flex_fill",
|
|
5
5
|
style: { padding: "0px 20px" }
|
package/dist/nyxxx.mp3
ADDED
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, reactive, resolveComponent, resolveDirective, createBlock, openBlock, withCtx, withDirectives, withModifiers, createVNode, createElementVNode, createCommentVNode, createTextVNode, 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, k as _sfc_main$3, m as _sfc_main$4 } from "./index-
|
|
2
|
+
import { z as zsysEventBus, l as useMagicKeys, w as whenever, H as HttpApiV1, Z as ZSYSMessage, i as _sfc_main$2, k as _sfc_main$3, m as _sfc_main$4 } from "./index-AG3yhDG9.js";
|
|
3
3
|
const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "position_edit_dialog",
|
|
5
5
|
props: {
|
|
@@ -91,7 +91,8 @@ const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } },
|
|
|
91
91
|
draggable: !0,
|
|
92
92
|
overflow: !0,
|
|
93
93
|
onOpened: focus,
|
|
94
|
-
"destroy-on-close": ""
|
|
94
|
+
"destroy-on-close": "",
|
|
95
|
+
"close-on-click-modal": !1
|
|
95
96
|
}, {
|
|
96
97
|
footer: withCtx(() => [
|
|
97
98
|
createElementVNode("div", _hoisted_1$1, [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, reactive, resolveComponent, resolveDirective, createBlock, openBlock, withCtx, withDirectives, withModifiers, createVNode, createElementVNode, createCommentVNode, createTextVNode, createElementBlock, Fragment, unref } from "vue";
|
|
2
|
-
import { z as zsysEventBus, l as useMagicKeys, w as whenever, H as HttpApiV1, Z as ZSYSMessage, _ as _export_sfc, i as _sfc_main$2, k as _sfc_main$3, m as _sfc_main$4 } from "./index-
|
|
2
|
+
import { z as zsysEventBus, l as useMagicKeys, w as whenever, H as HttpApiV1, Z as ZSYSMessage, _ as _export_sfc, i as _sfc_main$2, k as _sfc_main$3, m as _sfc_main$4 } from "./index-AG3yhDG9.js";
|
|
3
3
|
const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "role_edit_dialog",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { H as HttpApiV1, i as _sfc_main$1 } from "./index-
|
|
2
|
+
import { H as HttpApiV1, i as _sfc_main$1 } from "./index-AG3yhDG9.js";
|
|
3
3
|
const _hoisted_1 = { style: { padding: "0px 20px", "margin-top": "20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "self",
|
|
5
5
|
setup(__props) {
|
|
@@ -1,53 +1,43 @@
|
|
|
1
|
-
import { defineComponent, ref, reactive, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode } from "vue";
|
|
2
|
-
import { i as _sfc_main$1, H as HttpApiV1, Z as ZSYSMessage } from "./index-
|
|
1
|
+
import { defineComponent, ref, reactive, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode } from "vue";
|
|
2
|
+
import { i as _sfc_main$1, H as HttpApiV1, Z as ZSYSMessage } from "./index-AG3yhDG9.js";
|
|
3
3
|
const _hoisted_1 = { style: { padding: "0px 20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "systemsetting",
|
|
5
5
|
setup(__props) {
|
|
6
|
-
const tab = ref("base"),
|
|
7
|
-
|
|
8
|
-
plan: "Everyday",
|
|
9
|
-
hour: "01",
|
|
10
|
-
minute: "00",
|
|
11
|
-
path: "",
|
|
12
|
-
keep: "keep20",
|
|
13
|
-
use_ftp: !1,
|
|
14
|
-
f_host: "",
|
|
15
|
-
f_port: 21,
|
|
16
|
-
f_u: "",
|
|
17
|
-
f_p: "",
|
|
18
|
-
f_path: "",
|
|
19
|
-
f_tls: !0
|
|
6
|
+
const tab = ref("base"), view = reactive({
|
|
7
|
+
app_name: ""
|
|
20
8
|
});
|
|
21
9
|
async function saveConfig() {
|
|
22
10
|
try {
|
|
23
11
|
let data = {
|
|
24
|
-
|
|
25
|
-
plan: form.plan,
|
|
26
|
-
hour: form.hour,
|
|
27
|
-
minute: form.minute,
|
|
28
|
-
path: form.path,
|
|
29
|
-
keep: form.keep,
|
|
30
|
-
use_ftp: form.use_ftp ? 1 : 0,
|
|
31
|
-
f_host: form.f_host,
|
|
32
|
-
f_port: form.f_port,
|
|
33
|
-
f_u: form.f_u,
|
|
34
|
-
f_p: form.f_p,
|
|
35
|
-
f_path: form.f_path,
|
|
36
|
-
f_tls: form.f_tls ? 1 : 0
|
|
12
|
+
app_name: view.app_name
|
|
37
13
|
}, res = await HttpApiV1.Post(HttpApiV1.url_backup_config_save, data);
|
|
38
|
-
res.IsSuccess ? ZSYSMessage.ShowSuccess("保存成功") : ZSYSMessage.ShowError(res.message);
|
|
14
|
+
res.IsSuccess ? (ZSYSMessage.ShowSuccess("保存成功"), location.reload()) : ZSYSMessage.ShowError(res.message);
|
|
39
15
|
} catch (e) {
|
|
40
16
|
console.log(e), ZSYSMessage.ShowError("保存配置失败");
|
|
41
17
|
}
|
|
42
18
|
}
|
|
43
|
-
|
|
19
|
+
async function getConfig() {
|
|
20
|
+
try {
|
|
21
|
+
let res = await HttpApiV1.Post(HttpApiV1.url_system_public, {});
|
|
22
|
+
if (res.IsSuccess) {
|
|
23
|
+
let data = res.data;
|
|
24
|
+
view.app_name = data.app_name;
|
|
25
|
+
} else
|
|
26
|
+
ZSYSMessage.ShowError(res.message);
|
|
27
|
+
} catch (e) {
|
|
28
|
+
console.log(e), ZSYSMessage.ShowError("获取配置失败");
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return onMounted(() => {
|
|
32
|
+
getConfig();
|
|
33
|
+
}), (_ctx, _cache) => {
|
|
44
34
|
const _component_el_input = resolveComponent("el-input"), _component_el_space = resolveComponent("el-space"), _component_el_form_item = resolveComponent("el-form-item"), _component_el_button = resolveComponent("el-button"), _component_el_form = resolveComponent("el-form"), _component_el_tab_pane = resolveComponent("el-tab-pane"), _component_el_tabs = resolveComponent("el-tabs");
|
|
45
35
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
46
36
|
createVNode(_sfc_main$1),
|
|
47
37
|
createElementVNode("div", _hoisted_1, [
|
|
48
38
|
createVNode(_component_el_tabs, {
|
|
49
39
|
modelValue: tab.value,
|
|
50
|
-
"onUpdate:modelValue": _cache[
|
|
40
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => tab.value = $event)
|
|
51
41
|
}, {
|
|
52
42
|
default: withCtx(() => [
|
|
53
43
|
createVNode(_component_el_tab_pane, {
|
|
@@ -68,22 +58,11 @@ const _hoisted_1 = { style: { padding: "0px 20px" } }, _sfc_main = /* @__PURE__
|
|
|
68
58
|
alignment: "stretch"
|
|
69
59
|
}, {
|
|
70
60
|
default: withCtx(() => [
|
|
71
|
-
createVNode(_component_el_input, {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
_: 1
|
|
77
|
-
}),
|
|
78
|
-
createVNode(_component_el_form_item, { label: "ICP备案" }, {
|
|
79
|
-
default: withCtx(() => [
|
|
80
|
-
createVNode(_component_el_space, {
|
|
81
|
-
direction: "vertical",
|
|
82
|
-
size: 2,
|
|
83
|
-
alignment: "stretch"
|
|
84
|
-
}, {
|
|
85
|
-
default: withCtx(() => [
|
|
86
|
-
createVNode(_component_el_input, { style: { width: "300px" } })
|
|
61
|
+
createVNode(_component_el_input, {
|
|
62
|
+
style: { width: "300px" },
|
|
63
|
+
modelValue: view.app_name,
|
|
64
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => view.app_name = $event)
|
|
65
|
+
}, null, 8, ["modelValue"])
|
|
87
66
|
]),
|
|
88
67
|
_: 1
|
|
89
68
|
})
|
|
@@ -96,7 +75,7 @@ const _hoisted_1 = { style: { padding: "0px 20px" } }, _sfc_main = /* @__PURE__
|
|
|
96
75
|
type: "primary",
|
|
97
76
|
onClick: saveConfig
|
|
98
77
|
}, {
|
|
99
|
-
default: withCtx(() => [..._cache[
|
|
78
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
100
79
|
createTextVNode("应用设置", -1)
|
|
101
80
|
])]),
|
|
102
81
|
_: 1
|