zsysview 0.0.35 → 0.0.36
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-CzH2TVgw.js} +4 -4
- package/dist/{breadcrumb.vue_vue_type_script_setup_true_lang-TTLDMjMD.js → breadcrumb.vue_vue_type_script_setup_true_lang-zbXxuTgZ.js} +1 -1
- package/dist/{change_password-BneyLtuI.js → change_password-CGTsPVRW.js} +4 -4
- package/dist/default_avatar.png +0 -0
- package/dist/{department-CbHAuLje.js → department-QRdHgu4z.js} +5 -5
- package/dist/{desktop-eknEWppu.js → desktop-C_q7VUj9.js} +1 -1
- package/dist/{http_api_v1-EUs_f9lQ.js → http_api_v1-D1Pu4P-8.js} +1 -16
- package/dist/{index-BO349G9H.js → index-B1Hskmci.js} +70 -25
- package/dist/{log-YY2eN32S.js → log-ByJQPRKr.js} +4 -4
- package/dist/{login-DeeHxCNb.js → login-GunVpm8V.js} +16 -16
- package/dist/{main-D9VmwlaL.js → main-Xzv2gkG-.js} +11 -10
- package/dist/{message-CpFOrVMc.js → message-2gz6_WO4.js} +1 -1
- package/dist/{position-BsoCgmh_.js → position-2aCnMhUk.js} +6 -6
- package/dist/{role-CnLFQOSX.js → role-BL8NWYb0.js} +6 -6
- package/dist/{self-6xdRjh6a.js → self-CyVqGJto.js} +2 -2
- package/dist/systemsetting-BdHsAnqL.js +158 -0
- package/dist/{user-DPtBnZLN.js → user-CpVX3F-F.js} +6 -6
- package/dist/{zsys_delbutton.vue_vue_type_script_setup_true_lang-xh5_jCEI.js → zsys_delbutton.vue_vue_type_script_setup_true_lang-CFvu9b2e.js} +2 -2
- package/dist/{zsyslist.vue_vue_type_script_setup_true_lang-Di1hHbqk.js → zsyslist.vue_vue_type_script_setup_true_lang-B85TNTPZ.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 +1 -2
- package/package.json +1 -1
- package/dist/sys-BZgBUI3k.js +0 -30
- /package/dist/{vite.svg → vite1.svg} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode, createCommentVNode } 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-
|
|
4
|
-
import { _ as _sfc_main$2 } from "./zsyslist.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { Z as ZSYSMessage } from "./message-
|
|
2
|
+
import { _ as _sfc_main$1 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-zbXxuTgZ.js";
|
|
3
|
+
import { H as HttpApiV1 } from "./http_api_v1-D1Pu4P-8.js";
|
|
4
|
+
import { _ as _sfc_main$2 } from "./zsyslist.vue_vue_type_script_setup_true_lang-B85TNTPZ.js";
|
|
5
|
+
import { Z as ZSYSMessage } from "./message-2gz6_WO4.js";
|
|
6
6
|
const _hoisted_1 = { style: { padding: "0px 20px" } }, _hoisted_2 = { key: 0 }, _hoisted_3 = { key: 0 }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "backup",
|
|
8
8
|
setup(__props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, onMounted, resolveComponent, createBlock, openBlock, unref, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { j as useRouter, t as arrow_right_default } from "./index-B1Hskmci.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "breadcrumb",
|
|
5
5
|
setup(__props) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode } 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-
|
|
4
|
-
import {
|
|
5
|
-
import { Z as ZSYSMessage } from "./message-
|
|
2
|
+
import { _ as _sfc_main$1 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-zbXxuTgZ.js";
|
|
3
|
+
import { H as HttpApiV1 } from "./http_api_v1-D1Pu4P-8.js";
|
|
4
|
+
import { j as useRouter } from "./index-B1Hskmci.js";
|
|
5
|
+
import { Z as ZSYSMessage } from "./message-2gz6_WO4.js";
|
|
6
6
|
import { h } from "./index.es-DrN1BLo5.js";
|
|
7
7
|
const _hoisted_1 = { style: { padding: "0px 20px", "margin-top": "20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "change_password",
|
|
Binary file
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { _ as _sfc_main$2 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { H as HttpApiV1 } from "./http_api_v1-
|
|
4
|
-
import {
|
|
5
|
-
import { _ as _sfc_main$3 } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as _sfc_main$2 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-zbXxuTgZ.js";
|
|
3
|
+
import { H as HttpApiV1 } from "./http_api_v1-D1Pu4P-8.js";
|
|
4
|
+
import { n as useMagicKeys, w as whenever, p as refresh_default } from "./index-B1Hskmci.js";
|
|
5
|
+
import { _ as _sfc_main$3 } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-CFvu9b2e.js";
|
|
6
6
|
import { z as zsysEventBus } from "./zsys_eventBus-NYpVNvQ4.js";
|
|
7
|
-
import { Z as ZSYSMessage } from "./message-
|
|
7
|
+
import { Z as ZSYSMessage } from "./message-2gz6_WO4.js";
|
|
8
8
|
const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "department_edit_dialog",
|
|
10
10
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { y as getDefaultExportFromCjs, m as useTokenStore, H as HttpApiReturnData } from "./index-B1Hskmci.js";
|
|
2
2
|
function bind(fn, thisArg) {
|
|
3
3
|
return function() {
|
|
4
4
|
return fn.apply(thisArg, arguments);
|
|
@@ -2631,21 +2631,6 @@ let http_axios = axios.create({
|
|
|
2631
2631
|
});
|
|
2632
2632
|
http_axios.interceptors.request.use((config) => (console.log(store.token.value), config.headers.authorization = "Bearer " + store.token.value, config));
|
|
2633
2633
|
http_axios.interceptors.response.use((res) => (res.data.error_code == 100 && store.saveToken("none"), typeof res.headers.authorization < "u" && store.saveToken(res.headers.authorization), res), (err) => Promise.reject(err));
|
|
2634
|
-
class HttpApiReturnData {
|
|
2635
|
-
error_code;
|
|
2636
|
-
message;
|
|
2637
|
-
data;
|
|
2638
|
-
constructor() {
|
|
2639
|
-
this.error_code = 1, this.message = "未知错误", this.data = {};
|
|
2640
|
-
}
|
|
2641
|
-
get IsSuccess() {
|
|
2642
|
-
return this.error_code == 0;
|
|
2643
|
-
}
|
|
2644
|
-
static fromObject(obj) {
|
|
2645
|
-
const instance = new HttpApiReturnData();
|
|
2646
|
-
return Object.assign(instance, obj), instance;
|
|
2647
|
-
}
|
|
2648
|
-
}
|
|
2649
2634
|
const hostUrl = `${window.location.protocol}//${window.location.host}/`;
|
|
2650
2635
|
class HttpApiV1 {
|
|
2651
2636
|
//系统基础接口
|
|
@@ -7572,7 +7572,21 @@ var _sfc_main6 = /* @__PURE__ */ defineComponent({
|
|
|
7572
7572
|
})
|
|
7573
7573
|
]));
|
|
7574
7574
|
}
|
|
7575
|
-
}), office_building_default = _sfc_main185,
|
|
7575
|
+
}), office_building_default = _sfc_main185, _sfc_main187 = /* @__PURE__ */ defineComponent({
|
|
7576
|
+
name: "Operation",
|
|
7577
|
+
__name: "operation",
|
|
7578
|
+
setup(__props) {
|
|
7579
|
+
return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
|
|
7580
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7581
|
+
viewBox: "0 0 1024 1024"
|
|
7582
|
+
}, [
|
|
7583
|
+
createElementVNode("path", {
|
|
7584
|
+
fill: "currentColor",
|
|
7585
|
+
d: "M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"
|
|
7586
|
+
})
|
|
7587
|
+
]));
|
|
7588
|
+
}
|
|
7589
|
+
}), operation_default = _sfc_main187, _sfc_main195 = /* @__PURE__ */ defineComponent({
|
|
7576
7590
|
name: "PictureFilled",
|
|
7577
7591
|
__name: "picture-filled",
|
|
7578
7592
|
setup(__props) {
|
|
@@ -49229,25 +49243,25 @@ const useTokenStore = /* @__PURE__ */ defineStore("UseToken", () => {
|
|
|
49229
49243
|
{
|
|
49230
49244
|
path: "/main",
|
|
49231
49245
|
//"/main"
|
|
49232
|
-
component: () => import("./main-
|
|
49246
|
+
component: () => import("./main-Xzv2gkG-.js"),
|
|
49233
49247
|
meta: { requiresAuth: !0, title: "主界面" },
|
|
49234
49248
|
children: [
|
|
49235
49249
|
{
|
|
49236
49250
|
path: "/desktop",
|
|
49237
49251
|
meta: { title: "首页" },
|
|
49238
|
-
component: () => import("./desktop-
|
|
49252
|
+
component: () => import("./desktop-C_q7VUj9.js")
|
|
49239
49253
|
},
|
|
49240
49254
|
{
|
|
49241
49255
|
path: "/self",
|
|
49242
49256
|
//个人中心
|
|
49243
49257
|
meta: { title: "个人中心" },
|
|
49244
|
-
component: () => import("./self-
|
|
49258
|
+
component: () => import("./self-CyVqGJto.js")
|
|
49245
49259
|
},
|
|
49246
49260
|
{
|
|
49247
49261
|
path: "/password",
|
|
49248
49262
|
//修改密码
|
|
49249
49263
|
meta: { title: "修改密码" },
|
|
49250
|
-
component: () => import("./change_password-
|
|
49264
|
+
component: () => import("./change_password-CGTsPVRW.js")
|
|
49251
49265
|
},
|
|
49252
49266
|
{
|
|
49253
49267
|
path: "/sys",
|
|
@@ -49258,37 +49272,37 @@ const useTokenStore = /* @__PURE__ */ defineStore("UseToken", () => {
|
|
|
49258
49272
|
{
|
|
49259
49273
|
path: "/user",
|
|
49260
49274
|
meta: { title: "用户管理" },
|
|
49261
|
-
component: () => import("./user-
|
|
49275
|
+
component: () => import("./user-CpVX3F-F.js")
|
|
49262
49276
|
},
|
|
49263
49277
|
{
|
|
49264
49278
|
path: "/department",
|
|
49265
49279
|
meta: { title: "组织架构" },
|
|
49266
|
-
component: () => import("./department-
|
|
49280
|
+
component: () => import("./department-QRdHgu4z.js")
|
|
49267
49281
|
},
|
|
49268
49282
|
{
|
|
49269
49283
|
path: "/position",
|
|
49270
49284
|
meta: { title: "职务" },
|
|
49271
|
-
component: () => import("./position-
|
|
49285
|
+
component: () => import("./position-2aCnMhUk.js")
|
|
49272
49286
|
},
|
|
49273
49287
|
{
|
|
49274
49288
|
path: "/role",
|
|
49275
49289
|
meta: { title: "角色权限" },
|
|
49276
|
-
component: () => import("./role-
|
|
49290
|
+
component: () => import("./role-BL8NWYb0.js")
|
|
49277
49291
|
},
|
|
49278
49292
|
{
|
|
49279
49293
|
path: "/log",
|
|
49280
49294
|
meta: { title: "日志" },
|
|
49281
|
-
component: () => import("./log-
|
|
49295
|
+
component: () => import("./log-ByJQPRKr.js")
|
|
49282
49296
|
},
|
|
49283
49297
|
{
|
|
49284
49298
|
path: "/backup",
|
|
49285
49299
|
meta: { title: "备份" },
|
|
49286
|
-
component: () => import("./backup-
|
|
49300
|
+
component: () => import("./backup-CzH2TVgw.js")
|
|
49287
49301
|
},
|
|
49288
49302
|
{
|
|
49289
|
-
path: "/
|
|
49290
|
-
meta: { title: "
|
|
49291
|
-
component: () => import("./
|
|
49303
|
+
path: "/systemsetting",
|
|
49304
|
+
meta: { title: "高级设置" },
|
|
49305
|
+
component: () => import("./systemsetting-BdHsAnqL.js")
|
|
49292
49306
|
}
|
|
49293
49307
|
]
|
|
49294
49308
|
}
|
|
@@ -49297,7 +49311,7 @@ const useTokenStore = /* @__PURE__ */ defineStore("UseToken", () => {
|
|
|
49297
49311
|
{
|
|
49298
49312
|
path: "/login",
|
|
49299
49313
|
name: "login",
|
|
49300
|
-
component: () => import("./login-
|
|
49314
|
+
component: () => import("./login-GunVpm8V.js")
|
|
49301
49315
|
}
|
|
49302
49316
|
], router = createRouter({
|
|
49303
49317
|
history: createWebHistory(),
|
|
@@ -49310,14 +49324,43 @@ router.beforeEach((to, _2, next) => {
|
|
|
49310
49324
|
} else
|
|
49311
49325
|
next();
|
|
49312
49326
|
});
|
|
49327
|
+
class HttpApiReturnData {
|
|
49328
|
+
error_code;
|
|
49329
|
+
message;
|
|
49330
|
+
data;
|
|
49331
|
+
constructor() {
|
|
49332
|
+
this.error_code = 1, this.message = "未知错误", this.data = {};
|
|
49333
|
+
}
|
|
49334
|
+
get IsSuccess() {
|
|
49335
|
+
return this.error_code == 0;
|
|
49336
|
+
}
|
|
49337
|
+
static fromObject(obj) {
|
|
49338
|
+
const instance = new HttpApiReturnData();
|
|
49339
|
+
return Object.assign(instance, obj), instance;
|
|
49340
|
+
}
|
|
49341
|
+
}
|
|
49342
|
+
async function GetPublish(app2) {
|
|
49343
|
+
const response = await fetch("/api/system_public");
|
|
49344
|
+
if (!response.ok)
|
|
49345
|
+
throw new Error(`加载配置失败: ${response.status}`);
|
|
49346
|
+
let res = await response.json(), re = HttpApiReturnData.fromObject(res);
|
|
49347
|
+
if (console.log(re), re.IsSuccess) {
|
|
49348
|
+
console.log(222);
|
|
49349
|
+
let data = res.data;
|
|
49350
|
+
app2.provide("appname", data.app_name);
|
|
49351
|
+
} else
|
|
49352
|
+
console.log(11111);
|
|
49353
|
+
}
|
|
49313
49354
|
const zsysapp = createApp(app), pinia = createPinia();
|
|
49314
49355
|
pinia.use(index_default);
|
|
49315
49356
|
zsysapp.use(router);
|
|
49316
49357
|
zsysapp.use(installer, { locale: zhCn });
|
|
49317
49358
|
zsysapp.use(pinia);
|
|
49359
|
+
GetPublish(zsysapp);
|
|
49318
49360
|
zsysapp.mount("#app");
|
|
49319
49361
|
export {
|
|
49320
49362
|
ElMessage as E,
|
|
49363
|
+
HttpApiReturnData as H,
|
|
49321
49364
|
_export_sfc$1 as _,
|
|
49322
49365
|
office_building_default as a,
|
|
49323
49366
|
bell_default as b,
|
|
@@ -49325,22 +49368,24 @@ export {
|
|
|
49325
49368
|
document_default as d,
|
|
49326
49369
|
avatar_default as e,
|
|
49327
49370
|
copy_document_default as f,
|
|
49328
|
-
|
|
49371
|
+
operation_default as g,
|
|
49329
49372
|
house_default as h,
|
|
49330
|
-
|
|
49331
|
-
|
|
49332
|
-
|
|
49373
|
+
setting_default as i,
|
|
49374
|
+
useRouter as j,
|
|
49375
|
+
arrow_down_default as k,
|
|
49333
49376
|
location_default as l,
|
|
49334
|
-
|
|
49335
|
-
|
|
49377
|
+
useTokenStore as m,
|
|
49378
|
+
useMagicKeys as n,
|
|
49336
49379
|
odometer_default as o,
|
|
49337
|
-
|
|
49338
|
-
|
|
49380
|
+
refresh_default as p,
|
|
49381
|
+
search_default as q,
|
|
49339
49382
|
reading_default as r,
|
|
49340
49383
|
set_up_default as s,
|
|
49341
|
-
|
|
49384
|
+
arrow_right_default as t,
|
|
49342
49385
|
user_default as u,
|
|
49343
49386
|
video_camera_default as v,
|
|
49344
49387
|
whenever as w,
|
|
49345
|
-
|
|
49388
|
+
useRoute as x,
|
|
49389
|
+
getDefaultExportFromCjs as y,
|
|
49390
|
+
zsysapp as z
|
|
49346
49391
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, createTextVNode, reactive, computed, createElementVNode, toDisplayString } 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-
|
|
2
|
+
import { _ as _sfc_main$2 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-zbXxuTgZ.js";
|
|
3
|
+
import { _ as _sfc_main$3 } from "./zsyslist.vue_vue_type_script_setup_true_lang-B85TNTPZ.js";
|
|
4
|
+
import { H as HttpApiV1 } from "./http_api_v1-D1Pu4P-8.js";
|
|
5
|
+
import { Z as ZSYSMessage } from "./message-2gz6_WO4.js";
|
|
6
6
|
import { f as formatDateTime } from "./zsys_time-4KclnYJN.js";
|
|
7
7
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "log_setting",
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { defineComponent, reactive, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, withKeys, createTextVNode, createElementVNode } from "vue";
|
|
2
|
-
import { Z as ZSYSMessage } from "./message-
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent, reactive, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, withKeys, createTextVNode, createElementVNode, toDisplayString, inject } from "vue";
|
|
2
|
+
import { Z as ZSYSMessage } from "./message-2gz6_WO4.js";
|
|
3
|
+
import { j as useRouter, x as useRoute, _ as _export_sfc } from "./index-B1Hskmci.js";
|
|
4
4
|
import { h } from "./index.es-DrN1BLo5.js";
|
|
5
|
-
import { H as HttpApiV1 } from "./http_api_v1-
|
|
6
|
-
const _hoisted_1 = { class: "bg" },
|
|
5
|
+
import { H as HttpApiV1 } from "./http_api_v1-D1Pu4P-8.js";
|
|
6
|
+
const _hoisted_1 = { class: "bg" }, _hoisted_2 = {
|
|
7
|
+
class: "card-header",
|
|
8
|
+
style: {}
|
|
9
|
+
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
10
|
__name: "login",
|
|
8
11
|
setup(__props) {
|
|
9
12
|
const r = useRouter(), route = useRoute(), d = reactive({
|
|
@@ -34,18 +37,15 @@ const _hoisted_1 = { class: "bg" }, _sfc_main = /* @__PURE__ */ defineComponent(
|
|
|
34
37
|
shadow: "always",
|
|
35
38
|
class: "align-center"
|
|
36
39
|
}, {
|
|
37
|
-
header: withCtx(() => [
|
|
38
|
-
createElementVNode("div",
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
createElementVNode("span", null, "岗位行为识别系统")
|
|
43
|
-
], -1)
|
|
44
|
-
])]),
|
|
40
|
+
header: withCtx(() => [
|
|
41
|
+
createElementVNode("div", _hoisted_2, [
|
|
42
|
+
createElementVNode("span", null, toDisplayString(inject("appname")), 1)
|
|
43
|
+
])
|
|
44
|
+
]),
|
|
45
45
|
default: withCtx(() => [
|
|
46
46
|
createVNode(_component_el_image, {
|
|
47
47
|
style: { height: "100px" },
|
|
48
|
-
src: "
|
|
48
|
+
src: "/default_avatar.png"
|
|
49
49
|
}),
|
|
50
50
|
createVNode(_component_el_form, {
|
|
51
51
|
"label-width": "auto",
|
|
@@ -88,7 +88,7 @@ const _hoisted_1 = { class: "bg" }, _sfc_main = /* @__PURE__ */ defineComponent(
|
|
|
88
88
|
onClick: login2,
|
|
89
89
|
style: { width: "100%" }
|
|
90
90
|
}, {
|
|
91
|
-
default: withCtx(() => [..._cache[
|
|
91
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
92
92
|
createTextVNode("登录", -1)
|
|
93
93
|
])]),
|
|
94
94
|
_: 1
|
|
@@ -105,7 +105,7 @@ const _hoisted_1 = { class: "bg" }, _sfc_main = /* @__PURE__ */ defineComponent(
|
|
|
105
105
|
]);
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
}), login = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
108
|
+
}), login = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8204aee0"]]);
|
|
109
109
|
export {
|
|
110
110
|
login as default
|
|
111
111
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, createBlock, createCommentVNode, openBlock, withCtx, createVNode, createElementVNode, resolveDynamicComponent, toDisplayString, createElementBlock, Fragment, renderList, markRaw, reactive, onMounted, createTextVNode, unref, watch } from "vue";
|
|
2
|
-
import { H as HttpApiV1 } from "./http_api_v1-
|
|
3
|
-
import { h as house_default, u as user_default, o as odometer_default, c as collection_default, s as set_up_default, v as video_camera_default, l as location_default, d as document_default, b as bell_default, a as office_building_default, e as avatar_default, r as reading_default, f as copy_document_default, g as setting_default, _ as _export_sfc,
|
|
4
|
-
import { Z as ZSYSMessage } from "./message-
|
|
1
|
+
import { defineComponent, resolveComponent, createBlock, createCommentVNode, openBlock, withCtx, createVNode, createElementVNode, resolveDynamicComponent, toDisplayString, createElementBlock, Fragment, renderList, markRaw, reactive, onMounted, inject, createTextVNode, unref, watch } from "vue";
|
|
2
|
+
import { H as HttpApiV1 } from "./http_api_v1-D1Pu4P-8.js";
|
|
3
|
+
import { h as house_default, u as user_default, o as odometer_default, c as collection_default, s as set_up_default, v as video_camera_default, l as location_default, d as document_default, b as bell_default, a as office_building_default, e as avatar_default, r as reading_default, f as copy_document_default, g as operation_default, i as setting_default, _ as _export_sfc, j as useRouter, k as arrow_down_default, m as useTokenStore } from "./index-B1Hskmci.js";
|
|
4
|
+
import { Z as ZSYSMessage } from "./message-2gz6_WO4.js";
|
|
5
5
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "userMenuItem",
|
|
7
7
|
props: {
|
|
@@ -103,7 +103,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
103
103
|
{ name: "职务", icon: markRaw(avatar_default), url: "/position", show: !1 },
|
|
104
104
|
{ name: "角色权限", icon: markRaw(avatar_default), url: "/role", show: !1 },
|
|
105
105
|
{ name: "日志", icon: markRaw(reading_default), url: "/log", show: !1 },
|
|
106
|
-
{ name: "备份", icon: markRaw(copy_document_default), url: "/backup", show: !1 }
|
|
106
|
+
{ name: "备份", icon: markRaw(copy_document_default), url: "/backup", show: !1 },
|
|
107
|
+
{ name: "高级设置", icon: markRaw(operation_default), url: "/systemsetting", show: !1 }
|
|
107
108
|
]
|
|
108
109
|
}
|
|
109
110
|
]
|
|
@@ -133,7 +134,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
133
134
|
menuItem.show = show;
|
|
134
135
|
}
|
|
135
136
|
}, menuview = (ps) => {
|
|
136
|
-
showIfHas("事件管理", "gwxw.event", ps), showIfHas("数据看板", "gwxw.event", ps), showIfHas("行为分析引擎", "gwxw.engine", ps), showIfHas("设备管理", "gwxw.equipment", ps), showIfHas("区域管理", "gwxw.area", ps), showIfHas("报表与统计", "gwxw.total", ps), showIfHas("报警与通知", "gwxw.notice", ps), showIfHas("系统管理", "zsys.user|zsys.department|zsys.position|zsys.role|zsys.log|zsys.backup", ps), showIfHas("用户管理", "zsys.user", ps), showIfHas("组织架构", "zsys.department", ps), showIfHas("职务", "zsys.position", ps), showIfHas("角色权限", "zsys.role", ps), showIfHas("日志", "zsys.log", ps), showIfHas("备份", "zsys.backup", ps);
|
|
137
|
+
showIfHas("事件管理", "gwxw.event", ps), showIfHas("数据看板", "gwxw.event", ps), showIfHas("行为分析引擎", "gwxw.engine", ps), showIfHas("设备管理", "gwxw.equipment", ps), showIfHas("区域管理", "gwxw.area", ps), showIfHas("报表与统计", "gwxw.total", ps), showIfHas("报警与通知", "gwxw.notice", ps), showIfHas("系统管理", "zsys.user|zsys.department|zsys.position|zsys.role|zsys.log|zsys.backup|zsys.systemsetting", ps), showIfHas("用户管理", "zsys.user", ps), showIfHas("组织架构", "zsys.department", ps), showIfHas("职务", "zsys.position", ps), showIfHas("角色权限", "zsys.role", ps), showIfHas("日志", "zsys.log", ps), showIfHas("备份", "zsys.backup", ps), showIfHas("高级设置", "zsys.systemsetting", ps);
|
|
137
138
|
}, getUerPermission = async () => {
|
|
138
139
|
try {
|
|
139
140
|
let res = await HttpApiV1.Post(HttpApiV1.url_user_permission, {});
|
|
@@ -177,7 +178,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
177
178
|
});
|
|
178
179
|
};
|
|
179
180
|
}
|
|
180
|
-
}), Usermenu = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
181
|
+
}), Usermenu = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c20ea8a2"]]), _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" }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
181
182
|
__name: "userHeader",
|
|
182
183
|
setup(__props) {
|
|
183
184
|
const r = useRouter(), user = reactive({
|
|
@@ -205,7 +206,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
205
206
|
src: "../../assets/default_logo_40.png"
|
|
206
207
|
})
|
|
207
208
|
]),
|
|
208
|
-
|
|
209
|
+
createElementVNode("div", _hoisted_3, toDisplayString(inject("appname")), 1),
|
|
209
210
|
createVNode(_component_el_dropdown, {
|
|
210
211
|
trigger: "click",
|
|
211
212
|
class: "user_operate"
|
|
@@ -230,7 +231,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
230
231
|
})
|
|
231
232
|
]),
|
|
232
233
|
default: withCtx(() => [
|
|
233
|
-
createElementVNode("span",
|
|
234
|
+
createElementVNode("span", _hoisted_4, [
|
|
234
235
|
createTextVNode(toDisplayString(user.uname) + " ", 1),
|
|
235
236
|
createVNode(_component_el_icon, { class: "el-icon--right" }, {
|
|
236
237
|
default: withCtx(() => [
|
|
@@ -245,7 +246,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
245
246
|
]);
|
|
246
247
|
};
|
|
247
248
|
}
|
|
248
|
-
}), Userheader = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
249
|
+
}), Userheader = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-8c1fb035"]]), _sfc_main = /* @__PURE__ */ defineComponent({
|
|
249
250
|
__name: "main",
|
|
250
251
|
setup(__props) {
|
|
251
252
|
const store = useTokenStore(), r = useRouter();
|
|
@@ -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-zbXxuTgZ.js";
|
|
3
|
+
import { _ as _sfc_main$3 } from "./zsyslist.vue_vue_type_script_setup_true_lang-B85TNTPZ.js";
|
|
4
|
+
import { H as HttpApiV1 } from "./http_api_v1-D1Pu4P-8.js";
|
|
5
|
+
import { Z as ZSYSMessage } from "./message-2gz6_WO4.js";
|
|
6
|
+
import { n as useMagicKeys, w as whenever } from "./index-B1Hskmci.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-CFvu9b2e.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-zbXxuTgZ.js";
|
|
3
|
+
import { _ as _sfc_main$3 } from "./zsyslist.vue_vue_type_script_setup_true_lang-B85TNTPZ.js";
|
|
4
|
+
import { H as HttpApiV1 } from "./http_api_v1-D1Pu4P-8.js";
|
|
5
|
+
import { _ as _sfc_main$4 } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-CFvu9b2e.js";
|
|
6
|
+
import { Z as ZSYSMessage } from "./message-2gz6_WO4.js";
|
|
7
|
+
import { n as useMagicKeys, w as whenever, _ as _export_sfc } from "./index-B1Hskmci.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-zbXxuTgZ.js";
|
|
3
|
+
import { H as HttpApiV1 } from "./http_api_v1-D1Pu4P-8.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) {
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { defineComponent, ref, reactive, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode } from "vue";
|
|
2
|
+
import { _ as _sfc_main$1 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-zbXxuTgZ.js";
|
|
3
|
+
import { Z as ZSYSMessage } from "./message-2gz6_WO4.js";
|
|
4
|
+
import { H as HttpApiV1 } from "./http_api_v1-D1Pu4P-8.js";
|
|
5
|
+
const _hoisted_1 = { style: { padding: "0px 20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "systemsetting",
|
|
7
|
+
setup(__props) {
|
|
8
|
+
const tab = ref("base"), form = reactive({
|
|
9
|
+
auto: !0,
|
|
10
|
+
plan: "Everyday",
|
|
11
|
+
hour: "01",
|
|
12
|
+
minute: "00",
|
|
13
|
+
path: "",
|
|
14
|
+
keep: "keep20",
|
|
15
|
+
use_ftp: !1,
|
|
16
|
+
f_host: "",
|
|
17
|
+
f_port: 21,
|
|
18
|
+
f_u: "",
|
|
19
|
+
f_p: "",
|
|
20
|
+
f_path: "",
|
|
21
|
+
f_tls: !0
|
|
22
|
+
});
|
|
23
|
+
async function saveConfig() {
|
|
24
|
+
try {
|
|
25
|
+
let data = {
|
|
26
|
+
auto: form.auto ? 1 : 0,
|
|
27
|
+
plan: form.plan,
|
|
28
|
+
hour: form.hour,
|
|
29
|
+
minute: form.minute,
|
|
30
|
+
path: form.path,
|
|
31
|
+
keep: form.keep,
|
|
32
|
+
use_ftp: form.use_ftp ? 1 : 0,
|
|
33
|
+
f_host: form.f_host,
|
|
34
|
+
f_port: form.f_port,
|
|
35
|
+
f_u: form.f_u,
|
|
36
|
+
f_p: form.f_p,
|
|
37
|
+
f_path: form.f_path,
|
|
38
|
+
f_tls: form.f_tls ? 1 : 0
|
|
39
|
+
}, res = await HttpApiV1.Post(HttpApiV1.url_backup_config_save, data);
|
|
40
|
+
res.IsSuccess ? ZSYSMessage.ShowSuccess("保存成功") : ZSYSMessage.ShowError(res.message);
|
|
41
|
+
} catch (e) {
|
|
42
|
+
console.log(e), ZSYSMessage.ShowError("保存配置失败");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
const _component_el_input = resolveComponent("el-input"), _component_el_text = resolveComponent("el-text"), _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");
|
|
47
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
48
|
+
createVNode(_sfc_main$1),
|
|
49
|
+
createElementVNode("div", _hoisted_1, [
|
|
50
|
+
createVNode(_component_el_tabs, {
|
|
51
|
+
modelValue: tab.value,
|
|
52
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => tab.value = $event)
|
|
53
|
+
}, {
|
|
54
|
+
default: withCtx(() => [
|
|
55
|
+
createVNode(_component_el_tab_pane, {
|
|
56
|
+
label: "基础",
|
|
57
|
+
name: "base"
|
|
58
|
+
}, {
|
|
59
|
+
default: withCtx(() => [
|
|
60
|
+
createVNode(_component_el_form, {
|
|
61
|
+
"label-width": "100px",
|
|
62
|
+
style: { "margin-top": "10px" }
|
|
63
|
+
}, {
|
|
64
|
+
default: withCtx(() => [
|
|
65
|
+
createVNode(_component_el_form_item, { label: "系统名称" }, {
|
|
66
|
+
default: withCtx(() => [
|
|
67
|
+
createVNode(_component_el_space, {
|
|
68
|
+
direction: "vertical",
|
|
69
|
+
size: 2,
|
|
70
|
+
alignment: "stretch"
|
|
71
|
+
}, {
|
|
72
|
+
default: withCtx(() => [
|
|
73
|
+
createVNode(_component_el_input, { style: { width: "300px" } }),
|
|
74
|
+
createVNode(_component_el_text, { type: "info" }, {
|
|
75
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
76
|
+
createTextVNode("如果您使用的是路径设置到第二个硬盘/U盘", -1)
|
|
77
|
+
])]),
|
|
78
|
+
_: 1
|
|
79
|
+
})
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
})
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
}),
|
|
86
|
+
createVNode(_component_el_form_item, { label: "系统LOGO" }, {
|
|
87
|
+
default: withCtx(() => [
|
|
88
|
+
createVNode(_component_el_space, {
|
|
89
|
+
direction: "vertical",
|
|
90
|
+
size: 2,
|
|
91
|
+
alignment: "stretch"
|
|
92
|
+
}, {
|
|
93
|
+
default: withCtx(() => [
|
|
94
|
+
createVNode(_component_el_input, { style: { width: "300px" } }),
|
|
95
|
+
createVNode(_component_el_text, { type: "info" }, {
|
|
96
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
97
|
+
createTextVNode("如果您使用的是路径设置到第二个硬盘/U盘", -1)
|
|
98
|
+
])]),
|
|
99
|
+
_: 1
|
|
100
|
+
})
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
})
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}),
|
|
107
|
+
createVNode(_component_el_form_item, { label: "ICP备案" }, {
|
|
108
|
+
default: withCtx(() => [
|
|
109
|
+
createVNode(_component_el_space, {
|
|
110
|
+
direction: "vertical",
|
|
111
|
+
size: 2,
|
|
112
|
+
alignment: "stretch"
|
|
113
|
+
}, {
|
|
114
|
+
default: withCtx(() => [
|
|
115
|
+
createVNode(_component_el_input, { style: { width: "300px" } }),
|
|
116
|
+
createVNode(_component_el_text, { type: "info" }, {
|
|
117
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
118
|
+
createTextVNode("如果您使用的是路径设置到第二个硬盘/U盘", -1)
|
|
119
|
+
])]),
|
|
120
|
+
_: 1
|
|
121
|
+
})
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
})
|
|
125
|
+
]),
|
|
126
|
+
_: 1
|
|
127
|
+
}),
|
|
128
|
+
createVNode(_component_el_form_item, null, {
|
|
129
|
+
default: withCtx(() => [
|
|
130
|
+
createVNode(_component_el_button, {
|
|
131
|
+
type: "primary",
|
|
132
|
+
onClick: saveConfig
|
|
133
|
+
}, {
|
|
134
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
135
|
+
createTextVNode("应用设置", -1)
|
|
136
|
+
])]),
|
|
137
|
+
_: 1
|
|
138
|
+
})
|
|
139
|
+
]),
|
|
140
|
+
_: 1
|
|
141
|
+
})
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
})
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
})
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["modelValue"])
|
|
151
|
+
])
|
|
152
|
+
], 64);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
export {
|
|
157
|
+
_sfc_main as default
|
|
158
|
+
};
|