@utogether/udp-core 2.0.0-beta.1 → 2.0.0-beta.3

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 (182) hide show
  1. package/dist/{403-CTJDBjz7.js → 403-CxOqlq0f.js} +3 -3
  2. package/dist/403-WCboRvzZ-ZAPgYStl.js +65 -0
  3. package/dist/404-2V0Qi-d7-DkNwQggp.js +65 -0
  4. package/dist/{404-BFYkWIkQ.js → 404-xdB6lFeQ.js} +1 -1
  5. package/dist/500-BYfzvixf-CGpEieyQ.js +67 -0
  6. package/dist/{500-DGG3qadg.js → 500-C94bRK2S.js} +2 -2
  7. package/dist/AuthorityInfo-DBovfUjB-DpQwT9Q5.js +4 -0
  8. package/dist/{AuthorityInfo-ozZIo1Te.js → AuthorityInfo-Dy3b_nFN.js} +1 -1
  9. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DujerENw.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Bh7IbcdY.js} +2 -2
  10. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D-l_Az3s-Cw7WmFxz.js +100 -0
  11. package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE.js +4 -0
  12. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8.js +114 -0
  13. package/dist/Company-B4vsXy2I-CkNCOqjJ.js +25 -0
  14. package/dist/{Company-6VJtwh23.js → Company-gKkfnhLt.js} +3 -3
  15. package/dist/{CompanyPanel-B2P488mq.js → CompanyPanel-BF5Pc35s.js} +7 -7
  16. package/dist/CompanyPanel-Czcx8Gyw-CvndXwB_.js +206 -0
  17. package/dist/DataSet-DT-rGICv-DaUfgbxk.js +147 -0
  18. package/dist/{Department-BnwoLEOC.js → Department-D0I3QVZe.js} +3 -3
  19. package/dist/Department-D0dVUrGC-C6HJcYI1.js +25 -0
  20. package/dist/{DepartmentPanel-CRrrmxtv.js → DepartmentPanel-2LHODgc7.js} +22 -22
  21. package/dist/DepartmentPanel-e91Lxr1j-BS_A-ILd.js +254 -0
  22. package/dist/{DesignPanel-CvbccgX2.js → DesignPanel-CtF3cAAQ.js} +1 -1
  23. package/dist/DesignPanel-DdFl_ohi-uCwFxcl1.js +4 -0
  24. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BACPrfUI-cC7yL0uY.js +1013 -0
  25. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Dz2tUszs.js → DesignPanel.vue_vue_type_style_index_0_lang-BCYgwoVt.js} +3 -3
  26. package/dist/DictView-BzQLOf_P-DDicwdmM.js +111 -0
  27. package/dist/{DictView-Ce1LoVHh.js → DictView-H3V5hxg3.js} +1 -1
  28. package/dist/{InvOrganization-BwCFZO1X.js → InvOrganization-BiGLnbqe.js} +2 -2
  29. package/dist/InvOrganization-atbhw0CI-BABbVt9V.js +74 -0
  30. package/dist/Org-BW1YHG-Q-Cow7JWlD.js +39 -0
  31. package/dist/{Org-0hzs6b0R.js → Org-DQTCQHNY.js} +2 -2
  32. package/dist/Preview-DJtVsoq1-CCGidQjJ.js +48 -0
  33. package/dist/{Preview--DnEAhwh.js → Preview-DXaiis29.js} +1 -1
  34. package/dist/{ReportDefine-Cu983bTN.js → ReportDefine-BLh4CiER.js} +1 -1
  35. package/dist/ReportDefine-CNx_ob99-6NQAHK-Q.js +10 -0
  36. package/dist/ReportDesign-FbQ6yTJS-C1pPAUSp.js +165 -0
  37. package/dist/{ReportDesign-QsWXXgvo.js → ReportDesign-Ni1YxrLC.js} +7 -7
  38. package/dist/ReportQuery-C5gz8Lgd-Eu2cQmda.js +75 -0
  39. package/dist/{ReportQuery-BjKIIhPu.js → ReportQuery-C8G88_qF.js} +1 -1
  40. package/dist/ReportQueryFrom-C7scua5v-uHXWq8Gy.js +4 -0
  41. package/dist/{ReportQueryFrom-DIjBO6Fx.js → ReportQueryFrom-CuZKPtB4.js} +1 -1
  42. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-0T62cUMK.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BAn_siFW.js} +7 -7
  43. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DCbz67Wa-vK6r2uCl.js +178 -0
  44. package/dist/ReportTemplate-BDANdIWv-D_IGjR1w.js +161 -0
  45. package/dist/{ReportTemplate-2uk9tJcy.js → ReportTemplate-DFnDXWmx.js} +8 -8
  46. package/dist/{Role-_QP8QEaI.js → Role-BQ7hsfPn.js} +3 -3
  47. package/dist/Role-ByB0WbxW-5E8Mb148.js +25 -0
  48. package/dist/RoleAssign-DW6iC_0v-Bis61auk.js +26 -0
  49. package/dist/{RoleAssign-C2gkcmEQ.js → RoleAssign-UPCg2d4G.js} +3 -3
  50. package/dist/RolePanel-BM2MaQPU-CgcsbfaX.js +4 -0
  51. package/dist/{RolePanel-vnl_lXNY.js → RolePanel-C-mQ5XRq.js} +1 -1
  52. package/dist/RolePanel-ClQy8DBL-DARL4O-o.js +4 -0
  53. package/dist/{RolePanel-B8FPNGaA.js → RolePanel-CoSXOCZN.js} +1 -1
  54. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI.js +132 -0
  55. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-bxHXrBYl.js → RolePanel.vue_vue_type_script_setup_true_lang-Bg-t2UhF.js} +7 -7
  56. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BuQbYEEI.js → RolePanel.vue_vue_type_script_setup_true_lang-D-o7HYZ8.js} +8 -8
  57. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy.js +154 -0
  58. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js +100 -0
  59. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-C6yZXBqB.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk.js} +1 -1
  60. package/dist/Staff-CuxzvhD9-D0KTcyRh.js +25 -0
  61. package/dist/{Staff-CHWrMIEb.js → Staff-D-CmvG1R.js} +3 -3
  62. package/dist/StaffInfo-CY7gUICu-EZUhUwIp.js +4 -0
  63. package/dist/{StaffInfo-Cpq2eayz.js → StaffInfo-Idhvuc6e.js} +1 -1
  64. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn.js +108 -0
  65. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-BVCjF2i1.js → StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU.js} +1 -1
  66. package/dist/{StaffPanel-D2BMXt5p.js → StaffPanel-CDDmAYE5.js} +1 -1
  67. package/dist/StaffPanel-CwqG0_xr-CrvzLJoc.js +4 -0
  68. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B6jAGo-g.js → StaffPanel.vue_vue_type_script_setup_true_lang-Bdilqbee.js} +42 -42
  69. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0.js +143 -0
  70. package/dist/SysUser-9Q2UJWhi-DprWXFlR.js +15 -0
  71. package/dist/{SysUser-om6H1BeC.js → SysUser-a-j5bppr.js} +2 -2
  72. package/dist/{SysUserPanel-CH0HPP7h.js → SysUserPanel-6V232wwB.js} +1 -1
  73. package/dist/SysUserPanel-bJy69O7x-BJtBgFEs.js +4 -0
  74. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-Dpl13ee0.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy.js} +2 -2
  75. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen.js +356 -0
  76. package/dist/{SystemMenu-BkG_DKxA.js → SystemMenu-BnVeOSOQ.js} +7 -7
  77. package/dist/SystemMenu-DGOAolc1-CJSLHP8i.js +156 -0
  78. package/dist/UserInfo-CKoOHkAM-DDWp0I_U.js +4 -0
  79. package/dist/{UserInfo-D9croxUe.js → UserInfo-Cax9b2nw.js} +1 -1
  80. package/dist/UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO.js +160 -0
  81. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DLIP8xpN.js → UserInfo.vue_vue_type_style_index_0_lang-D-cw11i9.js} +2 -2
  82. package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes.js +10 -0
  83. package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
  84. package/dist/childView-0YZQ6GBn-CEqg7k5d.js +4 -0
  85. package/dist/{childView-BY_Ip-l1.js → childView-DKG3eZo8.js} +1 -1
  86. package/dist/childView-DKkgi3yo-D47ft-vi.js +4 -0
  87. package/dist/{childView-CHp_TueS.js → childView-siumuBz0.js} +1 -1
  88. package/dist/childView.vue_vue_type_style_index_0_lang-ABMrGInv-ClOdE_sa.js +143 -0
  89. package/dist/{childView.vue_vue_type_style_index_0_lang-BNHbDRjt.js → childView.vue_vue_type_style_index_0_lang-CUfXDS1q.js} +8 -8
  90. package/dist/{childView.vue_vue_type_style_index_0_lang-CbjGf7Z7.js → childView.vue_vue_type_style_index_0_lang-CW3EbAmW.js} +8 -8
  91. package/dist/childView.vue_vue_type_style_index_0_lang-CaW106ve-CClTM8PK.js +180 -0
  92. package/dist/{code-rule-Ce6yWqCq.js → code-rule-Dtoree6F.js} +2 -2
  93. package/dist/code-rule-wQyfgpNL-C4evD4Co.js +148 -0
  94. package/dist/core.es.js +10 -10
  95. package/dist/cron-task-C-kryDtd-C0NuGZCe.js +135 -0
  96. package/dist/{cron-task-DziaH0rI.js → cron-task-GSRgA7S5.js} +2 -2
  97. package/dist/flow-task-B07st2aD-CgQvagSQ.js +10 -0
  98. package/dist/frameView-BOGA3ezf-QoSxzmSQ.js +44 -0
  99. package/dist/{frameView-DNeCVQaY.js → frameView-Cy6wxW0K.js} +1 -1
  100. package/dist/{index-BabfUVv_.js → index-Dc7xWMiC.js} +1057 -1033
  101. package/dist/layout-home-3Dy4onl4.js +228 -0
  102. package/dist/layout-home-CYHksXN_-Basy-3IH.js +228 -0
  103. package/dist/layoutView-BaRvAbIa-xVgfqspc.js +3302 -0
  104. package/dist/{layoutView-12Mlp9A2.js → layoutView-DMjNscJ-.js} +8 -8
  105. package/dist/log-in-Cx1dGik8-BVeEHeZ8.js +117 -0
  106. package/dist/{log-in-1NGaA5OM.js → log-in-VAG6Cvcx.js} +8 -8
  107. package/dist/log-out-COYdxrNC-ftopGZdE.js +130 -0
  108. package/dist/{log-out-B8_atGcQ.js → log-out-DZGaMCjC.js} +4 -4
  109. package/dist/{login-5dydO6GR.js → login-CqVMdNHs.js} +16 -16
  110. package/dist/login-Dg9ofNS8-Bocp1XMA.js +241 -0
  111. package/dist/login-log-DJBGJVV0-AoOyj0jD.js +70 -0
  112. package/dist/lov-view-C0T5prk8-B2DBmn55.js +97 -0
  113. package/dist/{lov-view-DPvGUu3h.js → lov-view-Cc68_28B.js} +7 -7
  114. package/dist/{menuInfo-DVADYfEK.js → menuInfo-BIrIaJlH.js} +1 -1
  115. package/dist/menuInfo-BZJ_q7bz-Drho-_QC.js +4 -0
  116. package/dist/menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf.js +363 -0
  117. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DgsifDrm.js → menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X.js} +2 -2
  118. package/dist/{pda-app-BZXs-2BQ.js → pda-app-DnjphrRS.js} +9 -9
  119. package/dist/pda-app-m9hsppHo-B4xyja1o.js +710 -0
  120. package/dist/redirect-BqegffKC-CBCIuqmz.js +15 -0
  121. package/dist/resource-C6KEIXu--B_ddyecm.js +97 -0
  122. package/dist/{resource-BZA9NFKc.js → resource-DISgPDM7.js} +4 -4
  123. package/dist/su-welcome-BjbuSrBZ.js +49424 -0
  124. package/dist/su-welcome-CYYy-dzr-D3RKPoB0.js +42089 -0
  125. package/dist/sys-config-DCjJGtht-DARDjlrt.js +370 -0
  126. package/dist/{sys-config-DQmNjWH4.js → sys-config-Yc9vh1t1.js} +13 -13
  127. package/dist/udp-core.css +1 -1
  128. package/dist/utogether-MlnyYtNS-CGgjFNPS.js +4 -0
  129. package/package.json +5 -2
  130. package/src/App.vue +71 -71
  131. package/src/components/udp/content/index.vue +88 -88
  132. package/src/components/udp/form-upload/form-upload.vue +492 -492
  133. package/src/components/udp/grid/index.vue +524 -524
  134. package/src/components/udp/index.ts +6 -6
  135. package/src/components/udp/ut-stamp-badge/index.vue +271 -271
  136. package/src/components/udp/utils.ts +408 -408
  137. package/src/layout/components/lay-content/index.vue +136 -136
  138. package/src/layout/components/lay-search/components/SearchModal.vue +181 -189
  139. package/src/layout/components/lay-setting/index.vue +503 -503
  140. package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -101
  141. package/src/layout/components/lay-tag/index.vue +598 -598
  142. package/src/layout/hooks/useNav.ts +176 -176
  143. package/src/layout/hooks/useTag.ts +227 -227
  144. package/src/layout/layoutView.vue +216 -216
  145. package/src/layout/types.ts +93 -93
  146. package/src/main.ts +111 -112
  147. package/src/plugins/i18n/zh.ts +1 -0
  148. package/src/plugins/vxe-table/index.ts +116 -116
  149. package/src/plugins/vxe-table/render.tsx +968 -968
  150. package/src/router/index.ts +187 -187
  151. package/src/router/modules/home.ts +32 -32
  152. package/src/router/utils.ts +420 -420
  153. package/src/store/modules/epTheme.ts +48 -48
  154. package/src/style/vxetable.scss +364 -356
  155. package/src/utils/dataFormat/index.ts +222 -222
  156. package/src/utils/lifecycle.ts +39 -39
  157. package/src/views/organization/department/DepartmentPanel.vue +303 -303
  158. package/src/views/organization/staff/StaffInfo.vue +127 -127
  159. package/src/views/organization/staff/StaffPanel.vue +3 -3
  160. package/src/views/system/layout/layout-home.vue +45 -7
  161. package/src/views/system/menu/AuthorityPanel.vue +141 -141
  162. package/src/views/system/menu/SystemMenu.vue +194 -194
  163. package/src/views/system/menu/menuInfo.vue +1 -1
  164. package/src/views/system/sysUser/SysUserPanel.vue +363 -363
  165. package/src/views/udev/coderule/code-rule.vue +132 -132
  166. package/src/views/udev/dict/DictView.vue +118 -118
  167. package/src/views/udev/dict/childView.vue +184 -184
  168. package/src/views/udev/lov/childView.vue +174 -174
  169. package/src/views/uhome/components/common-menu.vue +118 -0
  170. package/src/views/uhome/components/dynamic-component.vue +66 -0
  171. package/src/views/uhome/components/home-todo.vue +170 -0
  172. package/src/views/uhome/components/menu-favorite.vue +315 -315
  173. package/src/views/uhome/dynamic-card.vue +18 -19
  174. package/src/views/uhome/su-welcome.vue +46 -116
  175. package/src/views/ulogin/login.vue +336 -336
  176. package/src/views/upms/interface/log-in.vue +100 -100
  177. package/src/views/upms/interface/log-out.vue +104 -104
  178. package/src/views/upms/user/login-log.vue +54 -54
  179. package/types/global.d.ts +232 -232
  180. package/dist/await-to-js.es5-BtRbN2QH.js +0 -10
  181. package/dist/layout-home-Cis1KlEr.js +0 -195
  182. package/dist/su-welcome-BXe6Cdp3.js +0 -580
@@ -1,28 +1,28 @@
1
- import { defineComponent as E, ref as C, inject as S, reactive as N, watch as B, nextTick as D, resolveComponent as r, createElementBlock as M, openBlock as d, createVNode as s, createBlock as I, createCommentVNode as L, Fragment as A } from "vue";
2
- import { useI18n as P } from "vue-i18n";
3
- import { clone as U } from "xe-utils";
4
- import { warnMessage as V } from "@utogether/utils";
5
- import { _ as T } from "./StaffInfo.vue_vue_type_script_setup_true_lang-BVCjF2i1.js";
6
- import { y as i } from "./index-BabfUVv_.js";
1
+ import { defineComponent as E, ref as C, inject as S, reactive as N, watch as V, nextTick as B, resolveComponent as r, createElementBlock as D, openBlock as l, createVNode as s, createBlock as M, createCommentVNode as I, Fragment as L } from "vue";
2
+ import { useI18n as A } from "vue-i18n";
3
+ import { clone as P } from "xe-utils";
4
+ import { warnMessage as U } from "@utogether/utils";
5
+ import { _ as T } from "./StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU.js";
6
+ import { g as d } from "./index-Dc7xWMiC.js";
7
7
  import { VxeUI as Y } from "vxe-pc-ui";
8
- import { t as O } from "./await-to-js.es5-BtRbN2QH.js";
8
+ import { t as O } from "./await-to-js.es5-Bv3Eu4mi.js";
9
9
  const j = {
10
10
  class: "page-content"
11
- }, l = "/uums/employee", Q = /* @__PURE__ */ E({
11
+ }, i = "/uums/employee", Q = /* @__PURE__ */ E({
12
12
  __name: "StaffPanel",
13
13
  setup(q) {
14
- const a = C(null), {
14
+ const o = C(null), {
15
15
  t: u
16
- } = P(), n = S("active"), t = N({
16
+ } = A(), n = S("active"), t = N({
17
17
  record: {},
18
18
  showModelView: !1,
19
19
  fetchExtParam: {}
20
20
  });
21
- B(() => n.value, (e) => {
21
+ V(() => n.value, () => {
22
22
  t.fetchExtParam = {
23
- departmentId: e == null ? void 0 : e.id
24
- }, D(() => {
25
- a.value.refreshData();
23
+ departmentId: null
24
+ }, B(() => {
25
+ o.value.refreshData();
26
26
  });
27
27
  });
28
28
  const m = [{
@@ -72,16 +72,16 @@ const j = {
72
72
  default: ({
73
73
  row: e
74
74
  }) => {
75
- const o = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", c = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", x = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
76
- return [s(A, null, [s(r("ut-button"), {
75
+ const a = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", c = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", x = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
76
+ return [s(L, null, [s(r("ut-button"), {
77
77
  icon: "ri-edit-box-line",
78
78
  content: "edit",
79
- onTap: () => v(e)
79
+ onTap: () => w(e)
80
80
  }, null), s(r("ut-button"), {
81
81
  icon: c,
82
- content: o,
82
+ content: a,
83
83
  status: x,
84
- onTap: () => b(e)
84
+ onTap: () => g(e)
85
85
  }, null)])];
86
86
  }
87
87
  }
@@ -92,49 +92,49 @@ const j = {
92
92
  e === "add" && y();
93
93
  }
94
94
  }, y = () => {
95
- var e, o;
95
+ var e, a;
96
96
  if (!((e = n.value) != null && e.deptName))
97
- return V("请先选择部门");
98
- t.dataStatus = "add", t.record = {}, t.record.departmentId = (o = n.value) == null ? void 0 : o.id, t.record.deptName = n.value.deptName, t.record.enabled = "1", t.showModelView = !0;
99
- }, v = (e) => {
97
+ return U("请先选择部门");
98
+ t.dataStatus = "add", t.record = {}, t.record.departmentId = (a = n.value) == null ? void 0 : a.id, t.record.deptName = n.value.deptName, t.record.enabled = "1", t.showModelView = !0;
99
+ }, w = (e) => {
100
100
  t.dataStatus = "update", t.record = e, t.showModelView = !0;
101
- }, b = async (e) => {
102
- const o = U(e, !0);
103
- a.value.showLoading(), o.enabled = o.enabled === "1" ? "0" : "1", await i().put(l, o), a.value.hiddenLoading(), a.value.refreshData();
104
- }, g = async () => {
101
+ }, g = async (e) => {
102
+ const a = P(e, !0);
103
+ o.value.showLoading(), a.enabled = a.enabled === "1" ? "0" : "1", await d().put(i, a), o.value.hiddenLoading(), o.value.refreshData();
104
+ }, v = async () => {
105
105
  if (await Y.modal.confirm(u("message.tip.confirmSync")) !== "confirm") return;
106
- a.value.showLoading();
107
- const [o] = await O(i().post("/uums/employee/syncEwEmp", {}));
108
- a.value.hiddenLoading(), !o && a.value.refreshData();
109
- }, _ = (e) => {
110
- e === "sync" && g();
111
- }, w = {
106
+ o.value.showLoading();
107
+ const [a] = await O(d().post("/uums/employee/syncEwEmp", {}));
108
+ o.value.hiddenLoading(), !a && o.value.refreshData();
109
+ }, b = (e) => {
110
+ e === "sync" && v();
111
+ }, _ = {
112
112
  querySuccess: (e) => {
113
113
  }
114
114
  }, k = () => {
115
- t.showModelView = !1, a.value.refreshData();
115
+ t.showModelView = !1, o.value.refreshData();
116
116
  };
117
- return (e, o) => {
117
+ return (e, a) => {
118
118
  const c = r("ut-grid");
119
- return d(), M("div", j, [s(c, {
119
+ return l(), D("div", j, [s(c, {
120
120
  ref_key: "xgrid",
121
- ref: a,
121
+ ref: o,
122
122
  items: f,
123
123
  columns: p,
124
124
  "default-params": t.fetchExtParam,
125
125
  events: h,
126
126
  "auto-load": !1,
127
127
  buttons: m,
128
- url: l,
129
- callback: w,
128
+ url: i,
129
+ callback: _,
130
130
  mode: "form",
131
- onButtonClick: _
132
- }, null, 8, ["default-params"]), t.showModelView ? (d(), I(T, {
131
+ onButtonClick: b
132
+ }, null, 8, ["default-params"]), t.showModelView ? (l(), M(T, {
133
133
  key: 0,
134
134
  record: t.record,
135
135
  "data-status": t.dataStatus,
136
136
  onOnClose: k
137
- }, null, 8, ["record", "data-status"])) : L("", !0)]);
137
+ }, null, 8, ["record", "data-status"])) : I("", !0)]);
138
138
  };
139
139
  }
140
140
  });
@@ -0,0 +1,143 @@
1
+ import { defineComponent as N, ref as C, inject as S, reactive as V, watch as D, nextTick as B, resolveComponent as d, createElementBlock as M, openBlock as c, createVNode as n, createBlock as L, createCommentVNode as I, Fragment as P } from "vue";
2
+ import { useI18n as _ } from "vue-i18n";
3
+ import { clone as T } from "xe-utils";
4
+ import { warnMessage as U } from "@utogether/utils";
5
+ import { x as Y } from "./StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn.js";
6
+ import { W as i } from "./su-welcome-BjbuSrBZ.js";
7
+ import { VxeUI as j } from "vxe-pc-ui";
8
+ import { c as q } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes.js";
9
+ const A = {
10
+ class: "page-content"
11
+ }, s = "/uums/employee", K = /* @__PURE__ */ N({
12
+ __name: "StaffPanel",
13
+ setup(O) {
14
+ const a = C(null), {
15
+ t: u
16
+ } = _(), r = S("active"), t = V({
17
+ record: {},
18
+ showModelView: !1,
19
+ fetchExtParam: {}
20
+ });
21
+ D(() => r.value, () => {
22
+ t.fetchExtParam = {
23
+ departmentId: null
24
+ }, B(() => {
25
+ a.value.refreshData();
26
+ });
27
+ });
28
+ const m = [{
29
+ code: "sync",
30
+ auth: "wechat",
31
+ status: "success",
32
+ icon: "ri-refresh-line"
33
+ }, {
34
+ code: "sync",
35
+ auth: "dingding",
36
+ status: "success",
37
+ icon: "ri-refresh-line"
38
+ }, {
39
+ code: "sync",
40
+ auth: "OA",
41
+ status: "success",
42
+ icon: "ri-refresh-line"
43
+ }, {
44
+ code: "del",
45
+ auth: "/"
46
+ }], f = [{
47
+ field: "employeeCode"
48
+ }, {
49
+ field: "employeeName"
50
+ }], p = [{
51
+ type: "checkbox",
52
+ width: 50,
53
+ align: "center"
54
+ }, {
55
+ field: "employeeCode"
56
+ }, {
57
+ field: "employeeName",
58
+ width: 150
59
+ }, {
60
+ field: "gender",
61
+ width: 100,
62
+ formatter: ["formatDict", "SU.GENDER"]
63
+ }, {
64
+ field: "enabled",
65
+ width: 100,
66
+ formatter: ["formatDict", "SU.ENABLE"]
67
+ }, {
68
+ field: "operate",
69
+ width: 150,
70
+ fixed: "right",
71
+ slots: {
72
+ default: ({
73
+ row: e
74
+ }) => {
75
+ const o = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", l = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", E = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
76
+ return [n(P, null, [n(d("ut-button"), {
77
+ icon: "ri-edit-box-line",
78
+ content: "edit",
79
+ onTap: () => v(e)
80
+ }, null), n(d("ut-button"), {
81
+ icon: l,
82
+ content: o,
83
+ status: E,
84
+ onTap: () => y(e)
85
+ }, null)])];
86
+ }
87
+ }
88
+ }], h = {
89
+ toolbarButtonClick({
90
+ code: e
91
+ }) {
92
+ e === "add" && w();
93
+ }
94
+ }, w = () => {
95
+ var e, o;
96
+ if (!((e = r.value) != null && e.deptName))
97
+ return U("请先选择部门");
98
+ t.dataStatus = "add", t.record = {}, t.record.departmentId = (o = r.value) == null ? void 0 : o.id, t.record.deptName = r.value.deptName, t.record.enabled = "1", t.showModelView = !0;
99
+ }, v = (e) => {
100
+ t.dataStatus = "update", t.record = e, t.showModelView = !0;
101
+ }, y = async (e) => {
102
+ const o = T(e, !0);
103
+ a.value.showLoading(), o.enabled = o.enabled === "1" ? "0" : "1", await i().put(s, o), a.value.hiddenLoading(), a.value.refreshData();
104
+ }, b = async () => {
105
+ if (await j.modal.confirm(u("message.tip.confirmSync")) !== "confirm") return;
106
+ a.value.showLoading();
107
+ const [e] = await q(i().post("/uums/employee/syncEwEmp", {}));
108
+ a.value.hiddenLoading(), !e && a.value.refreshData();
109
+ }, g = (e) => {
110
+ e === "sync" && b();
111
+ }, x = {
112
+ querySuccess: (e) => {
113
+ }
114
+ }, k = () => {
115
+ t.showModelView = !1, a.value.refreshData();
116
+ };
117
+ return (e, o) => {
118
+ const l = d("ut-grid");
119
+ return c(), M("div", A, [n(l, {
120
+ ref_key: "xgrid",
121
+ ref: a,
122
+ items: f,
123
+ columns: p,
124
+ "default-params": t.fetchExtParam,
125
+ events: h,
126
+ "auto-load": !1,
127
+ buttons: m,
128
+ url: s,
129
+ callback: x,
130
+ mode: "form",
131
+ onButtonClick: g
132
+ }, null, 8, ["default-params"]), t.showModelView ? (c(), L(Y, {
133
+ key: 0,
134
+ record: t.record,
135
+ "data-status": t.dataStatus,
136
+ onOnClose: k
137
+ }, null, 8, ["record", "data-status"])) : I("", !0)]);
138
+ };
139
+ }
140
+ });
141
+ export {
142
+ K as Q
143
+ };
@@ -0,0 +1,15 @@
1
+ import { defineComponent as t, ref as o, createElementBlock as r, provide as s, openBlock as n, createVNode as a } from "vue";
2
+ import { x as p } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen.js";
3
+ import { t as c } from "./su-welcome-BjbuSrBZ.js";
4
+ const m = { class: "u-content-panel1" }, d = /* @__PURE__ */ t({
5
+ __name: "SysUser",
6
+ setup(i) {
7
+ const e = o([]);
8
+ return s("treeList", e), (f, l) => (n(), r("div", m, [
9
+ a(p)
10
+ ]));
11
+ }
12
+ }), v = /* @__PURE__ */ c(d, [["__scopeId", "data-v-8708bc91"]]);
13
+ export {
14
+ v as default
15
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as t, ref as o, provide as s, createElementBlock as r, openBlock as c, createVNode as _ } from "vue";
2
- import { _ as n } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-Dpl13ee0.js";
3
- import { _ as a } from "./index-BabfUVv_.js";
2
+ import { _ as n } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy.js";
3
+ import { _ as a } from "./index-Dc7xWMiC.js";
4
4
  const p = { class: "u-content-panel1" }, i = /* @__PURE__ */ t({
5
5
  __name: "SysUser",
6
6
  setup(m) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-Dpl13ee0.js";
1
+ import { _ as f } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,4 @@
1
+ import { x as f } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as re, reactive as ne, ref as v, inject as ie, createVNode as o, Fragment as x, resolveComponent as r, onMounted as de, createElementBlock as S, openBlock as h, createBlock as N, createCommentVNode as $, withCtx as u, renderList as ue, unref as me } from "vue";
2
2
  import { useI18n as ce } from "vue-i18n";
3
- import { t as M } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { t as M } from "./await-to-js.es5-Bv3Eu4mi.js";
4
4
  import { useRender as fe, warnMessage as pe, delay as ge, errorMessage as he, getDictChildren as we } from "@utogether/utils";
5
5
  import { VxeUI as _ } from "vxe-pc-ui";
6
6
  import { clone as U, isEmpty as ve } from "xe-utils";
7
- import { y as _e } from "./index-BabfUVv_.js";
7
+ import { g as _e } from "./index-Dc7xWMiC.js";
8
8
  const ye = {
9
9
  class: "page"
10
10
  }, i = "/uums/user", xe = /* @__PURE__ */ re({