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