@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,1617 @@
1
+ import { _ as Ca, ay as Ma, u as Na, a5 as Ea, b as $a, aW as Ze, m as T, ap as Aa, an as Fa, ao as Oa, by as Ba, G as Ta, bz as ja, W as ea, bA as Ia, bB as qa, bC as Ya, bD as Ha, bE as Ja, bF as Wa, bG as Ka, bH as Qa, bI as Ga, bJ as Xa, O as Za, Y as el } from "./dict-C49Ogd-n.js";
2
+ import { useSlots as al, ref as z, computed as te, watch as ze, onMounted as Ie, onBeforeUnmount as na, createBlock as y, provide as ce, openBlock as c, resolveDynamicComponent as ll, inject as he, getCurrentInstance as ia, createElementBlock as j, normalizeStyle as tl, unref as l, renderSlot as sl, nextTick as Te, h as nl, reactive as je, toRefs as il, resolveComponent as S, resolveDirective as aa, createVNode as s, withCtx as t, createElementVNode as I, isRef as xe, withDirectives as q, withKeys as la, Fragment as oe, renderList as re, createTextVNode as U, vShow as ta, createCommentVNode as A, toDisplayString as Ue, normalizeClass as ol } from "vue";
3
+ import { d as rl } from "./dayjs.min-B97rgn_L.js";
4
+ import { useRoute as ul, useRouter as dl } from "vue-router";
5
+ const pl = {
6
+ __name: "splitpanes",
7
+ props: {
8
+ horizontal: { type: Boolean, default: !1 },
9
+ pushOtherPanes: { type: Boolean, default: !0 },
10
+ maximizePanes: { type: Boolean, default: !0 },
11
+ // Maximize pane on splitter double click/tap.
12
+ rtl: { type: Boolean, default: !1 },
13
+ // Right to left direction.
14
+ firstSplitter: { type: Boolean, default: !1 }
15
+ },
16
+ emits: [
17
+ "ready",
18
+ "resize",
19
+ "resized",
20
+ "pane-click",
21
+ "pane-maximize",
22
+ "pane-add",
23
+ "pane-remove",
24
+ "splitter-click",
25
+ "splitter-dblclick"
26
+ ],
27
+ setup(Ve, { emit: ve }) {
28
+ const b = ve, k = Ve, se = al(), p = z([]), Y = te(() => p.value.reduce((a, n) => (a[~~n.id] = n) && a, {})), H = te(() => p.value.length), C = z(null), K = z(!1), V = z({
29
+ mouseDown: !1,
30
+ dragging: !1,
31
+ activeSplitter: null,
32
+ cursorOffset: 0
33
+ // Cursor offset within the splitter.
34
+ }), M = z({
35
+ // Used to detect double click on touch devices.
36
+ splitter: null,
37
+ timeoutId: null
38
+ }), Q = te(() => ({
39
+ [`splitpanes splitpanes--${k.horizontal ? "horizontal" : "vertical"}`]: !0,
40
+ "splitpanes--dragging": V.value.dragging
41
+ })), D = () => {
42
+ document.addEventListener("mousemove", h, { passive: !1 }), document.addEventListener("mouseup", W), "ontouchstart" in window && (document.addEventListener("touchmove", h, { passive: !1 }), document.addEventListener("touchend", W));
43
+ }, J = () => {
44
+ document.removeEventListener("mousemove", h, { passive: !1 }), document.removeEventListener("mouseup", W), "ontouchstart" in window && (document.removeEventListener("touchmove", h, { passive: !1 }), document.removeEventListener("touchend", W));
45
+ }, G = (a, n) => {
46
+ const d = a.target.closest(".splitpanes__splitter");
47
+ if (d) {
48
+ const { left: o, top: u } = d.getBoundingClientRect(), { clientX: m, clientY: _ } = "ontouchstart" in window && a.touches ? a.touches[0] : a;
49
+ V.value.cursorOffset = k.horizontal ? _ - u : m - o;
50
+ }
51
+ D(), V.value.mouseDown = !0, V.value.activeSplitter = n;
52
+ }, h = (a) => {
53
+ V.value.mouseDown && (a.preventDefault(), V.value.dragging = !0, requestAnimationFrame(() => {
54
+ _e(de(a)), F("resize", { event: a }, !0);
55
+ }));
56
+ }, W = (a) => {
57
+ V.value.dragging && (window.getSelection().removeAllRanges(), F("resized", { event: a }, !0)), V.value.mouseDown = !1, V.value.activeSplitter = null, setTimeout(() => {
58
+ V.value.dragging = !1, J();
59
+ }, 100);
60
+ }, fe = (a, n) => {
61
+ "ontouchstart" in window && (a.preventDefault(), M.value.splitter === n ? (clearTimeout(M.value.timeoutId), M.value.timeoutId = null, ue(a, n), M.value.splitter = null) : (M.value.splitter = n, M.value.timeoutId = setTimeout(() => M.value.splitter = null, 500))), V.value.dragging || F("splitter-click", { event: a, index: n }, !0);
62
+ }, ue = (a, n) => {
63
+ if (F("splitter-dblclick", { event: a, index: n }, !0), k.maximizePanes) {
64
+ let d = 0;
65
+ p.value = p.value.map((o, u) => (o.size = u === n ? o.max : o.min, u !== n && (d += o.min), o)), p.value[n].size -= d, F("pane-maximize", { event: a, index: n, pane: p.value[n] }), F("resized", { event: a, index: n }, !0);
66
+ }
67
+ }, be = (a, n) => {
68
+ F("pane-click", {
69
+ event: a,
70
+ index: Y.value[n].index,
71
+ pane: Y.value[n]
72
+ });
73
+ }, de = (a) => {
74
+ const n = C.value.getBoundingClientRect(), { clientX: d, clientY: o } = "ontouchstart" in window && a.touches ? a.touches[0] : a;
75
+ return {
76
+ x: d - (k.horizontal ? 0 : V.value.cursorOffset) - n.left,
77
+ y: o - (k.horizontal ? V.value.cursorOffset : 0) - n.top
78
+ };
79
+ }, pe = (a) => {
80
+ a = a[k.horizontal ? "y" : "x"];
81
+ const n = C.value[k.horizontal ? "clientHeight" : "clientWidth"];
82
+ return k.rtl && !k.horizontal && (a = n - a), a * 100 / n;
83
+ }, _e = (a) => {
84
+ const n = V.value.activeSplitter;
85
+ let d = {
86
+ prevPanesSize: Pe(n),
87
+ nextPanesSize: L(n),
88
+ prevReachedMinPanes: 0,
89
+ nextReachedMinPanes: 0
90
+ };
91
+ const o = 0 + (k.pushOtherPanes ? 0 : d.prevPanesSize), u = 100 - (k.pushOtherPanes ? 0 : d.nextPanesSize), m = Math.max(Math.min(pe(a), u), o);
92
+ let _ = [n, n + 1], R = p.value[_[0]] || null, O = p.value[_[1]] || null;
93
+ const Me = R.max < 100 && m >= R.max + d.prevPanesSize, we = O.max < 100 && m <= 100 - (O.max + L(n + 1));
94
+ if (Me || we) {
95
+ Me ? (R.size = R.max, O.size = Math.max(100 - R.max - d.prevPanesSize - d.nextPanesSize, 0)) : (R.size = Math.max(100 - O.max - d.prevPanesSize - L(n + 1), 0), O.size = O.max);
96
+ return;
97
+ }
98
+ if (k.pushOtherPanes) {
99
+ const ke = Se(d, m);
100
+ if (!ke) return;
101
+ ({ sums: d, panesToResize: _ } = ke), R = p.value[_[0]] || null, O = p.value[_[1]] || null;
102
+ }
103
+ R !== null && (R.size = Math.min(Math.max(m - d.prevPanesSize - d.prevReachedMinPanes, R.min), R.max)), O !== null && (O.size = Math.min(Math.max(100 - m - d.nextPanesSize - d.nextReachedMinPanes, O.min), O.max));
104
+ }, Se = (a, n) => {
105
+ const d = V.value.activeSplitter, o = [d, d + 1];
106
+ return n < a.prevPanesSize + p.value[o[0]].min && (o[0] = ge(d).index, a.prevReachedMinPanes = 0, o[0] < d && p.value.forEach((u, m) => {
107
+ m > o[0] && m <= d && (u.size = u.min, a.prevReachedMinPanes += u.min);
108
+ }), a.prevPanesSize = Pe(o[0]), o[0] === void 0) ? (a.prevReachedMinPanes = 0, p.value[0].size = p.value[0].min, p.value.forEach((u, m) => {
109
+ m > 0 && m <= d && (u.size = u.min, a.prevReachedMinPanes += u.min);
110
+ }), p.value[o[1]].size = 100 - a.prevReachedMinPanes - p.value[0].min - a.prevPanesSize - a.nextPanesSize, null) : n > 100 - a.nextPanesSize - p.value[o[1]].min && (o[1] = Le(d).index, a.nextReachedMinPanes = 0, o[1] > d + 1 && p.value.forEach((u, m) => {
111
+ m > d && m < o[1] && (u.size = u.min, a.nextReachedMinPanes += u.min);
112
+ }), a.nextPanesSize = L(o[1] - 1), o[1] === void 0) ? (a.nextReachedMinPanes = 0, p.value.forEach((u, m) => {
113
+ m < H.value - 1 && m >= d + 1 && (u.size = u.min, a.nextReachedMinPanes += u.min);
114
+ }), p.value[o[0]].size = 100 - a.prevPanesSize - L(o[0] - 1), null) : { sums: a, panesToResize: o };
115
+ }, Pe = (a) => p.value.reduce((n, d, o) => n + (o < a ? d.size : 0), 0), L = (a) => p.value.reduce((n, d, o) => n + (o > a + 1 ? d.size : 0), 0), ge = (a) => [...p.value].reverse().find((n) => n.index < a && n.size > n.min) || {}, Le = (a) => p.value.find((n) => n.index > a + 1 && n.size > n.min) || {}, $e = () => {
116
+ var a;
117
+ const n = Array.from(((a = C.value) == null ? void 0 : a.children) || []);
118
+ for (const d of n) {
119
+ const o = d.classList.contains("splitpanes__pane"), u = d.classList.contains("splitpanes__splitter");
120
+ !o && !u && (d.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
121
+ }
122
+ }, Re = (a, n, d = !1) => {
123
+ const o = a - 1, u = document.createElement("div");
124
+ u.classList.add("splitpanes__splitter"), d || (u.onmousedown = (m) => G(m, o), typeof window < "u" && "ontouchstart" in window && (u.ontouchstart = (m) => G(m, o)), u.onclick = (m) => fe(m, o + 1)), u.ondblclick = (m) => ue(m, o + 1), n.parentNode.insertBefore(u, n);
125
+ }, N = (a) => {
126
+ a.onmousedown = void 0, a.onclick = void 0, a.ondblclick = void 0, a.remove();
127
+ }, P = () => {
128
+ var a;
129
+ const n = Array.from(((a = C.value) == null ? void 0 : a.children) || []);
130
+ for (const o of n)
131
+ o.className.includes("splitpanes__splitter") && N(o);
132
+ let d = 0;
133
+ for (const o of n)
134
+ o.className.includes("splitpanes__pane") && (!d && k.firstSplitter ? Re(d, o, !0) : d && Re(d, o), d++);
135
+ }, X = ({ uid: a, ...n }) => {
136
+ const d = Y.value[a];
137
+ for (const [o, u] of Object.entries(n)) d[o] = u;
138
+ }, Ae = (a) => {
139
+ var n;
140
+ let d = -1;
141
+ Array.from(((n = C.value) == null ? void 0 : n.children) || []).some((o) => (o.className.includes("splitpanes__pane") && d++, o.isSameNode(a.el))), p.value.splice(d, 0, { ...a, index: d }), p.value.forEach((o, u) => o.index = u), K.value && Te(() => {
142
+ P(), f({ addedPane: p.value[d] }), F("pane-add", { pane: p.value[d] });
143
+ });
144
+ }, w = (a) => {
145
+ const n = p.value.findIndex((o) => o.id === a);
146
+ p.value[n].el = null;
147
+ const d = p.value.splice(n, 1)[0];
148
+ p.value.forEach((o, u) => o.index = u), Te(() => {
149
+ P(), F("pane-remove", { pane: d }), f({ removedPane: { ...d } });
150
+ });
151
+ }, f = (a = {}) => {
152
+ !a.addedPane && !a.removedPane ? Fe() : p.value.some((n) => n.givenSize !== null || n.min || n.max < 100) ? Ce(a) : De(), K.value && F("resized");
153
+ }, De = () => {
154
+ const a = 100 / H.value;
155
+ let n = 0;
156
+ const d = [], o = [];
157
+ for (const u of p.value)
158
+ u.size = Math.max(Math.min(a, u.max), u.min), n -= u.size, u.size >= u.max && d.push(u.id), u.size <= u.min && o.push(u.id);
159
+ n > 0.1 && E(n, d, o);
160
+ }, Fe = () => {
161
+ let a = 100;
162
+ const n = [], d = [];
163
+ let o = 0;
164
+ for (const m of p.value)
165
+ a -= m.size, m.givenSize !== null && o++, m.size >= m.max && n.push(m.id), m.size <= m.min && d.push(m.id);
166
+ let u = 100;
167
+ if (a > 0.1) {
168
+ for (const m of p.value)
169
+ m.givenSize === null && (m.size = Math.max(Math.min(a / (H.value - o), m.max), m.min)), u -= m.size;
170
+ u > 0.1 && E(u, n, d);
171
+ }
172
+ }, Ce = ({ addedPane: a, removedPane: n } = {}) => {
173
+ let d = 100 / H.value, o = 0;
174
+ const u = [], m = [];
175
+ (a?.givenSize ?? null) !== null && (d = (100 - a.givenSize) / (H.value - 1));
176
+ for (const _ of p.value)
177
+ o -= _.size, _.size >= _.max && u.push(_.id), _.size <= _.min && m.push(_.id);
178
+ if (!(Math.abs(o) < 0.1)) {
179
+ for (const _ of p.value)
180
+ a?.givenSize !== null && a?.id === _.id || (_.size = Math.max(Math.min(d, _.max), _.min)), o -= _.size, _.size >= _.max && u.push(_.id), _.size <= _.min && m.push(_.id);
181
+ o > 0.1 && E(o, u, m);
182
+ }
183
+ }, E = (a, n, d) => {
184
+ let o;
185
+ a > 0 ? o = a / (H.value - n.length) : o = a / (H.value - d.length), p.value.forEach((u, m) => {
186
+ if (a > 0 && !n.includes(u.id)) {
187
+ const _ = Math.max(Math.min(u.size + o, u.max), u.min), R = _ - u.size;
188
+ a -= R, u.size = _;
189
+ } else if (!d.includes(u.id)) {
190
+ const _ = Math.max(Math.min(u.size + o, u.max), u.min), R = _ - u.size;
191
+ a -= R, u.size = _;
192
+ }
193
+ }), Math.abs(a) > 0.1 && Te(() => {
194
+ K.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
195
+ });
196
+ }, F = (a, n = void 0, d = !1) => {
197
+ const o = n?.index ?? V.value.activeSplitter ?? null;
198
+ b(a, {
199
+ ...n,
200
+ ...o !== null && { index: o },
201
+ ...d && o !== null && {
202
+ prevPane: p.value[o - (k.firstSplitter ? 1 : 0)],
203
+ nextPane: p.value[o + (k.firstSplitter ? 0 : 1)]
204
+ },
205
+ panes: p.value.map((u) => ({ min: u.min, max: u.max, size: u.size }))
206
+ });
207
+ };
208
+ ze(() => k.firstSplitter, () => P()), Ie(() => {
209
+ $e(), P(), f(), F("ready"), K.value = !0;
210
+ }), na(() => K.value = !1);
211
+ const me = () => {
212
+ var a;
213
+ return nl(
214
+ "div",
215
+ { ref: C, class: Q.value },
216
+ (a = se.default) == null ? void 0 : a.call(se)
217
+ );
218
+ };
219
+ return ce("panes", p), ce("indexedPanes", Y), ce("horizontal", te(() => k.horizontal)), ce("requestUpdate", X), ce("onPaneAdd", Ae), ce("onPaneRemove", w), ce("onPaneClick", be), (a, n) => (c(), y(ll(me)));
220
+ }
221
+ }, sa = {
222
+ __name: "pane",
223
+ props: {
224
+ size: { type: [Number, String] },
225
+ minSize: { type: [Number, String], default: 0 },
226
+ maxSize: { type: [Number, String], default: 100 }
227
+ },
228
+ setup(Ve) {
229
+ var ve;
230
+ const b = Ve, k = he("requestUpdate"), se = he("onPaneAdd"), p = he("horizontal"), Y = he("onPaneRemove"), H = he("onPaneClick"), C = (ve = ia()) == null ? void 0 : ve.uid, K = he("indexedPanes"), V = te(() => K.value[C]), M = z(null), Q = te(() => {
231
+ const h = isNaN(b.size) || b.size === void 0 ? 0 : parseFloat(b.size);
232
+ return Math.max(Math.min(h, J.value), D.value);
233
+ }), D = te(() => {
234
+ const h = parseFloat(b.minSize);
235
+ return isNaN(h) ? 0 : h;
236
+ }), J = te(() => {
237
+ const h = parseFloat(b.maxSize);
238
+ return isNaN(h) ? 100 : h;
239
+ }), G = te(() => {
240
+ var h;
241
+ return `${p.value ? "height" : "width"}: ${(h = V.value) == null ? void 0 : h.size}%`;
242
+ });
243
+ return ze(() => Q.value, (h) => k({ uid: C, size: h })), ze(() => D.value, (h) => k({ uid: C, min: h })), ze(() => J.value, (h) => k({ uid: C, max: h })), Ie(() => {
244
+ se({
245
+ id: C,
246
+ el: M.value,
247
+ min: D.value,
248
+ max: J.value,
249
+ // The given size (useful to know the user intention).
250
+ givenSize: b.size === void 0 ? null : Q.value,
251
+ size: Q.value
252
+ // The computed current size at any time.
253
+ });
254
+ }), na(() => Y(C)), (h, W) => (c(), j("div", {
255
+ ref_key: "paneEl",
256
+ ref: M,
257
+ class: "splitpanes__pane",
258
+ onClick: W[0] || (W[0] = (fe) => l(H)(fe, h._.uid)),
259
+ style: tl(G.value)
260
+ }, [
261
+ sl(h.$slots, "default")
262
+ ], 4));
263
+ }
264
+ }, ml = { class: "app-container" }, cl = { class: "head-container" }, vl = { class: "head-container" }, fl = {
265
+ key: 0,
266
+ class: "fenge"
267
+ }, _l = { class: "dialog-footer" }, gl = { class: "el-upload__tip text-center" }, yl = { class: "el-upload__tip" }, hl = { class: "dialog-footer" }, xl = ["src"], zl = {
268
+ __name: "index",
269
+ setup(Ve) {
270
+ const ve = rl, b = ul();
271
+ dl();
272
+ const k = Ma(), se = Na(), { proxy: p } = ia(), { sys_useruser_state: Y, sys_useruser_typeid: H, sys_useruser_sourceid: C, sys_useruser_sex: K, sys_useruser_issendmsg: V } = Ea("sys_user@user_state", "sys_user@user_typeid", "sys_user@user_sourceid", "sys_user@user_sex", "sys_user@user_issendmsg"), M = z([]), Q = z([]), D = z(!1), J = z(!0), G = z(!0), h = z([]), W = z(!0), fe = z(!0), ue = z(0), be = z(""), de = z([]), pe = z(""), _e = z(), Se = z(), Pe = z(), L = z([]), ge = z(!1), Le = z(""), $e = z("/syDevelop/sys/sysfile/uploadfile"), Re = je({ Authorization: se.token }), N = z(), P = je({
273
+ // 是否显示弹出层(用户导入)
274
+ open: !1,
275
+ // 弹出层标题(用户导入)
276
+ title: "",
277
+ // 是否禁用上传
278
+ isUploading: !1,
279
+ // 是否更新已经存在的用户数据
280
+ updateSupport: 0,
281
+ // 设置上传的请求头部
282
+ headers: { Authorization: "Bearer " + $a() },
283
+ // 上传的地址
284
+ url: "/prod-api/system/user/importData"
285
+ }), X = z(
286
+ [
287
+ { label: "用户账号", visible: !0 },
288
+ { label: "用户名称", visible: !0 },
289
+ { label: "部门", visible: !0, hidden: N.value == 1 },
290
+ { label: "手机号码", visible: !0 },
291
+ { label: "状态", visible: !0 },
292
+ { label: "创建时间", visible: !0 }
293
+ ].map((r, e) => ({ key: `key${e}`, ...r }))
294
+ ), Ae = je({
295
+ form: {},
296
+ queryParams: {
297
+ pageNo: 1,
298
+ pageSize: 10,
299
+ user_typeid: void 0,
300
+ // 用户类型ID:1超管用户、2系统用户、3对接用户
301
+ user_name: void 0,
302
+ selectinfo: void 0,
303
+ user_phone: void 0,
304
+ user_state: void 0,
305
+ areaid: void 0,
306
+ areaid_sign: void 0,
307
+ deptid: void 0,
308
+ deptid_sign: void 0,
309
+ user_create_time_begin: void 0,
310
+ user_create_time_end: void 0
311
+ },
312
+ rules: {
313
+ user_typeid: [{ required: !0, message: "用户类型不能为空", trigger: "change" }],
314
+ user_sourceid: [{ required: !0, message: "用户来源不能为空", trigger: "change" }],
315
+ user_name: [
316
+ { required: !0, message: "用户名称不能为空", trigger: "blur" },
317
+ {
318
+ min: 2,
319
+ max: 20,
320
+ message: "用户名称长度必须介于 2 和 20 之间",
321
+ trigger: "blur"
322
+ }
323
+ ],
324
+ user_pwd: [
325
+ { required: !0, message: "用户密码不能为空", trigger: "blur" },
326
+ {
327
+ min: 8,
328
+ max: 20,
329
+ message: "密码长度8至20位且至少包含大写字母、小写字母、数字或特殊符号中的任意三种",
330
+ trigger: "blur"
331
+ },
332
+ {
333
+ pattern: /^[^<>"'|\\]+$/,
334
+ message: `不能包含非法字符:< > " ' \\ |`,
335
+ trigger: "blur"
336
+ }
337
+ ],
338
+ user_account: [
339
+ {
340
+ required: !0,
341
+ message: "请输入用户账号",
342
+ trigger: "blur"
343
+ }
344
+ ],
345
+ user_phone: [
346
+ {
347
+ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
348
+ message: "请输入正确的手机号码",
349
+ trigger: "blur"
350
+ }
351
+ ]
352
+ }
353
+ }), { queryParams: w, form: f, rules: De } = il(Ae);
354
+ ze(
355
+ pe,
356
+ (r) => {
357
+ Fe(r);
358
+ },
359
+ {
360
+ immediate: !1,
361
+ deep: !1
362
+ }
363
+ ), ze(de, (r) => {
364
+ r && r.length > 0 ? (w.value.user_create_time_begin = r[0], w.value.user_create_time_end = r[1]) : (w.value.user_create_time_begin = void 0, w.value.user_create_time_end = void 0);
365
+ });
366
+ async function Fe(r) {
367
+ if (!r.trim()) {
368
+ await Ce();
369
+ return;
370
+ }
371
+ const e = await Ze({
372
+ pageNo: 1,
373
+ pageSize: 1e4,
374
+ selectinfo: r.trim()
375
+ });
376
+ e.records && e.records.length > 0 ? M.value = e.records.map((g) => ({
377
+ ...g,
378
+ leaf: !g.area_isexistschild
379
+ })) : (T.msgWarning(e.message), M.value = []);
380
+ }
381
+ async function Ce() {
382
+ const r = await Ze({
383
+ pageNo: 1,
384
+ pageSize: 1e4,
385
+ area_parentid: 0
386
+ // 初始顶级节点的父ID
387
+ });
388
+ M.value = r.records.map((e) => ({
389
+ ...e,
390
+ leaf: !e.area_isexistschild
391
+ }));
392
+ }
393
+ function E() {
394
+ J.value = !0, Ba(Ta(w.value)).then((r) => {
395
+ J.value = !1, Q.value = r.records, ue.value = r.rowCount || 0;
396
+ }).catch((r) => {
397
+ J.value = !1, Q.value = [], ue.value = 0;
398
+ });
399
+ }
400
+ function F(r) {
401
+ w.value.areaid = r.areaid, me();
402
+ }
403
+ function me() {
404
+ w.value.pageNo = 1, E();
405
+ }
406
+ function a() {
407
+ de.value = [], ea(Se.value), w.value.areaid = void 0, w.value.user_create_time_begin = void 0, w.value.user_create_time_end = void 0, pe.value = "", Ce(), me();
408
+ }
409
+ function n(r) {
410
+ const e = r.userid ? [r.userid] : h.value;
411
+ T.confirm('是否确认删除用户编号为"' + e + '"的数据项?').then(function() {
412
+ return qa(e);
413
+ }).then(() => {
414
+ E(), T.msgSuccess("删除成功");
415
+ }).catch(() => {
416
+ });
417
+ }
418
+ function d() {
419
+ Ya({
420
+ imexport_no: "sys_user",
421
+ filename: "用户表"
422
+ });
423
+ }
424
+ function o(r) {
425
+ p.$prompt('请输入"' + r.user_name + '"的新密码', "提示", {
426
+ confirmButtonText: "确定",
427
+ cancelButtonText: "取消",
428
+ closeOnClickModal: !1,
429
+ inputPattern: /^.{8,20}$/,
430
+ inputErrorMessage: "密码长度8至20位且至少包含大写字母、小写字母、数字或特殊符号中的任意三种",
431
+ inputValidator: (e) => {
432
+ if (/<|>|"|'|\||\\/.test(e))
433
+ return `不能包含非法字符:< > " ' \\ |`;
434
+ }
435
+ }).then(({ value: e }) => {
436
+ Ha({ userid: r.userid, user_pwd: e }).then((g) => {
437
+ T.msgSuccess("修改成功,新密码是:" + e);
438
+ });
439
+ }).catch(() => {
440
+ });
441
+ }
442
+ function u(r) {
443
+ h.value = r.map((e) => e.userid), W.value = r.length != 1, fe.value = !r.length;
444
+ }
445
+ function m() {
446
+ P.title = "用户导入", P.open = !0;
447
+ }
448
+ function _() {
449
+ p.download("system/user/importTemplate", {}, `user_template_${(/* @__PURE__ */ new Date()).getTime()}.xlsx`);
450
+ }
451
+ const R = (r, e, g) => {
452
+ P.isUploading = !0;
453
+ }, O = (r, e, g) => {
454
+ P.open = !1, P.isUploading = !1, p.$refs.uploadRef.handleRemove(e), p.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + r.msg + "</div>", "导入结果", { dangerouslyUseHTMLString: !0 }), E();
455
+ };
456
+ function Me() {
457
+ p.$refs.uploadRef.submit();
458
+ }
459
+ function we() {
460
+ f.value = {
461
+ user_typeid: N.value,
462
+ user_sourceid: 1,
463
+ userid: void 0,
464
+ deptid: void 0,
465
+ areaid: void 0,
466
+ roleid: void 0,
467
+ user_name: void 0,
468
+ user_issendmsg: 1,
469
+ user_pwd: void 0,
470
+ user_phone: void 0,
471
+ user_account: void 0,
472
+ user_sex: 1,
473
+ user_state: 1,
474
+ user_json: void 0,
475
+ sysUserareadeptList: [
476
+ {
477
+ sysRoleList: [],
478
+ sysArea: {},
479
+ sysDept: {
480
+ deptList: []
481
+ },
482
+ userareadept_areaid: "",
483
+ userareadept_deptid: "",
484
+ roleidList: [],
485
+ roleidListcacheData: []
486
+ }
487
+ ]
488
+ }, ea(_e.value);
489
+ }
490
+ function ke() {
491
+ D.value = !1, we(), L.value = [];
492
+ }
493
+ function oa() {
494
+ we(), D.value = !0, be.value = "添加用户";
495
+ }
496
+ async function qe(r) {
497
+ we();
498
+ const e = r.userid || h.value;
499
+ Ia(e).then(async (g) => {
500
+ let Z = g.user_json ? g.user_json : void 0;
501
+ if (g.sysUserareadeptList && g.sysUserareadeptList.length > 0)
502
+ for (const v of g.sysUserareadeptList) {
503
+ v.roleidList = v.sysRoleList?.map((ee) => ee.roleid), v.roleidListcacheData = v.sysRoleList?.map((ee) => ({ roleid: ee.roleid, role_name: ee.role_name })), v.sysArea.cacheData = [{ areaid: v.sysArea.areaid, area_name: v.sysArea.area_name }], v.sysDept.cacheData = [{ deptid: v.sysDept.deptid, dept_name: v.sysDept.dept_name }];
504
+ let x = await He(v.userareadept_areaid);
505
+ v.sysDept.deptList = x;
506
+ }
507
+ g.sysFile && (L.value = [
508
+ {
509
+ uid: g.sysFile.fileid,
510
+ url: "/syDevelop/filesroot" + g.sysFile.file_path + "?sid=" + se.token,
511
+ size: g.sysFile.file_size,
512
+ ...g.sysFile
513
+ }
514
+ ]), f.value = Object.assign(g, {
515
+ user_json: Z && Object.keys(Z).length === 0 ? void 0 : JSON.stringify(Z)
516
+ }), D.value = !0, be.value = "修改用户", f.user_pwd = "";
517
+ });
518
+ }
519
+ function ra() {
520
+ _e.value.validate((r) => {
521
+ r && (f.value.userid != null ? Wa(ye()).then((e) => {
522
+ T.msgSuccess("修改成功"), D.value = !1, E();
523
+ }) : ye().user_typeid == 2 ? Ka(ye()).then((e) => {
524
+ T.msgSuccess("新增成功"), D.value = !1, E();
525
+ }) : ye().user_typeid == 3 ? Qa(ye()).then((e) => {
526
+ T.msgSuccess("新增成功"), D.value = !1, E();
527
+ }) : Ga(ye()).then((e) => {
528
+ T.msgSuccess("新增成功"), D.value = !1, E();
529
+ }));
530
+ });
531
+ }
532
+ function ye() {
533
+ let r = JSON.parse(JSON.stringify(f.value));
534
+ console.log("%c ", " color:violet;font-size:20px", r), L.value && L.value.length > 0 ? r.sysFile = L.value[0] : r.sysFile && delete r.sysFile, r.sysUserareadeptList = r.sysUserareadeptList.map((g) => {
535
+ const { roleidList: Z, ...v } = g;
536
+ return {
537
+ ...v,
538
+ sysRoleList: Z?.map((x) => ({ roleid: x }))
539
+ };
540
+ });
541
+ var e;
542
+ return Za(r.user_json) || (e = el(r.user_json)), r.user_json = e, r;
543
+ }
544
+ function ua() {
545
+ if (!f.value.sysUserareadeptList.every((e) => e.userareadept_areaid && e.userareadept_deptid && (N.value == 1 || e.roleidList?.length > 0))) {
546
+ T.msgWarning("有未配置完成的选项");
547
+ return;
548
+ }
549
+ f.value.sysUserareadeptList.push({
550
+ sysRoleList: [],
551
+ sysArea: {},
552
+ sysDept: {},
553
+ userareadept_areaid: "",
554
+ userareadept_deptid: "",
555
+ roleidList: [],
556
+ roleidListcacheData: []
557
+ });
558
+ }
559
+ function da(r) {
560
+ f.value.sysUserareadeptList.length > 1 && f.value.sysUserareadeptList.splice(r, 1);
561
+ }
562
+ function pa({ page: r, limit: e }) {
563
+ w.value.pageNo = r, E();
564
+ }
565
+ async function Ye(r, e) {
566
+ const g = r.data.areaid ? r.data.areaid : void 0, v = (await ja({
567
+ pageNo: 1,
568
+ pageSize: 1e4,
569
+ area_parentid: g
570
+ })).records?.map((x) => ({
571
+ ...x,
572
+ leaf: !x.area_isexistschild
573
+ }));
574
+ e(v);
575
+ }
576
+ async function ma(r, e) {
577
+ console.log("%c areaSelect", " color:peru;font-size:20px", r, e), He(r).then((g) => {
578
+ e.sysDept.deptList = g;
579
+ });
580
+ }
581
+ async function He(r) {
582
+ const e = await Xa({
583
+ areaid: r,
584
+ dept_state: 1,
585
+ pageNo: 1,
586
+ pageSize: 1e4
587
+ });
588
+ return e.records ? e.records : [];
589
+ }
590
+ async function ca(r, e) {
591
+ const g = r.data.roleid ? r.data.roleid : 0, v = (await Ja({
592
+ pageNo: 1,
593
+ pageSize: 1e4,
594
+ role_parentid: g
595
+ })).records?.map((x) => ({
596
+ ...x,
597
+ leaf: !x.dept_isexistschild
598
+ }));
599
+ e(v);
600
+ }
601
+ function va(r) {
602
+ let e = new RegExp("image/*").test(r.type);
603
+ return e || T.msgWarning("应该选择image/*类型的文件"), e;
604
+ }
605
+ function fa(r, e) {
606
+ console.log("%c file:", "color: red;font-size:20px", L);
607
+ }
608
+ function _a(r, e) {
609
+ L.value = [];
610
+ }
611
+ function ga(r, e) {
612
+ r.code === 200 && r.data ? (L.value = [
613
+ {
614
+ ...r.data,
615
+ name: r.data.file_oldname,
616
+ url: "/syDevelop/filesroot" + r.data.file_path + "?sid=" + se.token,
617
+ fileid: e.uid,
618
+ file_typeid: r.data.file_filetypeid
619
+ }
620
+ ], T.msgSuccess("头像上传成功")) : (T.msgError("头像上传失败:" + r.message), L.value = []);
621
+ }
622
+ function ya(r) {
623
+ Le.value = r.url, ge.value = !0;
624
+ }
625
+ function ha(r) {
626
+ N.value = r, w.value.user_typeid = r;
627
+ }
628
+ return ha(b.params.user_typeid), Ie(() => {
629
+ E();
630
+ }), (r, e) => {
631
+ const g = S("el-input"), Z = S("el-tree"), v = S("el-col"), x = S("el-form-item"), ee = S("el-option"), Ne = S("el-select"), xa = S("el-date-picker"), $ = S("el-button"), Oe = S("el-form"), za = Aa, ae = S("el-row"), ne = S("el-table-column"), ba = S("el-tag"), Sa = S("el-space"), wa = Fa, ka = S("el-table"), Ua = Oa, Je = S("Plus"), Ee = S("el-icon"), We = S("el-upload"), Ke = S("el-radio"), Qe = S("el-radio-group"), Ge = S("el-divider"), Xe = S("el-tree-select"), Va = S("Delete"), Be = S("el-dialog"), Pa = S("upload-filled"), La = S("el-checkbox"), Ra = S("el-link"), ie = aa("hasPermi"), Da = aa("loading");
632
+ return c(), j("div", ml, [
633
+ s(ae, { gutter: 20 }, {
634
+ default: t(() => [
635
+ s(l(pl), {
636
+ horizontal: l(k).device === "mobile",
637
+ class: "default-theme"
638
+ }, {
639
+ default: t(() => [
640
+ s(l(sa), {
641
+ size: l(N) != 1 ? 16 : 0,
642
+ "max-size": l(N) != 1 ? 50 : 0,
643
+ "min-size": 0
644
+ }, {
645
+ default: t(() => [
646
+ s(v, null, {
647
+ default: t(() => [
648
+ I("div", cl, [
649
+ s(g, {
650
+ modelValue: l(pe),
651
+ "onUpdate:modelValue": e[0] || (e[0] = (i) => xe(pe) ? pe.value = i : null),
652
+ placeholder: "请输入行政区划名称",
653
+ clearable: "",
654
+ "prefix-icon": "Search",
655
+ style: { "margin-bottom": "20px" }
656
+ }, null, 8, ["modelValue"])
657
+ ]),
658
+ I("div", vl, [
659
+ s(Z, {
660
+ data: l(M),
661
+ lazy: !0,
662
+ load: Ye,
663
+ props: {
664
+ label: "area_name",
665
+ children: "children",
666
+ isLeaf: "leaf"
667
+ },
668
+ ref_key: "deptTreeRef",
669
+ ref: Pe,
670
+ "node-key": "areaid",
671
+ "highlight-current": "",
672
+ onNodeClick: F
673
+ }, null, 8, ["data"])
674
+ ])
675
+ ]),
676
+ _: 1
677
+ })
678
+ ]),
679
+ _: 1
680
+ }, 8, ["size", "max-size"]),
681
+ s(l(sa), {
682
+ size: l(N) != 1 ? 84 : 100
683
+ }, {
684
+ default: t(() => [
685
+ s(v, null, {
686
+ default: t(() => [
687
+ q(s(Oe, {
688
+ model: l(w),
689
+ ref_key: "queryRef",
690
+ ref: Se,
691
+ inline: !0,
692
+ "label-width": "68px"
693
+ }, {
694
+ default: t(() => [
695
+ s(x, {
696
+ label: "用户名称",
697
+ prop: "user_name"
698
+ }, {
699
+ default: t(() => [
700
+ s(g, {
701
+ modelValue: l(w).user_name,
702
+ "onUpdate:modelValue": e[1] || (e[1] = (i) => l(w).user_name = i),
703
+ placeholder: "请输入用户名称",
704
+ clearable: "",
705
+ style: { width: "240px" },
706
+ onKeyup: la(me, ["enter"])
707
+ }, null, 8, ["modelValue"])
708
+ ]),
709
+ _: 1
710
+ }),
711
+ s(x, {
712
+ label: "手机号码",
713
+ prop: "user_phone"
714
+ }, {
715
+ default: t(() => [
716
+ s(g, {
717
+ modelValue: l(w).user_phone,
718
+ "onUpdate:modelValue": e[2] || (e[2] = (i) => l(w).user_phone = i),
719
+ placeholder: "请输入手机号码",
720
+ clearable: "",
721
+ style: { width: "240px" },
722
+ onKeyup: la(me, ["enter"])
723
+ }, null, 8, ["modelValue"])
724
+ ]),
725
+ _: 1
726
+ }),
727
+ s(x, {
728
+ label: "状态",
729
+ prop: "user_state"
730
+ }, {
731
+ default: t(() => [
732
+ s(Ne, {
733
+ modelValue: l(w).user_state,
734
+ "onUpdate:modelValue": e[3] || (e[3] = (i) => l(w).user_state = i),
735
+ placeholder: "用户状态",
736
+ clearable: "",
737
+ style: { width: "240px" }
738
+ }, {
739
+ default: t(() => [
740
+ (c(!0), j(oe, null, re(l(Y), (i) => (c(), y(ee, {
741
+ key: i.value,
742
+ label: i.label,
743
+ value: i.value
744
+ }, null, 8, ["label", "value"]))), 128))
745
+ ]),
746
+ _: 1
747
+ }, 8, ["modelValue"])
748
+ ]),
749
+ _: 1
750
+ }),
751
+ s(x, {
752
+ label: "创建时间",
753
+ style: { width: "308px" }
754
+ }, {
755
+ default: t(() => [
756
+ s(xa, {
757
+ modelValue: l(de),
758
+ "onUpdate:modelValue": e[4] || (e[4] = (i) => xe(de) ? de.value = i : null),
759
+ "value-format": "YYYY-MM-DDTHH:mm:ss",
760
+ type: "daterange",
761
+ "range-separator": "-",
762
+ "start-placeholder": "开始日期",
763
+ "end-placeholder": "结束日期"
764
+ }, null, 8, ["modelValue"])
765
+ ]),
766
+ _: 1
767
+ }),
768
+ s(x, null, {
769
+ default: t(() => [
770
+ s($, {
771
+ type: "primary",
772
+ icon: "Search",
773
+ onClick: me
774
+ }, {
775
+ default: t(() => [...e[24] || (e[24] = [
776
+ U("搜索", -1)
777
+ ])]),
778
+ _: 1
779
+ }),
780
+ s($, {
781
+ icon: "Refresh",
782
+ onClick: e[5] || (e[5] = (i) => a(l(Se)))
783
+ }, {
784
+ default: t(() => [...e[25] || (e[25] = [
785
+ U("重置", -1)
786
+ ])]),
787
+ _: 1
788
+ })
789
+ ]),
790
+ _: 1
791
+ })
792
+ ]),
793
+ _: 1
794
+ }, 8, ["model"]), [
795
+ [ta, l(G)]
796
+ ]),
797
+ s(ae, {
798
+ gutter: 10,
799
+ class: "mb8"
800
+ }, {
801
+ default: t(() => [
802
+ s(v, { span: 1.5 }, {
803
+ default: t(() => [
804
+ q((c(), y($, {
805
+ type: "primary",
806
+ plain: "",
807
+ icon: "Plus",
808
+ onClick: oa
809
+ }, {
810
+ default: t(() => [...e[26] || (e[26] = [
811
+ U("新增", -1)
812
+ ])]),
813
+ _: 1
814
+ })), [
815
+ [ie, [`SysUser${l(b).params.user_typeid == 1 ? "os" : l(b).params.user_typeid == 2 ? "" : "other"}Add`]]
816
+ ])
817
+ ]),
818
+ _: 1
819
+ }),
820
+ s(v, { span: 1.5 }, {
821
+ default: t(() => [
822
+ q((c(), y($, {
823
+ type: "success",
824
+ plain: "",
825
+ icon: "Edit",
826
+ disabled: l(W),
827
+ onClick: qe
828
+ }, {
829
+ default: t(() => [...e[27] || (e[27] = [
830
+ U("修改", -1)
831
+ ])]),
832
+ _: 1
833
+ }, 8, ["disabled"])), [
834
+ [ie, [`SysUser${l(b).params.user_typeid == 1 ? "os" : l(b).params.user_typeid == 2 ? "" : "other"}Edit`]]
835
+ ])
836
+ ]),
837
+ _: 1
838
+ }),
839
+ s(v, { span: 1.5 }, {
840
+ default: t(() => [
841
+ q((c(), y($, {
842
+ type: "danger",
843
+ plain: "",
844
+ icon: "Delete",
845
+ disabled: l(fe),
846
+ onClick: n
847
+ }, {
848
+ default: t(() => [...e[28] || (e[28] = [
849
+ U("删除", -1)
850
+ ])]),
851
+ _: 1
852
+ }, 8, ["disabled"])), [
853
+ [ie, [`SysUser${l(b).params.user_typeid == 1 ? "os" : l(b).params.user_typeid == 2 ? "" : "other"}Delete`]]
854
+ ])
855
+ ]),
856
+ _: 1
857
+ }),
858
+ l(N) != 1 ? (c(), y(v, {
859
+ key: 0,
860
+ span: 1.5
861
+ }, {
862
+ default: t(() => [
863
+ q((c(), y($, {
864
+ type: "info",
865
+ plain: "",
866
+ icon: "Upload",
867
+ onClick: m
868
+ }, {
869
+ default: t(() => [...e[29] || (e[29] = [
870
+ U("导入", -1)
871
+ ])]),
872
+ _: 1
873
+ })), [
874
+ [ie, [`SysUser${l(b).params.user_typeid == 1 ? "os" : l(b).params.user_typeid == 2 ? "" : "other"}Import`]]
875
+ ])
876
+ ]),
877
+ _: 1
878
+ })) : A("", !0),
879
+ l(N) != 1 ? (c(), y(v, {
880
+ key: 1,
881
+ span: 1.5
882
+ }, {
883
+ default: t(() => [
884
+ q((c(), y($, {
885
+ type: "warning",
886
+ plain: "",
887
+ icon: "Download",
888
+ onClick: d
889
+ }, {
890
+ default: t(() => [...e[30] || (e[30] = [
891
+ U("导出", -1)
892
+ ])]),
893
+ _: 1
894
+ })), [
895
+ [ie, [`SysUser${l(b).params.user_typeid == 1 ? "os" : l(b).params.user_typeid == 2 ? "" : "other"}Export`]]
896
+ ])
897
+ ]),
898
+ _: 1
899
+ })) : A("", !0),
900
+ s(za, {
901
+ showSearch: l(G),
902
+ "onUpdate:showSearch": e[6] || (e[6] = (i) => xe(G) ? G.value = i : null),
903
+ onQueryTable: E,
904
+ columns: l(X)
905
+ }, null, 8, ["showSearch", "columns"])
906
+ ]),
907
+ _: 1
908
+ }),
909
+ q((c(), y(ka, {
910
+ border: "",
911
+ data: l(Q),
912
+ onSelectionChange: u
913
+ }, {
914
+ default: t(() => [
915
+ s(ne, {
916
+ type: "selection",
917
+ width: "50",
918
+ align: "center"
919
+ }),
920
+ l(X)[0].visible ? (c(), y(ne, {
921
+ label: "用户账号",
922
+ align: "center",
923
+ key: "user_account",
924
+ prop: "user_account"
925
+ })) : A("", !0),
926
+ l(X)[1].visible ? (c(), y(ne, {
927
+ label: "用户名称",
928
+ width: "120",
929
+ align: "center",
930
+ key: "user_name",
931
+ prop: "user_name",
932
+ "show-overflow-tooltip": !0
933
+ })) : A("", !0),
934
+ l(X)[2].visible && l(N) != 1 ? (c(), y(ne, {
935
+ label: "部门",
936
+ align: "center",
937
+ key: "sysUserareadeptList",
938
+ prop: "sysUserareadeptList",
939
+ "show-overflow-tooltip": !0
940
+ }, {
941
+ default: t(({ row: i }) => [
942
+ s(Sa, { wrap: "" }, {
943
+ default: t(() => [
944
+ (c(!0), j(oe, null, re(i.sysUserareadeptList, (le) => (c(), y(ba, {
945
+ "disable-transitions": !0,
946
+ key: le.userareadept_userid,
947
+ type: "primary",
948
+ effect: "dark"
949
+ }, {
950
+ default: t(() => [
951
+ U(Ue(le.sysArea.area_name) + "-" + Ue(le.sysDept.dept_name), 1)
952
+ ]),
953
+ _: 2
954
+ }, 1024))), 128))
955
+ ]),
956
+ _: 2
957
+ }, 1024)
958
+ ]),
959
+ _: 1
960
+ })) : A("", !0),
961
+ l(X)[3].visible ? (c(), y(ne, {
962
+ label: "手机号码",
963
+ align: "center",
964
+ key: "user_phone",
965
+ prop: "user_phone",
966
+ width: "120"
967
+ })) : A("", !0),
968
+ l(X)[4].visible ? (c(), y(ne, {
969
+ label: "状态",
970
+ width: "120",
971
+ align: "center",
972
+ key: "user_state"
973
+ }, {
974
+ default: t(({ row: i }) => [
975
+ s(wa, {
976
+ options: l(Y),
977
+ value: i.user_state
978
+ }, null, 8, ["options", "value"])
979
+ ]),
980
+ _: 1
981
+ })) : A("", !0),
982
+ l(X)[5].visible ? (c(), y(ne, {
983
+ key: 5,
984
+ label: "创建时间",
985
+ align: "center",
986
+ prop: "user_create_time",
987
+ width: "160"
988
+ }, {
989
+ default: t((i) => [
990
+ I("span", null, Ue(l(ve)(i.row.user_create_time).format("YYYY-MM-DD HH:mm:ss")), 1)
991
+ ]),
992
+ _: 1
993
+ })) : A("", !0),
994
+ s(ne, {
995
+ label: "操作",
996
+ align: "center",
997
+ width: "250",
998
+ "class-name": "small-padding fixed-width"
999
+ }, {
1000
+ default: t((i) => [
1001
+ i.row.user_account != "admin" ? q((c(), y($, {
1002
+ key: 0,
1003
+ link: "",
1004
+ type: "primary",
1005
+ icon: "Edit",
1006
+ onClick: (le) => qe(i.row)
1007
+ }, {
1008
+ default: t(() => [...e[31] || (e[31] = [
1009
+ U("修改", -1)
1010
+ ])]),
1011
+ _: 2
1012
+ }, 1032, ["onClick"])), [
1013
+ [ie, [`SysUser${l(b).params.user_typeid == 1 ? "os" : l(b).params.user_typeid == 2 ? "" : "other"}Edit`]]
1014
+ ]) : A("", !0),
1015
+ q((c(), y($, {
1016
+ link: "",
1017
+ type: "primary",
1018
+ icon: "Key",
1019
+ onClick: (le) => o(i.row)
1020
+ }, {
1021
+ default: t(() => [...e[32] || (e[32] = [
1022
+ U("重置密码", -1)
1023
+ ])]),
1024
+ _: 2
1025
+ }, 1032, ["onClick"])), [
1026
+ [ie, [`SysUser${l(b).params.user_typeid == 1 ? "os" : l(b).params.user_typeid == 2 ? "" : "other"}ResetPwd`]]
1027
+ ]),
1028
+ q((c(), y($, {
1029
+ link: "",
1030
+ type: "primary",
1031
+ icon: "Delete",
1032
+ onClick: (le) => n(i.row)
1033
+ }, {
1034
+ default: t(() => [...e[33] || (e[33] = [
1035
+ U("删除", -1)
1036
+ ])]),
1037
+ _: 2
1038
+ }, 1032, ["onClick"])), [
1039
+ [ie, [`SysUser${l(b).params.user_typeid == 1 ? "os" : l(b).params.user_typeid == 2 ? "" : "other"}Delete`]]
1040
+ ])
1041
+ ]),
1042
+ _: 1
1043
+ })
1044
+ ]),
1045
+ _: 1
1046
+ }, 8, ["data"])), [
1047
+ [Da, l(J)]
1048
+ ]),
1049
+ q(s(Ua, {
1050
+ total: l(ue),
1051
+ page: l(w).pageNo,
1052
+ "onUpdate:page": e[7] || (e[7] = (i) => l(w).pageNo = i),
1053
+ limit: l(w).pageSize,
1054
+ "onUpdate:limit": e[8] || (e[8] = (i) => l(w).pageSize = i),
1055
+ onPagination: pa
1056
+ }, null, 8, ["total", "page", "limit"]), [
1057
+ [ta, l(ue) > 0]
1058
+ ])
1059
+ ]),
1060
+ _: 1
1061
+ })
1062
+ ]),
1063
+ _: 1
1064
+ }, 8, ["size"])
1065
+ ]),
1066
+ _: 1
1067
+ }, 8, ["horizontal"])
1068
+ ]),
1069
+ _: 1
1070
+ }),
1071
+ s(Be, {
1072
+ title: l(be),
1073
+ modelValue: l(D),
1074
+ "onUpdate:modelValue": e[19] || (e[19] = (i) => xe(D) ? D.value = i : null),
1075
+ width: "700px",
1076
+ "align-center": "",
1077
+ draggable: "",
1078
+ "append-to-body": "",
1079
+ onClose: ke
1080
+ }, {
1081
+ footer: t(() => [
1082
+ I("div", _l, [
1083
+ s($, {
1084
+ type: "primary",
1085
+ onClick: ra
1086
+ }, {
1087
+ default: t(() => [...e[35] || (e[35] = [
1088
+ U("确 定", -1)
1089
+ ])]),
1090
+ _: 1
1091
+ }),
1092
+ s($, { onClick: ke }, {
1093
+ default: t(() => [...e[36] || (e[36] = [
1094
+ U("取 消", -1)
1095
+ ])]),
1096
+ _: 1
1097
+ })
1098
+ ])
1099
+ ]),
1100
+ default: t(() => [
1101
+ s(Oe, {
1102
+ model: l(f),
1103
+ rules: l(De),
1104
+ ref_key: "userRef",
1105
+ ref: _e,
1106
+ "label-width": "100px"
1107
+ }, {
1108
+ default: t(() => [
1109
+ s(ae, null, {
1110
+ default: t(() => [
1111
+ s(v, { span: 24 }, {
1112
+ default: t(() => [
1113
+ s(x, { label: "头像" }, {
1114
+ default: t(() => [
1115
+ s(We, {
1116
+ ref: "fieldRef",
1117
+ headers: l(Re),
1118
+ "file-list": l(L),
1119
+ "onUpdate:fileList": e[9] || (e[9] = (i) => xe(L) ? L.value = i : null),
1120
+ action: l($e),
1121
+ "before-upload": va,
1122
+ "list-type": "picture-card",
1123
+ accept: "image/*",
1124
+ limit: 1,
1125
+ "on-change": fa,
1126
+ "on-preview": ya,
1127
+ "on-success": ga,
1128
+ class: ol(l(L).length !== 0 ? "isHidden" : ""),
1129
+ "on-remove": _a
1130
+ }, {
1131
+ default: t(() => [
1132
+ s(Ee, null, {
1133
+ default: t(() => [
1134
+ s(Je)
1135
+ ]),
1136
+ _: 1
1137
+ })
1138
+ ]),
1139
+ _: 1
1140
+ }, 8, ["headers", "file-list", "action", "class"])
1141
+ ]),
1142
+ _: 1
1143
+ })
1144
+ ]),
1145
+ _: 1
1146
+ })
1147
+ ]),
1148
+ _: 1
1149
+ }),
1150
+ s(ae, null, {
1151
+ default: t(() => [
1152
+ s(v, { span: 12 }, {
1153
+ default: t(() => [
1154
+ s(x, {
1155
+ label: "用户名称",
1156
+ prop: "user_name"
1157
+ }, {
1158
+ default: t(() => [
1159
+ s(g, {
1160
+ modelValue: l(f).user_name,
1161
+ "onUpdate:modelValue": e[10] || (e[10] = (i) => l(f).user_name = i),
1162
+ placeholder: "请输入用户名称",
1163
+ maxlength: "30"
1164
+ }, null, 8, ["modelValue"])
1165
+ ]),
1166
+ _: 1
1167
+ })
1168
+ ]),
1169
+ _: 1
1170
+ }),
1171
+ s(v, { span: 12 }, {
1172
+ default: t(() => [
1173
+ s(x, {
1174
+ label: "用户来源",
1175
+ prop: "user_sourceid"
1176
+ }, {
1177
+ default: t(() => [
1178
+ s(Ne, {
1179
+ modelValue: l(f).user_sourceid,
1180
+ "onUpdate:modelValue": e[11] || (e[11] = (i) => l(f).user_sourceid = i),
1181
+ placeholder: "请选择用户来源"
1182
+ }, {
1183
+ default: t(() => [
1184
+ (c(!0), j(oe, null, re(l(C), (i) => (c(), y(ee, {
1185
+ key: i.value,
1186
+ value: i.value,
1187
+ label: i.label
1188
+ }, null, 8, ["value", "label"]))), 128))
1189
+ ]),
1190
+ _: 1
1191
+ }, 8, ["modelValue"])
1192
+ ]),
1193
+ _: 1
1194
+ })
1195
+ ]),
1196
+ _: 1
1197
+ })
1198
+ ]),
1199
+ _: 1
1200
+ }),
1201
+ s(ae, null, {
1202
+ default: t(() => [
1203
+ s(v, { span: 12 }, {
1204
+ default: t(() => [
1205
+ s(x, {
1206
+ label: "用户账号",
1207
+ prop: "user_account"
1208
+ }, {
1209
+ default: t(() => [
1210
+ s(g, {
1211
+ modelValue: l(f).user_account,
1212
+ "onUpdate:modelValue": e[12] || (e[12] = (i) => l(f).user_account = i),
1213
+ placeholder: "请输入用户账号",
1214
+ maxlength: "50"
1215
+ }, null, 8, ["modelValue"])
1216
+ ]),
1217
+ _: 1
1218
+ })
1219
+ ]),
1220
+ _: 1
1221
+ }),
1222
+ s(v, { span: 12 }, {
1223
+ default: t(() => [
1224
+ l(f).userid == null ? (c(), y(x, {
1225
+ key: 0,
1226
+ label: "用户密码",
1227
+ prop: "user_pwd"
1228
+ }, {
1229
+ default: t(() => [
1230
+ s(g, {
1231
+ modelValue: l(f).user_pwd,
1232
+ "onUpdate:modelValue": e[13] || (e[13] = (i) => l(f).user_pwd = i),
1233
+ placeholder: "请输入用户密码",
1234
+ type: "password",
1235
+ maxlength: "20",
1236
+ "show-password": ""
1237
+ }, null, 8, ["modelValue"])
1238
+ ]),
1239
+ _: 1
1240
+ })) : A("", !0)
1241
+ ]),
1242
+ _: 1
1243
+ })
1244
+ ]),
1245
+ _: 1
1246
+ }),
1247
+ s(ae, null, {
1248
+ default: t(() => [
1249
+ s(v, { span: 12 }, {
1250
+ default: t(() => [
1251
+ s(x, { label: "状态" }, {
1252
+ default: t(() => [
1253
+ s(Qe, {
1254
+ modelValue: l(f).user_state,
1255
+ "onUpdate:modelValue": e[14] || (e[14] = (i) => l(f).user_state = i)
1256
+ }, {
1257
+ default: t(() => [
1258
+ (c(!0), j(oe, null, re(l(Y), (i) => (c(), y(Ke, {
1259
+ key: i.value,
1260
+ value: i.value
1261
+ }, {
1262
+ default: t(() => [
1263
+ U(Ue(i.label), 1)
1264
+ ]),
1265
+ _: 2
1266
+ }, 1032, ["value"]))), 128))
1267
+ ]),
1268
+ _: 1
1269
+ }, 8, ["modelValue"])
1270
+ ]),
1271
+ _: 1
1272
+ })
1273
+ ]),
1274
+ _: 1
1275
+ }),
1276
+ s(v, { span: 12 }, {
1277
+ default: t(() => [
1278
+ s(x, {
1279
+ label: "手机号码",
1280
+ prop: "user_phone"
1281
+ }, {
1282
+ default: t(() => [
1283
+ s(g, {
1284
+ modelValue: l(f).user_phone,
1285
+ "onUpdate:modelValue": e[15] || (e[15] = (i) => l(f).user_phone = i),
1286
+ placeholder: "请输入手机号码",
1287
+ maxlength: "11"
1288
+ }, null, 8, ["modelValue"])
1289
+ ]),
1290
+ _: 1
1291
+ })
1292
+ ]),
1293
+ _: 1
1294
+ })
1295
+ ]),
1296
+ _: 1
1297
+ }),
1298
+ s(ae, null, {
1299
+ default: t(() => [
1300
+ s(v, { span: 12 }, {
1301
+ default: t(() => [
1302
+ s(x, { label: "用户性别" }, {
1303
+ default: t(() => [
1304
+ s(Ne, {
1305
+ modelValue: l(f).user_sex,
1306
+ "onUpdate:modelValue": e[16] || (e[16] = (i) => l(f).user_sex = i),
1307
+ placeholder: "请选择"
1308
+ }, {
1309
+ default: t(() => [
1310
+ (c(!0), j(oe, null, re(l(K), (i) => (c(), y(ee, {
1311
+ key: i.value,
1312
+ label: i.label,
1313
+ value: i.value
1314
+ }, null, 8, ["label", "value"]))), 128))
1315
+ ]),
1316
+ _: 1
1317
+ }, 8, ["modelValue"])
1318
+ ]),
1319
+ _: 1
1320
+ })
1321
+ ]),
1322
+ _: 1
1323
+ }),
1324
+ s(v, { span: 12 }, {
1325
+ default: t(() => [
1326
+ s(x, { label: "是否发送消息" }, {
1327
+ default: t(() => [
1328
+ s(Qe, {
1329
+ modelValue: l(f).user_issendmsg,
1330
+ "onUpdate:modelValue": e[17] || (e[17] = (i) => l(f).user_issendmsg = i)
1331
+ }, {
1332
+ default: t(() => [
1333
+ (c(!0), j(oe, null, re(l(V), (i) => (c(), y(Ke, {
1334
+ key: i.value,
1335
+ value: i.value
1336
+ }, {
1337
+ default: t(() => [
1338
+ U(Ue(i.label), 1)
1339
+ ]),
1340
+ _: 2
1341
+ }, 1032, ["value"]))), 128))
1342
+ ]),
1343
+ _: 1
1344
+ }, 8, ["modelValue"])
1345
+ ]),
1346
+ _: 1
1347
+ })
1348
+ ]),
1349
+ _: 1
1350
+ })
1351
+ ]),
1352
+ _: 1
1353
+ }),
1354
+ s(ae, null, {
1355
+ default: t(() => [
1356
+ s(v, { span: 24 }, {
1357
+ default: t(() => [
1358
+ s(x, { label: "数据Json" }, {
1359
+ default: t(() => [
1360
+ s(g, {
1361
+ modelValue: l(f).user_json,
1362
+ "onUpdate:modelValue": e[18] || (e[18] = (i) => l(f).user_json = i),
1363
+ placeholder: "请输入其他属性"
1364
+ }, null, 8, ["modelValue"])
1365
+ ]),
1366
+ _: 1
1367
+ })
1368
+ ]),
1369
+ _: 1
1370
+ })
1371
+ ]),
1372
+ _: 1
1373
+ })
1374
+ ]),
1375
+ _: 1
1376
+ }, 8, ["model", "rules"]),
1377
+ s(Ge),
1378
+ l(N) != 1 ? (c(), j("div", fl, [
1379
+ e[34] || (e[34] = U(" 行政区划-归属部门-角色信息 ", -1)),
1380
+ s(Ee, {
1381
+ style: { "font-size": "20px", "margin-left": "15px", "margin-top": "4px" },
1382
+ color: "var(--el-color-primary)",
1383
+ onClick: ua
1384
+ }, {
1385
+ default: t(() => [
1386
+ s(Je)
1387
+ ]),
1388
+ _: 1
1389
+ })
1390
+ ])) : A("", !0),
1391
+ l(N) != 1 ? (c(), y(Ge, { key: 1 })) : A("", !0),
1392
+ l(N) != 1 ? (c(), y(Oe, {
1393
+ key: 2,
1394
+ model: l(f),
1395
+ rules: l(De),
1396
+ ref_key: "userRef",
1397
+ ref: _e
1398
+ }, {
1399
+ default: t(() => [
1400
+ (c(!0), j(oe, null, re(l(f).sysUserareadeptList, (i, le) => (c(), j("div", {
1401
+ key: le + "sys"
1402
+ }, [
1403
+ s(ae, {
1404
+ justify: "space-around",
1405
+ "align-items": "baseline",
1406
+ style: { "margin-bottom": "10px" }
1407
+ }, {
1408
+ default: t(() => [
1409
+ s(v, { span: 7 }, {
1410
+ default: t(() => [
1411
+ s(x, null, {
1412
+ default: t(() => [
1413
+ s(Xe, {
1414
+ modelValue: i.userareadept_areaid,
1415
+ "onUpdate:modelValue": (B) => i.userareadept_areaid = B,
1416
+ "node-key": "areaid",
1417
+ onChange: (B) => ma(B, i),
1418
+ lazy: "",
1419
+ "check-strictly": "",
1420
+ load: Ye,
1421
+ props: {
1422
+ label: "area_name",
1423
+ children: "children",
1424
+ isLeaf: "leaf"
1425
+ },
1426
+ "cache-data": i.sysArea.cacheData
1427
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange", "cache-data"])
1428
+ ]),
1429
+ _: 2
1430
+ }, 1024)
1431
+ ]),
1432
+ _: 2
1433
+ }, 1024),
1434
+ s(v, { span: 7 }, {
1435
+ default: t(() => [
1436
+ s(x, null, {
1437
+ default: t(() => [
1438
+ s(Ne, {
1439
+ modelValue: i.userareadept_deptid,
1440
+ "onUpdate:modelValue": (B) => i.userareadept_deptid = B,
1441
+ placeholder: "请输入归属部门"
1442
+ }, {
1443
+ default: t(() => [
1444
+ (c(!0), j(oe, null, re(i.sysDept.deptList, (B) => (c(), y(ee, {
1445
+ key: B.deptid,
1446
+ label: B.dept_name,
1447
+ value: B.deptid
1448
+ }, null, 8, ["label", "value"]))), 128))
1449
+ ]),
1450
+ _: 2
1451
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
1452
+ ]),
1453
+ _: 2
1454
+ }, 1024)
1455
+ ]),
1456
+ _: 2
1457
+ }, 1024),
1458
+ s(v, { span: 7 }, {
1459
+ default: t(() => [
1460
+ s(x, null, {
1461
+ default: t(() => [
1462
+ s(Xe, {
1463
+ modelValue: i.roleidList,
1464
+ "onUpdate:modelValue": (B) => i.roleidList = B,
1465
+ "node-key": "roleid",
1466
+ "show-checkbox": "",
1467
+ multiple: "",
1468
+ lazy: "",
1469
+ "check-strictly": "",
1470
+ load: ca,
1471
+ props: {
1472
+ label: "role_name",
1473
+ children: "children",
1474
+ isLeaf: "leaf"
1475
+ },
1476
+ "cache-data": i.roleidListcacheData.cacheData
1477
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "cache-data"])
1478
+ ]),
1479
+ _: 2
1480
+ }, 1024)
1481
+ ]),
1482
+ _: 2
1483
+ }, 1024),
1484
+ l(f).sysUserareadeptList.length > 1 ? (c(), y(v, {
1485
+ key: 0,
1486
+ span: 2
1487
+ }, {
1488
+ default: t(() => [
1489
+ s(Ee, {
1490
+ style: { "font-size": "22px", "margin-left": "10px", cursor: "pointer", "margin-top": "6px" },
1491
+ color: "var(--el-color-danger)",
1492
+ onClick: (B) => da(le)
1493
+ }, {
1494
+ default: t(() => [
1495
+ s(Va)
1496
+ ]),
1497
+ _: 2
1498
+ }, 1032, ["onClick"])
1499
+ ]),
1500
+ _: 2
1501
+ }, 1024)) : A("", !0)
1502
+ ]),
1503
+ _: 2
1504
+ }, 1024)
1505
+ ]))), 128))
1506
+ ]),
1507
+ _: 1
1508
+ }, 8, ["model", "rules"])) : A("", !0)
1509
+ ]),
1510
+ _: 1
1511
+ }, 8, ["title", "modelValue"]),
1512
+ s(Be, {
1513
+ title: l(P).title,
1514
+ modelValue: l(P).open,
1515
+ "onUpdate:modelValue": e[22] || (e[22] = (i) => l(P).open = i),
1516
+ width: "400px",
1517
+ "append-to-body": "",
1518
+ draggable: ""
1519
+ }, {
1520
+ footer: t(() => [
1521
+ I("div", hl, [
1522
+ s($, {
1523
+ type: "primary",
1524
+ onClick: Me
1525
+ }, {
1526
+ default: t(() => [...e[41] || (e[41] = [
1527
+ U("确 定", -1)
1528
+ ])]),
1529
+ _: 1
1530
+ }),
1531
+ s($, {
1532
+ onClick: e[21] || (e[21] = (i) => l(P).open = !1)
1533
+ }, {
1534
+ default: t(() => [...e[42] || (e[42] = [
1535
+ U("取 消", -1)
1536
+ ])]),
1537
+ _: 1
1538
+ })
1539
+ ])
1540
+ ]),
1541
+ default: t(() => [
1542
+ s(We, {
1543
+ ref: "uploadRef",
1544
+ limit: 1,
1545
+ accept: ".xlsx, .xls",
1546
+ headers: l(P).headers,
1547
+ action: l(P).url + "?updateSupport=" + l(P).updateSupport,
1548
+ disabled: l(P).isUploading,
1549
+ "on-progress": R,
1550
+ "on-success": O,
1551
+ "auto-upload": !1,
1552
+ drag: ""
1553
+ }, {
1554
+ tip: t(() => [
1555
+ I("div", gl, [
1556
+ I("div", yl, [
1557
+ s(La, {
1558
+ modelValue: l(P).updateSupport,
1559
+ "onUpdate:modelValue": e[20] || (e[20] = (i) => l(P).updateSupport = i)
1560
+ }, null, 8, ["modelValue"]),
1561
+ e[37] || (e[37] = U("是否更新已经存在的用户数据", -1))
1562
+ ]),
1563
+ e[39] || (e[39] = I("span", null, "仅允许导入xls、xlsx格式文件。", -1)),
1564
+ s(Ra, {
1565
+ type: "primary",
1566
+ underline: !1,
1567
+ style: { "font-size": "12px", "vertical-align": "baseline" },
1568
+ onClick: _
1569
+ }, {
1570
+ default: t(() => [...e[38] || (e[38] = [
1571
+ U("下载模板", -1)
1572
+ ])]),
1573
+ _: 1
1574
+ })
1575
+ ])
1576
+ ]),
1577
+ default: t(() => [
1578
+ s(Ee, { class: "el-icon--upload" }, {
1579
+ default: t(() => [
1580
+ s(Pa)
1581
+ ]),
1582
+ _: 1
1583
+ }),
1584
+ e[40] || (e[40] = I("div", { class: "el-upload__text" }, [
1585
+ U("将文件拖到此处,或"),
1586
+ I("em", null, "点击上传")
1587
+ ], -1))
1588
+ ]),
1589
+ _: 1
1590
+ }, 8, ["headers", "action", "disabled"])
1591
+ ]),
1592
+ _: 1
1593
+ }, 8, ["title", "modelValue"]),
1594
+ s(Be, {
1595
+ modelValue: l(ge),
1596
+ "onUpdate:modelValue": e[23] || (e[23] = (i) => xe(ge) ? ge.value = i : null),
1597
+ "align-center": "",
1598
+ draggable: ""
1599
+ }, {
1600
+ default: t(() => [
1601
+ I("img", {
1602
+ "w-full": "",
1603
+ style: { width: "100%" },
1604
+ src: l(Le),
1605
+ alt: "Preview Image"
1606
+ }, null, 8, xl)
1607
+ ]),
1608
+ _: 1
1609
+ }, 8, ["modelValue"])
1610
+ ]);
1611
+ };
1612
+ }
1613
+ };
1614
+ var Ul = /* @__PURE__ */ Ca(zl, [["__scopeId", "data-v-9b8507e0"]]);
1615
+ export {
1616
+ Ul as default
1617
+ };