@syzh-syzh/base 0.0.2 → 0.0.47

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 (164) hide show
  1. package/dist/chunks/401-j4EyvUmK.js +1 -0
  2. package/dist/chunks/404-D3fEl7aK.js +1 -0
  3. package/dist/chunks/Cfg-CmDrSedq.js +1 -0
  4. package/dist/chunks/CoordTransform-DNfZ23hn.js +1 -0
  5. package/dist/chunks/Dept-D2gyvvuA.js +1 -0
  6. package/dist/chunks/Depttype-4IeVOowD.js +1 -0
  7. package/dist/chunks/Verify-CwVIhkWv.js +1 -0
  8. package/dist/chunks/app-B6mA21mX.js +1 -0
  9. package/dist/chunks/apps-Bw65HAye.js +1 -0
  10. package/dist/chunks/areadept-sCk7epV5.js +1 -0
  11. package/dist/chunks/cfgtype-CAsc_krj.js +1 -0
  12. package/dist/chunks/col-CM4nDsAc.js +1 -0
  13. package/dist/chunks/daibanevent-Bd5k14P7.js +1 -0
  14. package/dist/chunks/data-ARy_BrQB.js +1 -0
  15. package/dist/chunks/data-mT7F9ePw.js +1 -0
  16. package/dist/chunks/dayjs.min-UluX5XIH.js +1 -0
  17. package/dist/chunks/deptgxfw-ZN-7xaNb.js +1 -0
  18. package/dist/chunks/detail-yK24pSCb.js +1 -0
  19. package/dist/chunks/dict-C_Q6Jtdt.js +1 -0
  20. package/dist/chunks/dict-uIH5FoYg.js +1 -0
  21. package/dist/chunks/dispose-BZfhel8P.js +3 -0
  22. package/dist/chunks/eventfb-BZyCHTy1.js +1 -0
  23. package/dist/chunks/eventsource-Nx0pfrjR.js +1 -0
  24. package/dist/chunks/gaopinevent-DGhgWTPj.js +1 -0
  25. package/dist/chunks/grade-BRFUqQDN.js +1 -0
  26. package/dist/chunks/grid-table-BRJRS7kR.js +1 -0
  27. package/dist/chunks/griddept-BvY32Xvm.js +1 -0
  28. package/dist/chunks/gridgrid-Dzb7IADI.js +1 -0
  29. package/dist/chunks/gridtype-CzNR5J95.js +1 -0
  30. package/dist/chunks/home-sip_sLOi.js +1 -0
  31. package/dist/chunks/index-5kQKMfVX.js +1 -0
  32. package/dist/chunks/index-5wKDfQTd.js +1 -0
  33. package/dist/chunks/index-6aho12l_.js +1 -0
  34. package/dist/chunks/index-B1Wq2Nsi.js +1 -0
  35. package/dist/chunks/index-B48SNYai.js +1 -0
  36. package/dist/chunks/index-B6o7uuV2.js +1 -0
  37. package/dist/chunks/index-B90SaIWD.js +1 -0
  38. package/dist/chunks/index-B9R4U3Ql.js +1 -0
  39. package/dist/chunks/index-BAVnzM6-.js +1 -0
  40. package/dist/chunks/index-BDAjTufv.js +1 -0
  41. package/dist/chunks/index-BFUjCk3-.js +1 -0
  42. package/dist/chunks/index-BLqFUpHB.js +1 -0
  43. package/dist/chunks/index-BTRELOJv.js +1 -0
  44. package/dist/chunks/index-BZBlA6A0.js +1 -0
  45. package/dist/chunks/index-BZLnGnJR.js +1 -0
  46. package/dist/chunks/index-BcfEmSps.js +1 -0
  47. package/dist/chunks/index-Bef9DA2Y.js +1 -0
  48. package/dist/chunks/index-BoXdXXYU.js +1 -0
  49. package/dist/chunks/index-Bp6vn9Zu.js +1 -0
  50. package/dist/chunks/index-BzlIXaGd.js +1 -0
  51. package/dist/chunks/index-C43DJHzn.js +1 -0
  52. package/dist/chunks/index-CAtySbfa.js +1 -0
  53. package/dist/chunks/index-CBMC4Efg.js +1 -0
  54. package/dist/chunks/index-CD2XZ234.js +1 -0
  55. package/dist/chunks/index-CGky5nq_.js +1 -0
  56. package/dist/chunks/index-CK6MIKrr.js +1 -0
  57. package/dist/chunks/index-CL9EW6n7.js +1 -0
  58. package/dist/chunks/index-CSOOwnBM.js +1 -0
  59. package/dist/chunks/index-C_mo-VmL.js +1 -0
  60. package/dist/chunks/index-C_rF0G0X.js +1 -0
  61. package/dist/chunks/index-Cenl5wnH.js +1 -0
  62. package/dist/chunks/index-CietevRR.js +1 -0
  63. package/dist/chunks/index-ClRozZ3f.js +1 -0
  64. package/dist/chunks/index-CosXmJrK.js +1 -0
  65. package/dist/chunks/index-D0lCaN4-.js +1 -0
  66. package/dist/chunks/index-D3u7ufOl.js +1 -0
  67. package/dist/chunks/index-D5EqFLeL.js +1 -0
  68. package/dist/chunks/index-D7VmOCxY.js +1 -0
  69. package/dist/chunks/index-DAiEKetv.js +1 -0
  70. package/dist/chunks/index-DHz5odTm.js +1 -0
  71. package/dist/chunks/index-DQ5vLa7z.js +1 -0
  72. package/dist/chunks/index-DQnikhDQ.js +1 -0
  73. package/dist/chunks/index-DYVh4ioC.js +1 -0
  74. package/dist/chunks/index-D_E7hHcd.js +1 -0
  75. package/dist/chunks/index-Da2kR5xN.js +1 -0
  76. package/dist/chunks/index-De66cRSY.js +1 -0
  77. package/dist/chunks/index-DhgHsSDY.js +1 -0
  78. package/dist/chunks/index-DhprXpJx.js +1 -0
  79. package/dist/chunks/index-DrJ7Hk1E.js +1 -0
  80. package/dist/chunks/index-Dt0Hk7Ha.js +1 -0
  81. package/dist/chunks/index-Dus1LC3L.js +1 -0
  82. package/dist/chunks/index-T4r76trN.js +1 -0
  83. package/dist/chunks/index-aDtsUdzm.js +1 -0
  84. package/dist/chunks/index-pW1ikerM.js +1 -0
  85. package/dist/chunks/index-uy6mQZpQ.js +1 -0
  86. package/dist/chunks/lazyTree-Dk1T7tKk.js +1 -0
  87. package/dist/chunks/logLogin-DR9VFRit.js +1 -0
  88. package/dist/chunks/logMqysmsg-CqFggt3w.js +1 -0
  89. package/dist/chunks/logMsg-CmP890DJ.js +1 -0
  90. package/dist/chunks/logQuartz-nVbHXcSM.js +1 -0
  91. package/dist/chunks/login-STfsSqQ5.js +1 -0
  92. package/dist/chunks/logmqerror-DZ_D4ufg.js +1 -0
  93. package/dist/chunks/logoperate-5wyWD8Ei.js +1 -0
  94. package/dist/chunks/lv-7013hlNW.js +1 -0
  95. package/dist/chunks/maparea-By-PVqCq.js +1 -0
  96. package/dist/chunks/nodeadd-CGm4ntje.js +1 -0
  97. package/dist/chunks/numberbox-Cq9X8weT.js +1 -0
  98. package/dist/chunks/opradd-CAaM6GXY.js +1 -0
  99. package/dist/chunks/oprauthadd-BiYRQybZ.js +1 -0
  100. package/dist/chunks/oprtype-CQE5coRB.js +1 -0
  101. package/dist/chunks/regions-BZ1k62rQ.js +1 -0
  102. package/dist/chunks/regionstype-UpXJ168T.js +1 -0
  103. package/dist/chunks/role-naGWKVRs.js +1 -0
  104. package/dist/chunks/shangbaoevent-BEJIea5w.js +1 -0
  105. package/dist/chunks/shangbaoeventfl-BQvFCnpB.js +1 -0
  106. package/dist/chunks/source-CURy3GKa.js +1 -0
  107. package/dist/chunks/splitpanes-h9OOw7VD.js +1 -0
  108. package/dist/chunks/sysholidays-ncaCMEUO.js +1 -0
  109. package/dist/chunks/sysright-manage-BnCE1RaL.js +1 -0
  110. package/dist/chunks/taskfx-aLyR8BSX.js +1 -0
  111. package/dist/chunks/taskmatter-C45Vt_Z0.js +1 -0
  112. package/dist/chunks/tasknode-BN46qpS_.js +1 -0
  113. package/dist/chunks/tasknodelog-5Q1n5nw3.js +1 -0
  114. package/dist/chunks/tasktype-BUEvmUTD.js +1 -0
  115. package/dist/chunks/title-BgVZSMB-.js +1 -0
  116. package/dist/chunks/tzgg-C0Dto7kO.js +1 -0
  117. package/dist/chunks/tzggtype-BC93Qnhj.js +1 -0
  118. package/dist/chunks/weather-BbafoMY2.js +1 -0
  119. package/dist/chunks/wfEventAdd-CKAoYEp2.js +1 -0
  120. package/dist/chunks/wfclass-DeIb-rv1.js +1 -0
  121. package/dist/chunks/wfdef-KMvv5UzX.js +1 -0
  122. package/dist/chunks/wfeventall-h2QnDarf.js +1 -0
  123. package/dist/chunks/wfeventdone-ydqT-rxo.js +1 -0
  124. package/dist/chunks/wfeventlog-BYLPykTJ.js +1 -0
  125. package/dist/chunks/wfeventtask-C91eSthr.js +1 -0
  126. package/dist/chunks/wfeventyqsqsp-FAAbQ_Hg.js +1 -0
  127. package/dist/chunks/wfjixiao-CNv_68RS.js +1 -0
  128. package/dist/chunks/wfnode-Bq66_RJm.js +1 -0
  129. package/dist/chunks/wfopr-Cuolgu8E.js +1 -0
  130. package/dist/chunks/wfoprcfg-CiRgP2ho.js +1 -0
  131. package/dist/chunks/wfyqsqcfg-B92VfuZs.js +1 -0
  132. package/dist/chunks/wfyqsqcfg-Dy3JpsJW.js +1 -0
  133. package/dist/chunks/wfzdy-CCsA7_4A.js +1 -0
  134. package/dist/resolver.js +1 -24
  135. package/dist/sybase.css +1 -1
  136. package/dist/sybase.js +1 -2748
  137. package/dist/utils.js +1 -0
  138. package/package.json +40 -6
  139. package/dist/chunks/401-CL4u0r_c.js +0 -66
  140. package/dist/chunks/404-kPZw9FCc.js +0 -35
  141. package/dist/chunks/daibanevent-C8JNsrlI.js +0 -65
  142. package/dist/chunks/dayjs.min-B97rgn_L.js +0 -283
  143. package/dist/chunks/dict-C49Ogd-n.js +0 -57009
  144. package/dist/chunks/eventfb-BTFXb03d.js +0 -51
  145. package/dist/chunks/eventsource--BhatYsm.js +0 -91
  146. package/dist/chunks/gaopinevent-B-5K3OFp.js +0 -132
  147. package/dist/chunks/index-BJS7Ejqq.js +0 -768
  148. package/dist/chunks/index-CLnO5o1_.js +0 -1446
  149. package/dist/chunks/index-D8_MkquB.js +0 -762
  150. package/dist/chunks/index-DCeOtd-T.js +0 -651
  151. package/dist/chunks/index-DOll2JRT.js +0 -1106
  152. package/dist/chunks/index-DWhfjjo6.js +0 -31
  153. package/dist/chunks/index-VyUXzwqh.js +0 -426
  154. package/dist/chunks/index-gKvU35v8.js +0 -1617
  155. package/dist/chunks/lazyTree-MjyLwMcY.js +0 -89
  156. package/dist/chunks/login-pu41rAd1.js +0 -173
  157. package/dist/chunks/lv-B7X90WVW.js +0 -5
  158. package/dist/chunks/numberbox-tQsb4wgY.js +0 -29
  159. package/dist/chunks/shangbaoevent-Veamh7z3.js +0 -451
  160. package/dist/chunks/shangbaoeventfl-BJoXH_B5.js +0 -259
  161. package/dist/chunks/sysright-manage-BmiSkG44.js +0 -474
  162. package/dist/chunks/title-NwJCTLeC.js +0 -25
  163. package/dist/chunks/weather-ptB2uA3s.js +0 -65
  164. package/dist/views.js +0 -92
@@ -1,762 +0,0 @@
1
- import { _ as ol, a5 as ul, K as z, H as ke, bq as il, ap as sl, an as dl, ao as rl, b4 as pl, W as Ve, O as Se, m as j, br as cl, bs as vl, bt as ml, bu as fl, bv as _l, bw as gl, bx as bl, Y as yl } from "./dict-C49Ogd-n.js";
2
- import { ref as s, shallowRef as $l, reactive as hl, toRefs as kl, watch as Vl, watchEffect as Sl, computed as Re, nextTick as Rl, resolveComponent as v, resolveDirective as Ce, createElementBlock as M, openBlock as d, withDirectives as b, createVNode as i, unref as l, withCtx as o, withKeys as Cl, Fragment as Y, renderList as A, createBlock as c, createTextVNode as f, vShow as xe, isRef as F, createCommentVNode as w, createElementVNode as G, toDisplayString as oe } from "vue";
3
- import { d as xl } from "./dayjs.min-B97rgn_L.js";
4
- const wl = { class: "app-container" }, Ul = { class: "dialog-footer" }, Ll = { class: "dialog-footer" }, Nl = {
5
- __name: "index",
6
- setup(El) {
7
- const we = xl, { sys_rolerole_state: H } = ul("sys_role@role_state"), U = s([]), K = s([]), D = s(!1), S = s([]), R = s(!1), L = s(!0), J = s(!0), Q = s([]), ue = s(!0), ie = s(!0), I = s(0), W = s("");
8
- s(void 0);
9
- const h = s(!0), y = s([]), k = s(!0), T = s(!1), se = s(""), q = s(""), X = s([]), N = s(), Ue = s(), C = $l({}), t = s(""), E = s(
10
- [
11
- { label: "角色名称", visible: !0 },
12
- { label: "角色编号", visible: !0 },
13
- { label: "状态", visible: !0 },
14
- { label: "数据Json", visible: !0 },
15
- { label: "角色排序", visible: !1 },
16
- { label: "备注", visible: !0 }
17
- ].map((n, e) => ({ key: `key${e}`, ...n }))
18
- ), Le = hl({
19
- form: {},
20
- queryParams: {
21
- pageNo: 1,
22
- pageSize: 10,
23
- [`${t.value}_state`]: void 0,
24
- selectinfo: void 0
25
- },
26
- editParams: [],
27
- rules: {}
28
- }), { queryParams: m, form: p, rules: de, editParams: V } = kl(Le), Z = s(), re = s(), ee = s();
29
- Vl(N, (n) => {
30
- n && q.value && ge(q.value), V.value = [], Be.value = [];
31
- }), Sl(() => {
32
- let n = new Map(z(U.value).map((e) => [e.menuid, e.checkList]));
33
- V.value.forEach((e) => {
34
- n.get(e.menuid) && (e.rightidarray = n.get(e.menuid));
35
- }), console.log("%c menuList 变化", " color:chartreuse;font-size:20px", U);
36
- });
37
- const Ne = Re(() => [
38
- {
39
- [`${t.value}id`]: "0",
40
- [`${t.value}_name`]: "根目录",
41
- children: pe.value
42
- }
43
- ]), pe = Re(() => ke(S.value, `${t.value}id`, `${t.value}_parentid`));
44
- function Ee() {
45
- t.value = "role", de.value = {
46
- [`${t.value}_no`]: [{ required: !0, message: "角色编号不能为空", trigger: "blur" }],
47
- [`${t.value}_name`]: [{ required: !0, message: "数据名称不能为空", trigger: "blur" }],
48
- [`${t.value}_parentid`]: [{ required: !0, message: "父级不能为空", trigger: "blur" }]
49
- }, C.value = {
50
- search: bl,
51
- add: gl,
52
- delete: _l,
53
- edit: fl,
54
- // export: exportRole,
55
- detail: ml,
56
- fresh: vl
57
- };
58
- }
59
- function De() {
60
- L.value = !0, pl({}).then((n) => {
61
- n?.records ? (X.value = n.records, N.value = n.records[0].appsid, m.value.menu_appsid = n.records[0].appsid, P()) : X.value = [];
62
- });
63
- }
64
- function ce() {
65
- Ee(), ae();
66
- }
67
- function P() {
68
- L.value = !0, D.value = !!(k.value && (m.value.selectinfo || m.value[`${t.value}_state`]) != null), C.value.search({ ...m.value, ...k.value && !D.value ? { pageSize: 1e4, [`${t.value}_parentid`]: 0 } : {} }).then((n) => {
69
- D.value ? (K.value = n.records || [], h.value = !h.value) : (K.value = [], S.value = O(n.records || [])), I.value = n.rowCount || 0, L.value = !1;
70
- });
71
- }
72
- async function Pe(n, e, u) {
73
- n.children = await le(n[`${t.value}id`]), S.value = O(n.children), u(n.children);
74
- }
75
- async function le(n) {
76
- L.value = !0;
77
- const e = await C.value.search({ [`${t.value}_parentid`]: n, ...m.value, pageSize: 1e4 });
78
- return L.value = !1, e.records || [];
79
- }
80
- function O(n) {
81
- const e = new Map(S.value.map((u) => [u[`${t.value}id`], u]));
82
- return n.forEach((u) => e.set(u[`${t.value}id`], u)), Array.from(e.values());
83
- }
84
- function je() {
85
- R.value = !1, te();
86
- }
87
- function te() {
88
- Ve(Z.value), p.value = {
89
- [`${t.value}id`]: void 0,
90
- [`${t.value}_no`]: void 0,
91
- [`${t.value}_name`]: void 0,
92
- [`${t.value}_json`]: void 0,
93
- [`${t.value}_sort`]: 0,
94
- [`${t.value}_usetypeid`]: 2,
95
- [`${t.value}_state`]: 1,
96
- [`${t.value}_isdefault`]: 0,
97
- [`${t.value}_note`]: void 0
98
- };
99
- }
100
- function ae() {
101
- m.value.pageNo = 1, P();
102
- }
103
- function Te() {
104
- Ve(re.value), ce();
105
- }
106
- function ve(n, e) {
107
- te(), R.value = !0, W.value = "添加角色", p.value.dictid = m.value[`${t.value}_dictid`], n && (p.value[`${t.value}_parentid`] = n[`${t.value}id`]);
108
- }
109
- function ze(n) {
110
- Q.value = n.map((e) => e[`${t.value}id`]), ue.value = n.length != 1, ie.value = !n.length;
111
- }
112
- function Me(n, e) {
113
- e ? y.value.push(n[`${t.value}id`]) : y.value = y.value.filter((u) => u != n[`${t.value}id`]);
114
- }
115
- function me(n) {
116
- te();
117
- const e = n[`${t.value}id`] || Q.value;
118
- C.value.detail(e).then((u) => {
119
- Se(u[`${t.value}_json`]) || (u[`${t.value}_json`] = JSON.stringify(u[`${t.value}_json`])), p.value = u, R.value = !0, W.value = "修改角色";
120
- });
121
- }
122
- function Je() {
123
- Z.value.validate((n) => {
124
- n && (p.value[`${t.value}id`] != null ? C.value.edit(fe()).then((e) => {
125
- j.msgSuccess("修改成功"), R.value = !1, le(e[`${t.value}_parentid`]).then((u) => {
126
- S.value = O(u), y.value.includes(e[`${t.value}_parentid`]) && (y.value = y.value.filter((r) => r != e[`${t.value}_parentid`])), y.value.includes(e[`${t.value}_parentid`]) || y.value.push(e[`${t.value}_parentid`]), setTimeout(() => {
127
- h.value = !h.value;
128
- }, 0);
129
- });
130
- }) : C.value.add(fe()).then((e) => {
131
- j.msgSuccess("新增成功"), R.value = !1, k.value ? le(e[`${t.value}_parentid`]).then((u) => {
132
- S.value = O(u), setTimeout(() => {
133
- h.value = !h.value;
134
- }, 0);
135
- }) : P();
136
- }));
137
- });
138
- }
139
- function fe() {
140
- let n = JSON.parse(JSON.stringify(p.value));
141
- return Se(n[`${t.value}_json`]) || (n[`${t.value}_json`] = yl(n[`${t.value}_json`])), n;
142
- }
143
- function _e(n) {
144
- const e = n[`${t.value}id`] ? [n[`${t.value}id`]] : Q.value;
145
- j.confirm('是否确认删除角色id为"' + e + '"的数据项?').then(function() {
146
- return C.value.delete(e);
147
- }).then(() => {
148
- P(), k.value && (S.value = S.value.filter((u) => !e.includes(u[`${t.value}id`])), y.value = y.value.filter((u) => !e.includes(u)), h.value = !h.value), j.msgSuccess("删除成功");
149
- }).catch(() => {
150
- });
151
- }
152
- function qe() {
153
- C.value.fresh().then(() => {
154
- j.msgSuccess("刷新成功");
155
- });
156
- }
157
- function Oe(n) {
158
- q.value = n[`${t.value}id`], ge(n[`${t.value}id`]), se.value = n[`${t.value}_name`] + "权限管理", T.value = !0;
159
- }
160
- function ge(n) {
161
- il({ [`${t.value}id`]: n, appsid: N.value }).then((e) => {
162
- U.value = e.code == "208" ? [] : ke(
163
- z(e).map((u) => ({ ...u, checkList: u.sysRightList ? u.sysRightList.filter((r) => r.checked).map((r) => r.rightid) : void 0 })),
164
- "menuid",
165
- "menu_parentid"
166
- ), V.value = z(U.value).filter((u) => u.checked).map((u) => ({ menuid: u.id })), console.log("%c editParams.value", " color:violet;font-size:20px", V.value = z(U.value).filter((u) => u.checked), V.value), Rl().then(() => {
167
- z(U.value).filter((u) => u.checked).forEach((u) => {
168
- ee.value?.toggleRowSelection(u, !0);
169
- });
170
- });
171
- });
172
- }
173
- const Be = s([]);
174
- function Ye(n, e) {
175
- let u = !!n.map((r) => r.menuid).includes(e.menuid);
176
- V.value = V.value.filter((r) => n.map((ne) => ne.menuid).includes(r.menuid)), u ? (V.value.push({ menuid: e.menuid }), e.sysRightList?.forEach((r) => {
177
- e.checkList.push(r.rightid);
178
- })) : e.checkList = [];
179
- }
180
- function Ae(n, e) {
181
- console.log("%c checkGroupChange", " color:chartreuse;font-size:20px", n), n.length > 0 && ee.value?.toggleRowSelection(e, !0);
182
- }
183
- function Fe() {
184
- cl({ appsid: N.value, roleid: q.value, menuright: V.value }).then((n) => {
185
- j.msgSuccess("权限更新成功");
186
- });
187
- }
188
- return De(), ce(), (n, e) => {
189
- const u = v("el-input"), r = v("el-form-item"), ne = v("el-option"), Ge = v("el-select"), _ = v("el-button"), be = v("el-form"), B = v("el-col"), He = sl, Ke = v("el-row"), g = v("el-table-column"), Qe = dl, ye = v("el-table"), Ie = rl, We = v("el-tree-select"), Xe = v("el-input-number"), Ze = v("el-radio"), el = v("el-radio-group"), $e = v("el-dialog"), ll = v("el-tab-pane"), tl = v("el-tabs"), al = v("el-checkbox"), nl = v("el-checkbox-group"), x = Ce("hasPermi"), he = Ce("loading");
190
- return d(), M("div", wl, [
191
- b(i(be, {
192
- model: l(m),
193
- ref_key: "queryRef",
194
- ref: re,
195
- inline: !0
196
- }, {
197
- default: o(() => [
198
- i(r, {
199
- label: "",
200
- prop: "selectinfo"
201
- }, {
202
- default: o(() => [
203
- i(u, {
204
- modelValue: l(m).selectinfo,
205
- "onUpdate:modelValue": e[0] || (e[0] = (a) => l(m).selectinfo = a),
206
- placeholder: "请输入搜索内容",
207
- clearable: "",
208
- style: { width: "240px" },
209
- onKeyup: Cl(ae, ["enter"])
210
- }, null, 8, ["modelValue"])
211
- ]),
212
- _: 1
213
- }),
214
- i(r, {
215
- label: "状态",
216
- prop: `${l(t)}_state`
217
- }, {
218
- default: o(() => [
219
- i(Ge, {
220
- modelValue: l(m)[`${l(t)}_state`],
221
- "onUpdate:modelValue": e[1] || (e[1] = (a) => l(m)[`${l(t)}_state`] = a),
222
- placeholder: "请选择状态",
223
- clearable: "",
224
- style: { width: "200px" }
225
- }, {
226
- default: o(() => [
227
- (d(!0), M(Y, null, A(l(H), (a) => (d(), c(ne, {
228
- key: a.value,
229
- label: a.label,
230
- value: a.value
231
- }, null, 8, ["label", "value"]))), 128))
232
- ]),
233
- _: 1
234
- }, 8, ["modelValue"])
235
- ]),
236
- _: 1
237
- }, 8, ["prop"]),
238
- i(r, null, {
239
- default: o(() => [
240
- i(_, {
241
- type: "primary",
242
- icon: "Search",
243
- onClick: ae
244
- }, {
245
- default: o(() => [...e[16] || (e[16] = [
246
- f("搜索", -1)
247
- ])]),
248
- _: 1
249
- }),
250
- i(_, {
251
- icon: "Refresh",
252
- onClick: Te
253
- }, {
254
- default: o(() => [...e[17] || (e[17] = [
255
- f("重置", -1)
256
- ])]),
257
- _: 1
258
- })
259
- ]),
260
- _: 1
261
- })
262
- ]),
263
- _: 1
264
- }, 8, ["model"]), [
265
- [xe, l(J)]
266
- ]),
267
- i(Ke, {
268
- gutter: 10,
269
- class: "mb8"
270
- }, {
271
- default: o(() => [
272
- i(B, { span: 1.5 }, {
273
- default: o(() => [
274
- b((d(), c(_, {
275
- type: "primary",
276
- plain: "",
277
- icon: "Plus",
278
- onClick: ve
279
- }, {
280
- default: o(() => [...e[18] || (e[18] = [
281
- f("新增", -1)
282
- ])]),
283
- _: 1
284
- })), [
285
- [x, ["SysRoleAdd"]]
286
- ])
287
- ]),
288
- _: 1
289
- }),
290
- i(B, { span: 1.5 }, {
291
- default: o(() => [
292
- b((d(), c(_, {
293
- type: "success",
294
- plain: "",
295
- icon: "Edit",
296
- disabled: l(ue),
297
- onClick: me
298
- }, {
299
- default: o(() => [...e[19] || (e[19] = [
300
- f("修改", -1)
301
- ])]),
302
- _: 1
303
- }, 8, ["disabled"])), [
304
- [x, ["SysRoleEdit"]]
305
- ])
306
- ]),
307
- _: 1
308
- }),
309
- i(B, { span: 1.5 }, {
310
- default: o(() => [
311
- b((d(), c(_, {
312
- type: "danger",
313
- plain: "",
314
- icon: "Delete",
315
- disabled: l(ie),
316
- onClick: _e
317
- }, {
318
- default: o(() => [...e[20] || (e[20] = [
319
- f("删除", -1)
320
- ])]),
321
- _: 1
322
- }, 8, ["disabled"])), [
323
- [x, ["SysRoleDelete"]]
324
- ])
325
- ]),
326
- _: 1
327
- }),
328
- i(B, { span: 1.5 }, {
329
- default: o(() => [
330
- b((d(), c(_, {
331
- type: "danger",
332
- plain: "",
333
- icon: "Refresh",
334
- onClick: qe
335
- }, {
336
- default: o(() => [...e[21] || (e[21] = [
337
- f("刷新缓存", -1)
338
- ])]),
339
- _: 1
340
- })), [
341
- [x, ["SysRoleRefresh"]]
342
- ])
343
- ]),
344
- _: 1
345
- }),
346
- i(He, {
347
- showSearch: l(J),
348
- "onUpdate:showSearch": e[2] || (e[2] = (a) => F(J) ? J.value = a : null),
349
- onQueryTable: P,
350
- columns: l(E)
351
- }, null, 8, ["showSearch", "columns"])
352
- ]),
353
- _: 1
354
- }),
355
- b((d(), c(ye, {
356
- key: l(h),
357
- ref_key: "treetable",
358
- ref: Ue,
359
- "row-key": (a) => JSON.stringify(a[`${l(t)}id`]),
360
- data: l(D) ? l(K) : l(pe),
361
- "tree-props": {
362
- children: "children",
363
- hasChildren: `${l(t)}_isexistschild`,
364
- checkStrictly: !0
365
- },
366
- onExpandChange: Me,
367
- onSelectionChange: ze,
368
- lazy: !!(l(k) && !l(D)),
369
- load: Pe,
370
- border: ""
371
- }, {
372
- default: o(() => [
373
- i(g, {
374
- type: "selection",
375
- width: "55",
376
- align: "center"
377
- }),
378
- l(E)[0].visible ? (d(), c(g, {
379
- key: 0,
380
- label: "角色名称",
381
- align: l(k) ? "left" : "center",
382
- prop: `${l(t)}_name`
383
- }, null, 8, ["align", "prop"])) : w("", !0),
384
- l(E)[1].visible ? (d(), c(g, {
385
- key: 1,
386
- label: "角色编号",
387
- align: "center",
388
- prop: `${l(t)}_no`
389
- }, null, 8, ["prop"])) : w("", !0),
390
- l(E)[2].visible ? (d(), c(g, {
391
- key: 2,
392
- label: "状态",
393
- align: "center"
394
- }, {
395
- default: o((a) => [
396
- i(Qe, {
397
- options: l(H),
398
- value: a.row[`${l(t)}_state`]
399
- }, null, 8, ["options", "value"])
400
- ]),
401
- _: 1
402
- })) : w("", !0),
403
- l(E)[3].visible ? (d(), c(g, {
404
- key: 3,
405
- label: "数据Json",
406
- align: "center"
407
- }, {
408
- default: o(({ row: a }) => [
409
- G("span", null, oe(JSON.stringify(a[`${l(t)}_json`])), 1)
410
- ]),
411
- _: 1
412
- })) : w("", !0),
413
- l(E)[4].visible ? (d(), c(g, {
414
- key: 4,
415
- label: "角色排序",
416
- align: "center",
417
- prop: `${l(t)}_sort`
418
- }, null, 8, ["prop"])) : w("", !0),
419
- l(E)[5].visible ? (d(), c(g, {
420
- key: 5,
421
- label: "备注",
422
- align: "center",
423
- "show-overflow-tooltip": !0,
424
- prop: `${l(t)}_note`
425
- }, null, 8, ["prop"])) : w("", !0),
426
- i(g, {
427
- label: "创建时间",
428
- align: "center",
429
- width: "180"
430
- }, {
431
- default: o((a) => [
432
- G("span", null, oe(l(we)(a.row[`${l(t)}_create_time`]).format("YYYY-MM-DD HH:mm:ss")), 1)
433
- ]),
434
- _: 1
435
- }),
436
- i(g, {
437
- label: "操作",
438
- align: "center",
439
- width: l(k) ? 320 : 160,
440
- "class-name": "small-padding fixed-width"
441
- }, {
442
- default: o((a) => [
443
- l(k) ? b((d(), c(_, {
444
- key: 0,
445
- link: "",
446
- type: "primary",
447
- icon: "Plus",
448
- onClick: ($) => ve(a.row, a.store)
449
- }, {
450
- default: o(() => [...e[22] || (e[22] = [
451
- f("新增下级", -1)
452
- ])]),
453
- _: 2
454
- }, 1032, ["onClick"])), [
455
- [x, ["SysRoleAdd"]]
456
- ]) : w("", !0),
457
- b((d(), c(_, {
458
- link: "",
459
- type: "primary",
460
- icon: "Setting",
461
- onClick: ($) => Oe(a.row, a.store)
462
- }, {
463
- default: o(() => [...e[23] || (e[23] = [
464
- f("权限管理", -1)
465
- ])]),
466
- _: 2
467
- }, 1032, ["onClick"])), [
468
- [x, ["SysRoleSetting"]]
469
- ]),
470
- b((d(), c(_, {
471
- link: "",
472
- type: "primary",
473
- icon: "Edit",
474
- onClick: ($) => me(a.row)
475
- }, {
476
- default: o(() => [...e[24] || (e[24] = [
477
- f("修改", -1)
478
- ])]),
479
- _: 2
480
- }, 1032, ["onClick"])), [
481
- [x, ["SysRoleEdit"]]
482
- ]),
483
- b((d(), c(_, {
484
- link: "",
485
- type: "primary",
486
- icon: "Delete",
487
- onClick: ($) => _e(a.row)
488
- }, {
489
- default: o(() => [...e[25] || (e[25] = [
490
- f("删除", -1)
491
- ])]),
492
- _: 2
493
- }, 1032, ["onClick"])), [
494
- [x, ["SysRoleDelete"]]
495
- ])
496
- ]),
497
- _: 1
498
- }, 8, ["width"])
499
- ]),
500
- _: 1
501
- }, 8, ["row-key", "data", "tree-props", "lazy"])), [
502
- [he, l(L)]
503
- ]),
504
- b(i(Ie, {
505
- total: l(I),
506
- page: l(m).pageNo,
507
- "onUpdate:page": e[3] || (e[3] = (a) => l(m).pageNo = a),
508
- limit: l(m).pageSize,
509
- "onUpdate:limit": e[4] || (e[4] = (a) => l(m).pageSize = a),
510
- onPagination: P
511
- }, null, 8, ["total", "page", "limit"]), [
512
- [xe, l(I) > 0 && l(D)]
513
- ]),
514
- i($e, {
515
- title: l(W),
516
- modelValue: l(R),
517
- "onUpdate:modelValue": e[12] || (e[12] = (a) => F(R) ? R.value = a : null),
518
- width: "500px",
519
- "align-center": "",
520
- "append-to-body": "",
521
- draggable: ""
522
- }, {
523
- footer: o(() => [
524
- G("div", Ul, [
525
- i(_, {
526
- type: "primary",
527
- onClick: Je
528
- }, {
529
- default: o(() => [...e[26] || (e[26] = [
530
- f("确 定", -1)
531
- ])]),
532
- _: 1
533
- }),
534
- i(_, { onClick: je }, {
535
- default: o(() => [...e[27] || (e[27] = [
536
- f("取 消", -1)
537
- ])]),
538
- _: 1
539
- })
540
- ])
541
- ]),
542
- default: o(() => [
543
- i(be, {
544
- ref_key: "dataRef",
545
- ref: Z,
546
- model: l(p),
547
- rules: l(de),
548
- "label-width": "80px"
549
- }, {
550
- default: o(() => [
551
- l(k) ? (d(), c(r, {
552
- key: 0,
553
- label: "父级数据",
554
- prop: `${l(t)}_parentid`
555
- }, {
556
- default: o(() => [
557
- i(We, {
558
- modelValue: l(p)[`${l(t)}_parentid`],
559
- "onUpdate:modelValue": e[5] || (e[5] = (a) => l(p)[`${l(t)}_parentid`] = a),
560
- data: l(Ne),
561
- props: {
562
- value: `${l(t)}id`,
563
- label: `${l(t)}_name`,
564
- children: "children"
565
- },
566
- "value-ey": `${l(t)}id`,
567
- placeholder: "选择上级数据",
568
- "check-strictly": ""
569
- }, null, 8, ["modelValue", "data", "props", "value-ey"])
570
- ]),
571
- _: 1
572
- }, 8, ["prop"])) : w("", !0),
573
- i(r, {
574
- label: "角色名称",
575
- prop: `${l(t)}_name`
576
- }, {
577
- default: o(() => [
578
- i(u, {
579
- modelValue: l(p)[`${l(t)}_name`],
580
- "onUpdate:modelValue": e[6] || (e[6] = (a) => l(p)[`${l(t)}_name`] = a),
581
- placeholder: "请输入数据名称"
582
- }, null, 8, ["modelValue"])
583
- ]),
584
- _: 1
585
- }, 8, ["prop"]),
586
- i(r, {
587
- label: "角色编号",
588
- prop: `${l(t)}_no`
589
- }, {
590
- default: o(() => [
591
- i(u, {
592
- modelValue: l(p)[`${l(t)}_no`],
593
- "onUpdate:modelValue": e[7] || (e[7] = (a) => l(p)[`${l(t)}_no`] = a),
594
- placeholder: "请输入数据键值"
595
- }, null, 8, ["modelValue"])
596
- ]),
597
- _: 1
598
- }, 8, ["prop"]),
599
- i(r, { label: "数据Json" }, {
600
- default: o(() => [
601
- i(u, {
602
- modelValue: l(p)[`${l(t)}_json`],
603
- "onUpdate:modelValue": e[8] || (e[8] = (a) => l(p)[`${l(t)}_json`] = a),
604
- placeholder: "请输入其他属性"
605
- }, null, 8, ["modelValue"])
606
- ]),
607
- _: 1
608
- }),
609
- i(r, { label: "显示排序" }, {
610
- default: o(() => [
611
- i(Xe, {
612
- modelValue: l(p)[`${l(t)}_sort`],
613
- "onUpdate:modelValue": e[9] || (e[9] = (a) => l(p)[`${l(t)}_sort`] = a),
614
- "controls-position": "right",
615
- min: 0
616
- }, null, 8, ["modelValue"])
617
- ]),
618
- _: 1
619
- }),
620
- i(r, { label: "状态" }, {
621
- default: o(() => [
622
- i(el, {
623
- modelValue: l(p)[`${l(t)}_state`],
624
- "onUpdate:modelValue": e[10] || (e[10] = (a) => l(p)[`${l(t)}_state`] = a)
625
- }, {
626
- default: o(() => [
627
- (d(!0), M(Y, null, A(l(H), (a) => (d(), c(Ze, {
628
- key: a.value,
629
- value: a.value
630
- }, {
631
- default: o(() => [
632
- f(oe(a.label), 1)
633
- ]),
634
- _: 2
635
- }, 1032, ["value"]))), 128))
636
- ]),
637
- _: 1
638
- }, 8, ["modelValue"])
639
- ]),
640
- _: 1
641
- }),
642
- i(r, { label: "备注" }, {
643
- default: o(() => [
644
- i(u, {
645
- modelValue: l(p)[`${l(t)}_note`],
646
- "onUpdate:modelValue": e[11] || (e[11] = (a) => l(p)[`${l(t)}_note`] = a),
647
- type: "textarea",
648
- placeholder: "请输入内容"
649
- }, null, 8, ["modelValue"])
650
- ]),
651
- _: 1
652
- })
653
- ]),
654
- _: 1
655
- }, 8, ["model", "rules"])
656
- ]),
657
- _: 1
658
- }, 8, ["title", "modelValue"]),
659
- i($e, {
660
- title: l(se),
661
- modelValue: l(T),
662
- "onUpdate:modelValue": e[15] || (e[15] = (a) => F(T) ? T.value = a : null),
663
- width: "800px",
664
- "append-to-body": "",
665
- draggable: "",
666
- "destroy-on-close": !0
667
- }, {
668
- footer: o(() => [
669
- G("div", Ll, [
670
- i(_, {
671
- type: "primary",
672
- onClick: Fe
673
- }, {
674
- default: o(() => [...e[28] || (e[28] = [
675
- f("确 定", -1)
676
- ])]),
677
- _: 1
678
- }),
679
- i(_, {
680
- onClick: e[14] || (e[14] = (a) => T.value = !1)
681
- }, {
682
- default: o(() => [...e[29] || (e[29] = [
683
- f("取 消", -1)
684
- ])]),
685
- _: 1
686
- })
687
- ])
688
- ]),
689
- default: o(() => [
690
- i(tl, {
691
- modelValue: l(N),
692
- "onUpdate:modelValue": e[13] || (e[13] = (a) => F(N) ? N.value = a : null),
693
- class: "demo-tabs"
694
- }, {
695
- default: o(() => [
696
- (d(!0), M(Y, null, A(l(X), (a) => (d(), c(ll, {
697
- key: a.appsid,
698
- label: a.apps_name,
699
- name: a.appsid
700
- }, null, 8, ["label", "name"]))), 128))
701
- ]),
702
- _: 1
703
- }, 8, ["modelValue"]),
704
- b((d(), c(ye, {
705
- ref_key: "multipleTableRef",
706
- ref: ee,
707
- class: "roleselect",
708
- border: "",
709
- onSelect: Ye,
710
- data: l(U),
711
- "row-key": "menuid",
712
- "default-expand-all": !0,
713
- "tree-props": { children: "children", hasChildren: "menu_isexistschild", checkStrictly: !0 }
714
- }, {
715
- default: o(() => [
716
- i(g, {
717
- type: "selection",
718
- width: "55",
719
- align: "center"
720
- }),
721
- i(g, {
722
- prop: "menu_name",
723
- label: "菜单名称"
724
- }),
725
- i(g, {
726
- prop: "sysRightList",
727
- align: "center",
728
- label: "权限"
729
- }, {
730
- default: o(({ row: a }) => [
731
- i(nl, {
732
- onChange: ($) => Ae($, a),
733
- modelValue: a.checkList,
734
- "onUpdate:modelValue": ($) => a.checkList = $
735
- }, {
736
- default: o(() => [
737
- (d(!0), M(Y, null, A(a.sysRightList, ($) => (d(), c(al, {
738
- label: $.right_name,
739
- value: $.rightid
740
- }, null, 8, ["label", "value"]))), 256))
741
- ]),
742
- _: 2
743
- }, 1032, ["onChange", "modelValue", "onUpdate:modelValue"])
744
- ]),
745
- _: 1
746
- })
747
- ]),
748
- _: 1
749
- }, 8, ["data"])), [
750
- [he, l(L)]
751
- ])
752
- ]),
753
- _: 1
754
- }, 8, ["title", "modelValue"])
755
- ]);
756
- };
757
- }
758
- };
759
- var Tl = /* @__PURE__ */ ol(Nl, [["__scopeId", "data-v-db4f345b"]]);
760
- export {
761
- Tl as default
762
- };