zsysview 0.0.35 → 0.0.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-DynLMXdm.js → backup-DYT6WOhb.js} +4 -4
- package/dist/{breadcrumb.vue_vue_type_script_setup_true_lang-TTLDMjMD.js → breadcrumb.vue_vue_type_script_setup_true_lang-nfrW6-5D.js} +1 -1
- package/dist/{change_password-BneyLtuI.js → change_password-C1TSXbkT.js} +4 -4
- package/dist/{department-CbHAuLje.js → department-Cy3bZi0Z.js} +15 -11
- package/dist/{desktop-eknEWppu.js → desktop-D8NO-31I.js} +1 -1
- package/dist/{http_api_v1-EUs_f9lQ.js → http_api_v1-BOkofMrH.js} +3 -16
- package/dist/{index-BO349G9H.js → index-D0WjiJFA.js} +86 -148
- package/dist/{log-YY2eN32S.js → log-BNz3HXTx.js} +5 -5
- package/dist/{login-DeeHxCNb.js → login-CRBF4af6.js} +19 -16
- package/dist/main-D1Qc1usP.js +447 -0
- package/dist/{message-CpFOrVMc.js → message-CxCkznRZ.js} +1 -1
- package/dist/notification-CFdEb99z.js +82 -0
- package/dist/{position-BsoCgmh_.js → position-BsXmxfyE.js} +6 -6
- package/dist/{role-CnLFQOSX.js → role-DfMFK4Sf.js} +6 -6
- package/dist/{self-6xdRjh6a.js → self-Twg1O-V2.js} +2 -2
- package/dist/systemsetting-DY_aaCMb.js +170 -0
- package/dist/{user-DPtBnZLN.js → user-BNfLS3hP.js} +7 -7
- package/dist/{zsys_delbutton.vue_vue_type_script_setup_true_lang-xh5_jCEI.js → zsys_delbutton.vue_vue_type_script_setup_true_lang-CdVC6Qlu.js} +2 -2
- package/dist/zsys_time-BE4ImI0m.js +22 -0
- package/dist/{zsyslist.vue_vue_type_script_setup_true_lang-Di1hHbqk.js → zsyslist.vue_vue_type_script_setup_true_lang-Bwtl9i35.js} +3 -3
- package/dist/zsysview.css +1 -1
- package/dist/zsysview.es.js +4 -2
- package/docs//345/205/250/345/261/200/345/217/230/351/207/217.md +5 -3
- package/package.json +1 -1
- package/dist/main-D9VmwlaL.js +0 -289
- package/dist/sys-BZgBUI3k.js +0 -30
- package/dist/zsys_time-4KclnYJN.js +0 -17
- /package/dist/{vite.svg → vite1.svg} +0 -0
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, resolveDynamicComponent, toDisplayString, createElementBlock, Fragment, renderList, markRaw, inject, reactive, onMounted, ref, unref, createTextVNode, watch } from "vue";
|
|
2
|
+
import { H as HttpApiV1 } from "./http_api_v1-BOkofMrH.js";
|
|
3
|
+
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, _ as _export_sfc, e as useRouter, f as arrow_down_default, g as useTokenStore } from "./index-D0WjiJFA.js";
|
|
4
|
+
import { f as formatPreciseOralTime } from "./zsys_time-BE4ImI0m.js";
|
|
5
|
+
import { Z as ZSYSMessage } from "./message-CxCkznRZ.js";
|
|
6
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "userMenuItem",
|
|
8
|
+
props: {
|
|
9
|
+
item: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const data = __props;
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
const _component_el_icon = resolveComponent("el-icon"), _component_el_menu_item = resolveComponent("el-menu-item"), _component_el_sub_menu = resolveComponent("el-sub-menu");
|
|
15
|
+
return data.item.children ? (openBlock(), createBlock(_component_el_sub_menu, {
|
|
16
|
+
key: 1,
|
|
17
|
+
index: data.item.url
|
|
18
|
+
}, {
|
|
19
|
+
title: withCtx(() => [
|
|
20
|
+
createVNode(_component_el_icon, null, {
|
|
21
|
+
default: withCtx(() => [
|
|
22
|
+
(openBlock(), createBlock(resolveDynamicComponent(markRaw(data.item.icon))))
|
|
23
|
+
]),
|
|
24
|
+
_: 1
|
|
25
|
+
}),
|
|
26
|
+
createElementVNode("span", null, toDisplayString(data.item.name), 1)
|
|
27
|
+
]),
|
|
28
|
+
default: withCtx(() => [
|
|
29
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(data.item.children, (v) => (openBlock(), createBlock(_sfc_main$4, {
|
|
30
|
+
key: v.url,
|
|
31
|
+
item: v
|
|
32
|
+
}, null, 8, ["item"]))), 128))
|
|
33
|
+
]),
|
|
34
|
+
_: 1
|
|
35
|
+
}, 8, ["index"])) : (openBlock(), createBlock(_component_el_menu_item, {
|
|
36
|
+
key: 0,
|
|
37
|
+
index: data.item.url
|
|
38
|
+
}, {
|
|
39
|
+
default: withCtx(() => [
|
|
40
|
+
createVNode(_component_el_icon, null, {
|
|
41
|
+
default: withCtx(() => [
|
|
42
|
+
(openBlock(), createBlock(resolveDynamicComponent(data.item.icon)))
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
}),
|
|
46
|
+
createElementVNode("span", null, toDisplayString(data.item.name), 1)
|
|
47
|
+
]),
|
|
48
|
+
_: 1
|
|
49
|
+
}, 8, ["index"]));
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
class CommonHelper {
|
|
54
|
+
//数组中是否存在字符串
|
|
55
|
+
static StringArrayHasString(array, str) {
|
|
56
|
+
return array.indexOf(str) !== -1;
|
|
57
|
+
}
|
|
58
|
+
//数组中是否存在另一数组中的任意一个元素
|
|
59
|
+
static StringArrayHasStringArrayOne(array, array2) {
|
|
60
|
+
for (const s of array2)
|
|
61
|
+
if (CommonHelper.StringArrayHasString(array, s))
|
|
62
|
+
return !0;
|
|
63
|
+
return !1;
|
|
64
|
+
}
|
|
65
|
+
//数组2是否包含在数组1中
|
|
66
|
+
static StringArrayHasStringArray(array, array2) {
|
|
67
|
+
if (array2.length == 0)
|
|
68
|
+
return !1;
|
|
69
|
+
for (const s of array2)
|
|
70
|
+
if (!CommonHelper.StringArrayHasString(array, s))
|
|
71
|
+
return !1;
|
|
72
|
+
return !0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
76
|
+
__name: "userMenu",
|
|
77
|
+
setup(__props) {
|
|
78
|
+
const app_menus = inject("app_menus");
|
|
79
|
+
console.log("app_menus", app_menus);
|
|
80
|
+
const sys_menus = [
|
|
81
|
+
{
|
|
82
|
+
name: "个人中心",
|
|
83
|
+
icon: markRaw(user_default),
|
|
84
|
+
url: "/selfgroup",
|
|
85
|
+
children: [
|
|
86
|
+
{
|
|
87
|
+
name: "系统消息",
|
|
88
|
+
icon: markRaw(bell_default),
|
|
89
|
+
url: "/notification"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "基础信息",
|
|
93
|
+
icon: markRaw(user_default),
|
|
94
|
+
url: "/self"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "系统管理",
|
|
100
|
+
icon: markRaw(setting_default),
|
|
101
|
+
url: "/zsys",
|
|
102
|
+
children: [
|
|
103
|
+
{
|
|
104
|
+
name: "用户管理",
|
|
105
|
+
icon: markRaw(user_default),
|
|
106
|
+
url: "/user",
|
|
107
|
+
permission: "zsys.user"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: "组织架构",
|
|
111
|
+
icon: markRaw(office_building_default),
|
|
112
|
+
url: "/department",
|
|
113
|
+
permission: "zsys.department"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "职务",
|
|
117
|
+
icon: markRaw(avatar_default),
|
|
118
|
+
url: "/position",
|
|
119
|
+
permission: "zsys.position"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: "角色权限",
|
|
123
|
+
icon: markRaw(avatar_default),
|
|
124
|
+
url: "/role",
|
|
125
|
+
permission: "zsys.role"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "日志",
|
|
129
|
+
icon: markRaw(reading_default),
|
|
130
|
+
url: "/log",
|
|
131
|
+
permission: "zsys.log"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: "备份",
|
|
135
|
+
icon: markRaw(copy_document_default),
|
|
136
|
+
url: "/backup",
|
|
137
|
+
permission: "zsys.backup"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: "高级设置",
|
|
141
|
+
icon: markRaw(operation_default),
|
|
142
|
+
url: "/systemsetting",
|
|
143
|
+
permission: "zsys.systemsetting"
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
], all_menus = [];
|
|
148
|
+
all_menus.push(...app_menus, ...sys_menus);
|
|
149
|
+
const menus = reactive([
|
|
150
|
+
/*
|
|
151
|
+
{ name: '首页', icon: markRaw(House), url: '/desktop', show: true },
|
|
152
|
+
{ name: '个人中心', icon: markRaw(User), url: '/self', show: true },
|
|
153
|
+
{ name: '数据看板', icon: markRaw(Odometer), url: '/chart', show: false },
|
|
154
|
+
{ name: '事件管理', icon: markRaw(Collection), url: '/eventgroup/event', show: false },
|
|
155
|
+
// {
|
|
156
|
+
// name: '事件管理', icon: markRaw(Collection), url: '/111', show: false,
|
|
157
|
+
// children: [
|
|
158
|
+
// { name: '数据看板', icon: markRaw(Odometer), url: '/user', show: false },
|
|
159
|
+
// { name: '事件', icon: markRaw(Collection), url: '/eventgroup/event', show: false },
|
|
160
|
+
// ]
|
|
161
|
+
// },
|
|
162
|
+
{ name: '行为分析引擎', icon: markRaw(SetUp), url: '/engine', show: false },
|
|
163
|
+
{ name: '设备管理', icon: markRaw(VideoCamera), url: '/equipment', show: false },
|
|
164
|
+
{ name: '区域管理', icon: markRaw(Location), url: '/area', show: false },
|
|
165
|
+
{ name: '报表与统计', icon: markRaw(Document), url: '/building?1', show: false },
|
|
166
|
+
{ name: '报警与通知', icon: markRaw(Bell), url: '/building?2', show: false },
|
|
167
|
+
{
|
|
168
|
+
name: '系统管理', icon: markRaw(Setting), url: '/zsys', show: false,
|
|
169
|
+
children: [
|
|
170
|
+
{ name: '用户管理', icon: markRaw(User), url: '/user', show: false },
|
|
171
|
+
{ name: '组织架构', icon: markRaw(OfficeBuilding), url: '/department', show: false },
|
|
172
|
+
{ name: '职务', icon: markRaw(Avatar), url: '/position', show: false },
|
|
173
|
+
{ name: '角色权限', icon: markRaw(Avatar), url: '/role', show: false },
|
|
174
|
+
{ name: '日志', icon: markRaw(Reading), url: '/log', show: false },
|
|
175
|
+
{ name: '备份', icon: markRaw(CopyDocument), url: '/backup', show: false },
|
|
176
|
+
{ name: '高级设置', icon: markRaw(Operation), url: '/systemsetting', show: false },
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
*/
|
|
180
|
+
]);
|
|
181
|
+
function filterMenusStrict(menus2, userPermissions) {
|
|
182
|
+
return menus2.filter((menu) => {
|
|
183
|
+
let hasPermission = !1;
|
|
184
|
+
if (!("permission" in menu))
|
|
185
|
+
hasPermission = !0;
|
|
186
|
+
else {
|
|
187
|
+
let groups = (menu.permission || "").split("|");
|
|
188
|
+
for (const g of groups) {
|
|
189
|
+
let need = g.split(",");
|
|
190
|
+
if (CommonHelper.StringArrayHasStringArray(userPermissions, need)) {
|
|
191
|
+
hasPermission = !0;
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return hasPermission;
|
|
197
|
+
}).map((menu) => {
|
|
198
|
+
const menuCopy = { ...menu };
|
|
199
|
+
return menuCopy.children && (menuCopy.children = filterMenusStrict(
|
|
200
|
+
menuCopy.children,
|
|
201
|
+
userPermissions
|
|
202
|
+
)), menuCopy;
|
|
203
|
+
}).filter((menu) => !(menu.children && menu.children.length === 0));
|
|
204
|
+
}
|
|
205
|
+
const getUerPermission = async () => {
|
|
206
|
+
try {
|
|
207
|
+
let res = await HttpApiV1.Post(HttpApiV1.url_user_permission, {});
|
|
208
|
+
if (res.IsSuccess) {
|
|
209
|
+
let ps = res.data, m = filterMenusStrict(all_menus, ps);
|
|
210
|
+
for (const i of m)
|
|
211
|
+
menus.push({
|
|
212
|
+
name: i.name,
|
|
213
|
+
icon: i.icon,
|
|
214
|
+
url: i.url,
|
|
215
|
+
children: i.children
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
} catch (e) {
|
|
219
|
+
console.log(e);
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
return onMounted(() => {
|
|
223
|
+
getUerPermission();
|
|
224
|
+
}), (_ctx, _cache) => {
|
|
225
|
+
const _component_el_menu = resolveComponent("el-menu"), _component_el_scrollbar = resolveComponent("el-scrollbar"), _component_el_aside = resolveComponent("el-aside");
|
|
226
|
+
return openBlock(), createBlock(_component_el_aside, {
|
|
227
|
+
width: "200px",
|
|
228
|
+
style: { position: "fixed", top: "60px", left: "0px", bottom: "0px" }
|
|
229
|
+
}, {
|
|
230
|
+
default: withCtx(() => [
|
|
231
|
+
createVNode(_component_el_scrollbar, { style: { "border-right": "1px solid #dcdfe6" } }, {
|
|
232
|
+
default: withCtx(() => [
|
|
233
|
+
createVNode(_component_el_menu, {
|
|
234
|
+
"default-active": "2",
|
|
235
|
+
router: "",
|
|
236
|
+
style: { "margin-bottom": "20px" }
|
|
237
|
+
}, {
|
|
238
|
+
default: withCtx(() => [
|
|
239
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(menus, (v) => (openBlock(), createBlock(_sfc_main$4, {
|
|
240
|
+
key: v.url,
|
|
241
|
+
item: v
|
|
242
|
+
}, null, 8, ["item"]))), 128))
|
|
243
|
+
]),
|
|
244
|
+
_: 1
|
|
245
|
+
})
|
|
246
|
+
]),
|
|
247
|
+
_: 1
|
|
248
|
+
})
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
}), Usermenu = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-549a5d77"]]), _hoisted_1$1 = ["onClick"], _hoisted_2$1 = { style: { height: "20px" } }, _hoisted_3$1 = { style: { "font-weight": "bold", float: "left" } }, _hoisted_4$1 = { style: { color: "#909399", "font-size": "small", float: "right" } }, _hoisted_5$1 = { style: { width: "100%", display: "inline-block" } }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
255
|
+
__name: "notification_box",
|
|
256
|
+
setup(__props) {
|
|
257
|
+
const data = ref([]), r = useRouter(), handleClick = (item) => {
|
|
258
|
+
r.push(item.url);
|
|
259
|
+
}, getdata = async () => {
|
|
260
|
+
let d = [], res = await HttpApiV1.Post(HttpApiV1.url_notification_list, { page_size: 50, page_index: 1 });
|
|
261
|
+
if (res.IsSuccess) {
|
|
262
|
+
let data2 = res.data;
|
|
263
|
+
for (let i = 0; i < data2.listdata.length; i++) {
|
|
264
|
+
let r2 = data2.listdata[i];
|
|
265
|
+
d.push(r2);
|
|
266
|
+
}
|
|
267
|
+
return d;
|
|
268
|
+
}
|
|
269
|
+
return [];
|
|
270
|
+
};
|
|
271
|
+
return onMounted(async () => {
|
|
272
|
+
data.value = await getdata();
|
|
273
|
+
}), (_ctx, _cache) => {
|
|
274
|
+
const _component_el_link = resolveComponent("el-link");
|
|
275
|
+
return openBlock(!0), createElementBlock(Fragment, null, renderList(data.value, (item, index) => (openBlock(), createElementBlock("div", {
|
|
276
|
+
key: index,
|
|
277
|
+
onClick: ($event) => handleClick(item),
|
|
278
|
+
style: { width: "100%", "margin-bottom": "20px", "padding-bottom": "10px", "border-bottom": "1px solid #DCDFE6" }
|
|
279
|
+
}, [
|
|
280
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
281
|
+
createElementVNode("div", _hoisted_3$1, toDisplayString(item.module), 1),
|
|
282
|
+
createElementVNode("div", _hoisted_4$1, toDisplayString(unref(formatPreciseOralTime)(item.c_time)), 1)
|
|
283
|
+
]),
|
|
284
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
285
|
+
createVNode(_component_el_link, {
|
|
286
|
+
type: "primary",
|
|
287
|
+
style: { "font-size": "medium" }
|
|
288
|
+
}, {
|
|
289
|
+
default: withCtx(() => [
|
|
290
|
+
createTextVNode(toDisplayString(item.title), 1)
|
|
291
|
+
]),
|
|
292
|
+
_: 2
|
|
293
|
+
}, 1024)
|
|
294
|
+
])
|
|
295
|
+
], 8, _hoisted_1$1))), 128);
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
}), _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 = { class: "el-dropdown-link" }, _hoisted_5 = { style: { "text-align": "center" } }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
299
|
+
__name: "userHeader",
|
|
300
|
+
setup(__props) {
|
|
301
|
+
const notification_open = ref(!1), r = useRouter(), user = reactive({
|
|
302
|
+
uname: ""
|
|
303
|
+
});
|
|
304
|
+
HttpApiV1.Post(HttpApiV1.url_usercenter, {}).then((res) => {
|
|
305
|
+
if (res.IsSuccess) {
|
|
306
|
+
let d = res.data;
|
|
307
|
+
user.uname = d.uname;
|
|
308
|
+
}
|
|
309
|
+
}).catch((err) => {
|
|
310
|
+
console.log("er1111r"), console.log(err);
|
|
311
|
+
});
|
|
312
|
+
const loginout = () => {
|
|
313
|
+
useTokenStore().saveToken(""), r.push("/login");
|
|
314
|
+
}, changepassword = () => {
|
|
315
|
+
r.push("/password");
|
|
316
|
+
};
|
|
317
|
+
return (_ctx, _cache) => {
|
|
318
|
+
const _component_el_image = resolveComponent("el-image"), _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_link = resolveComponent("el-link"), _component_el_drawer = resolveComponent("el-drawer");
|
|
319
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
320
|
+
createElementVNode("div", _hoisted_1, [
|
|
321
|
+
createElementVNode("div", _hoisted_2, [
|
|
322
|
+
createVNode(_component_el_image, {
|
|
323
|
+
style: { height: "40px" },
|
|
324
|
+
src: "/public/img/logo_40.png"
|
|
325
|
+
})
|
|
326
|
+
]),
|
|
327
|
+
createElementVNode("div", _hoisted_3, toDisplayString(inject("appname")), 1),
|
|
328
|
+
createVNode(_component_el_space, {
|
|
329
|
+
wrap: "",
|
|
330
|
+
style: { float: "right" }
|
|
331
|
+
}, {
|
|
332
|
+
default: withCtx(() => [
|
|
333
|
+
createVNode(_component_el_button, {
|
|
334
|
+
text: "",
|
|
335
|
+
icon: unref(bell_default),
|
|
336
|
+
onClick: _cache[0] || (_cache[0] = ($event) => notification_open.value = !0)
|
|
337
|
+
}, null, 8, ["icon"]),
|
|
338
|
+
createVNode(_component_el_dropdown, {
|
|
339
|
+
trigger: "click",
|
|
340
|
+
class: "user_operate"
|
|
341
|
+
}, {
|
|
342
|
+
dropdown: withCtx(() => [
|
|
343
|
+
createVNode(_component_el_dropdown_menu, null, {
|
|
344
|
+
default: withCtx(() => [
|
|
345
|
+
createVNode(_component_el_dropdown_item, { onClick: changepassword }, {
|
|
346
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
347
|
+
createTextVNode("修改密码", -1)
|
|
348
|
+
])]),
|
|
349
|
+
_: 1
|
|
350
|
+
}),
|
|
351
|
+
createVNode(_component_el_dropdown_item, { onClick: loginout }, {
|
|
352
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
353
|
+
createTextVNode("退出", -1)
|
|
354
|
+
])]),
|
|
355
|
+
_: 1
|
|
356
|
+
})
|
|
357
|
+
]),
|
|
358
|
+
_: 1
|
|
359
|
+
})
|
|
360
|
+
]),
|
|
361
|
+
default: withCtx(() => [
|
|
362
|
+
createElementVNode("span", _hoisted_4, [
|
|
363
|
+
createTextVNode(toDisplayString(user.uname) + " ", 1),
|
|
364
|
+
createVNode(_component_el_icon, { class: "el-icon--right" }, {
|
|
365
|
+
default: withCtx(() => [
|
|
366
|
+
createVNode(unref(arrow_down_default))
|
|
367
|
+
]),
|
|
368
|
+
_: 1
|
|
369
|
+
})
|
|
370
|
+
])
|
|
371
|
+
]),
|
|
372
|
+
_: 1
|
|
373
|
+
})
|
|
374
|
+
]),
|
|
375
|
+
_: 1
|
|
376
|
+
})
|
|
377
|
+
]),
|
|
378
|
+
createVNode(_component_el_drawer, {
|
|
379
|
+
modelValue: notification_open.value,
|
|
380
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => notification_open.value = $event),
|
|
381
|
+
title: "消息盒子",
|
|
382
|
+
size: 400,
|
|
383
|
+
"destroy-on-close": !0
|
|
384
|
+
}, {
|
|
385
|
+
footer: withCtx(() => [
|
|
386
|
+
createElementVNode("div", _hoisted_5, [
|
|
387
|
+
createVNode(_component_el_link, {
|
|
388
|
+
type: "primary",
|
|
389
|
+
href: "/notification"
|
|
390
|
+
}, {
|
|
391
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
392
|
+
createTextVNode("查看全部消息", -1)
|
|
393
|
+
])]),
|
|
394
|
+
_: 1
|
|
395
|
+
})
|
|
396
|
+
])
|
|
397
|
+
]),
|
|
398
|
+
default: withCtx(() => [
|
|
399
|
+
createVNode(_sfc_main$2, { ref: "notification_box" }, null, 512)
|
|
400
|
+
]),
|
|
401
|
+
_: 1
|
|
402
|
+
}, 8, ["modelValue"])
|
|
403
|
+
], 64);
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
}), Userheader = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-5963685f"]]), _sfc_main = /* @__PURE__ */ defineComponent({
|
|
407
|
+
__name: "main",
|
|
408
|
+
setup(__props) {
|
|
409
|
+
const store = useTokenStore(), r = useRouter();
|
|
410
|
+
return watch(store, (newv) => {
|
|
411
|
+
console.log("watch"), newv.token_data == "none" ? (console.log("newv.token_data==none"), r.push({
|
|
412
|
+
path: "/login",
|
|
413
|
+
query: {
|
|
414
|
+
redirect: r.currentRoute.value.fullPath
|
|
415
|
+
}
|
|
416
|
+
}), ZSYSMessage.ShowInfo("系统要求您重新登录")) : console.log("newv.token_data!=none");
|
|
417
|
+
}), (_ctx, _cache) => {
|
|
418
|
+
const _component_el_header = resolveComponent("el-header"), _component_router_view = resolveComponent("router-view"), _component_el_main = resolveComponent("el-main"), _component_el_container = resolveComponent("el-container");
|
|
419
|
+
return openBlock(), createBlock(_component_el_container, null, {
|
|
420
|
+
default: withCtx(() => [
|
|
421
|
+
createVNode(_component_el_header, { class: "header" }, {
|
|
422
|
+
default: withCtx(() => [
|
|
423
|
+
createVNode(Userheader)
|
|
424
|
+
]),
|
|
425
|
+
_: 1
|
|
426
|
+
}),
|
|
427
|
+
createVNode(_component_el_container, null, {
|
|
428
|
+
default: withCtx(() => [
|
|
429
|
+
createVNode(Usermenu),
|
|
430
|
+
createVNode(_component_el_main, { style: { padding: "0", "background-color": "white", position: "fixed", left: "200px", top: "60px", right: "0px", bottom: "0px" } }, {
|
|
431
|
+
default: withCtx(() => [
|
|
432
|
+
createVNode(_component_router_view)
|
|
433
|
+
]),
|
|
434
|
+
_: 1
|
|
435
|
+
})
|
|
436
|
+
]),
|
|
437
|
+
_: 1
|
|
438
|
+
})
|
|
439
|
+
]),
|
|
440
|
+
_: 1
|
|
441
|
+
});
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
}), main = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-71477349"]]);
|
|
445
|
+
export {
|
|
446
|
+
main as default
|
|
447
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { defineComponent, ref, reactive, computed, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { _ as _sfc_main$1 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-nfrW6-5D.js";
|
|
3
|
+
import { _ as _sfc_main$2 } from "./zsyslist.vue_vue_type_script_setup_true_lang-Bwtl9i35.js";
|
|
4
|
+
import { a as formatDateTime } from "./zsys_time-BE4ImI0m.js";
|
|
5
|
+
import { H as HttpApiV1 } from "./http_api_v1-BOkofMrH.js";
|
|
6
|
+
const _hoisted_1 = { style: { padding: "0px 20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "notification",
|
|
8
|
+
setup(__props) {
|
|
9
|
+
const activeName = ref("first"), handleClick = (tab, event) => {
|
|
10
|
+
console.log(tab, event);
|
|
11
|
+
}, listconfig = reactive({
|
|
12
|
+
ApiUrl: HttpApiV1.url_notification_list
|
|
13
|
+
}), dataformat = computed(() => (item) => formatDateTime(new Date(item)));
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
const _component_el_table_column = resolveComponent("el-table-column"), _component_el_link = resolveComponent("el-link"), _component_el_tab_pane = resolveComponent("el-tab-pane"), _component_el_tabs = resolveComponent("el-tabs");
|
|
16
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
17
|
+
createVNode(_sfc_main$1),
|
|
18
|
+
createElementVNode("div", _hoisted_1, [
|
|
19
|
+
createVNode(_component_el_tabs, {
|
|
20
|
+
modelValue: activeName.value,
|
|
21
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeName.value = $event),
|
|
22
|
+
onTabClick: handleClick
|
|
23
|
+
}, {
|
|
24
|
+
default: withCtx(() => [
|
|
25
|
+
createVNode(_component_el_tab_pane, {
|
|
26
|
+
label: "全部消息",
|
|
27
|
+
name: "first"
|
|
28
|
+
}, {
|
|
29
|
+
default: withCtx(() => [
|
|
30
|
+
createVNode(_sfc_main$2, { config: listconfig }, {
|
|
31
|
+
content: withCtx(() => [
|
|
32
|
+
createVNode(_component_el_table_column, {
|
|
33
|
+
prop: "c_time",
|
|
34
|
+
label: "时间",
|
|
35
|
+
width: "180"
|
|
36
|
+
}, {
|
|
37
|
+
default: withCtx(({ row }) => [
|
|
38
|
+
createTextVNode(toDisplayString(dataformat.value(row.c_time)), 1)
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
}),
|
|
42
|
+
createVNode(_component_el_table_column, {
|
|
43
|
+
prop: "module",
|
|
44
|
+
label: "模块",
|
|
45
|
+
width: "180"
|
|
46
|
+
}),
|
|
47
|
+
createVNode(_component_el_table_column, {
|
|
48
|
+
prop: "title",
|
|
49
|
+
label: "标题",
|
|
50
|
+
"min-width": "300"
|
|
51
|
+
}, {
|
|
52
|
+
default: withCtx(({ row }) => [
|
|
53
|
+
createVNode(_component_el_link, {
|
|
54
|
+
type: "primary",
|
|
55
|
+
href: row.url,
|
|
56
|
+
target: "_blank"
|
|
57
|
+
}, {
|
|
58
|
+
default: withCtx(() => [
|
|
59
|
+
createTextVNode(toDisplayString(row.title), 1)
|
|
60
|
+
]),
|
|
61
|
+
_: 2
|
|
62
|
+
}, 1032, ["href"])
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
})
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, ["config"])
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
})
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
}, 8, ["modelValue"])
|
|
75
|
+
])
|
|
76
|
+
], 64);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
export {
|
|
81
|
+
_sfc_main as default
|
|
82
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { _ as _sfc_main$2 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as _sfc_main$3 } from "./zsyslist.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { H as HttpApiV1 } from "./http_api_v1-
|
|
5
|
-
import { Z as ZSYSMessage } from "./message-
|
|
6
|
-
import {
|
|
2
|
+
import { _ as _sfc_main$2 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-nfrW6-5D.js";
|
|
3
|
+
import { _ as _sfc_main$3 } from "./zsyslist.vue_vue_type_script_setup_true_lang-Bwtl9i35.js";
|
|
4
|
+
import { H as HttpApiV1 } from "./http_api_v1-BOkofMrH.js";
|
|
5
|
+
import { Z as ZSYSMessage } from "./message-CxCkznRZ.js";
|
|
6
|
+
import { h as useMagicKeys, w as whenever } from "./index-D0WjiJFA.js";
|
|
7
7
|
import { z as zsysEventBus } from "./zsys_eventBus-NYpVNvQ4.js";
|
|
8
|
-
import { _ as _sfc_main$4 } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as _sfc_main$4 } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-CdVC6Qlu.js";
|
|
9
9
|
const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "position_edit_dialog",
|
|
11
11
|
props: {
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { _ as _sfc_main$2 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as _sfc_main$3 } from "./zsyslist.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { H as HttpApiV1 } from "./http_api_v1-
|
|
5
|
-
import { _ as _sfc_main$4 } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { Z as ZSYSMessage } from "./message-
|
|
7
|
-
import {
|
|
2
|
+
import { _ as _sfc_main$2 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-nfrW6-5D.js";
|
|
3
|
+
import { _ as _sfc_main$3 } from "./zsyslist.vue_vue_type_script_setup_true_lang-Bwtl9i35.js";
|
|
4
|
+
import { H as HttpApiV1 } from "./http_api_v1-BOkofMrH.js";
|
|
5
|
+
import { _ as _sfc_main$4 } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-CdVC6Qlu.js";
|
|
6
|
+
import { Z as ZSYSMessage } from "./message-CxCkznRZ.js";
|
|
7
|
+
import { h as useMagicKeys, w as whenever, _ as _export_sfc } from "./index-D0WjiJFA.js";
|
|
8
8
|
import { z as zsysEventBus } from "./zsys_eventBus-NYpVNvQ4.js";
|
|
9
9
|
const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "role_edit_dialog",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { _ as _sfc_main$1 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { H as HttpApiV1 } from "./http_api_v1-
|
|
2
|
+
import { _ as _sfc_main$1 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-nfrW6-5D.js";
|
|
3
|
+
import { H as HttpApiV1 } from "./http_api_v1-BOkofMrH.js";
|
|
4
4
|
const _hoisted_1 = { style: { padding: "0px 20px", "margin-top": "20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "self",
|
|
6
6
|
setup(__props) {
|