yh-pub 2.0.2 → 2.0.7

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 (57) hide show
  1. package/{AdminLogin-W5d0M-rz.js → AdminLogin-BQ1XLQaD.js} +83 -72
  2. package/AdminLogin-BQ1XLQaD.js.map +1 -0
  3. package/{Error-BZ9xAkuT.js → Error-mAhb4JTd.js} +2 -2
  4. package/{Error-BZ9xAkuT.js.map → Error-mAhb4JTd.js.map} +1 -1
  5. package/Error401-B7NlVttM.js +31 -0
  6. package/Error401-B7NlVttM.js.map +1 -0
  7. package/Error404-Ba9ueMHc.js +31 -0
  8. package/Error404-Ba9ueMHc.js.map +1 -0
  9. package/Error500-DYjNCZNu.js +31 -0
  10. package/Error500-DYjNCZNu.js.map +1 -0
  11. package/{HomeIndex-DnGu5xD0.js → HomeIndex-BO9gew40.js} +172 -172
  12. package/HomeIndex-BO9gew40.js.map +1 -0
  13. package/{IconExplorer-IvNeUIhq.js → IconExplorer-CAqKbvQ1.js} +25 -25
  14. package/IconExplorer-CAqKbvQ1.js.map +1 -0
  15. package/Index-fSvx8Wih.js +5 -0
  16. package/Index-fSvx8Wih.js.map +1 -0
  17. package/{MainLogin-CgJLift-.js → MainLogin-D2XRuJDW.js} +92 -84
  18. package/MainLogin-D2XRuJDW.js.map +1 -0
  19. package/MenuManage-BPvVvMzw.js +626 -0
  20. package/MenuManage-BPvVvMzw.js.map +1 -0
  21. package/OrgManage-DM43rEPk.js +380 -0
  22. package/OrgManage-DM43rEPk.js.map +1 -0
  23. package/RoleManage-AqGTGljA.js +738 -0
  24. package/RoleManage-AqGTGljA.js.map +1 -0
  25. package/SysConfig-v9nYZf4a.js +733 -0
  26. package/SysConfig-v9nYZf4a.js.map +1 -0
  27. package/TenantList-PeEEKz0o.js +705 -0
  28. package/TenantList-PeEEKz0o.js.map +1 -0
  29. package/{index-C75ufNln.js → index-kZF68V9S.js} +9766 -9641
  30. package/index-kZF68V9S.js.map +1 -0
  31. package/index.es.js +51 -47
  32. package/package.json +1 -1
  33. package/style.css +1 -1
  34. package/AdminLogin-W5d0M-rz.js.map +0 -1
  35. package/Error401-DrA7Y9h3.js +0 -30
  36. package/Error401-DrA7Y9h3.js.map +0 -1
  37. package/Error404-C5K4o1R3.js +0 -30
  38. package/Error404-C5K4o1R3.js.map +0 -1
  39. package/Error500-D9nu1xhW.js +0 -30
  40. package/Error500-D9nu1xhW.js.map +0 -1
  41. package/HomeIndex-DnGu5xD0.js.map +0 -1
  42. package/IconExplorer-IvNeUIhq.js.map +0 -1
  43. package/Index-BMd4lEnI.js +0 -5
  44. package/Index-BMd4lEnI.js.map +0 -1
  45. package/MainLogin-CgJLift-.js.map +0 -1
  46. package/MenuManage-BJkQPgpt.js +0 -640
  47. package/MenuManage-BJkQPgpt.js.map +0 -1
  48. package/OrgManage-jLpAnwf4.js +0 -378
  49. package/OrgManage-jLpAnwf4.js.map +0 -1
  50. package/RoleManage-D2RwwJoM.js +0 -729
  51. package/RoleManage-D2RwwJoM.js.map +0 -1
  52. package/SysConfig-CYcl0wCh.js +0 -727
  53. package/SysConfig-CYcl0wCh.js.map +0 -1
  54. package/TenantList-CNVwmoEt.js +0 -693
  55. package/TenantList-CNVwmoEt.js.map +0 -1
  56. package/index-C75ufNln.js.map +0 -1
  57. package/index.d.ts +0 -35
@@ -1,693 +0,0 @@
1
- import { defineComponent as Q, ref as _, reactive as E, watch as ae, resolveComponent as f, openBlock as U, createBlock as G, withCtx as l, createVNode as t, createTextVNode as T, resolveDirective as ce, createElementVNode as q, withDirectives as fe, createElementBlock as J, Fragment as K, renderList as ee, toDisplayString as te, createCommentVNode as pe, onMounted as me, normalizeProps as ge, guardReactiveProps as _e } from "vue";
2
- import { ElMessage as z, ElMessageBox as he } from "element-plus";
3
- import { s as le, f as ve, h as Ie, j as ke, k as ye, l as Ce, m as be, n as Ve, _ as De, o as we, p as Me } from "./index-C75ufNln.js";
4
- import { deepClone as xe } from "yh-client";
5
- const Te = /* @__PURE__ */ Q({
6
- __name: "TenantForm",
7
- props: {
8
- actionData: {}
9
- },
10
- emits: ["getinfo"],
11
- setup(j, { emit: P }) {
12
- const B = j, h = P, m = _(!1), I = _(), D = _("add"), d = E({}), O = {
13
- code: [{ required: !0, message: "必须输入该项", trigger: "blur" }],
14
- name: [{ required: !0, message: "必须输入该项", trigger: "blur" }],
15
- orgValue: [{ required: !0, message: "必须输入该项", trigger: "blur" }],
16
- orgName: [{ required: !0, message: "必须输入该项", trigger: "blur" }],
17
- userName: [{ required: !0, message: "必须输入该项", trigger: "blur" }],
18
- userUserName: [{ required: !0, message: "必须输入该项", trigger: "blur" }]
19
- }, C = (i) => {
20
- le({
21
- adClientId: i
22
- }).then((c) => {
23
- c.data.data && Object.assign(d, c.data.data);
24
- });
25
- }, b = async () => {
26
- if (I.value)
27
- try {
28
- await I.value.validate(), D.value === "add" ? ve(d).then((i) => {
29
- i.data.data && (z.success("保存成功!"), m.value = !1, h("getinfo"));
30
- }) : D.value === "edit" && Ie(d).then((i) => {
31
- i.data.data && (z.success("保存成功!"), m.value = !1, h("getinfo"));
32
- });
33
- } catch {
34
- }
35
- }, y = () => {
36
- m.value = !1;
37
- };
38
- return ae(
39
- () => B.actionData,
40
- (i) => {
41
- D.value = i.type, i.type === "add" ? (Object.keys(d).forEach((e) => {
42
- delete d[e];
43
- }), m.value = !0) : i.type === "edit" ? (C(i.id), m.value = !0) : m.value = !1;
44
- },
45
- { deep: !0 }
46
- ), (i, e) => {
47
- const c = f("el-input"), g = f("el-form-item"), k = f("el-col"), v = f("el-row"), S = f("el-form"), R = f("el-button"), W = f("el-dialog");
48
- return U(), G(W, {
49
- modelValue: m.value,
50
- "onUpdate:modelValue": e[10] || (e[10] = (s) => m.value = s),
51
- width: "800px",
52
- title: "租户信息"
53
- }, {
54
- footer: l(() => [
55
- t(R, {
56
- type: "primary",
57
- onClick: e[8] || (e[8] = (s) => b())
58
- }, {
59
- default: l(() => [...e[11] || (e[11] = [
60
- T("保存", -1)
61
- ])]),
62
- _: 1
63
- }),
64
- t(R, {
65
- onClick: e[9] || (e[9] = (s) => y())
66
- }, {
67
- default: l(() => [...e[12] || (e[12] = [
68
- T("取消", -1)
69
- ])]),
70
- _: 1
71
- })
72
- ]),
73
- default: l(() => [
74
- t(S, {
75
- ref_key: "formRef",
76
- ref: I,
77
- rules: O,
78
- model: d,
79
- "label-width": "140px"
80
- }, {
81
- default: l(() => [
82
- t(v, null, {
83
- default: l(() => [
84
- t(k, { span: 12 }, {
85
- default: l(() => [
86
- t(g, {
87
- prop: "adClientId",
88
- label: "客户端ID"
89
- }, {
90
- default: l(() => [
91
- t(c, {
92
- modelValue: d.adClientId,
93
- "onUpdate:modelValue": e[0] || (e[0] = (s) => d.adClientId = s),
94
- disabled: "",
95
- placeholder: "自动生成"
96
- }, null, 8, ["modelValue"])
97
- ]),
98
- _: 1
99
- })
100
- ]),
101
- _: 1
102
- })
103
- ]),
104
- _: 1
105
- }),
106
- t(v, null, {
107
- default: l(() => [
108
- t(k, { span: 12 }, {
109
- default: l(() => [
110
- t(g, {
111
- prop: "code",
112
- label: "客户端编码"
113
- }, {
114
- default: l(() => [
115
- t(c, {
116
- modelValue: d.code,
117
- "onUpdate:modelValue": e[1] || (e[1] = (s) => d.code = s)
118
- }, null, 8, ["modelValue"])
119
- ]),
120
- _: 1
121
- })
122
- ]),
123
- _: 1
124
- }),
125
- t(k, { span: 12 }, {
126
- default: l(() => [
127
- t(g, {
128
- prop: "name",
129
- label: "客户端名称"
130
- }, {
131
- default: l(() => [
132
- t(c, {
133
- modelValue: d.name,
134
- "onUpdate:modelValue": e[2] || (e[2] = (s) => d.name = s)
135
- }, null, 8, ["modelValue"])
136
- ]),
137
- _: 1
138
- })
139
- ]),
140
- _: 1
141
- })
142
- ]),
143
- _: 1
144
- }),
145
- t(v, null, {
146
- default: l(() => [
147
- t(k, { span: 12 }, {
148
- default: l(() => [
149
- t(g, {
150
- prop: "orgValue",
151
- label: "组织机构编码"
152
- }, {
153
- default: l(() => [
154
- t(c, {
155
- modelValue: d.orgValue,
156
- "onUpdate:modelValue": e[3] || (e[3] = (s) => d.orgValue = s)
157
- }, null, 8, ["modelValue"])
158
- ]),
159
- _: 1
160
- })
161
- ]),
162
- _: 1
163
- }),
164
- t(k, { span: 12 }, {
165
- default: l(() => [
166
- t(g, {
167
- prop: "orgName",
168
- label: "组织机构名称"
169
- }, {
170
- default: l(() => [
171
- t(c, {
172
- modelValue: d.orgName,
173
- "onUpdate:modelValue": e[4] || (e[4] = (s) => d.orgName = s)
174
- }, null, 8, ["modelValue"])
175
- ]),
176
- _: 1
177
- })
178
- ]),
179
- _: 1
180
- })
181
- ]),
182
- _: 1
183
- }),
184
- t(v, null, {
185
- default: l(() => [
186
- t(k, { span: 12 }, {
187
- default: l(() => [
188
- t(g, {
189
- prop: "userName",
190
- label: "用户名称"
191
- }, {
192
- default: l(() => [
193
- t(c, {
194
- modelValue: d.userName,
195
- "onUpdate:modelValue": e[5] || (e[5] = (s) => d.userName = s)
196
- }, null, 8, ["modelValue"])
197
- ]),
198
- _: 1
199
- })
200
- ]),
201
- _: 1
202
- }),
203
- t(k, { span: 12 }, {
204
- default: l(() => [
205
- t(g, {
206
- prop: "userUserName",
207
- label: "登录账户名称"
208
- }, {
209
- default: l(() => [
210
- t(c, {
211
- modelValue: d.userUserName,
212
- "onUpdate:modelValue": e[6] || (e[6] = (s) => d.userUserName = s),
213
- disabled: D.value !== "add"
214
- }, null, 8, ["modelValue", "disabled"])
215
- ]),
216
- _: 1
217
- })
218
- ]),
219
- _: 1
220
- })
221
- ]),
222
- _: 1
223
- }),
224
- t(v, null, {
225
- default: l(() => [
226
- t(k, { span: 24 }, {
227
- default: l(() => [
228
- t(g, { label: "客户端备注" }, {
229
- default: l(() => [
230
- t(c, {
231
- modelValue: d.description,
232
- "onUpdate:modelValue": e[7] || (e[7] = (s) => d.description = s),
233
- type: "textarea",
234
- rows: 3
235
- }, null, 8, ["modelValue"])
236
- ]),
237
- _: 1
238
- })
239
- ]),
240
- _: 1
241
- })
242
- ]),
243
- _: 1
244
- })
245
- ]),
246
- _: 1
247
- }, 8, ["model"])
248
- ]),
249
- _: 1
250
- }, 8, ["modelValue"]);
251
- };
252
- }
253
- }), Ne = { class: "drawer-content" }, Ue = { class: "drawer-content" }, Pe = { style: { "margin-left": "10px" } }, Ee = { class: "drawer-footer br" }, Be = /* @__PURE__ */ Q({
254
- __name: "TenantRoleManage",
255
- props: {
256
- actionData: {}
257
- },
258
- emits: ["getinfo"],
259
- setup(j, { emit: P }) {
260
- const B = j, h = P, m = E({}), I = _(!1), D = _([]), d = _({}), O = _({}), C = _([]), b = _(""), y = _({}), i = _([]), e = _([]), c = _([]), g = _(!0), k = _(""), v = _(!1), S = _(), R = () => {
261
- y.value = {}, d.value = {}, O.value = {}, C.value = [], D.value = [];
262
- }, W = () => {
263
- I.value = !0;
264
- const o = i.value.join(","), n = {};
265
- Object.keys(y.value).forEach((r) => {
266
- n["W_" + r] = y.value[r];
267
- }), ke({
268
- roleId: m.adRoleId,
269
- ids: o,
270
- btns: JSON.stringify(n),
271
- adClientId: m.adClientId,
272
- adOrgId: m.adOrgId
273
- }).then((r) => {
274
- I.value = !1;
275
- const a = r.data;
276
- a.result ? (z.success("操作成功"), A()) : z.error(a.msg);
277
- });
278
- }, s = (o) => {
279
- ye({ adRoleId: o }).then((n) => {
280
- if (n.data.data) {
281
- const r = n.data.data, a = {};
282
- r.forEach((u) => {
283
- a[u.sysWindowId] || (a[u.sysWindowId] = []), a[u.sysWindowId].push(u.sysWindowButtonId);
284
- }), y.value = a;
285
- }
286
- });
287
- }, A = () => {
288
- R(), v.value = !1, h("getinfo");
289
- }, ne = async (o) => {
290
- const n = {
291
- adClientId: o
292
- };
293
- let r;
294
- return await le(n).then((a) => {
295
- a.data.data && (r = a.data.data);
296
- }), r;
297
- }, oe = async (o) => {
298
- const n = {};
299
- return e.value = [], i.value = [], await Ce({ adRoleId: o }).then((r) => {
300
- const a = r.data;
301
- a.result && a.data.forEach((u) => {
302
- u.MENU_TYPE !== "GROUP" ? (n[u.AD_MENU_ID] = u, i.value.push(u.AD_MENU_ID)) : e.value.push(u.AD_MENU_ID);
303
- });
304
- }), n;
305
- }, de = (o) => {
306
- be({}).then((n) => {
307
- const r = n.data;
308
- if (r.data) {
309
- const a = [];
310
- r.data.forEach((V) => {
311
- a.push(Z(V));
312
- }), H(a, o), c.value = a, g.value = !1;
313
- }
314
- });
315
- }, H = (o, n) => {
316
- let r = 0;
317
- return o.forEach((a) => {
318
- if (a.expand = !0, n[a.adMenuId] && (a.checked = !0, r++), a.children && a.children.length > 0) {
319
- const u = H(a.children, n);
320
- u === a.children.length ? (a.checked = !0, a.selectable = !0, a.indeterminate = !1) : u > 0 && u < a.children.length ? (a.indeterminate = !0, a.checked = !1, a.selectable = !0) : (a.checked = !1, a.indeterminate = !1);
321
- }
322
- }), r;
323
- }, se = (o, n) => {
324
- if (o) {
325
- if (b.value = o.sysWindowId || "", !b.value) {
326
- C.value = [], D.value = y.value[b.value] || [];
327
- return;
328
- }
329
- Ve({ sysWindowId: b.value }).then((r) => {
330
- const a = r.data, { result: u, data: V } = a;
331
- if (u && V) {
332
- const w = [], N = {};
333
- V.forEach((p) => {
334
- p.TYPE === "QY" ? (w.push(p), N[p.ID] = []) : N[p.PARENT_ID] && N[p.PARENT_ID].push(p);
335
- }), w.forEach((p) => {
336
- p.childs = N[p.ID];
337
- const L = y.value[b.value] || [];
338
- let $ = 0;
339
- N[p.ID].forEach((F) => {
340
- L.includes(F.ID) && $++;
341
- }), $ === N[p.ID].length ? (p.checkAll = !0, p.indeterminate = !1) : $ > 0 ? (p.checkAll = !1, p.indeterminate = !0) : (p.checkAll = !1, p.indeterminate = !1), p.checkChilds = L;
342
- }), C.value = w, D.value = y.value[b.value] || [];
343
- }
344
- });
345
- }
346
- }, re = (o, n) => {
347
- o.menuType !== "GROUP" ? n ? delete d.value[o.adMenuId] : d.value[o.adMenuId] || (d.value[o.adMenuId] = "1") : X(o, !n);
348
- }, X = (o, n) => {
349
- n ? (d.value[o.adMenuId] || (d.value[o.adMenuId] = "1"), o.children && o.children.length > 0 && o.children.forEach((r) => {
350
- X(r, n);
351
- })) : delete d.value[o.adMenuId];
352
- }, ue = (o, n, r) => {
353
- let a = [];
354
- n.indeterminate ? (a = n.childs.map((u) => u.ID), n.checkAll = !0, n.indeterminate = !1, n.checkChilds = a) : (n.checkAll = !1, n.indeterminate = !1, n.checkChilds = a), y.value[b.value] = a, C.value[r] = n;
355
- }, ie = (o, n) => {
356
- const a = xe(C.value)[n];
357
- if (o.length > 0) {
358
- let u = 0, V = 0;
359
- for (let w = 0; w < a.childs.length; w++)
360
- o.includes(a.childs[w].ID) && V++;
361
- V === a.childs.length ? u = 2 : u = 1, u === 1 ? (a.checkAll = !1, a.indeterminate = V !== 0) : u === 2 && (a.checkAll = !0, a.indeterminate = !1);
362
- } else
363
- a.checkAll = !1, a.indeterminate = !1;
364
- a.checkChilds = o, C.value[n] = a, y.value[b.value] = o;
365
- }, Z = (o, n) => {
366
- const r = { data: o };
367
- return r.key = o.adMenuId, r.title = o.name, o._childs && o._childs.length > 0 ? (o._childs.forEach((a) => {
368
- r.children || (r.children = []), r.children.push(Z(a));
369
- }), r.isLeaf = !1) : r.isLeaf = !0, delete o._childs, r;
370
- };
371
- return ae(
372
- () => B.actionData,
373
- async (o) => {
374
- k.value = o.id;
375
- const n = await ne(o.id);
376
- Object.assign(m, n), s(m.adRoleId);
377
- const r = await oe(m.adRoleId);
378
- de(r), v.value = !0;
379
- },
380
- { deep: !0 }
381
- ), (o, n) => {
382
- const r = f("el-tree"), a = f("el-card"), u = f("el-col"), V = f("el-checkbox"), w = f("el-checkbox-group"), N = f("el-empty"), p = f("el-button"), L = f("el-row"), $ = f("el-drawer"), F = ce("loading");
383
- return U(), G($, {
384
- title: "分配权限",
385
- modelValue: v.value,
386
- "onUpdate:modelValue": n[0] || (n[0] = (M) => v.value = M),
387
- width: 800,
388
- onClose: A
389
- }, {
390
- default: l(() => [
391
- t(L, null, {
392
- default: l(() => [
393
- t(u, { span: 12 }, {
394
- default: l(() => [
395
- t(a, { title: "菜单权限" }, {
396
- default: l(() => [
397
- q("div", Ne, [
398
- fe(t(r, {
399
- ref_key: "treeRef",
400
- ref: S,
401
- data: c.value,
402
- props: { label: "title", children: "children" },
403
- "show-checkbox": "",
404
- "node-key": "key",
405
- "default-expand-parent": "",
406
- onCurrentChange: se,
407
- onCheckChange: re
408
- }, null, 8, ["data"]), [
409
- [F, g.value]
410
- ])
411
- ])
412
- ]),
413
- _: 1
414
- })
415
- ]),
416
- _: 1
417
- }),
418
- t(u, { span: 12 }, {
419
- default: l(() => [
420
- t(a, { title: "按钮权限" }, {
421
- default: l(() => [
422
- q("div", Ue, [
423
- (U(!0), J(K, null, ee(C.value, (M, Y) => (U(), G(a, {
424
- key: Y,
425
- style: { "margin-top": "5px" }
426
- }, {
427
- header: l(() => [
428
- q("span", Pe, te(M.NAME), 1),
429
- t(V, {
430
- modelValue: M.checkAll,
431
- "onUpdate:modelValue": (x) => M.checkAll = x,
432
- indeterminate: M.indeterminate,
433
- onChange: (x) => ue(x, M, Y)
434
- }, {
435
- default: l(() => [...n[1] || (n[1] = [
436
- T(" 全选 ", -1)
437
- ])]),
438
- _: 1
439
- }, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "onChange"])
440
- ]),
441
- default: l(() => [
442
- t(w, {
443
- "model-value": M.checkChilds,
444
- "onUpdate:modelValue": (x) => ie(x, Y)
445
- }, {
446
- default: l(() => [
447
- (U(!0), J(K, null, ee(M.childs, (x) => (U(), G(V, {
448
- key: x.ID,
449
- label: x.ID
450
- }, {
451
- default: l(() => [
452
- T(te(x.NAME), 1)
453
- ]),
454
- _: 2
455
- }, 1032, ["label"]))), 128))
456
- ]),
457
- _: 2
458
- }, 1032, ["model-value", "onUpdate:modelValue"])
459
- ]),
460
- _: 2
461
- }, 1024))), 128)),
462
- C.value.length === 0 ? (U(), G(N, {
463
- key: 0,
464
- description: "暂无权限按钮"
465
- })) : pe("", !0),
466
- q("div", Ee, [
467
- t(p, {
468
- type: "primary",
469
- loading: I.value,
470
- onClick: W
471
- }, {
472
- default: l(() => [...n[2] || (n[2] = [
473
- T(" 提交 ", -1)
474
- ])]),
475
- _: 1
476
- }, 8, ["loading"]),
477
- t(p, { onClick: A }, {
478
- default: l(() => [...n[3] || (n[3] = [
479
- T("取消", -1)
480
- ])]),
481
- _: 1
482
- })
483
- ])
484
- ])
485
- ]),
486
- _: 1
487
- })
488
- ]),
489
- _: 1
490
- })
491
- ]),
492
- _: 1
493
- })
494
- ]),
495
- _: 1
496
- }, 8, ["modelValue"]);
497
- };
498
- }
499
- }), Re = /* @__PURE__ */ De(Be, [["__scopeId", "data-v-0e19626e"]]), We = /* @__PURE__ */ Q({
500
- __name: "TenantList",
501
- setup(j) {
502
- const P = E({}), B = E({}), h = E({
503
- total: 0,
504
- currentPage: 1,
505
- pageSize: 10
506
- }), m = E({
507
- loading: !1,
508
- border: !1,
509
- showOverflow: !0,
510
- align: "center",
511
- columns: [
512
- { field: "adClientId", title: "租户ID", fixed: "left", width: 200 },
513
- { field: "code", title: "客户端编码" },
514
- { field: "name", title: "客户端名称" },
515
- { field: "action", title: "操作", fixed: "right", width: 300, slots: { default: "action" } }
516
- ],
517
- data: []
518
- }), I = E({}), D = ({ currentPage: i, pageSize: e }) => {
519
- h.currentPage = i, h.pageSize = e, d();
520
- }, d = () => {
521
- const i = {
522
- page: h.currentPage,
523
- size: h.pageSize,
524
- name: I.name,
525
- code: I.code
526
- };
527
- m.loading = !0, we(i).then((e) => {
528
- const c = e.data;
529
- c.data.records && (m.data = c.data.records, h.total = c.data.total, h.currentPage = c.data.current), m.loading = !1;
530
- });
531
- }, O = () => {
532
- Object.assign(P, { type: "add" });
533
- }, C = (i) => {
534
- Object.assign(P, { type: "edit", id: i.adClientId });
535
- }, b = (i) => {
536
- Object.assign(B, { id: i.adClientId });
537
- }, y = (i) => {
538
- he.confirm("这将删除租户以及租户下所有数据!是否删除?", "请确认", {
539
- confirmButtonText: "确定",
540
- cancelButtonText: "取消",
541
- type: "warning"
542
- }).then(() => {
543
- const e = {
544
- adClientId: i.adClientId
545
- };
546
- Me(e).then((c) => {
547
- const g = c.data;
548
- g.result ? (z.success(g.msg), d()) : z.error(g.msg);
549
- });
550
- }).catch(() => {
551
- });
552
- };
553
- return me(() => {
554
- d();
555
- }), (i, e) => {
556
- const c = f("el-input"), g = f("el-form-item"), k = f("YhIcon"), v = f("el-button"), S = f("el-form"), R = f("vxe-pager"), W = f("vxe-grid");
557
- return U(), J(K, null, [
558
- t(S, {
559
- model: I,
560
- class: "ant-advanced-search-form",
561
- inline: ""
562
- }, {
563
- default: l(() => [
564
- t(g, { label: "客户端编码" }, {
565
- default: l(() => [
566
- t(c, {
567
- modelValue: I.code,
568
- "onUpdate:modelValue": e[0] || (e[0] = (s) => I.code = s)
569
- }, null, 8, ["modelValue"])
570
- ]),
571
- _: 1
572
- }),
573
- t(g, { label: "客户端名称" }, {
574
- default: l(() => [
575
- t(c, {
576
- modelValue: I.name,
577
- "onUpdate:modelValue": e[1] || (e[1] = (s) => I.name = s)
578
- }, null, 8, ["modelValue"])
579
- ]),
580
- _: 1
581
- }),
582
- t(g, null, {
583
- default: l(() => [
584
- t(v, {
585
- type: "primary",
586
- onClick: e[2] || (e[2] = (s) => d())
587
- }, {
588
- default: l(() => [
589
- t(k, {
590
- slot: "icon",
591
- name: "search2"
592
- })
593
- ]),
594
- _: 1
595
- })
596
- ]),
597
- _: 1
598
- }),
599
- t(g, null, {
600
- default: l(() => [
601
- t(v, {
602
- type: "primary",
603
- onClick: e[3] || (e[3] = (s) => O())
604
- }, {
605
- default: l(() => [
606
- t(k, {
607
- slot: "icon",
608
- name: "plus"
609
- }),
610
- e[8] || (e[8] = T(" 初始化租户 ", -1))
611
- ]),
612
- _: 1
613
- })
614
- ]),
615
- _: 1
616
- })
617
- ]),
618
- _: 1
619
- }, 8, ["model"]),
620
- t(W, ge(_e(m)), {
621
- action: l(({ row: s }) => [
622
- t(v, {
623
- type: "primary",
624
- size: "small",
625
- style: { "margin-right": "5px" },
626
- onClick: (A) => C(s)
627
- }, {
628
- default: l(() => [
629
- t(k, { name: "edit" })
630
- ]),
631
- _: 1
632
- }, 8, ["onClick"]),
633
- t(v, {
634
- type: "primary",
635
- size: "small",
636
- style: { "margin-right": "5px" },
637
- onClick: (A) => b(s)
638
- }, {
639
- default: l(() => [...e[9] || (e[9] = [
640
- T(" 授权 ", -1)
641
- ])]),
642
- _: 1
643
- }, 8, ["onClick"]),
644
- t(v, {
645
- type: "danger",
646
- size: "small",
647
- style: { "margin-right": "5px" },
648
- onClick: (A) => y(s)
649
- }, {
650
- default: l(() => [...e[10] || (e[10] = [
651
- T(" 删除 ", -1)
652
- ])]),
653
- _: 1
654
- }, 8, ["onClick"])
655
- ]),
656
- pager: l(() => [
657
- t(R, {
658
- layouts: [
659
- "Sizes",
660
- "PrevJump",
661
- "PrevPage",
662
- "Number",
663
- "NextPage",
664
- "NextJump",
665
- "FullJump",
666
- "Total"
667
- ],
668
- "current-page": h.currentPage,
669
- "onUpdate:currentPage": e[4] || (e[4] = (s) => h.currentPage = s),
670
- "page-size": h.pageSize,
671
- "onUpdate:pageSize": e[5] || (e[5] = (s) => h.pageSize = s),
672
- total: h.total,
673
- onPageChange: D
674
- }, null, 8, ["current-page", "page-size", "total"])
675
- ]),
676
- _: 1
677
- }, 16),
678
- t(Te, {
679
- actionData: P,
680
- onGetinfo: e[6] || (e[6] = (s) => d())
681
- }, null, 8, ["actionData"]),
682
- t(Re, {
683
- actionData: B,
684
- onGetinfo: e[7] || (e[7] = (s) => d())
685
- }, null, 8, ["actionData"])
686
- ], 64);
687
- };
688
- }
689
- });
690
- export {
691
- We as default
692
- };
693
- //# sourceMappingURL=TenantList-CNVwmoEt.js.map