zsysview 0.0.26 → 0.0.28

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-BKq6sQjF.js +519 -0
  2. package/dist/breadcrumb.vue_vue_type_script_setup_true_lang-Ca489fLF.js +43 -0
  3. package/dist/change_password-DHURkzza.js +135 -0
  4. package/dist/department-nsjoJXue.js +410 -0
  5. package/dist/desktop-CcKDaeCI.js +9 -0
  6. package/dist/http_api_v1-CkjqXdob.js +1008 -0
  7. package/dist/index-BGMV_V_g.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-4jRKPEKy.js +163 -0
  11. package/dist/login-Df4BMtP8.js +111 -0
  12. package/dist/main-CaR_6gzq.js +293 -0
  13. package/dist/message-CVTa4Hb1.js +26 -0
  14. package/dist/position-UV9V8NKa.js +311 -0
  15. package/dist/role-Co7zqJq3.js +405 -0
  16. package/dist/self-CZaIzR2G.js +102 -0
  17. package/dist/sys-BZgBUI3k.js +30 -0
  18. package/dist/user-D8k4kb-7.js +650 -0
  19. package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-JGPGvAqL.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-C714Dj9O.js +465 -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,405 +0,0 @@
1
- import { defineComponent as q, ref as b, watch as R, reactive as C, resolveComponent as i, resolveDirective as L, createBlock as w, openBlock as y, withCtx as n, withDirectives as Q, withModifiers as W, createVNode as l, createElementVNode as E, createCommentVNode as $, createTextVNode as f, createElementBlock as X, Fragment as ee, unref as le } from "vue";
2
- import { _ as te } from "./breadcrumb.vue_vue_type_script_setup_true_lang-DxqktuR5.js";
3
- import { _ as oe } from "./zsyslist.vue_vue_type_script_setup_true_lang-Bl1QXOML.js";
4
- import { H as p } from "./http_api_v1-BQLGtV9G.js";
5
- import { _ as ne } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-BYahBvHu.js";
6
- import { Z as T } from "./message-CdVUOGzt.js";
7
- import { z as se, u as ie, w as ae } from "./zsys_eventBus-DDrk0Aw8.js";
8
- import { _ as re } from "./index-DXGp4B8l.js";
9
- const de = { style: { display: "flex", "justify-content": "right" } }, ue = /* @__PURE__ */ q({
10
- __name: "role_edit_dialog",
11
- props: {
12
- modelValue: { type: Boolean, required: !0 },
13
- // 控制显示隐藏
14
- id: { type: BigInt, required: !0 }
15
- },
16
- emits: ["update:modelValue"],
17
- setup(h, { emit: V }) {
18
- const B = se(), r = b(null), _ = h, S = V, m = b(!1);
19
- R(
20
- () => _.modelValue,
21
- (o) => {
22
- m.value = o;
23
- },
24
- { immediate: !0 }
25
- ), R(m, (o) => {
26
- S("update:modelValue", o);
27
- });
28
- const a = () => {
29
- s.isnew = _.id == 0n, z();
30
- }, k = () => {
31
- m.value = !1;
32
- }, c = (o) => {
33
- v.value?.clearValidate(), o();
34
- }, s = C({
35
- loading: !0,
36
- saving: !1,
37
- donotClose: !1,
38
- isnew: !0
39
- });
40
- _.id == 0n && (s.isnew = !0);
41
- const I = async () => {
42
- let o = await p.Post(p.url_syspermission_list, {});
43
- return o.IsSuccess ? o.data.listdata : [];
44
- }, x = b([]), v = b(), t = b({
45
- role_id: _.id,
46
- role_is_enable: !0,
47
- set role_enable(o) {
48
- this.role_is_enable = o == 1;
49
- },
50
- get role_enable() {
51
- return this.role_is_enable ? 1 : 0;
52
- },
53
- role_title: "",
54
- role_notes: "",
55
- permission_value: [],
56
- set role_permission(o) {
57
- this.permission_value = o.split(",");
58
- }
59
- }), u = C({
60
- role_title: [
61
- { required: !0, message: "请输入角色名称", trigger: "blur" }
62
- ]
63
- }), z = async () => {
64
- if (s.loading = !0, x.value = await I(), t.value.role_id = _.id, _.id != 0n) {
65
- s.donotClose = !1;
66
- try {
67
- let o = await p.Post(p.url_sysrole_detail, { id: _.id });
68
- if (o.IsSuccess) {
69
- let e = o.data;
70
- t.value.role_title = e.role_name, t.value.role_notes = e.role_notes, t.value.role_enable = e.role_enable, t.value.role_permission = e.role_permission;
71
- }
72
- } catch (o) {
73
- console.log(o);
74
- } finally {
75
- }
76
- } else
77
- t.value.role_title = "", t.value.role_notes = "";
78
- s.loading = !1;
79
- }, M = async () => {
80
- let o = "";
81
- for (let e = 0; e < t.value.permission_value.length; e++)
82
- o != "" && (o += ","), o += t.value.permission_value[e];
83
- return await p.Post(p.url_sysrole_save, {
84
- role_id: t.value.role_id,
85
- role_name: t.value.role_title,
86
- role_permission: o,
87
- role_notes: t.value.role_notes,
88
- role_enable: t.value.role_enable
89
- });
90
- }, N = (o) => {
91
- o && o.validate(async (e) => {
92
- if (e) {
93
- s.saving = !0;
94
- try {
95
- let g = await M();
96
- g.IsSuccess ? (s.donotClose ? (t.value.role_id = 0n, setTimeout(() => {
97
- A();
98
- }, 200)) : k(), T.ShowSuccess("保存成功"), B.emit("aud", { module: "role", id: t.value.role_id })) : T.ShowError(g.message);
99
- } catch {
100
- } finally {
101
- s.saving = !1;
102
- }
103
- }
104
- });
105
- }, A = () => {
106
- r.value?.focus(), r.value?.select();
107
- }, O = ie();
108
- return ae(O.alt_s, () => {
109
- m.value && (console.log("Alt+S提交"), N(v.value));
110
- }), (o, e) => {
111
- const g = i("el-input"), H = i("el-switch"), U = i("el-form-item"), D = i("el-empty"), Z = i("el-transfer"), j = i("el-form"), K = i("el-checkbox"), F = i("el-tooltip"), Y = i("el-text"), P = i("el-button"), G = i("el-dialog"), J = L("loading");
112
- return y(), w(G, {
113
- modelValue: m.value,
114
- "onUpdate:modelValue": e[7] || (e[7] = (d) => m.value = d),
115
- title: "角色权限",
116
- "align-center": !0,
117
- "before-close": c,
118
- onOpen: a,
119
- width: "800",
120
- draggable: !0,
121
- overflow: !0,
122
- onOpened: A,
123
- "destroy-on-close": "",
124
- "close-on-click-modal": !1
125
- }, {
126
- footer: n(() => [
127
- E("div", de, [
128
- l(F, { content: "保存成功后不关闭窗口" }, {
129
- default: n(() => [
130
- s.isnew ? (y(), w(K, {
131
- key: 0,
132
- modelValue: s.donotClose,
133
- "onUpdate:modelValue": e[5] || (e[5] = (d) => s.donotClose = d),
134
- label: "连续录入",
135
- style: { "margin-right": "10px" }
136
- }, null, 8, ["modelValue"])) : $("", !0)
137
- ]),
138
- _: 1
139
- }),
140
- l(F, {
141
- content: "快捷键 Alt+S",
142
- "show-after": 800
143
- }, {
144
- default: n(() => [
145
- l(P, {
146
- type: "primary",
147
- onClick: e[6] || (e[6] = (d) => N(v.value)),
148
- disabled: s.loading,
149
- loading: s.saving
150
- }, {
151
- default: n(() => [
152
- e[9] || (e[9] = f("保存(", -1)),
153
- l(Y, {
154
- tag: "ins",
155
- style: { color: "white" }
156
- }, {
157
- default: n(() => [...e[8] || (e[8] = [
158
- f("S", -1)
159
- ])]),
160
- _: 1
161
- }),
162
- e[10] || (e[10] = f(")", -1))
163
- ]),
164
- _: 1
165
- }, 8, ["disabled", "loading"])
166
- ]),
167
- _: 1
168
- }),
169
- l(P, { onClick: k }, {
170
- default: n(() => [...e[11] || (e[11] = [
171
- f("取消", -1)
172
- ])]),
173
- _: 1
174
- })
175
- ])
176
- ]),
177
- default: n(() => [
178
- Q((y(), w(j, {
179
- onSubmit: e[4] || (e[4] = W(() => {
180
- }, ["prevent"])),
181
- ref_key: "ruleFormRef",
182
- ref: v,
183
- model: t.value,
184
- rules: u,
185
- style: { "padding-left": "10px", "padding-right": "10px" },
186
- "label-width": "auto",
187
- disabled: s.saving
188
- }, {
189
- default: n(() => [
190
- l(U, {
191
- label: "角色名称",
192
- prop: "role_title"
193
- }, {
194
- default: n(() => [
195
- l(g, {
196
- ref_key: "inputRef",
197
- ref: r,
198
- modelValue: t.value.role_title,
199
- "onUpdate:modelValue": e[0] || (e[0] = (d) => t.value.role_title = d),
200
- style: { width: "300px" }
201
- }, null, 8, ["modelValue"]),
202
- l(H, {
203
- modelValue: t.value.role_is_enable,
204
- "onUpdate:modelValue": e[1] || (e[1] = (d) => t.value.role_is_enable = d),
205
- "inline-prompt": "",
206
- "active-text": "已启用",
207
- "inactive-text": "已禁用",
208
- style: { "margin-left": "10px" }
209
- }, null, 8, ["modelValue"])
210
- ]),
211
- _: 1
212
- }),
213
- l(U, {
214
- label: "备注",
215
- prop: "role_notes"
216
- }, {
217
- default: n(() => [
218
- l(g, {
219
- modelValue: t.value.role_notes,
220
- "onUpdate:modelValue": e[2] || (e[2] = (d) => t.value.role_notes = d),
221
- type: "textarea",
222
- rows: 2
223
- }, null, 8, ["modelValue"])
224
- ]),
225
- _: 1
226
- }),
227
- l(U, { label: "权限" }, {
228
- default: n(() => [
229
- l(Z, {
230
- modelValue: t.value.permission_value,
231
- "onUpdate:modelValue": e[3] || (e[3] = (d) => t.value.permission_value = d),
232
- data: x.value,
233
- titles: ["可选", "已选"],
234
- props: {
235
- key: "permission_key",
236
- label: "permission_title"
237
- }
238
- }, {
239
- "left-empty": n(() => [
240
- l(D, {
241
- "image-size": 60,
242
- description: "无可选项"
243
- })
244
- ]),
245
- "right-empty": n(() => [
246
- l(D, {
247
- "image-size": 60,
248
- description: "请从左侧选择"
249
- })
250
- ]),
251
- _: 1
252
- }, 8, ["modelValue", "data"])
253
- ]),
254
- _: 1
255
- })
256
- ]),
257
- _: 1
258
- }, 8, ["model", "rules", "disabled"])), [
259
- [J, s.loading]
260
- ])
261
- ]),
262
- _: 1
263
- }, 8, ["modelValue"]);
264
- };
265
- }
266
- }), _e = /* @__PURE__ */ re(ue, [["__scopeId", "data-v-3a18120e"]]), me = { style: { padding: "0px 20px" } }, Ve = /* @__PURE__ */ q({
267
- __name: "role",
268
- setup(h) {
269
- const V = b("first"), B = (m, a) => {
270
- console.log(m, a);
271
- }, r = C({
272
- edit_id: BigInt(0),
273
- edit_dialog_show: !1
274
- }), _ = () => {
275
- r.edit_id = BigInt(0), console.log(r), setTimeout(() => {
276
- r.edit_dialog_show = !0;
277
- }, 100);
278
- }, S = C({
279
- ApiUrl: p.url_sysrole_list
280
- });
281
- return (m, a) => {
282
- const k = i("el-button"), c = i("el-table-column"), s = i("el-tag"), I = i("el-link"), x = i("el-space"), v = i("el-tab-pane"), t = i("el-tabs");
283
- return y(), X(ee, null, [
284
- l(te),
285
- E("div", me, [
286
- l(t, {
287
- modelValue: V.value,
288
- "onUpdate:modelValue": a[0] || (a[0] = (u) => V.value = u),
289
- class: "demo-tabs",
290
- onTabClick: B
291
- }, {
292
- default: n(() => [
293
- l(v, {
294
- label: "角色列表",
295
- name: "first"
296
- }, {
297
- default: n(() => [
298
- l(oe, {
299
- config: S,
300
- module: "role"
301
- }, {
302
- headermain: n(() => [
303
- l(k, {
304
- class: "main_btn",
305
- type: "primary",
306
- onClick: _
307
- }, {
308
- default: n(() => [...a[2] || (a[2] = [
309
- f("新建", -1)
310
- ])]),
311
- _: 1
312
- })
313
- ]),
314
- content: n(() => [
315
- l(c, {
316
- prop: "role_name",
317
- label: "角色名称",
318
- width: "180"
319
- }),
320
- l(c, {
321
- prop: "event_state",
322
- label: "状态",
323
- width: "80"
324
- }, {
325
- default: n(({ row: u }) => [
326
- u.role_enable == 0 ? (y(), w(s, {
327
- key: 0,
328
- type: "info",
329
- "disable-transitions": !0,
330
- size: "small"
331
- }, {
332
- default: n(() => [...a[3] || (a[3] = [
333
- f("禁用", -1)
334
- ])]),
335
- _: 1
336
- })) : $("", !0),
337
- u.role_enable == 1 ? (y(), w(s, {
338
- key: 1,
339
- type: "success",
340
- "disable-transitions": !0,
341
- size: "small"
342
- }, {
343
- default: n(() => [...a[4] || (a[4] = [
344
- f("启用", -1)
345
- ])]),
346
- _: 1
347
- })) : $("", !0)
348
- ]),
349
- _: 1
350
- }),
351
- l(c, {
352
- prop: "role_notes",
353
- label: "备注",
354
- "min-width": "180"
355
- }),
356
- l(c, {
357
- label: "操作",
358
- width: "130"
359
- }, {
360
- default: n(({ row: u }) => [
361
- l(x, null, {
362
- default: n(() => [
363
- l(I, {
364
- type: "primary",
365
- onClick: (z) => {
366
- r.edit_id = BigInt(u.role_id), r.edit_dialog_show = !0;
367
- }
368
- }, {
369
- default: n(() => [...a[5] || (a[5] = [
370
- f("查看和编辑", -1)
371
- ])]),
372
- _: 1
373
- }, 8, ["onClick"]),
374
- l(ne, {
375
- id: BigInt(u.role_id),
376
- api_url: le(p).url_sysrole_del
377
- }, null, 8, ["id", "api_url"])
378
- ]),
379
- _: 2
380
- }, 1024)
381
- ]),
382
- _: 1
383
- })
384
- ]),
385
- _: 1
386
- }, 8, ["config"])
387
- ]),
388
- _: 1
389
- })
390
- ]),
391
- _: 1
392
- }, 8, ["modelValue"])
393
- ]),
394
- l(_e, {
395
- id: r.edit_id,
396
- modelValue: r.edit_dialog_show,
397
- "onUpdate:modelValue": a[1] || (a[1] = (u) => r.edit_dialog_show = u)
398
- }, null, 8, ["id", "modelValue"])
399
- ], 64);
400
- };
401
- }
402
- });
403
- export {
404
- Ve as default
405
- };
@@ -1,102 +0,0 @@
1
- import { defineComponent as x, ref as g, onMounted as v, resolveComponent as n, createElementBlock as b, openBlock as h, Fragment as y, createVNode as e, createElementVNode as w, withCtx as t, createTextVNode as l, toDisplayString as r } from "vue";
2
- import { _ as k } from "./breadcrumb.vue_vue_type_script_setup_true_lang-DxqktuR5.js";
3
- import { H as u } from "./http_api_v1-BQLGtV9G.js";
4
- const V = { style: { padding: "0px 20px", "margin-top": "20px" } }, E = /* @__PURE__ */ x({
5
- __name: "self",
6
- setup(C) {
7
- const a = g({
8
- uid: 0,
9
- uname: "",
10
- user_name: "",
11
- phone: ""
12
- });
13
- return v(() => {
14
- u.Post(u.url_usercenter, {}).then((s) => {
15
- if (s.IsSuccess) {
16
- let o = s.data;
17
- a.value = o;
18
- }
19
- }).catch((s) => {
20
- console.log(s);
21
- });
22
- }), (s, o) => {
23
- const p = n("el-image"), i = n("el-col"), _ = n("el-descriptions-item"), c = n("el-descriptions"), d = n("el-button"), m = n("router-link"), f = n("el-row");
24
- return h(), b(y, null, [
25
- e(k),
26
- w("div", V, [
27
- e(f, null, {
28
- default: t(() => [
29
- e(i, {
30
- span: 6,
31
- style: { "justify-content": "center", "align-items": "center", display: "flex" }
32
- }, {
33
- default: t(() => [
34
- e(p, {
35
- style: { width: "160px", height: "160px" },
36
- fit: "cover"
37
- })
38
- ]),
39
- _: 1
40
- }),
41
- e(i, { span: 18 }, {
42
- default: t(() => [
43
- e(c, { title: "您的信息" }, {
44
- default: t(() => [
45
- e(_, { label: "UID" }, {
46
- default: t(() => [
47
- l(r(a.value.uid), 1)
48
- ]),
49
- _: 1
50
- }),
51
- e(_, { label: "用户名" }, {
52
- default: t(() => [
53
- l(r(a.value.user_name), 1)
54
- ]),
55
- _: 1
56
- }),
57
- e(_, { label: "姓名" }, {
58
- default: t(() => [
59
- l(r(a.value.uname), 1)
60
- ]),
61
- _: 1
62
- }),
63
- e(_, { label: "岗位" }, {
64
- default: t(() => [...o[0] || (o[0] = [
65
- l("安环部,部长", -1)
66
- ])]),
67
- _: 1
68
- }),
69
- e(_, { label: "手机号码" }, {
70
- default: t(() => [
71
- l(r(a.value.phone), 1)
72
- ]),
73
- _: 1
74
- })
75
- ]),
76
- _: 1
77
- }),
78
- e(m, { to: "/password" }, {
79
- default: t(() => [
80
- e(d, null, {
81
- default: t(() => [...o[1] || (o[1] = [
82
- l("修改密码", -1)
83
- ])]),
84
- _: 1
85
- })
86
- ]),
87
- _: 1
88
- })
89
- ]),
90
- _: 1
91
- })
92
- ]),
93
- _: 1
94
- })
95
- ])
96
- ], 64);
97
- };
98
- }
99
- });
100
- export {
101
- E as default
102
- };
@@ -1,30 +0,0 @@
1
- import { defineComponent as r, ref as s, resolveComponent as e, createElementBlock as _, openBlock as c, Fragment as d, createVNode as t, createElementVNode as u, withCtx as b } from "vue";
2
- const i = { style: { padding: "0px 20px", "margin-top": "20px" } }, v = /* @__PURE__ */ r({
3
- __name: "sys",
4
- setup(f) {
5
- const n = s("base");
6
- return (x, o) => {
7
- const a = e("breadcrumb"), l = e("el-tab-pane"), m = e("el-tabs");
8
- return c(), _(d, null, [
9
- t(a),
10
- u("div", i, [
11
- t(m, {
12
- modelValue: n.value,
13
- "onUpdate:modelValue": o[0] || (o[0] = (p) => n.value = p)
14
- }, {
15
- default: b(() => [
16
- t(l, {
17
- label: "基础",
18
- name: "base"
19
- })
20
- ]),
21
- _: 1
22
- }, 8, ["modelValue"])
23
- ])
24
- ], 64);
25
- };
26
- }
27
- });
28
- export {
29
- v as default
30
- };