zsysview 0.0.17 → 0.0.19
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/README.md +19 -3
- package/dist/backup-B_ecXldN.js +519 -0
- package/dist/breadcrumb.vue_vue_type_script_setup_true_lang-LiynoCpU.js +43 -0
- package/dist/change_password-DdXbDCW3.js +135 -0
- package/dist/department-CkeLYapS.js +410 -0
- package/dist/desktop-Dlxt_nj4.js +9 -0
- package/dist/http_api_v1-C1nimGbM.js +2758 -0
- package/dist/index-BaFHeDAF.js +327 -0
- package/dist/index-CX41PbES.js +6688 -0
- package/dist/index.es-BcGc183Q.js +170 -0
- package/dist/log-B4tgzmW2.js +163 -0
- package/dist/login-bJhy9URL.js +111 -0
- package/dist/main-EI2iFkT9.js +293 -0
- package/dist/message-CdVUOGzt.js +26 -0
- package/dist/position-CFiI2C0_.js +311 -0
- package/dist/role-BD3_T6lz.js +405 -0
- package/dist/self-BsJkA8N-.js +102 -0
- package/dist/sys-BjlP52cg.js +30 -0
- package/dist/user-E4blW7I0.js +650 -0
- package/dist/vite.svg +1 -0
- package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-BUVzkvi0.js +72 -0
- package/dist/zsys_eventBus-DDrk0Aw8.js +178 -0
- package/dist/zsys_time-DHEMuVgo.js +17 -0
- package/dist/zsyslist.vue_vue_type_script_setup_true_lang-CjpC7Ren.js +466 -0
- package/dist/zsysview.css +1 -0
- package/dist/zsysview.es.js +3 -0
- package/package.json +34 -20
- package/assets/default_avatar.png +0 -0
- package/assets/default_logo.png +0 -0
- package/assets/default_logo_40.png +0 -0
- package/assets/login_bg.jpg +0 -0
- package/components/export/export_dialog.vue +0 -150
- package/components/export/export_progress.vue +0 -62
- package/components/list/zsyslist.vue +0 -164
- package/components/list/zsyslist_content.vue +0 -29
- package/components/list/zsyslist_header.vue +0 -62
- package/components/message/index.ts +0 -3
- package/components/message/message.ts +0 -35
- package/components/zsys_delbutton.vue +0 -60
- package/core/app.ts +0 -32
- package/core/common/common.ts +0 -29
- package/core/common/zsys_eventBus.ts +0 -45
- package/core/common/zsys_time.ts +0 -26
- package/core/httpapi/http_api_return_data.ts +0 -43
- package/core/httpapi/http_api_v1.ts +0 -151
- package/core/httpapi/http_axios.ts +0 -54
- package/core/router copy.ts +0 -148
- package/core/router.ts +0 -153
- package/core/runtime.ts +0 -14
- package/core/user_token.ts +0 -17
- package/css/common.css +0 -16
- package/css/style.css +0 -79
- package/index.ts +0 -0
- package/view/app.vue +0 -10
- package/view/backup/backup.vue +0 -308
- package/view/building.vue +0 -22
- package/view/department/department.vue +0 -111
- package/view/department/department_edit_dialog.vue +0 -267
- package/view/desktop/desktop.vue +0 -11
- package/view/log/log.vue +0 -60
- package/view/log/log_setting.vue +0 -41
- package/view/login.vue +0 -91
- package/view/main/breadcrumb.vue +0 -41
- package/view/main/main.vue +0 -60
- package/view/main/userHeader.vue +0 -73
- package/view/main/userMenu.vue +0 -132
- package/view/main/userMenuItem.vue +0 -49
- package/view/position/position.vue +0 -58
- package/view/position/position_edit_dialog.vue +0 -203
- package/view/role/role.vue +0 -72
- package/view/role/role_edit_dialog.vue +0 -271
- package/view/self/change_password.vue +0 -97
- package/view/self/self.vue +0 -62
- package/view/sys/sys.vue +0 -19
- package/view/user/change_user_password_dialog.vue +0 -155
- package/view/user/user.vue +0 -110
- package/view/user/user_edit_dialog.vue +0 -283
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { defineComponent as v, reactive as S, resolveComponent as r, createElementBlock as b, openBlock as l, Fragment as k, createBlock as a, createCommentVNode as p, withCtx as n, createVNode as c, createTextVNode as m } from "vue";
|
|
2
|
+
import { H as x } from "./http_api_v1-C1nimGbM.js";
|
|
3
|
+
import { Z as d } from "./message-CdVUOGzt.js";
|
|
4
|
+
import { z as w } from "./zsys_eventBus-DDrk0Aw8.js";
|
|
5
|
+
const E = /* @__PURE__ */ v({
|
|
6
|
+
__name: "zsys_delbutton",
|
|
7
|
+
props: {
|
|
8
|
+
id: { type: BigInt, required: !0 },
|
|
9
|
+
api_url: { type: String, required: !0 },
|
|
10
|
+
module: { type: String, default: "all" }
|
|
11
|
+
// closeOnClickModal: { type: Boolean, default: true }
|
|
12
|
+
},
|
|
13
|
+
setup(u) {
|
|
14
|
+
const f = w(), e = S({
|
|
15
|
+
loading: !1
|
|
16
|
+
}), t = u, _ = async () => {
|
|
17
|
+
e.loading = !0;
|
|
18
|
+
try {
|
|
19
|
+
(await x.Post(t.api_url, { id: t.id })).IsSuccess ? (e.loading = !1, d.ShowSuccess("删除成功"), console.log("aud", t.module), console.log(t.module), f.emit("aud", { module: t.module, id: t.id })) : d.ShowError("删除失败");
|
|
20
|
+
} catch {
|
|
21
|
+
}
|
|
22
|
+
e.loading = !1;
|
|
23
|
+
};
|
|
24
|
+
return (i, o) => {
|
|
25
|
+
const s = r("el-link"), g = r("el-popconfirm"), y = r("el-popover");
|
|
26
|
+
return l(), b(k, null, [
|
|
27
|
+
e.loading ? p("", !0) : (l(), a(g, {
|
|
28
|
+
key: 0,
|
|
29
|
+
onConfirm: _,
|
|
30
|
+
title: "确认要删除吗?",
|
|
31
|
+
"confirm-button-text": "删除",
|
|
32
|
+
"cancel-button-text": "取消",
|
|
33
|
+
"confirm-button-type": "danger"
|
|
34
|
+
}, {
|
|
35
|
+
reference: n(() => [
|
|
36
|
+
c(s, { type: "primary" }, {
|
|
37
|
+
default: n(() => [...o[0] || (o[0] = [
|
|
38
|
+
m("删除", -1)
|
|
39
|
+
])]),
|
|
40
|
+
_: 1
|
|
41
|
+
})
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
})),
|
|
45
|
+
e.loading ? (l(), a(y, {
|
|
46
|
+
key: 1,
|
|
47
|
+
visible: e.loading,
|
|
48
|
+
width: 40,
|
|
49
|
+
placement: "top",
|
|
50
|
+
content: "正在删除"
|
|
51
|
+
}, {
|
|
52
|
+
reference: n(() => [
|
|
53
|
+
c(s, {
|
|
54
|
+
type: "primary",
|
|
55
|
+
style: { "margin-left": "6px" },
|
|
56
|
+
disabled: ""
|
|
57
|
+
}, {
|
|
58
|
+
default: n(() => [...o[1] || (o[1] = [
|
|
59
|
+
m("删除", -1)
|
|
60
|
+
])]),
|
|
61
|
+
_: 1
|
|
62
|
+
})
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 8, ["visible"])) : p("", !0)
|
|
66
|
+
], 64);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
E as _
|
|
72
|
+
};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { watch as x, unref as E, getCurrentScope as K, onScopeDispose as W, reactive as S, computed as j, ref as D } from "vue";
|
|
2
|
+
var C;
|
|
3
|
+
const R = typeof window < "u", F = (e) => typeof e == "string", T = () => {
|
|
4
|
+
};
|
|
5
|
+
R && ((C = window?.navigator) != null && C.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
6
|
+
function k(e) {
|
|
7
|
+
return typeof e == "function" ? e() : E(e);
|
|
8
|
+
}
|
|
9
|
+
function H(e) {
|
|
10
|
+
return e;
|
|
11
|
+
}
|
|
12
|
+
function U(e) {
|
|
13
|
+
return K() ? (W(e), !0) : !1;
|
|
14
|
+
}
|
|
15
|
+
function ee(e, n, t) {
|
|
16
|
+
return x(e, (r, a, c) => {
|
|
17
|
+
r && n(r, a, c);
|
|
18
|
+
}, t);
|
|
19
|
+
}
|
|
20
|
+
function z(e) {
|
|
21
|
+
var n;
|
|
22
|
+
const t = k(e);
|
|
23
|
+
return (n = t?.$el) != null ? n : t;
|
|
24
|
+
}
|
|
25
|
+
const B = R ? window : void 0;
|
|
26
|
+
function h(...e) {
|
|
27
|
+
let n, t, r, a;
|
|
28
|
+
if (F(e[0]) || Array.isArray(e[0]) ? ([t, r, a] = e, n = B) : [n, t, r, a] = e, !n)
|
|
29
|
+
return T;
|
|
30
|
+
Array.isArray(t) || (t = [t]), Array.isArray(r) || (r = [r]);
|
|
31
|
+
const c = [], u = () => {
|
|
32
|
+
c.forEach((i) => i()), c.length = 0;
|
|
33
|
+
}, _ = (i, l, d, p) => (i.addEventListener(l, d, p), () => i.removeEventListener(l, d, p)), f = x(() => [z(n), k(a)], ([i, l]) => {
|
|
34
|
+
u(), i && c.push(...t.flatMap((d) => r.map((p) => _(i, d, p, l))));
|
|
35
|
+
}, { immediate: !0, flush: "post" }), v = () => {
|
|
36
|
+
f(), u();
|
|
37
|
+
};
|
|
38
|
+
return U(v), v;
|
|
39
|
+
}
|
|
40
|
+
const A = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, M = "__vueuse_ssr_handlers__";
|
|
41
|
+
A[M] = A[M] || {};
|
|
42
|
+
const G = {
|
|
43
|
+
ctrl: "control",
|
|
44
|
+
command: "meta",
|
|
45
|
+
cmd: "meta",
|
|
46
|
+
option: "alt",
|
|
47
|
+
up: "arrowup",
|
|
48
|
+
down: "arrowdown",
|
|
49
|
+
left: "arrowleft",
|
|
50
|
+
right: "arrowright"
|
|
51
|
+
};
|
|
52
|
+
function te(e = {}) {
|
|
53
|
+
const {
|
|
54
|
+
reactive: n = !1,
|
|
55
|
+
target: t = B,
|
|
56
|
+
aliasMap: r = G,
|
|
57
|
+
passive: a = !0,
|
|
58
|
+
onEventFired: c = T
|
|
59
|
+
} = e, u = S(/* @__PURE__ */ new Set()), _ = {
|
|
60
|
+
toJSON() {
|
|
61
|
+
return {};
|
|
62
|
+
},
|
|
63
|
+
current: u
|
|
64
|
+
}, f = n ? S(_) : _, v = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
|
|
65
|
+
function l(s, o) {
|
|
66
|
+
s in f && (n ? f[s] = o : f[s].value = o);
|
|
67
|
+
}
|
|
68
|
+
function d() {
|
|
69
|
+
u.clear();
|
|
70
|
+
for (const s of i)
|
|
71
|
+
l(s, !1);
|
|
72
|
+
}
|
|
73
|
+
function p(s, o) {
|
|
74
|
+
var O, m;
|
|
75
|
+
const w = (O = s.key) == null ? void 0 : O.toLowerCase(), P = [(m = s.code) == null ? void 0 : m.toLowerCase(), w].filter(Boolean);
|
|
76
|
+
w && (o ? u.add(w) : u.delete(w));
|
|
77
|
+
for (const y of P)
|
|
78
|
+
i.add(y), l(y, o);
|
|
79
|
+
w === "meta" && !o ? (v.forEach((y) => {
|
|
80
|
+
u.delete(y), l(y, !1);
|
|
81
|
+
}), v.clear()) : typeof s.getModifierState == "function" && s.getModifierState("Meta") && o && [...u, ...P].forEach((y) => v.add(y));
|
|
82
|
+
}
|
|
83
|
+
h(t, "keydown", (s) => (p(s, !0), c(s)), { passive: a }), h(t, "keyup", (s) => (p(s, !1), c(s)), { passive: a }), h("blur", d, { passive: !0 }), h("focus", d, { passive: !0 });
|
|
84
|
+
const b = new Proxy(f, {
|
|
85
|
+
get(s, o, O) {
|
|
86
|
+
if (typeof o != "string")
|
|
87
|
+
return Reflect.get(s, o, O);
|
|
88
|
+
if (o = o.toLowerCase(), o in r && (o = r[o]), !(o in f))
|
|
89
|
+
if (/[+_-]/.test(o)) {
|
|
90
|
+
const w = o.split(/[+_-]/g).map((I) => I.trim());
|
|
91
|
+
f[o] = j(() => w.every((I) => E(b[I])));
|
|
92
|
+
} else
|
|
93
|
+
f[o] = D(!1);
|
|
94
|
+
const m = Reflect.get(s, o, O);
|
|
95
|
+
return n ? E(m) : m;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
return b;
|
|
99
|
+
}
|
|
100
|
+
var Q;
|
|
101
|
+
(function(e) {
|
|
102
|
+
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
103
|
+
})(Q || (Q = {}));
|
|
104
|
+
var J = Object.defineProperty, L = Object.getOwnPropertySymbols, V = Object.prototype.hasOwnProperty, $ = Object.prototype.propertyIsEnumerable, N = (e, n, t) => n in e ? J(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, q = (e, n) => {
|
|
105
|
+
for (var t in n || (n = {}))
|
|
106
|
+
V.call(n, t) && N(e, t, n[t]);
|
|
107
|
+
if (L)
|
|
108
|
+
for (var t of L(n))
|
|
109
|
+
$.call(n, t) && N(e, t, n[t]);
|
|
110
|
+
return e;
|
|
111
|
+
};
|
|
112
|
+
const X = {
|
|
113
|
+
easeInSine: [0.12, 0, 0.39, 0],
|
|
114
|
+
easeOutSine: [0.61, 1, 0.88, 1],
|
|
115
|
+
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
116
|
+
easeInQuad: [0.11, 0, 0.5, 0],
|
|
117
|
+
easeOutQuad: [0.5, 1, 0.89, 1],
|
|
118
|
+
easeInOutQuad: [0.45, 0, 0.55, 1],
|
|
119
|
+
easeInCubic: [0.32, 0, 0.67, 0],
|
|
120
|
+
easeOutCubic: [0.33, 1, 0.68, 1],
|
|
121
|
+
easeInOutCubic: [0.65, 0, 0.35, 1],
|
|
122
|
+
easeInQuart: [0.5, 0, 0.75, 0],
|
|
123
|
+
easeOutQuart: [0.25, 1, 0.5, 1],
|
|
124
|
+
easeInOutQuart: [0.76, 0, 0.24, 1],
|
|
125
|
+
easeInQuint: [0.64, 0, 0.78, 0],
|
|
126
|
+
easeOutQuint: [0.22, 1, 0.36, 1],
|
|
127
|
+
easeInOutQuint: [0.83, 0, 0.17, 1],
|
|
128
|
+
easeInExpo: [0.7, 0, 0.84, 0],
|
|
129
|
+
easeOutExpo: [0.16, 1, 0.3, 1],
|
|
130
|
+
easeInOutExpo: [0.87, 0, 0.13, 1],
|
|
131
|
+
easeInCirc: [0.55, 0, 1, 0.45],
|
|
132
|
+
easeOutCirc: [0, 0.55, 0.45, 1],
|
|
133
|
+
easeInOutCirc: [0.85, 0, 0.15, 1],
|
|
134
|
+
easeInBack: [0.36, 0, 0.66, -0.56],
|
|
135
|
+
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
136
|
+
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
137
|
+
};
|
|
138
|
+
q({
|
|
139
|
+
linear: H
|
|
140
|
+
}, X);
|
|
141
|
+
function Y(e) {
|
|
142
|
+
return { all: e = e || /* @__PURE__ */ new Map(), on: function(n, t) {
|
|
143
|
+
var r = e.get(n);
|
|
144
|
+
r ? r.push(t) : e.set(n, [t]);
|
|
145
|
+
}, off: function(n, t) {
|
|
146
|
+
var r = e.get(n);
|
|
147
|
+
r && (t ? r.splice(r.indexOf(t) >>> 0, 1) : e.set(n, []));
|
|
148
|
+
}, emit: function(n, t) {
|
|
149
|
+
var r = e.get(n);
|
|
150
|
+
r && r.slice().map(function(a) {
|
|
151
|
+
a(t);
|
|
152
|
+
}), (r = e.get("*")) && r.slice().map(function(a) {
|
|
153
|
+
a(n, t);
|
|
154
|
+
});
|
|
155
|
+
} };
|
|
156
|
+
}
|
|
157
|
+
const g = Y(), ne = () => ({
|
|
158
|
+
// 触发事件
|
|
159
|
+
emit: g.emit,
|
|
160
|
+
// 监听事件
|
|
161
|
+
on: g.on,
|
|
162
|
+
// 取消监听
|
|
163
|
+
off: g.off,
|
|
164
|
+
// 一次性监听
|
|
165
|
+
once: (e, n) => {
|
|
166
|
+
const t = (r) => {
|
|
167
|
+
n(r), g.off(e, t);
|
|
168
|
+
};
|
|
169
|
+
g.on(e, t);
|
|
170
|
+
},
|
|
171
|
+
// 清空所有监听
|
|
172
|
+
clearAll: g.all.clear
|
|
173
|
+
});
|
|
174
|
+
export {
|
|
175
|
+
te as u,
|
|
176
|
+
ee as w,
|
|
177
|
+
ne as z
|
|
178
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function e(r) {
|
|
2
|
+
if (r == "0001-01-01T00:00:00Z")
|
|
3
|
+
return "";
|
|
4
|
+
const t = new Date(r);
|
|
5
|
+
return isNaN(t.getTime()) ? "" : [
|
|
6
|
+
t.getFullYear(),
|
|
7
|
+
(t.getMonth() + 1).toString().padStart(2, "0"),
|
|
8
|
+
t.getDate().toString().padStart(2, "0")
|
|
9
|
+
].join("-") + " " + [
|
|
10
|
+
t.getHours().toString().padStart(2, "0"),
|
|
11
|
+
t.getMinutes().toString().padStart(2, "0"),
|
|
12
|
+
t.getSeconds().toString().padStart(2, "0")
|
|
13
|
+
].join(":");
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
e as f
|
|
17
|
+
};
|