zsysview 0.0.26 → 0.0.27

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.
Files changed (45) hide show
  1. package/dist/backup-DgoJ-AYS.js +519 -0
  2. package/dist/breadcrumb.vue_vue_type_script_setup_true_lang-CGEOrj8x.js +43 -0
  3. package/dist/change_password-CfTKlKzq.js +135 -0
  4. package/dist/department-SWj0HA-l.js +410 -0
  5. package/dist/desktop-le1cI27_.js +9 -0
  6. package/dist/http_api_v1-d9smAbJZ.js +1008 -0
  7. package/dist/index-BZZm3CTh.js +6688 -0
  8. package/dist/{index-BaFHeDAF.js → index-DG0x9mYD.js} +105 -105
  9. package/dist/index.es-DrN1BLo5.js +170 -0
  10. package/dist/log-D-BDBVS7.js +163 -0
  11. package/dist/login-DUn4tmOp.js +111 -0
  12. package/dist/main-Bgkb3hrI.js +293 -0
  13. package/dist/message-CVTa4Hb1.js +26 -0
  14. package/dist/position-D7u-VoeU.js +311 -0
  15. package/dist/role-CyCsBm0V.js +405 -0
  16. package/dist/self-BRTR2NdM.js +102 -0
  17. package/dist/sys-BZgBUI3k.js +30 -0
  18. package/dist/user-cl8kQwmL.js +650 -0
  19. package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-Dqud3QQ4.js +72 -0
  20. package/dist/zsys_eventBus-CZOk9fTb.js +178 -0
  21. package/dist/zsys_time-4KclnYJN.js +17 -0
  22. package/dist/zsyslist.vue_vue_type_script_setup_true_lang-BE2Kl33t.js +466 -0
  23. package/dist/zsysview.es.js +1 -1
  24. package/package.json +1 -1
  25. package/dist/backup-BrCAKHW5.js +0 -519
  26. package/dist/breadcrumb.vue_vue_type_script_setup_true_lang-DxqktuR5.js +0 -43
  27. package/dist/change_password-CY87a5gc.js +0 -135
  28. package/dist/department-BDW7DB5F.js +0 -410
  29. package/dist/desktop-DgyBqclt.js +0 -9
  30. package/dist/http_api_v1-BQLGtV9G.js +0 -1008
  31. package/dist/index-DXGp4B8l.js +0 -6688
  32. package/dist/index.es-BcGc183Q.js +0 -170
  33. package/dist/log-2ZY0HGuh.js +0 -163
  34. package/dist/login-BAuvM04T.js +0 -111
  35. package/dist/main-CxdkVN-C.js +0 -293
  36. package/dist/message-CdVUOGzt.js +0 -26
  37. package/dist/position-D7wr1m96.js +0 -311
  38. package/dist/role-M_ZYR2ta.js +0 -405
  39. package/dist/self-DAB-5Co8.js +0 -102
  40. package/dist/sys-BjlP52cg.js +0 -30
  41. package/dist/user-CEaf7VIW.js +0 -650
  42. package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-BYahBvHu.js +0 -72
  43. package/dist/zsys_eventBus-DDrk0Aw8.js +0 -178
  44. package/dist/zsys_time-DHEMuVgo.js +0 -17
  45. package/dist/zsyslist.vue_vue_type_script_setup_true_lang-Bl1QXOML.js +0 -466
@@ -1,72 +0,0 @@
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-BQLGtV9G.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
- };
@@ -1,178 +0,0 @@
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
- };
@@ -1,17 +0,0 @@
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
- };