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.
Files changed (77) hide show
  1. package/README.md +19 -3
  2. package/dist/backup-B_ecXldN.js +519 -0
  3. package/dist/breadcrumb.vue_vue_type_script_setup_true_lang-LiynoCpU.js +43 -0
  4. package/dist/change_password-DdXbDCW3.js +135 -0
  5. package/dist/department-CkeLYapS.js +410 -0
  6. package/dist/desktop-Dlxt_nj4.js +9 -0
  7. package/dist/http_api_v1-C1nimGbM.js +2758 -0
  8. package/dist/index-BaFHeDAF.js +327 -0
  9. package/dist/index-CX41PbES.js +6688 -0
  10. package/dist/index.es-BcGc183Q.js +170 -0
  11. package/dist/log-B4tgzmW2.js +163 -0
  12. package/dist/login-bJhy9URL.js +111 -0
  13. package/dist/main-EI2iFkT9.js +293 -0
  14. package/dist/message-CdVUOGzt.js +26 -0
  15. package/dist/position-CFiI2C0_.js +311 -0
  16. package/dist/role-BD3_T6lz.js +405 -0
  17. package/dist/self-BsJkA8N-.js +102 -0
  18. package/dist/sys-BjlP52cg.js +30 -0
  19. package/dist/user-E4blW7I0.js +650 -0
  20. package/dist/vite.svg +1 -0
  21. package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-BUVzkvi0.js +72 -0
  22. package/dist/zsys_eventBus-DDrk0Aw8.js +178 -0
  23. package/dist/zsys_time-DHEMuVgo.js +17 -0
  24. package/dist/zsyslist.vue_vue_type_script_setup_true_lang-CjpC7Ren.js +466 -0
  25. package/dist/zsysview.css +1 -0
  26. package/dist/zsysview.es.js +3 -0
  27. package/package.json +34 -20
  28. package/assets/default_avatar.png +0 -0
  29. package/assets/default_logo.png +0 -0
  30. package/assets/default_logo_40.png +0 -0
  31. package/assets/login_bg.jpg +0 -0
  32. package/components/export/export_dialog.vue +0 -150
  33. package/components/export/export_progress.vue +0 -62
  34. package/components/list/zsyslist.vue +0 -164
  35. package/components/list/zsyslist_content.vue +0 -29
  36. package/components/list/zsyslist_header.vue +0 -62
  37. package/components/message/index.ts +0 -3
  38. package/components/message/message.ts +0 -35
  39. package/components/zsys_delbutton.vue +0 -60
  40. package/core/app.ts +0 -32
  41. package/core/common/common.ts +0 -29
  42. package/core/common/zsys_eventBus.ts +0 -45
  43. package/core/common/zsys_time.ts +0 -26
  44. package/core/httpapi/http_api_return_data.ts +0 -43
  45. package/core/httpapi/http_api_v1.ts +0 -151
  46. package/core/httpapi/http_axios.ts +0 -54
  47. package/core/router copy.ts +0 -148
  48. package/core/router.ts +0 -153
  49. package/core/runtime.ts +0 -14
  50. package/core/user_token.ts +0 -17
  51. package/css/common.css +0 -16
  52. package/css/style.css +0 -79
  53. package/index.ts +0 -0
  54. package/view/app.vue +0 -10
  55. package/view/backup/backup.vue +0 -308
  56. package/view/building.vue +0 -22
  57. package/view/department/department.vue +0 -111
  58. package/view/department/department_edit_dialog.vue +0 -267
  59. package/view/desktop/desktop.vue +0 -11
  60. package/view/log/log.vue +0 -60
  61. package/view/log/log_setting.vue +0 -41
  62. package/view/login.vue +0 -91
  63. package/view/main/breadcrumb.vue +0 -41
  64. package/view/main/main.vue +0 -60
  65. package/view/main/userHeader.vue +0 -73
  66. package/view/main/userMenu.vue +0 -132
  67. package/view/main/userMenuItem.vue +0 -49
  68. package/view/position/position.vue +0 -58
  69. package/view/position/position_edit_dialog.vue +0 -203
  70. package/view/role/role.vue +0 -72
  71. package/view/role/role_edit_dialog.vue +0 -271
  72. package/view/self/change_password.vue +0 -97
  73. package/view/self/self.vue +0 -62
  74. package/view/sys/sys.vue +0 -19
  75. package/view/user/change_user_password_dialog.vue +0 -155
  76. package/view/user/user.vue +0 -110
  77. package/view/user/user_edit_dialog.vue +0 -283
@@ -0,0 +1,466 @@
1
+ import { defineComponent as Q, reactive as I, watch as R, resolveComponent as l, createElementBlock as V, openBlock as p, createCommentVNode as b, createElementVNode as M, createBlock as v, toDisplayString as K, withCtx as t, createTextVNode as k, createVNode as o, Fragment as P, renderList as j, unref as c, ref as C, withDirectives as E, withModifiers as H, vShow as O, renderSlot as G, withKeys as L, onMounted as W, onUnmounted as Z, resolveDirective as Y } from "vue";
2
+ import { j as J, k as X } from "./index-BaFHeDAF.js";
3
+ import { H as T } from "./http_api_v1-C1nimGbM.js";
4
+ import { Z as ee } from "./message-CdVUOGzt.js";
5
+ import { u as te, w as oe, z as le } from "./zsys_eventBus-DDrk0Aw8.js";
6
+ import { _ as ne } from "./index-CX41PbES.js";
7
+ const re = { style: { "padding-left": "20px", "padding-right": "20px", "padding-top": "6px" } }, ae = {
8
+ key: 0,
9
+ style: { "font-size": "x-large" }
10
+ }, se = {
11
+ key: 1,
12
+ style: { "font-size": "x-large" }
13
+ }, ie = { style: { "font-size": "large", "margin-top": "10px" } }, ue = /* @__PURE__ */ Q({
14
+ __name: "export_progress",
15
+ props: {
16
+ exportId: { type: BigInt, required: !0 }
17
+ },
18
+ setup(S) {
19
+ const w = S, n = I({
20
+ state: 1,
21
+ progress: 0n,
22
+ file_ids: []
23
+ });
24
+ return R(w, (r) => {
25
+ if (r.exportId != 0n)
26
+ var g = setInterval(async () => {
27
+ let i = await T.Post(T.url_export_detail, { id: w.exportId });
28
+ if (i.IsSuccess) {
29
+ let _ = i.data;
30
+ n.progress = _.progress, n.state = _.state, n.file_ids = [];
31
+ let f = _.file_ids.split(",");
32
+ for (let d of f)
33
+ n.file_ids.push(BigInt(d));
34
+ n.state != 1 && clearInterval(g);
35
+ }
36
+ }, 3600);
37
+ }), (r, g) => {
38
+ const i = l("el-progress"), _ = l("el-text"), f = l("el-link"), d = l("el-space");
39
+ return p(), V("div", re, [
40
+ n.state == 1 ? (p(), V("div", ae, "正在导出")) : b("", !0),
41
+ n.state == 2 ? (p(), V("div", se, "导出完成")) : b("", !0),
42
+ M("div", ie, " 累计处理: " + K(n.progress), 1),
43
+ n.state == 1 ? (p(), v(i, {
44
+ key: 2,
45
+ percentage: 50,
46
+ indeterminate: !0,
47
+ style: { "margin-top": "10px" }
48
+ }, {
49
+ default: t(() => [
50
+ k(K(n.progress), 1)
51
+ ]),
52
+ _: 1
53
+ })) : b("", !0),
54
+ n.state == 2 ? (p(), v(d, {
55
+ key: 3,
56
+ wrap: "",
57
+ style: { "font-size": "large", "margin-top": "10px" }
58
+ }, {
59
+ default: t(() => [
60
+ o(_, null, {
61
+ default: t(() => [...g[0] || (g[0] = [
62
+ k("文件(点击下载):", -1)
63
+ ])]),
64
+ _: 1
65
+ }),
66
+ (p(!0), V(P, null, j(n.file_ids, (m) => (p(), v(f, {
67
+ href: c(T).url_export_file + "?id=" + m.toString(),
68
+ target: "_blank",
69
+ underline: "always",
70
+ type: "primary"
71
+ }, {
72
+ default: t(() => [
73
+ k("文件" + K(m.toString()), 1)
74
+ ]),
75
+ _: 2
76
+ }, 1032, ["href"]))), 256))
77
+ ]),
78
+ _: 1
79
+ })) : b("", !0)
80
+ ]);
81
+ };
82
+ }
83
+ }), pe = { style: { display: "flex", "justify-content": "right" } }, de = /* @__PURE__ */ Q({
84
+ __name: "export_dialog",
85
+ props: {
86
+ modelValue: { type: Boolean, required: !0 },
87
+ // 控制显示隐藏
88
+ exportUrl: { type: String, required: !0 },
89
+ exportColumn: { type: [] }
90
+ },
91
+ emits: ["update:modelValue"],
92
+ setup(S, { emit: w }) {
93
+ const n = C(null), r = S, g = w, i = C(!1);
94
+ R(
95
+ () => r.modelValue,
96
+ (e) => {
97
+ i.value = e;
98
+ },
99
+ { immediate: !0 }
100
+ ), R(i, (e) => {
101
+ g("update:modelValue", e);
102
+ });
103
+ const _ = () => {
104
+ d.exporting = !1;
105
+ }, f = (e) => {
106
+ y.value?.clearValidate(), e();
107
+ }, d = I({
108
+ exporting: !1,
109
+ // 导出框当前的状态
110
+ exportId: 0n
111
+ //导出id
112
+ });
113
+ async function m() {
114
+ d.exporting = !0;
115
+ let e = await T.Post(r.exportUrl, {});
116
+ e.IsSuccess ? d.exportId = BigInt(e.data) : (ee.ShowError(e.message), d.exporting = !1);
117
+ }
118
+ const y = C(), x = C({
119
+ columnOption: "all",
120
+ exportColumnWanted: []
121
+ }), q = I({}), z = () => {
122
+ n.value?.focus(), n.value?.select();
123
+ }, u = te();
124
+ return oe(u.alt_s, () => {
125
+ i.value && console.log("Alt+S提交");
126
+ }), (e, a) => {
127
+ const h = l("el-radio"), B = l("el-radio-group"), U = l("el-form-item"), s = l("el-empty"), $ = l("el-transfer"), N = l("el-form"), A = l("el-button"), F = l("el-dialog");
128
+ return p(), v(F, {
129
+ modelValue: i.value,
130
+ "onUpdate:modelValue": a[3] || (a[3] = (D) => i.value = D),
131
+ title: "导出",
132
+ "align-center": !0,
133
+ "before-close": f,
134
+ onOpen: _,
135
+ width: "800",
136
+ draggable: !0,
137
+ overflow: !0,
138
+ onOpened: z,
139
+ "destroy-on-close": "",
140
+ "close-on-click-modal": !1
141
+ }, {
142
+ footer: t(() => [
143
+ M("div", pe, [
144
+ E(o(A, {
145
+ type: "primary",
146
+ onClick: m
147
+ }, {
148
+ default: t(() => [...a[6] || (a[6] = [
149
+ k("开始导出", -1)
150
+ ])]),
151
+ _: 1
152
+ }, 512), [
153
+ [O, d.exporting == !1]
154
+ ])
155
+ ])
156
+ ]),
157
+ default: t(() => [
158
+ E(o(N, {
159
+ onSubmit: a[2] || (a[2] = H(() => {
160
+ }, ["prevent"])),
161
+ ref_key: "ruleFormRef",
162
+ ref: y,
163
+ model: x.value,
164
+ rules: q,
165
+ style: { "padding-left": "10px", "padding-right": "10px" },
166
+ "label-width": "auto"
167
+ }, {
168
+ default: t(() => [
169
+ o(U, {
170
+ label: "字段选项",
171
+ prop: "role_title"
172
+ }, {
173
+ default: t(() => [
174
+ o(B, {
175
+ modelValue: x.value.columnOption,
176
+ "onUpdate:modelValue": a[0] || (a[0] = (D) => x.value.columnOption = D)
177
+ }, {
178
+ default: t(() => [
179
+ o(h, { value: "all" }, {
180
+ default: t(() => [...a[4] || (a[4] = [
181
+ k("全部支持的字段", -1)
182
+ ])]),
183
+ _: 1
184
+ }),
185
+ r.exportColumn ? (p(), v(h, {
186
+ key: 0,
187
+ value: "custom"
188
+ }, {
189
+ default: t(() => [...a[5] || (a[5] = [
190
+ k("自定义", -1)
191
+ ])]),
192
+ _: 1
193
+ })) : b("", !0)
194
+ ]),
195
+ _: 1
196
+ }, 8, ["modelValue"])
197
+ ]),
198
+ _: 1
199
+ }),
200
+ E(o(U, { label: "自定义" }, {
201
+ default: t(() => [
202
+ o($, {
203
+ modelValue: x.value.exportColumnWanted,
204
+ "onUpdate:modelValue": a[1] || (a[1] = (D) => x.value.exportColumnWanted = D),
205
+ data: r.exportColumn,
206
+ titles: ["可选", "已选"],
207
+ props: {
208
+ key: "ColumnName",
209
+ label: "ColumnTitle"
210
+ }
211
+ }, {
212
+ "left-empty": t(() => [
213
+ o(s, {
214
+ "image-size": 60,
215
+ description: "无可选项"
216
+ })
217
+ ]),
218
+ "right-empty": t(() => [
219
+ o(s, {
220
+ "image-size": 60,
221
+ description: "请从左侧选择"
222
+ })
223
+ ]),
224
+ _: 1
225
+ }, 8, ["modelValue", "data"])
226
+ ]),
227
+ _: 1
228
+ }, 512), [
229
+ [O, x.value.columnOption == "custom"]
230
+ ])
231
+ ]),
232
+ _: 1
233
+ }, 8, ["model", "rules"]), [
234
+ [O, d.exporting == !1]
235
+ ]),
236
+ E(o(ue, {
237
+ "export-id": d.exportId
238
+ }, null, 8, ["export-id"]), [
239
+ [O, d.exporting]
240
+ ])
241
+ ]),
242
+ _: 1
243
+ }, 8, ["modelValue"]);
244
+ };
245
+ }
246
+ }), me = /* @__PURE__ */ ne(de, [["__scopeId", "data-v-b509e120"]]), ce = /* @__PURE__ */ Q({
247
+ __name: "zsyslist_header",
248
+ props: ["config", "query"],
249
+ emits: ["refresh"],
250
+ setup(S, { emit: w }) {
251
+ const n = S, r = n.config, g = n.query, i = I({
252
+ exportDialogShow: !1
253
+ }), _ = w, f = () => {
254
+ _("refresh");
255
+ };
256
+ return (d, m) => {
257
+ const y = l("el-button"), x = l("el-tooltip"), q = l("el-input"), z = l("el-space"), u = l("el-col"), e = l("el-row"), a = l("el-text"), h = l("el-radio-button"), B = l("el-radio-group"), U = l("el-divider");
258
+ return p(), V(P, null, [
259
+ o(e, null, {
260
+ default: t(() => [
261
+ o(u, { span: 24 }, {
262
+ default: t(() => [
263
+ o(z, {
264
+ size: 4,
265
+ wrap: ""
266
+ }, {
267
+ default: t(() => [
268
+ G(d.$slots, "headermain"),
269
+ o(x, { content: "刷新列表数据" }, {
270
+ default: t(() => [
271
+ o(y, {
272
+ icon: c(J),
273
+ onClick: f
274
+ }, null, 8, ["icon"])
275
+ ]),
276
+ _: 1
277
+ }),
278
+ c(r).KeywordTip ? (p(), v(x, {
279
+ key: 0,
280
+ "show-after": 800,
281
+ content: c(r).KeywordTip ? c(r).KeywordTip : "快捷搜索"
282
+ }, {
283
+ default: t(() => [
284
+ o(q, {
285
+ style: { width: "160px" },
286
+ placeholder: c(r).KeywordTip ? c(r).KeywordTip : "快捷搜索",
287
+ "prefix-icon": c(X),
288
+ modelValue: c(g).keyword,
289
+ "onUpdate:modelValue": m[0] || (m[0] = (s) => c(g).keyword = s),
290
+ clearable: "",
291
+ onKeyup: L(f, ["enter", "native"])
292
+ }, null, 8, ["placeholder", "prefix-icon", "modelValue"])
293
+ ]),
294
+ _: 1
295
+ }, 8, ["content"])) : b("", !0),
296
+ c(r).ExportUrl ? (p(), v(x, {
297
+ key: 1,
298
+ content: "将查询的结果全部导出"
299
+ }, {
300
+ default: t(() => [
301
+ o(y, {
302
+ onClick: m[1] || (m[1] = (s) => i.exportDialogShow = !0)
303
+ }, {
304
+ default: t(() => [...m[3] || (m[3] = [
305
+ k("导出", -1)
306
+ ])]),
307
+ _: 1
308
+ })
309
+ ]),
310
+ _: 1
311
+ })) : b("", !0)
312
+ ]),
313
+ _: 3
314
+ })
315
+ ]),
316
+ _: 3
317
+ })
318
+ ]),
319
+ _: 3
320
+ }),
321
+ (p(!0), V(P, null, j(c(r).QuickConditionsGroups, (s) => (p(), v(e, { style: { "margin-top": "8px" } }, {
322
+ default: t(() => [
323
+ o(u, { span: 24 }, {
324
+ default: t(() => [
325
+ o(z, {
326
+ size: 4,
327
+ wrap: ""
328
+ }, {
329
+ default: t(() => [
330
+ o(a, null, {
331
+ default: t(() => [
332
+ k(K(s.Label), 1)
333
+ ]),
334
+ _: 2
335
+ }, 1024),
336
+ o(B, {
337
+ modelValue: s.Select,
338
+ "onUpdate:modelValue": ($) => s.Select = $,
339
+ size: "small"
340
+ }, {
341
+ default: t(() => [
342
+ (p(!0), V(P, null, j(s.QuickConditions, ($, N) => (p(), v(h, {
343
+ value: N,
344
+ onChange: f
345
+ }, {
346
+ default: t(() => [
347
+ k(K($.label), 1)
348
+ ]),
349
+ _: 2
350
+ }, 1032, ["value"]))), 256))
351
+ ]),
352
+ _: 2
353
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
354
+ ]),
355
+ _: 2
356
+ }, 1024)
357
+ ]),
358
+ _: 2
359
+ }, 1024)
360
+ ]),
361
+ _: 2
362
+ }, 1024))), 256)),
363
+ o(U, { style: { "margin-top": "4px", "margin-bottom": "4px" } }),
364
+ o(me, {
365
+ modelValue: i.exportDialogShow,
366
+ "onUpdate:modelValue": m[2] || (m[2] = (s) => i.exportDialogShow = s),
367
+ "export-url": c(r).ExportUrl,
368
+ "export-column": c(r).ExportColumn
369
+ }, null, 8, ["modelValue", "export-url", "export-column"])
370
+ ], 64);
371
+ };
372
+ }
373
+ }), we = /* @__PURE__ */ Q({
374
+ __name: "zsyslist",
375
+ props: {
376
+ config: { type: Object, required: !0 },
377
+ module: { type: String, default: "" }
378
+ // closeOnClickModal: { type: Boolean, default: true }
379
+ },
380
+ setup(S) {
381
+ const w = le(), n = I({
382
+ loading: !1
383
+ }), r = S;
384
+ console.log("zlist", r.module);
385
+ const g = r.config, i = I({ keyword: "" }), _ = C(1), f = C(30), d = C(0), m = C({}), y = async () => {
386
+ n.loading = !0;
387
+ let u = {
388
+ page_size: f.value,
389
+ page_index: _.value,
390
+ user_query_param: q(),
391
+ keyword: i.keyword
392
+ }, e = await T.Post(g.ApiUrl, u);
393
+ if (e.IsSuccess) {
394
+ let a = e.data;
395
+ m.value = a, d.value = a.count;
396
+ }
397
+ n.loading = !1;
398
+ }, x = (u) => {
399
+ console.log("aud_event:", u), (u.module == r.module || u.module == "all") && y();
400
+ }, q = () => {
401
+ let u = [];
402
+ for (const e of g.QuickConditionsGroups || [])
403
+ e.QuickConditions[e.Select].column != null && u.push(e.QuickConditions[e.Select]);
404
+ return u;
405
+ };
406
+ W(() => {
407
+ w.on("aud", x), y();
408
+ }), Z(() => {
409
+ w.off("aud", x);
410
+ });
411
+ const z = (u, e) => {
412
+ _.value = u, f.value = e, console.log(_.value, f.value), y();
413
+ };
414
+ return (u, e) => {
415
+ const a = l("el-empty"), h = l("el-table"), B = l("el-pagination"), U = Y("loading");
416
+ return E((p(), V("div", null, [
417
+ o(ce, {
418
+ config: c(g),
419
+ query: i,
420
+ "onUpdate:query": e[0] || (e[0] = (s) => i = s),
421
+ onRefresh: e[1] || (e[1] = (s) => y())
422
+ }, {
423
+ headermain: t(() => [
424
+ G(u.$slots, "headermain")
425
+ ]),
426
+ _: 3
427
+ }, 8, ["config", "query"]),
428
+ o(h, {
429
+ data: m.value.listdata,
430
+ style: { width: "100%" },
431
+ stripe: !0
432
+ }, {
433
+ empty: t(() => [
434
+ o(a, {
435
+ description: "无相关数据",
436
+ "image-size": 100
437
+ })
438
+ ]),
439
+ default: t(() => [
440
+ G(u.$slots, "content")
441
+ ]),
442
+ _: 3
443
+ }, 8, ["data"]),
444
+ c(g).HideBottomToolbar != !0 ? (p(), v(B, {
445
+ key: 0,
446
+ "current-page": _.value,
447
+ "onUpdate:currentPage": e[2] || (e[2] = (s) => _.value = s),
448
+ "page-size": f.value,
449
+ "onUpdate:pageSize": e[3] || (e[3] = (s) => f.value = s),
450
+ "page-sizes": [30, 50, 100, 150, 200],
451
+ layout: "total, sizes, prev, next, pager, jumper",
452
+ total: d.value,
453
+ "prev-text": "上一页",
454
+ "next-text": "下一页",
455
+ onChange: z,
456
+ style: { "margin-top": "6px", "margin-bottom": "6px" }
457
+ }, null, 8, ["current-page", "page-size", "total"])) : b("", !0)
458
+ ])), [
459
+ [U, n.loading]
460
+ ]);
461
+ };
462
+ }
463
+ });
464
+ export {
465
+ we as _
466
+ };