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