@syzh-syzh/base 0.0.1

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 (202) hide show
  1. package/dist/assets/icons/svg/404.svg +1 -0
  2. package/dist/assets/icons/svg/bug.svg +1 -0
  3. package/dist/assets/icons/svg/build.svg +1 -0
  4. package/dist/assets/icons/svg/button.svg +1 -0
  5. package/dist/assets/icons/svg/cascader.svg +1 -0
  6. package/dist/assets/icons/svg/chart.svg +1 -0
  7. package/dist/assets/icons/svg/checkbox.svg +1 -0
  8. package/dist/assets/icons/svg/clipboard.svg +1 -0
  9. package/dist/assets/icons/svg/code.svg +1 -0
  10. package/dist/assets/icons/svg/color.svg +1 -0
  11. package/dist/assets/icons/svg/component.svg +1 -0
  12. package/dist/assets/icons/svg/dashboard.svg +1 -0
  13. package/dist/assets/icons/svg/date-range.svg +1 -0
  14. package/dist/assets/icons/svg/date.svg +1 -0
  15. package/dist/assets/icons/svg/dict.svg +1 -0
  16. package/dist/assets/icons/svg/documentation.svg +1 -0
  17. package/dist/assets/icons/svg/download.svg +1 -0
  18. package/dist/assets/icons/svg/drag.svg +1 -0
  19. package/dist/assets/icons/svg/druid.svg +1 -0
  20. package/dist/assets/icons/svg/edit.svg +1 -0
  21. package/dist/assets/icons/svg/education.svg +1 -0
  22. package/dist/assets/icons/svg/email.svg +1 -0
  23. package/dist/assets/icons/svg/enter.svg +1 -0
  24. package/dist/assets/icons/svg/example.svg +1 -0
  25. package/dist/assets/icons/svg/excel.svg +1 -0
  26. package/dist/assets/icons/svg/exit-fullscreen.svg +1 -0
  27. package/dist/assets/icons/svg/eye-open.svg +1 -0
  28. package/dist/assets/icons/svg/eye.svg +1 -0
  29. package/dist/assets/icons/svg/form.svg +1 -0
  30. package/dist/assets/icons/svg/fullscreen.svg +1 -0
  31. package/dist/assets/icons/svg/github.svg +1 -0
  32. package/dist/assets/icons/svg/guide.svg +1 -0
  33. package/dist/assets/icons/svg/icon.svg +1 -0
  34. package/dist/assets/icons/svg/input.svg +1 -0
  35. package/dist/assets/icons/svg/international.svg +1 -0
  36. package/dist/assets/icons/svg/job.svg +1 -0
  37. package/dist/assets/icons/svg/language.svg +1 -0
  38. package/dist/assets/icons/svg/link.svg +1 -0
  39. package/dist/assets/icons/svg/list.svg +1 -0
  40. package/dist/assets/icons/svg/lock.svg +1 -0
  41. package/dist/assets/icons/svg/log.svg +1 -0
  42. package/dist/assets/icons/svg/logininfor.svg +1 -0
  43. package/dist/assets/icons/svg/message.svg +1 -0
  44. package/dist/assets/icons/svg/money.svg +1 -0
  45. package/dist/assets/icons/svg/monitor.svg +2 -0
  46. package/dist/assets/icons/svg/moon.svg +1 -0
  47. package/dist/assets/icons/svg/more-up.svg +1 -0
  48. package/dist/assets/icons/svg/nested.svg +1 -0
  49. package/dist/assets/icons/svg/number.svg +1 -0
  50. package/dist/assets/icons/svg/online.svg +1 -0
  51. package/dist/assets/icons/svg/password.svg +1 -0
  52. package/dist/assets/icons/svg/pdf.svg +1 -0
  53. package/dist/assets/icons/svg/people.svg +1 -0
  54. package/dist/assets/icons/svg/peoples.svg +1 -0
  55. package/dist/assets/icons/svg/phone.svg +1 -0
  56. package/dist/assets/icons/svg/post.svg +1 -0
  57. package/dist/assets/icons/svg/qq.svg +1 -0
  58. package/dist/assets/icons/svg/question.svg +1 -0
  59. package/dist/assets/icons/svg/radio.svg +1 -0
  60. package/dist/assets/icons/svg/rate.svg +1 -0
  61. package/dist/assets/icons/svg/redis-list.svg +2 -0
  62. package/dist/assets/icons/svg/redis.svg +1 -0
  63. package/dist/assets/icons/svg/row.svg +1 -0
  64. package/dist/assets/icons/svg/search.svg +1 -0
  65. package/dist/assets/icons/svg/select.svg +1 -0
  66. package/dist/assets/icons/svg/server.svg +1 -0
  67. package/dist/assets/icons/svg/shopping.svg +1 -0
  68. package/dist/assets/icons/svg/size.svg +1 -0
  69. package/dist/assets/icons/svg/skill.svg +1 -0
  70. package/dist/assets/icons/svg/slider.svg +1 -0
  71. package/dist/assets/icons/svg/star.svg +1 -0
  72. package/dist/assets/icons/svg/sunny.svg +1 -0
  73. package/dist/assets/icons/svg/swagger.svg +1 -0
  74. package/dist/assets/icons/svg/switch.svg +1 -0
  75. package/dist/assets/icons/svg/system.svg +2 -0
  76. package/dist/assets/icons/svg/tab.svg +1 -0
  77. package/dist/assets/icons/svg/table.svg +1 -0
  78. package/dist/assets/icons/svg/textarea.svg +1 -0
  79. package/dist/assets/icons/svg/theme.svg +1 -0
  80. package/dist/assets/icons/svg/time-range.svg +1 -0
  81. package/dist/assets/icons/svg/time.svg +1 -0
  82. package/dist/assets/icons/svg/tool.svg +1 -0
  83. package/dist/assets/icons/svg/tree-table.svg +1 -0
  84. package/dist/assets/icons/svg/tree.svg +1 -0
  85. package/dist/assets/icons/svg/upload.svg +1 -0
  86. package/dist/assets/icons/svg/user.svg +1 -0
  87. package/dist/assets/icons/svg/validCode.svg +1 -0
  88. package/dist/assets/icons/svg/wechat.svg +1 -0
  89. package/dist/assets/icons/svg/zip.svg +1 -0
  90. package/dist/chunks/401-CL4u0r_c.js +66 -0
  91. package/dist/chunks/404-kPZw9FCc.js +35 -0
  92. package/dist/chunks/daibanevent-C8JNsrlI.js +65 -0
  93. package/dist/chunks/dayjs.min-B97rgn_L.js +283 -0
  94. package/dist/chunks/dict-C49Ogd-n.js +57009 -0
  95. package/dist/chunks/eventfb-BTFXb03d.js +51 -0
  96. package/dist/chunks/eventsource--BhatYsm.js +91 -0
  97. package/dist/chunks/gaopinevent-B-5K3OFp.js +132 -0
  98. package/dist/chunks/index-BJS7Ejqq.js +768 -0
  99. package/dist/chunks/index-CLnO5o1_.js +1446 -0
  100. package/dist/chunks/index-D8_MkquB.js +762 -0
  101. package/dist/chunks/index-DCeOtd-T.js +651 -0
  102. package/dist/chunks/index-DOll2JRT.js +1106 -0
  103. package/dist/chunks/index-DWhfjjo6.js +31 -0
  104. package/dist/chunks/index-VyUXzwqh.js +426 -0
  105. package/dist/chunks/index-gKvU35v8.js +1617 -0
  106. package/dist/chunks/lazyTree-MjyLwMcY.js +89 -0
  107. package/dist/chunks/login-pu41rAd1.js +173 -0
  108. package/dist/chunks/lv-B7X90WVW.js +5 -0
  109. package/dist/chunks/numberbox-tQsb4wgY.js +29 -0
  110. package/dist/chunks/shangbaoevent-Veamh7z3.js +451 -0
  111. package/dist/chunks/shangbaoeventfl-BJoXH_B5.js +259 -0
  112. package/dist/chunks/sysright-manage-BmiSkG44.js +474 -0
  113. package/dist/chunks/title-NwJCTLeC.js +25 -0
  114. package/dist/chunks/weather-ptB2uA3s.js +65 -0
  115. package/dist/config/dict.json +189 -0
  116. package/dist/config/sys-config.json +40 -0
  117. package/dist/images/weather_icon/0@1x.png +0 -0
  118. package/dist/images/weather_icon/0@2x.png +0 -0
  119. package/dist/images/weather_icon/10@1x.png +0 -0
  120. package/dist/images/weather_icon/10@2x.png +0 -0
  121. package/dist/images/weather_icon/11@1x.png +0 -0
  122. package/dist/images/weather_icon/11@2x.png +0 -0
  123. package/dist/images/weather_icon/12@1x.png +0 -0
  124. package/dist/images/weather_icon/12@2x.png +0 -0
  125. package/dist/images/weather_icon/13@1x.png +0 -0
  126. package/dist/images/weather_icon/13@2x.png +0 -0
  127. package/dist/images/weather_icon/14@1x.png +0 -0
  128. package/dist/images/weather_icon/14@2x.png +0 -0
  129. package/dist/images/weather_icon/15@1x.png +0 -0
  130. package/dist/images/weather_icon/15@2x.png +0 -0
  131. package/dist/images/weather_icon/16@1x.png +0 -0
  132. package/dist/images/weather_icon/16@2x.png +0 -0
  133. package/dist/images/weather_icon/17@1x.png +0 -0
  134. package/dist/images/weather_icon/17@2x.png +0 -0
  135. package/dist/images/weather_icon/18@1x.png +0 -0
  136. package/dist/images/weather_icon/18@2x.png +0 -0
  137. package/dist/images/weather_icon/19@1x.png +0 -0
  138. package/dist/images/weather_icon/19@2x.png +0 -0
  139. package/dist/images/weather_icon/1@1x.png +0 -0
  140. package/dist/images/weather_icon/1@2x.png +0 -0
  141. package/dist/images/weather_icon/20@1x.png +0 -0
  142. package/dist/images/weather_icon/20@2x.png +0 -0
  143. package/dist/images/weather_icon/21@1x.png +0 -0
  144. package/dist/images/weather_icon/21@2x.png +0 -0
  145. package/dist/images/weather_icon/22@1x.png +0 -0
  146. package/dist/images/weather_icon/22@2x.png +0 -0
  147. package/dist/images/weather_icon/23@1x.png +0 -0
  148. package/dist/images/weather_icon/23@2x.png +0 -0
  149. package/dist/images/weather_icon/24@1x.png +0 -0
  150. package/dist/images/weather_icon/24@2x.png +0 -0
  151. package/dist/images/weather_icon/25@1x.png +0 -0
  152. package/dist/images/weather_icon/25@2x.png +0 -0
  153. package/dist/images/weather_icon/26@1x.png +0 -0
  154. package/dist/images/weather_icon/26@2x.png +0 -0
  155. package/dist/images/weather_icon/27@1x.png +0 -0
  156. package/dist/images/weather_icon/27@2x.png +0 -0
  157. package/dist/images/weather_icon/28@1x.png +0 -0
  158. package/dist/images/weather_icon/28@2x.png +0 -0
  159. package/dist/images/weather_icon/29@1x.png +0 -0
  160. package/dist/images/weather_icon/29@2x.png +0 -0
  161. package/dist/images/weather_icon/2@1x.png +0 -0
  162. package/dist/images/weather_icon/2@2x.png +0 -0
  163. package/dist/images/weather_icon/30@1x.png +0 -0
  164. package/dist/images/weather_icon/30@2x.png +0 -0
  165. package/dist/images/weather_icon/31@1x.png +0 -0
  166. package/dist/images/weather_icon/31@2x.png +0 -0
  167. package/dist/images/weather_icon/32@1x.png +0 -0
  168. package/dist/images/weather_icon/32@2x.png +0 -0
  169. package/dist/images/weather_icon/33@1x.png +0 -0
  170. package/dist/images/weather_icon/33@2x.png +0 -0
  171. package/dist/images/weather_icon/34@1x.png +0 -0
  172. package/dist/images/weather_icon/34@2x.png +0 -0
  173. package/dist/images/weather_icon/35@1x.png +0 -0
  174. package/dist/images/weather_icon/35@2x.png +0 -0
  175. package/dist/images/weather_icon/36@1x.png +0 -0
  176. package/dist/images/weather_icon/36@2x.png +0 -0
  177. package/dist/images/weather_icon/37@1x.png +0 -0
  178. package/dist/images/weather_icon/37@2x.png +0 -0
  179. package/dist/images/weather_icon/38@1x.png +0 -0
  180. package/dist/images/weather_icon/38@2x.png +0 -0
  181. package/dist/images/weather_icon/3@1x.png +0 -0
  182. package/dist/images/weather_icon/3@2x.png +0 -0
  183. package/dist/images/weather_icon/4@1x.png +0 -0
  184. package/dist/images/weather_icon/4@2x.png +0 -0
  185. package/dist/images/weather_icon/5@1x.png +0 -0
  186. package/dist/images/weather_icon/5@2x.png +0 -0
  187. package/dist/images/weather_icon/6@1x.png +0 -0
  188. package/dist/images/weather_icon/6@2x.png +0 -0
  189. package/dist/images/weather_icon/7@1x.png +0 -0
  190. package/dist/images/weather_icon/7@2x.png +0 -0
  191. package/dist/images/weather_icon/8@1x.png +0 -0
  192. package/dist/images/weather_icon/8@2x.png +0 -0
  193. package/dist/images/weather_icon/99@1x.png +0 -0
  194. package/dist/images/weather_icon/99@2x.png +0 -0
  195. package/dist/images/weather_icon/9@1x.png +0 -0
  196. package/dist/images/weather_icon/9@2x.png +0 -0
  197. package/dist/resolver.js +24 -0
  198. package/dist/sybase.css +1 -0
  199. package/dist/sybase.js +2748 -0
  200. package/dist/views.js +92 -0
  201. package/dist/vite.svg +1 -0
  202. package/package.json +93 -0
@@ -0,0 +1,1106 @@
1
+ import { ref as p, reactive as re, computed as me, onMounted as lt, resolveComponent as _, createElementBlock as E, openBlock as s, createVNode as o, createElementVNode as S, withCtx as n, unref as e, createTextVNode as m, Fragment as X, renderList as Z, toDisplayString as G, shallowRef as at, toRefs as nt, resolveDirective as xe, withDirectives as D, createBlock as y, withKeys as ot, vShow as Ae, isRef as se, createCommentVNode as F } from "vue";
2
+ import { _ as dt, m as q, a5 as it, H as ut, ap as st, aO as rt, an as pt, ao as ct, aP as ft, aQ as vt, aR as yt, aS as Re, aT as mt, aU as _t, aV as gt, aW as bt, aX as ht, W as Pe, aY as $t, aZ as kt, a_ as St, a$ as wt, b0 as Vt, b1 as Ct, b2 as Dt, b3 as xt, O as At, Y as Rt } from "./dict-C49Ogd-n.js";
3
+ import { d as Pt } from "./dayjs.min-B97rgn_L.js";
4
+ const Kt = { class: "lt-wrap" }, Ot = { class: "lt-body" }, Nt = { class: "lt-buttons" }, Ut = { class: "lt-header" }, jt = { class: "lt-muted" }, zt = { class: "lt-body" }, Tt = { class: "lt-item-label" }, Lt = {
5
+ __name: "index",
6
+ props: {
7
+ // 接口方法对象
8
+ apis: { type: Object, required: !0 },
9
+ // 字段映射
10
+ keys: {
11
+ type: Object,
12
+ default: () => ({
13
+ idKey: "id",
14
+ nameKey: "name",
15
+ parentKey: "parentid",
16
+ hasChildKey: "isexistschild"
17
+ })
18
+ },
19
+ // 根层参数
20
+ rootParams: { type: Object, required: !0 },
21
+ // 关联相关接口参数
22
+ interfaceParams: { type: Object, required: !0 }
23
+ },
24
+ setup(_e) {
25
+ const c = _e, J = p(), Y = p([]), w = re(/* @__PURE__ */ new Map()), V = p(/* @__PURE__ */ new Set()), g = p(/* @__PURE__ */ new Set()), R = p([]), U = me(() => {
26
+ const u = [];
27
+ for (const d of R.value) {
28
+ const b = w.get(String(d));
29
+ b ? u.push(b) : u.push({ id: String(d), label: String(d) });
30
+ }
31
+ return u;
32
+ });
33
+ lt(async () => {
34
+ try {
35
+ const u = await B({
36
+ ...c.rootParams,
37
+ [c.keys.value.parentKey]: Number(c.rootParams.value)
38
+ });
39
+ Y.value = u, await l();
40
+ } catch {
41
+ }
42
+ });
43
+ function ee(u) {
44
+ const d = String(u?.[c.keys.value.idKey]), b = u?.[c.keys.value.nameKey] ?? d, $ = Number(u?.[c.keys.value.hasChildKey]) === 0, k = { id: d, label: b, isLeaf: $, raw: u };
45
+ return w.set(d, k), k;
46
+ }
47
+ async function B(u) {
48
+ const d = await c.apis.fetchChildren(u);
49
+ return (Array.isArray(d) ? d : Array.isArray(d?.records) ? d.records : []).map(ee);
50
+ }
51
+ const C = async (u, d) => {
52
+ try {
53
+ const $ = u.data?.raw?.[c.keys.value.idKey];
54
+ if ($ == null) return d([]);
55
+ const P = {
56
+ ...c.rootParams,
57
+ [c.keys.value.parentKey]: Number($)
58
+ }, k = await B(P);
59
+ d(k);
60
+ } catch {
61
+ d([]);
62
+ }
63
+ };
64
+ function Q(u, d) {
65
+ const b = new Set(d.checkedKeys.map(($) => String($)));
66
+ V.value = b;
67
+ }
68
+ function A() {
69
+ if (!V.value.size) return;
70
+ const u = new Set(R.value.map((d) => String(d)));
71
+ for (const d of V.value)
72
+ u.add(d);
73
+ R.value = Array.from(u), J.value?.setCheckedKeys([]), V.value.clear();
74
+ }
75
+ function j() {
76
+ if (!g.value.size) return;
77
+ const u = R.value.filter(
78
+ (d) => !g.value.has(String(d))
79
+ );
80
+ g.value.clear(), R.value = u;
81
+ }
82
+ function pe(u) {
83
+ if (g.value.clear(), u)
84
+ for (const d of U.value)
85
+ g.value.add(d.id);
86
+ }
87
+ function z(u, d) {
88
+ d ? g.value.add(u) : g.value.delete(u);
89
+ }
90
+ async function l() {
91
+ if (typeof c.apis.fetchSearch == "function")
92
+ try {
93
+ const u = await c.apis.fetchSearch(c.interfaceParams);
94
+ let d = [], b = [];
95
+ if (Array.isArray(u) ? d = u.map(String) : Array.isArray(u?.records) && (d = u.records.map(($) => String($[c.keys.value.idKey])), b = u.records), R.value = d, b.length)
96
+ for (const $ of b) {
97
+ const P = String($[c.keys.value.idKey]);
98
+ w.has(P) || ee($);
99
+ }
100
+ } catch {
101
+ }
102
+ }
103
+ function ne() {
104
+ if (typeof c.apis.fetchAdd == "function") {
105
+ const u = {
106
+ ...c.interfaceParams,
107
+ [c.interfaceParams.key]: Array.from(V.value)
108
+ };
109
+ c.apis.fetchAdd(u).then((d) => {
110
+ q.msgSuccess("绑定成功"), A(), l();
111
+ }).catch((d) => {
112
+ J.value?.setCheckedKeys([]), V.value.clear();
113
+ });
114
+ }
115
+ }
116
+ function oe() {
117
+ if (typeof c.apis.fetchDel == "function") {
118
+ const u = {
119
+ ...c.interfaceParams,
120
+ [c.interfaceParams.key]: Array.from(g.value)
121
+ };
122
+ c.apis.fetchDel(u).then((d) => {
123
+ q.msgSuccess("删除成功"), j(), l();
124
+ });
125
+ }
126
+ }
127
+ return (u, d) => {
128
+ const b = _("el-tree"), $ = _("el-card"), P = _("el-button"), k = _("el-space"), de = _("el-checkbox");
129
+ return s(), E("div", Kt, [
130
+ o($, {
131
+ class: "lt-panel",
132
+ shadow: "hover"
133
+ }, {
134
+ header: n(() => [...d[0] || (d[0] = [
135
+ S("div", { class: "lt-header" }, [
136
+ S("span", null, "待选")
137
+ ], -1)
138
+ ])]),
139
+ default: n(() => [
140
+ S("div", Ot, [
141
+ o(b, {
142
+ ref_key: "leftTreeRef",
143
+ ref: J,
144
+ data: e(Y),
145
+ load: C,
146
+ lazy: "",
147
+ "node-key": "id",
148
+ "show-checkbox": "",
149
+ "check-strictly": "",
150
+ "highlight-current": "",
151
+ props: { label: "label", children: "children", isLeaf: "isLeaf" },
152
+ onCheck: Q
153
+ }, null, 8, ["data"])
154
+ ])
155
+ ]),
156
+ _: 1
157
+ }),
158
+ S("div", Nt, [
159
+ o(k, { direction: "vertical" }, {
160
+ default: n(() => [
161
+ o(P, {
162
+ type: "primary",
163
+ icon: "Right",
164
+ disabled: e(V).size === 0,
165
+ onClick: ne
166
+ }, {
167
+ default: n(() => [...d[1] || (d[1] = [
168
+ m(" 添加 ", -1)
169
+ ])]),
170
+ _: 1
171
+ }, 8, ["disabled"]),
172
+ o(P, {
173
+ type: "primary",
174
+ icon: "Back",
175
+ disabled: e(g).size === 0,
176
+ onClick: oe
177
+ }, {
178
+ default: n(() => [...d[2] || (d[2] = [
179
+ m(" 移除 ", -1)
180
+ ])]),
181
+ _: 1
182
+ }, 8, ["disabled"])
183
+ ]),
184
+ _: 1
185
+ })
186
+ ]),
187
+ o($, {
188
+ class: "lt-panel",
189
+ shadow: "hover"
190
+ }, {
191
+ header: n(() => [
192
+ S("div", Ut, [
193
+ d[4] || (d[4] = S("span", null, "已选", -1)),
194
+ S("span", jt, "(" + G(e(U).length) + ")", 1),
195
+ o(de, {
196
+ indeterminate: e(g).size > 0 && e(g).size < e(U).length,
197
+ "model-value": e(U).length > 0 && e(g).size === e(U).length,
198
+ onChange: pe,
199
+ style: { "margin-left": "auto" }
200
+ }, {
201
+ default: n(() => [...d[3] || (d[3] = [
202
+ m(" 全选 ", -1)
203
+ ])]),
204
+ _: 1
205
+ }, 8, ["indeterminate", "model-value"])
206
+ ])
207
+ ]),
208
+ default: n(() => [
209
+ S("div", zt, [
210
+ (s(!0), E(X, null, Z(e(U), (r) => (s(), E("div", {
211
+ key: r.id,
212
+ class: "lt-item"
213
+ }, [
214
+ o(de, {
215
+ "model-value": e(g).has(r.id),
216
+ onChange: (f) => z(r.id, f)
217
+ }, null, 8, ["model-value", "onChange"]),
218
+ S("span", Tt, G(r.label), 1)
219
+ ]))), 128))
220
+ ])
221
+ ]),
222
+ _: 1
223
+ })
224
+ ]);
225
+ };
226
+ }
227
+ };
228
+ var qt = /* @__PURE__ */ dt(Lt, [["__scopeId", "data-v-441c17b3"]]);
229
+ const Et = { class: "app-container" }, Ft = { class: "dialog-footer" }, Jt = { class: "dialog-footer" }, It = { class: "dialog-footer" }, Qt = {
230
+ __name: "index",
231
+ setup(_e) {
232
+ const c = Pt, { sys_deptdept_state: J } = it("sys_dept@dept_state"), Y = p([]), w = p([]), V = p(!0), g = p(!0), R = p([]), U = p(!0), ee = p(!0), B = p(0), C = p(""), Q = p([]), A = p(!0), j = p([]), pe = p(), z = at({}), l = p(""), ne = p({}), oe = re({}), u = {
233
+ fetchChildren: Re,
234
+ fetchSearch: yt,
235
+ fetchAdd: vt,
236
+ fetchDel: ft
237
+ }, d = p({}), b = re({}), $ = {
238
+ fetchChildren: bt,
239
+ fetchSearch: gt,
240
+ fetchAdd: _t,
241
+ fetchDel: mt
242
+ }, P = p([]), k = p(
243
+ [
244
+ { label: "部门名称", visible: !0 },
245
+ { label: "部门编号", visible: !0 },
246
+ { label: "部门类型", visible: !0 },
247
+ { label: "状态", visible: !0 },
248
+ { label: "JSON信息", visible: !1 },
249
+ { label: "排序", visible: !1 },
250
+ { label: "备注", visible: !1 },
251
+ { label: "创建时间", visible: !0 }
252
+ ].map((i, t) => ({ key: `key${t}`, ...i }))
253
+ ), de = re({
254
+ form: {},
255
+ sysareatypeForm: {
256
+ areatypeid: void 0,
257
+ deptid: void 0
258
+ },
259
+ queryParams: {
260
+ pageNo: 1,
261
+ pageSize: 10,
262
+ selectinfo: void 0
263
+ },
264
+ rules: {},
265
+ open: !1,
266
+ // 新增 编辑 弹窗显隐
267
+ deptgxfwOrAreadepOpen: !1,
268
+ // 管辖范围弹窗/部门关联行政区划显隐
269
+ deptidareatypeidOpen: !1
270
+ //行政区划类型绑定 弹窗显隐
271
+ }), {
272
+ queryParams: r,
273
+ form: f,
274
+ rules: ge,
275
+ deptgxfwOrAreadepOpen: H,
276
+ open: T,
277
+ deptidareatypeidOpen: I,
278
+ sysareatypeForm: W
279
+ } = nt(de), ce = p(), be = p(), L = p(!0), Ke = me(() => [
280
+ {
281
+ [`${l.value}id`]: "0",
282
+ [`${l.value}_name`]: "根目录",
283
+ children: he.value
284
+ }
285
+ ]), he = me(() => ut(
286
+ w.value,
287
+ `${l.value}id`,
288
+ `${l.value}_parentid`
289
+ ));
290
+ function Oe() {
291
+ l.value = "dept", r.value[`${l.value}_parentid`] = 0, r.value[`${l.value}_state`] = void 0, ge.value = {
292
+ [`${l.value}_no`]: [
293
+ { required: !0, message: "部门编号不能为空", trigger: "blur" }
294
+ ],
295
+ [`${l.value}_name`]: [
296
+ { required: !0, message: "部门名称不能为空", trigger: "blur" }
297
+ ],
298
+ [`${l.value}_parentid`]: [
299
+ { required: !0, message: "父级部门不能为空", trigger: "blur" }
300
+ ],
301
+ [`${l.value}_depttypeid`]: [
302
+ { required: !0, message: "部门类型不能为空", trigger: "blur" }
303
+ ]
304
+ }, z.value = {
305
+ search: Re,
306
+ add: xt,
307
+ delete: Dt,
308
+ edit: Ct,
309
+ detail: Vt
310
+ }, oe.value = {
311
+ idKey: `${l.value}id`,
312
+ nameKey: `${l.value}_name`,
313
+ parentKey: `${l.value}_parentid`,
314
+ hasChildKey: `${l.value}_isexistschild`
315
+ }, b.value = {
316
+ idKey: "areaid",
317
+ nameKey: "area_name",
318
+ parentKey: "area_parentid",
319
+ hasChildKey: "area_isexistschild"
320
+ };
321
+ }
322
+ function $e() {
323
+ Oe(), ve();
324
+ }
325
+ function Ne() {
326
+ ht({ pageNo: 1, pageSize: 1e4 }).then((i) => {
327
+ Q.value = i.records;
328
+ });
329
+ }
330
+ function te() {
331
+ V.value = !0, z.value.search({
332
+ ...r.value,
333
+ ...L.value ? { pageSize: 1e4 } : {}
334
+ }).then((i) => {
335
+ L.value ? (Y.value = [], w.value = ie(i.records || [])) : (Y.value = i.records || [], A.value = !A.value), B.value = i.rowCount || 0, V.value = !1;
336
+ });
337
+ }
338
+ async function Ue(i, t, v) {
339
+ i.children = await fe(i.deptid), w.value = ie(i.children), v(i.children);
340
+ }
341
+ async function fe(i) {
342
+ V.value = !0, r.value.dept_parentid = i;
343
+ const t = await z.value.search({
344
+ ...r.value,
345
+ pageSize: 1e4
346
+ });
347
+ return V.value = !1, t.records || [];
348
+ }
349
+ function ie(i) {
350
+ const t = new Map(
351
+ w.value.map((v) => [v[`${l.value}id`], v])
352
+ );
353
+ return i.forEach((v) => t.set(v[`${l.value}id`], v)), Array.from(t.values());
354
+ }
355
+ function ke() {
356
+ H.value = !1, I.value = !1, T.value = !1, T.title = void 0, le();
357
+ }
358
+ function le() {
359
+ Pe(ce.value), f.value = {
360
+ [`${l.value}id`]: void 0,
361
+ [`${l.value}_no`]: void 0,
362
+ [`${l.value}_name`]: void 0,
363
+ [`${l.value}_json`]: void 0,
364
+ [`${l.value}_sort`]: 0,
365
+ [`${l.value}_depttypeid`]: void 0,
366
+ [`${l.value}_state`]: 1,
367
+ [`${l.value}_note`]: void 0
368
+ }, W.value = {
369
+ areatypeid: void 0,
370
+ deptid: void 0
371
+ };
372
+ }
373
+ function ve() {
374
+ r.value.selectinfo || r.value[`${l.value}_depttypeid`] || r.value[`${l.value}_state`] ? (r.value[`${l.value}_parentid`] = void 0, L.value = !1) : (r.value[`${l.value}_parentid`] = 0, L.value = !0), r.value.pageNo = 1, te();
375
+ }
376
+ function je() {
377
+ Pe(be.value), r.value.dept_parentid = 0, r.value[`${l.value}_state`] = void 0, w.value = [], $e();
378
+ }
379
+ function Se(i) {
380
+ le(), T.value = !0, C.value = "添加部门", f.value.dictid = r.value[`${l.value}_dictid`], i && (f.value[`${l.value}_parentid`] = i[`${l.value}id`]);
381
+ }
382
+ function ze(i) {
383
+ R.value = i.map((t) => t[`${l.value}id`]), U.value = i.length != 1, ee.value = !i.length;
384
+ }
385
+ function we(i) {
386
+ le();
387
+ const t = i[`${l.value}id`] || R.value;
388
+ z.value.detail(t).then((v) => {
389
+ let K = v[`${l.value}_json`] ? v[`${l.value}_json`] : void 0;
390
+ f.value = Object.assign({}, v, {
391
+ [`${l.value}_json`]: K && Object.keys(K).length === 0 ? void 0 : JSON.stringify(K)
392
+ }), T.value = !0, C.value = "修改";
393
+ });
394
+ }
395
+ function Te() {
396
+ ce.value.validate((i) => {
397
+ i && (f.value[`${l.value}id`] != null ? z.value.edit(Ve()).then((t) => {
398
+ q.msgSuccess("修改成功"), T.value = !1, fe(t[`${l.value}_parentid`]).then((v) => {
399
+ w.value = ie(v), j.value.includes(t[`${l.value}_parentid`]) && (j.value = j.value.filter(
400
+ (K) => K != t[`${l.value}_parentid`]
401
+ )), j.value.includes(t[`${l.value}_parentid`]) || j.value.push(t[`${l.value}_parentid`]), setTimeout(() => {
402
+ A.value = !A.value;
403
+ }, 0);
404
+ });
405
+ }) : z.value.add(Ve()).then((t) => {
406
+ q.msgSuccess("新增成功"), T.value = !1, L.value ? fe(t[`${l.value}_parentid`]).then((v) => {
407
+ w.value = ie(v), setTimeout(() => {
408
+ A.value = !A.value;
409
+ }, 0);
410
+ }) : te();
411
+ }));
412
+ });
413
+ }
414
+ function Ve() {
415
+ let i = JSON.parse(JSON.stringify(f.value)), t;
416
+ return At(i[`${l.value}_json`]) || (t = Rt(i[`${l.value}_json`])), i.dept_json = t, i;
417
+ }
418
+ function Ce(i) {
419
+ const t = i[`${l.value}id`] ? [i[`${l.value}id`]] : R.value;
420
+ q.confirm('是否确认删除部门id为"' + t + '"的数据项?').then(function() {
421
+ return z.value.delete(t);
422
+ }).then(() => {
423
+ te(), L.value && (w.value = w.value.filter(
424
+ (v) => !t.includes(v[`${l.value}id`])
425
+ ), j.value = j.value.filter(
426
+ (v) => !t.includes(v)
427
+ ), A.value = !A.value), q.msgSuccess("删除成功");
428
+ }).catch(() => {
429
+ });
430
+ }
431
+ function Le() {
432
+ $t().then(() => {
433
+ q.msgSuccess("刷新缓存成功");
434
+ });
435
+ }
436
+ function qe(i) {
437
+ H.value = !0, C.value = "管辖范围绑定", ne.value = {
438
+ parentdeptid: i.deptid,
439
+ key: "childdeptidList"
440
+ };
441
+ }
442
+ function Ee(i) {
443
+ H.value = !0, C.value = "行政区划绑定", d.value = {
444
+ deptid: i.deptid,
445
+ key: "areaidList"
446
+ };
447
+ }
448
+ function Fe(i) {
449
+ kt({ pageNo: 1, pageSize: 1e4 }).then((t) => {
450
+ t?.records && (P.value = t.records);
451
+ }), I.value = !0, C.value = "行政区划类型绑定", W.value.deptid = i.deptid;
452
+ }
453
+ function Je() {
454
+ St(W.value).then((i) => {
455
+ q.msgSuccess("行政区划类型绑定成功"), I.value = !1, le();
456
+ });
457
+ }
458
+ function Ie() {
459
+ wt(W.value).then((i) => {
460
+ q.msgSuccess("删除成功"), I.value = !1, le();
461
+ });
462
+ }
463
+ return $e(), Ne(), (i, t) => {
464
+ const v = _("el-option"), K = _("el-select"), x = _("el-form-item"), ae = _("el-input"), h = _("el-button"), De = _("el-form"), ue = _("el-col"), Me = st, Ye = _("el-row"), O = _("el-table-column"), Be = pt, Qe = _("el-table"), He = ct, We = _("el-tree-select"), Xe = _("el-input-number"), Ze = _("el-radio"), Ge = _("el-radio-group"), ye = _("el-dialog"), et = qt, N = xe("hasPermi"), tt = xe("loading");
465
+ return s(), E("div", Et, [
466
+ D(o(De, {
467
+ model: e(r),
468
+ ref_key: "queryRef",
469
+ ref: be,
470
+ inline: !0
471
+ }, {
472
+ default: n(() => [
473
+ o(x, {
474
+ label: "部门类型",
475
+ prop: `${e(l)}_depttypeid`
476
+ }, {
477
+ default: n(() => [
478
+ o(K, {
479
+ modelValue: e(r)[`${e(l)}_depttypeid`],
480
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => e(r)[`${e(l)}_depttypeid`] = a),
481
+ style: { width: "200px" },
482
+ placeholder: "请选择部门类型"
483
+ }, {
484
+ default: n(() => [
485
+ (s(!0), E(X, null, Z(e(Q), (a) => (s(), y(v, {
486
+ key: a.depttypeid,
487
+ label: a.depttype_name,
488
+ value: a.depttypeid
489
+ }, null, 8, ["label", "value"]))), 128))
490
+ ]),
491
+ _: 1
492
+ }, 8, ["modelValue"])
493
+ ]),
494
+ _: 1
495
+ }, 8, ["prop"]),
496
+ o(x, {
497
+ label: "",
498
+ prop: "selectinfo"
499
+ }, {
500
+ default: n(() => [
501
+ o(ae, {
502
+ modelValue: e(r).selectinfo,
503
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => e(r).selectinfo = a),
504
+ placeholder: "请输入搜索内容",
505
+ clearable: "",
506
+ style: { width: "240px" },
507
+ onKeyup: ot(ve, ["enter"])
508
+ }, null, 8, ["modelValue"])
509
+ ]),
510
+ _: 1
511
+ }),
512
+ o(x, {
513
+ label: "状态",
514
+ prop: "menu_state"
515
+ }, {
516
+ default: n(() => [
517
+ o(K, {
518
+ modelValue: e(r)[`${e(l)}_state`],
519
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => e(r)[`${e(l)}_state`] = a),
520
+ placeholder: "请选择状态",
521
+ clearable: "",
522
+ style: { width: "200px" }
523
+ }, {
524
+ default: n(() => [
525
+ (s(!0), E(X, null, Z(e(J), (a) => (s(), y(v, {
526
+ key: a.value,
527
+ label: a.label,
528
+ value: a.value
529
+ }, null, 8, ["label", "value"]))), 128))
530
+ ]),
531
+ _: 1
532
+ }, 8, ["modelValue"])
533
+ ]),
534
+ _: 1
535
+ }),
536
+ o(x, null, {
537
+ default: n(() => [
538
+ o(h, {
539
+ type: "primary",
540
+ icon: "Search",
541
+ onClick: ve
542
+ }, {
543
+ default: n(() => [...t[18] || (t[18] = [
544
+ m("搜索", -1)
545
+ ])]),
546
+ _: 1
547
+ }),
548
+ o(h, {
549
+ icon: "Refresh",
550
+ onClick: je
551
+ }, {
552
+ default: n(() => [...t[19] || (t[19] = [
553
+ m("重置", -1)
554
+ ])]),
555
+ _: 1
556
+ })
557
+ ]),
558
+ _: 1
559
+ })
560
+ ]),
561
+ _: 1
562
+ }, 8, ["model"]), [
563
+ [Ae, e(g)]
564
+ ]),
565
+ o(Ye, {
566
+ gutter: 10,
567
+ class: "mb8"
568
+ }, {
569
+ default: n(() => [
570
+ o(ue, { span: 1.5 }, {
571
+ default: n(() => [
572
+ D((s(), y(h, {
573
+ type: "primary",
574
+ plain: "",
575
+ icon: "Plus",
576
+ onClick: Se
577
+ }, {
578
+ default: n(() => [...t[20] || (t[20] = [
579
+ m("新增", -1)
580
+ ])]),
581
+ _: 1
582
+ })), [
583
+ [N, ["SysDeptAdd"]]
584
+ ])
585
+ ]),
586
+ _: 1
587
+ }),
588
+ o(ue, { span: 1.5 }, {
589
+ default: n(() => [
590
+ D((s(), y(h, {
591
+ type: "success",
592
+ plain: "",
593
+ icon: "Edit",
594
+ disabled: e(U),
595
+ onClick: we
596
+ }, {
597
+ default: n(() => [...t[21] || (t[21] = [
598
+ m("修改", -1)
599
+ ])]),
600
+ _: 1
601
+ }, 8, ["disabled"])), [
602
+ [N, ["SysDeptEdit"]]
603
+ ])
604
+ ]),
605
+ _: 1
606
+ }),
607
+ o(ue, { span: 1.5 }, {
608
+ default: n(() => [
609
+ D((s(), y(h, {
610
+ type: "danger",
611
+ plain: "",
612
+ icon: "Delete",
613
+ disabled: e(ee),
614
+ onClick: Ce
615
+ }, {
616
+ default: n(() => [...t[22] || (t[22] = [
617
+ m("删除", -1)
618
+ ])]),
619
+ _: 1
620
+ }, 8, ["disabled"])), [
621
+ [N, ["SysDeptDelete"]]
622
+ ])
623
+ ]),
624
+ _: 1
625
+ }),
626
+ o(ue, { span: 1.5 }, {
627
+ default: n(() => [
628
+ D((s(), y(h, {
629
+ type: "danger",
630
+ plain: "",
631
+ icon: "Refresh",
632
+ onClick: Le
633
+ }, {
634
+ default: n(() => [...t[23] || (t[23] = [
635
+ m("刷新缓存", -1)
636
+ ])]),
637
+ _: 1
638
+ })), [
639
+ [N, ["SysDeptRefresh"]]
640
+ ])
641
+ ]),
642
+ _: 1
643
+ }),
644
+ o(Me, {
645
+ showSearch: e(g),
646
+ "onUpdate:showSearch": t[3] || (t[3] = (a) => se(g) ? g.value = a : null),
647
+ onQueryTable: te,
648
+ columns: e(k)
649
+ }, null, 8, ["showSearch", "columns"])
650
+ ]),
651
+ _: 1
652
+ }),
653
+ D((s(), y(Qe, {
654
+ key: e(A),
655
+ ref_key: "treetable",
656
+ ref: pe,
657
+ "row-key": (a) => String(a.deptid),
658
+ data: e(L) ? e(he) : e(Y),
659
+ "tree-props": {
660
+ children: "children",
661
+ hasChildren: "dept_isexistschild",
662
+ checkStrictly: !0
663
+ },
664
+ onSelectionChange: ze,
665
+ lazy: !!e(L),
666
+ load: Ue,
667
+ border: ""
668
+ }, {
669
+ default: n(() => [
670
+ o(O, {
671
+ type: "selection",
672
+ width: "55",
673
+ align: "center"
674
+ }),
675
+ e(k)[0].visible ? (s(), y(O, {
676
+ key: 0,
677
+ label: "部门名称",
678
+ align: "left",
679
+ prop: `${e(l)}_name`
680
+ }, null, 8, ["prop"])) : F("", !0),
681
+ e(k)[1].visible ? (s(), y(O, {
682
+ key: 1,
683
+ label: "部门编号",
684
+ align: "center",
685
+ prop: `${e(l)}_no`
686
+ }, null, 8, ["prop"])) : F("", !0),
687
+ e(k)[2].visible ? (s(), y(O, {
688
+ key: 2,
689
+ label: "部门类型",
690
+ align: "center",
691
+ width: "120"
692
+ }, {
693
+ default: n((a) => [
694
+ S("span", null, G(e(rt)(
695
+ e(Q),
696
+ (M) => a.row[`${e(l)}_depttypeid`] == M.depttypeid
697
+ ).value?.depttype_name), 1)
698
+ ]),
699
+ _: 1
700
+ })) : F("", !0),
701
+ e(k)[3].visible ? (s(), y(O, {
702
+ key: 3,
703
+ label: "状态",
704
+ align: "center",
705
+ width: "100"
706
+ }, {
707
+ default: n((a) => [
708
+ o(Be, {
709
+ options: e(J),
710
+ value: a.row[`${e(l)}_state`]
711
+ }, null, 8, ["options", "value"])
712
+ ]),
713
+ _: 1
714
+ })) : F("", !0),
715
+ e(k)[4].visible ? (s(), y(O, {
716
+ key: 4,
717
+ label: "JSON信息",
718
+ align: "center"
719
+ }, {
720
+ default: n(({ row: a }) => [
721
+ S("span", null, G(JSON.stringify(a[`${e(l)}_json`])), 1)
722
+ ]),
723
+ _: 1
724
+ })) : F("", !0),
725
+ e(k)[5].visible ? (s(), y(O, {
726
+ key: 5,
727
+ label: "排序",
728
+ align: "center",
729
+ prop: `${e(l)}_sort`,
730
+ width: "100"
731
+ }, null, 8, ["prop"])) : F("", !0),
732
+ e(k)[6].visible ? (s(), y(O, {
733
+ key: 6,
734
+ label: "备注",
735
+ align: "center",
736
+ "show-overflow-tooltip": !0,
737
+ prop: `${e(l)}_note`
738
+ }, null, 8, ["prop"])) : F("", !0),
739
+ e(k)[7].visible ? (s(), y(O, {
740
+ key: 7,
741
+ label: "创建时间",
742
+ align: "center",
743
+ width: "180"
744
+ }, {
745
+ default: n((a) => [
746
+ S("span", null, G(e(c)(a.row[`${e(l)}_create_time`]).format(
747
+ "YYYY-MM-DD HH:mm:ss"
748
+ )), 1)
749
+ ]),
750
+ _: 1
751
+ })) : F("", !0),
752
+ o(O, {
753
+ label: "操作",
754
+ align: "center",
755
+ width: "530",
756
+ "class-name": "small-padding fixed-width"
757
+ }, {
758
+ default: n((a) => [
759
+ D((s(), y(h, {
760
+ link: "",
761
+ type: "primary",
762
+ icon: "Plus",
763
+ onClick: (M) => Se(a.row)
764
+ }, {
765
+ default: n(() => [...t[24] || (t[24] = [
766
+ m("新增下级", -1)
767
+ ])]),
768
+ _: 2
769
+ }, 1032, ["onClick"])), [
770
+ [N, ["SysDeptAdd"]]
771
+ ]),
772
+ D((s(), y(h, {
773
+ link: "",
774
+ type: "primary",
775
+ onClick: (M) => qe(a.row)
776
+ }, {
777
+ default: n(() => [...t[25] || (t[25] = [
778
+ m("管辖范围", -1)
779
+ ])]),
780
+ _: 2
781
+ }, 1032, ["onClick"])), [
782
+ [N, ["SysDeptMange"]]
783
+ ]),
784
+ D((s(), y(h, {
785
+ link: "",
786
+ type: "primary",
787
+ onClick: (M) => Ee(a.row)
788
+ }, {
789
+ default: n(() => [...t[26] || (t[26] = [
790
+ m(" 行政区划 ", -1)
791
+ ])]),
792
+ _: 2
793
+ }, 1032, ["onClick"])), [
794
+ [N, ["SysDeptArea"]]
795
+ ]),
796
+ D((s(), y(h, {
797
+ link: "",
798
+ type: "primary",
799
+ onClick: (M) => Fe(a.row)
800
+ }, {
801
+ default: n(() => [...t[27] || (t[27] = [
802
+ m(" 行政区划类型 ", -1)
803
+ ])]),
804
+ _: 2
805
+ }, 1032, ["onClick"])), [
806
+ [N, ["SysDeptAreaType"]]
807
+ ]),
808
+ D((s(), y(h, {
809
+ link: "",
810
+ type: "primary",
811
+ icon: "Edit",
812
+ onClick: (M) => we(a.row)
813
+ }, {
814
+ default: n(() => [...t[28] || (t[28] = [
815
+ m("修改", -1)
816
+ ])]),
817
+ _: 2
818
+ }, 1032, ["onClick"])), [
819
+ [N, ["SysDeptEdit"]]
820
+ ]),
821
+ D((s(), y(h, {
822
+ link: "",
823
+ type: "primary",
824
+ icon: "Delete",
825
+ onClick: (M) => Ce(a.row)
826
+ }, {
827
+ default: n(() => [...t[29] || (t[29] = [
828
+ m("删除", -1)
829
+ ])]),
830
+ _: 2
831
+ }, 1032, ["onClick"])), [
832
+ [N, ["SysDeptDelete"]]
833
+ ])
834
+ ]),
835
+ _: 1
836
+ })
837
+ ]),
838
+ _: 1
839
+ }, 8, ["row-key", "data", "lazy"])), [
840
+ [tt, e(V)]
841
+ ]),
842
+ D(o(He, {
843
+ total: e(B),
844
+ page: e(r).pageNo,
845
+ "onUpdate:page": t[4] || (t[4] = (a) => e(r).pageNo = a),
846
+ limit: e(r).pageSize,
847
+ "onUpdate:limit": t[5] || (t[5] = (a) => e(r).pageSize = a),
848
+ onPagination: te
849
+ }, null, 8, ["total", "page", "limit"]), [
850
+ [Ae, e(B) > 0 && !e(L)]
851
+ ]),
852
+ o(ye, {
853
+ title: e(C),
854
+ modelValue: e(T),
855
+ "onUpdate:modelValue": t[14] || (t[14] = (a) => se(T) ? T.value = a : null),
856
+ width: "500px",
857
+ "append-to-body": "",
858
+ draggable: "",
859
+ "destroy-on-close": ""
860
+ }, {
861
+ footer: n(() => [
862
+ S("div", Ft, [
863
+ o(h, {
864
+ type: "primary",
865
+ onClick: Te
866
+ }, {
867
+ default: n(() => [...t[30] || (t[30] = [
868
+ m("确 定", -1)
869
+ ])]),
870
+ _: 1
871
+ }),
872
+ o(h, { onClick: ke }, {
873
+ default: n(() => [...t[31] || (t[31] = [
874
+ m("取 消", -1)
875
+ ])]),
876
+ _: 1
877
+ })
878
+ ])
879
+ ]),
880
+ default: n(() => [
881
+ o(De, {
882
+ ref_key: "dataRef",
883
+ ref: ce,
884
+ model: e(f),
885
+ rules: e(ge),
886
+ "label-width": "80px"
887
+ }, {
888
+ default: n(() => [
889
+ o(x, {
890
+ label: "父级部门",
891
+ prop: `${e(l)}_parentid`
892
+ }, {
893
+ default: n(() => [
894
+ o(We, {
895
+ modelValue: e(f)[`${e(l)}_parentid`],
896
+ "onUpdate:modelValue": t[6] || (t[6] = (a) => e(f)[`${e(l)}_parentid`] = a),
897
+ data: e(Ke),
898
+ props: {
899
+ value: `${e(l)}id`,
900
+ label: `${e(l)}_name`,
901
+ children: "children"
902
+ },
903
+ "value-ey": `${e(l)}id`,
904
+ placeholder: "选择父级部门",
905
+ "check-strictly": ""
906
+ }, null, 8, ["modelValue", "data", "props", "value-ey"])
907
+ ]),
908
+ _: 1
909
+ }, 8, ["prop"]),
910
+ o(x, {
911
+ label: "部门类型",
912
+ prop: `${e(l)}_depttypeid`
913
+ }, {
914
+ default: n(() => [
915
+ o(K, {
916
+ modelValue: e(f)[`${e(l)}_depttypeid`],
917
+ "onUpdate:modelValue": t[7] || (t[7] = (a) => e(f)[`${e(l)}_depttypeid`] = a),
918
+ placeholder: "请选择部门类型"
919
+ }, {
920
+ default: n(() => [
921
+ (s(!0), E(X, null, Z(e(Q), (a) => (s(), y(v, {
922
+ key: a.depttypeid,
923
+ label: a.depttype_name,
924
+ value: a.depttypeid
925
+ }, null, 8, ["label", "value"]))), 128))
926
+ ]),
927
+ _: 1
928
+ }, 8, ["modelValue"])
929
+ ]),
930
+ _: 1
931
+ }, 8, ["prop"]),
932
+ o(x, {
933
+ label: "部门名称",
934
+ prop: `${e(l)}_name`
935
+ }, {
936
+ default: n(() => [
937
+ o(ae, {
938
+ modelValue: e(f)[`${e(l)}_name`],
939
+ "onUpdate:modelValue": t[8] || (t[8] = (a) => e(f)[`${e(l)}_name`] = a),
940
+ placeholder: "请输入部门名称"
941
+ }, null, 8, ["modelValue"])
942
+ ]),
943
+ _: 1
944
+ }, 8, ["prop"]),
945
+ o(x, {
946
+ label: "部门编号",
947
+ prop: `${e(l)}_no`
948
+ }, {
949
+ default: n(() => [
950
+ o(ae, {
951
+ modelValue: e(f)[`${e(l)}_no`],
952
+ "onUpdate:modelValue": t[9] || (t[9] = (a) => e(f)[`${e(l)}_no`] = a),
953
+ placeholder: "请输入部门编号"
954
+ }, null, 8, ["modelValue"])
955
+ ]),
956
+ _: 1
957
+ }, 8, ["prop"]),
958
+ o(x, {
959
+ label: "数据Json",
960
+ prop: `${e(l)}_json`
961
+ }, {
962
+ default: n(() => [
963
+ o(ae, {
964
+ modelValue: e(f)[`${e(l)}_json`],
965
+ "onUpdate:modelValue": t[10] || (t[10] = (a) => e(f)[`${e(l)}_json`] = a),
966
+ placeholder: "请输入其他属性"
967
+ }, null, 8, ["modelValue"])
968
+ ]),
969
+ _: 1
970
+ }, 8, ["prop"]),
971
+ o(x, { label: "显示排序" }, {
972
+ default: n(() => [
973
+ o(Xe, {
974
+ modelValue: e(f)[`${e(l)}_sort`],
975
+ "onUpdate:modelValue": t[11] || (t[11] = (a) => e(f)[`${e(l)}_sort`] = a),
976
+ "controls-position": "right",
977
+ min: 0
978
+ }, null, 8, ["modelValue"])
979
+ ]),
980
+ _: 1
981
+ }),
982
+ o(x, { label: "状态" }, {
983
+ default: n(() => [
984
+ o(Ge, {
985
+ modelValue: e(f)[`${e(l)}_state`],
986
+ "onUpdate:modelValue": t[12] || (t[12] = (a) => e(f)[`${e(l)}_state`] = a)
987
+ }, {
988
+ default: n(() => [
989
+ (s(!0), E(X, null, Z(e(J), (a) => (s(), y(Ze, {
990
+ key: a.value,
991
+ value: a.value
992
+ }, {
993
+ default: n(() => [
994
+ m(G(a.label), 1)
995
+ ]),
996
+ _: 2
997
+ }, 1032, ["value"]))), 128))
998
+ ]),
999
+ _: 1
1000
+ }, 8, ["modelValue"])
1001
+ ]),
1002
+ _: 1
1003
+ }),
1004
+ o(x, { label: "备注" }, {
1005
+ default: n(() => [
1006
+ o(ae, {
1007
+ modelValue: e(f)[`${e(l)}_note`],
1008
+ "onUpdate:modelValue": t[13] || (t[13] = (a) => e(f)[`${e(l)}_note`] = a),
1009
+ type: "textarea",
1010
+ placeholder: "请输入内容"
1011
+ }, null, 8, ["modelValue"])
1012
+ ]),
1013
+ _: 1
1014
+ })
1015
+ ]),
1016
+ _: 1
1017
+ }, 8, ["model", "rules"])
1018
+ ]),
1019
+ _: 1
1020
+ }, 8, ["title", "modelValue"]),
1021
+ o(ye, {
1022
+ title: e(C),
1023
+ modelValue: e(H),
1024
+ "onUpdate:modelValue": t[15] || (t[15] = (a) => se(H) ? H.value = a : null),
1025
+ width: "800px",
1026
+ "align-center": "",
1027
+ "append-to-body": "",
1028
+ draggable: "",
1029
+ "destroy-on-close": ""
1030
+ }, {
1031
+ footer: n(() => [
1032
+ S("div", Jt, [
1033
+ o(h, { onClick: ke }, {
1034
+ default: n(() => [...t[32] || (t[32] = [
1035
+ m("取 消", -1)
1036
+ ])]),
1037
+ _: 1
1038
+ })
1039
+ ])
1040
+ ]),
1041
+ default: n(() => [
1042
+ o(et, {
1043
+ apis: e(C) === "管辖范围绑定" ? u : $,
1044
+ rootParams: { value: 0, pageNo: 0, pageSize: 1e4 },
1045
+ keys: e(C) === "管辖范围绑定" ? e(oe) : e(b),
1046
+ interfaceParams: e(C) === "管辖范围绑定" ? e(ne) : e(d)
1047
+ }, null, 8, ["apis", "keys", "interfaceParams"])
1048
+ ]),
1049
+ _: 1
1050
+ }, 8, ["title", "modelValue"]),
1051
+ o(ye, {
1052
+ title: e(C),
1053
+ modelValue: e(I),
1054
+ "onUpdate:modelValue": t[17] || (t[17] = (a) => se(I) ? I.value = a : null),
1055
+ width: "500px",
1056
+ "append-to-body": "",
1057
+ draggable: "",
1058
+ "destroy-on-close": ""
1059
+ }, {
1060
+ footer: n(() => [
1061
+ S("div", It, [
1062
+ o(h, {
1063
+ type: "primary",
1064
+ onClick: Je
1065
+ }, {
1066
+ default: n(() => [...t[33] || (t[33] = [
1067
+ m(" 添 加 ", -1)
1068
+ ])]),
1069
+ _: 1
1070
+ }),
1071
+ o(h, {
1072
+ type: "danger",
1073
+ onClick: Ie
1074
+ }, {
1075
+ default: n(() => [...t[34] || (t[34] = [
1076
+ m("删 除", -1)
1077
+ ])]),
1078
+ _: 1
1079
+ })
1080
+ ])
1081
+ ]),
1082
+ default: n(() => [
1083
+ o(K, {
1084
+ modelValue: e(W).areatypeid,
1085
+ "onUpdate:modelValue": t[16] || (t[16] = (a) => e(W).areatypeid = a),
1086
+ placeholder: "请选择行政区划类型"
1087
+ }, {
1088
+ default: n(() => [
1089
+ (s(!0), E(X, null, Z(e(P), (a) => (s(), y(v, {
1090
+ key: a.areatypeid,
1091
+ label: a.areatype_name,
1092
+ value: a.areatypeid
1093
+ }, null, 8, ["label", "value"]))), 128))
1094
+ ]),
1095
+ _: 1
1096
+ }, 8, ["modelValue"])
1097
+ ]),
1098
+ _: 1
1099
+ }, 8, ["title", "modelValue"])
1100
+ ]);
1101
+ };
1102
+ }
1103
+ };
1104
+ export {
1105
+ Qt as default
1106
+ };