zsysview 0.0.16 → 0.0.18

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 (76) hide show
  1. package/README.md +19 -3
  2. package/dist/backup-BwHGMFM9.js +519 -0
  3. package/dist/breadcrumb.vue_vue_type_script_setup_true_lang-B-s19d7a.js +42 -0
  4. package/dist/change_password-Cvx2fsBt.js +135 -0
  5. package/dist/department-D19P31la.js +410 -0
  6. package/dist/desktop-IlIshTtF.js +9 -0
  7. package/dist/http_api_v1-DFc71lD8.js +2755 -0
  8. package/dist/index-C_d1JnWR.js +49346 -0
  9. package/dist/index.es-BcGc183Q.js +170 -0
  10. package/dist/log-sQxXMuk2.js +163 -0
  11. package/dist/login-CN37wrzM.js +111 -0
  12. package/dist/main-B5GBQKz0.js +292 -0
  13. package/dist/message-Dd0EkBmy.js +26 -0
  14. package/dist/position-DfWT0ovL.js +312 -0
  15. package/dist/role-CNn2CuOU.js +405 -0
  16. package/dist/self-CraGrpq3.js +102 -0
  17. package/dist/sys-BjlP52cg.js +30 -0
  18. package/dist/user-CYvTCZB6.js +651 -0
  19. package/dist/vite.svg +1 -0
  20. package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-DTE_uo5w.js +72 -0
  21. package/dist/zsys_eventBus-Dc_JZwH4.js +36 -0
  22. package/dist/zsys_time-DHEMuVgo.js +17 -0
  23. package/dist/zsyslist.vue_vue_type_script_setup_true_lang-CiKZqB0j.js +465 -0
  24. package/dist/zsysview.css +1 -0
  25. package/dist/zsysview.es.js +2 -0
  26. package/package.json +34 -20
  27. package/assets/default_avatar.png +0 -0
  28. package/assets/default_logo.png +0 -0
  29. package/assets/default_logo_40.png +0 -0
  30. package/assets/login_bg.jpg +0 -0
  31. package/components/export/export_dialog.vue +0 -150
  32. package/components/export/export_progress.vue +0 -62
  33. package/components/list/zsyslist.vue +0 -164
  34. package/components/list/zsyslist_content.vue +0 -29
  35. package/components/list/zsyslist_header.vue +0 -62
  36. package/components/message/index.ts +0 -3
  37. package/components/message/message.ts +0 -35
  38. package/components/zsys_delbutton.vue +0 -60
  39. package/core/app.ts +0 -32
  40. package/core/common/common.ts +0 -29
  41. package/core/common/zsys_eventBus.ts +0 -45
  42. package/core/common/zsys_time.ts +0 -26
  43. package/core/httpapi/http_api_return_data.ts +0 -43
  44. package/core/httpapi/http_api_v1.ts +0 -151
  45. package/core/httpapi/http_axios.ts +0 -54
  46. package/core/router copy.ts +0 -148
  47. package/core/router.ts +0 -149
  48. package/core/runtime.ts +0 -14
  49. package/core/user_token.ts +0 -17
  50. package/css/common.css +0 -16
  51. package/css/style.css +0 -79
  52. package/index.ts +0 -0
  53. package/view/app.vue +0 -10
  54. package/view/backup/backup.vue +0 -308
  55. package/view/building.vue +0 -22
  56. package/view/department/department.vue +0 -111
  57. package/view/department/department_edit_dialog.vue +0 -267
  58. package/view/desktop/desktop.vue +0 -11
  59. package/view/log/log.vue +0 -60
  60. package/view/log/log_setting.vue +0 -41
  61. package/view/login.vue +0 -91
  62. package/view/main/breadcrumb.vue +0 -41
  63. package/view/main/main.vue +0 -60
  64. package/view/main/userHeader.vue +0 -73
  65. package/view/main/userMenu.vue +0 -132
  66. package/view/main/userMenuItem.vue +0 -49
  67. package/view/position/position.vue +0 -58
  68. package/view/position/position_edit_dialog.vue +0 -203
  69. package/view/role/role.vue +0 -72
  70. package/view/role/role_edit_dialog.vue +0 -271
  71. package/view/self/change_password.vue +0 -97
  72. package/view/self/self.vue +0 -62
  73. package/view/sys/sys.vue +0 -19
  74. package/view/user/change_user_password_dialog.vue +0 -155
  75. package/view/user/user.vue +0 -110
  76. package/view/user/user_edit_dialog.vue +0 -283
@@ -0,0 +1,405 @@
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-B-s19d7a.js";
3
+ import { _ as oe } from "./zsyslist.vue_vue_type_script_setup_true_lang-CiKZqB0j.js";
4
+ import { H as p } from "./http_api_v1-DFc71lD8.js";
5
+ import { _ as ne } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-DTE_uo5w.js";
6
+ import { Z as T } from "./message-Dd0EkBmy.js";
7
+ import { m as se, w as ie, _ as ae } from "./index-C_d1JnWR.js";
8
+ import { z as re } from "./zsys_eventBus-Dc_JZwH4.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 = re(), 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 = se();
108
+ return ie(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__ */ ae(ue, [["__scopeId", "data-v-5ea85390"]]), 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
+ };
@@ -0,0 +1,102 @@
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-B-s19d7a.js";
3
+ import { H as u } from "./http_api_v1-DFc71lD8.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
+ };
@@ -0,0 +1,30 @@
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
+ };