@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
@@ -0,0 +1,356 @@
1
+ import { defineComponent as ie, reactive as de, ref as v, inject as oe, createVNode as l, Fragment as k, resolveComponent as r, onMounted as ue, createElementBlock as S, openBlock as h, createBlock as P, createCommentVNode as q, withCtx as n, renderList as ne, unref as me } from "vue";
2
+ import { useI18n as ce } from "vue-i18n";
3
+ import { c as M } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes.js";
4
+ import { useRender as fe, warnMessage as pe, getDictChildren as he, delay as ge, errorMessage as we } from "@utogether/utils";
5
+ import { VxeUI as y } from "vxe-pc-ui";
6
+ import { clone as V, isEmpty as ve } from "xe-utils";
7
+ import { W as ye } from "./su-welcome-BjbuSrBZ.js";
8
+ const Ne = {
9
+ class: "page"
10
+ }, o = "/uums/user", ke = /* @__PURE__ */ ie({
11
+ __name: "SysUserPanel",
12
+ setup(be) {
13
+ const t = de({
14
+ record: {},
15
+ listQuery: {},
16
+ dataList: [],
17
+ roleList: [],
18
+ items: [],
19
+ submitLoading: !1,
20
+ showModelView: !1,
21
+ showUserRole: !1,
22
+ showModal: !1,
23
+ showAuth: !1,
24
+ dataStatus: ""
25
+ }), u = ye(), {
26
+ t: s
27
+ } = ce(), L = {
28
+ userName: [{
29
+ required: !0,
30
+ message: `${s("message.required")}${s("message.userCode")}`
31
+ }],
32
+ name: [{
33
+ required: !0,
34
+ message: `${s("message.required")}${s("message.userName")}`
35
+ }],
36
+ unitId: [{
37
+ required: !0,
38
+ message: `${s("message.required")}${s("message.unitName")}`
39
+ }],
40
+ userPwd: [{
41
+ required: !0,
42
+ message: `${s("message.required")}${s("message.userPwd")}`
43
+ }]
44
+ }, _ = fe(), N = v({}), E = oe("treeList"), c = v(!1);
45
+ let g = "";
46
+ const D = [{
47
+ code: "resetPassword",
48
+ status: "warning",
49
+ icon: "ri-lock-line",
50
+ auth: "batch"
51
+ }], m = v(null), I = [{
52
+ field: "name",
53
+ title: "message.udp.userName"
54
+ }, {
55
+ field: "userName",
56
+ title: "message.udp.userCode"
57
+ }, {
58
+ field: "type",
59
+ title: "message.udp.userType",
60
+ code: "SU.USER.TYPE"
61
+ }], T = [{
62
+ type: "checkbox",
63
+ width: 40,
64
+ align: "center"
65
+ }, {
66
+ field: "userName",
67
+ title: "message.udp.userCode"
68
+ }, {
69
+ field: "name",
70
+ title: "message.udp.userName"
71
+ }, {
72
+ field: "type",
73
+ title: "message.udp.userType",
74
+ formatter: ["formatDict", "SU.USER.TYPE"]
75
+ }, {
76
+ field: "enabled",
77
+ width: 80,
78
+ cellRender: _.renderEnabled(O)
79
+ }, {
80
+ field: "operate",
81
+ width: 150,
82
+ fixed: "right",
83
+ slots: {
84
+ default: ({
85
+ row: e
86
+ }) => [l(k, null, [l(r("ut-button"), {
87
+ content: "edit",
88
+ icon: "ri-edit-line",
89
+ onTap: () => W(e)
90
+ }, null), l(r("ut-dropdown"), {
91
+ buttons: B(),
92
+ onCommand: (a) => A(e, a)
93
+ }, null)])]
94
+ }
95
+ }], A = (e, a) => {
96
+ a === "role" && Q(e), a === "auth" && J(e), a === "passwordReset" && G(e);
97
+ }, B = () => [{
98
+ code: "role",
99
+ icon: "ri-user-fill"
100
+ }, {
101
+ code: "auth",
102
+ icon: "ri-lock-fill"
103
+ }, {
104
+ code: "passwordReset",
105
+ icon: "ri-lock-password-line"
106
+ }], x = [{
107
+ field: "userName",
108
+ title: "message.udp.userCode",
109
+ required: !0,
110
+ disabled: !1
111
+ }, {
112
+ field: "name",
113
+ title: "message.udp.userName",
114
+ required: !0
115
+ }, {
116
+ field: "type",
117
+ required: !0,
118
+ title: "message.udp.userType",
119
+ code: "SU.USER.TYPE"
120
+ }, {
121
+ field: "userPwd",
122
+ required: !0,
123
+ visibleMethod: ({
124
+ data: e
125
+ }) => !e.id
126
+ }], F = () => {
127
+ t.record = {
128
+ userPwd: g,
129
+ ...N.value,
130
+ type: "system"
131
+ }, t.items = V(x, !0), t.height = 280, t.showModal = !0;
132
+ }, W = (e) => {
133
+ t.record = V(e, !0), t.items = V(x, !0), t.items[0].disabled = !0, t.height = 240, t.showModal = !0;
134
+ }, Y = () => {
135
+ m.value.getInstance().commitProxy("delete");
136
+ }, j = (e) => [e], z = () => {
137
+ m.value.refreshData();
138
+ };
139
+ async function O({
140
+ row: e
141
+ }) {
142
+ await M(u.put(o, [e])), m.value.refreshData();
143
+ }
144
+ const Q = async (e) => {
145
+ var a;
146
+ t.roleList = [], t.showUserRole = !0, c.value = !0;
147
+ const i = await u.get(o + "/getUserRole", {
148
+ userName: e.userName
149
+ });
150
+ c.value = !1, t.roleList = (a = i[0]) == null ? void 0 : a.sysRoles;
151
+ }, G = async (e) => {
152
+ await y.modal.confirm(s("message.tip.confirmResetPassword")) === "confirm" && (await u.put(o + "/resetPwd", e), await y.modal.alert(s("message.tip.initPassword", {
153
+ code: g
154
+ })));
155
+ }, H = async () => {
156
+ const e = m.value.getSelectRecords();
157
+ if (!e.length || await y.modal.confirm(s("message.tip.confirmResetPassword")) !== "confirm") return;
158
+ const a = e.map((i) => ({
159
+ id: i.id
160
+ }));
161
+ await u.put(o + "/batchUpdatePwd", a), await y.modal.alert(s("message.tip.initPassword", {
162
+ code: g
163
+ })), m.value.refreshData();
164
+ }, J = async (e) => {
165
+ var a;
166
+ t.roleList = [], t.showAuth = !0, c.value = !0, t.record = e;
167
+ const [i, w] = await M(u.get(o + "/getUserRole", {
168
+ userName: e.userName
169
+ }));
170
+ c.value = !1, i || (ve(w) ? pe(s("message.tip.emptyAuth")) : t.roleList = (a = w[0]) == null ? void 0 : a.sysMenuExts);
171
+ }, R = v(null), K = () => {
172
+ R.value.validate(async (e) => {
173
+ if (!e) {
174
+ const {
175
+ record: a,
176
+ dataStatus: i
177
+ } = t;
178
+ i === "add" ? await u.post(o, a) : await u.put(o, a), C();
179
+ }
180
+ });
181
+ }, C = () => {
182
+ t.showModelView = !1;
183
+ }, X = (e) => {
184
+ e === "add" && F(), e === "del" && Y(), e === "resetPassword" && H();
185
+ }, Z = () => {
186
+ u.get("/uums/unit", {
187
+ pageSize: 10
188
+ }).then(async (e) => {
189
+ N.value = {
190
+ unitId: e[0].id,
191
+ enabled: "1"
192
+ }, await ge(100), m.value.refreshData();
193
+ }).catch(() => {
194
+ we("获取租户失败,刷新后重试");
195
+ });
196
+ }, ee = () => {
197
+ var e;
198
+ g = ((e = he("SU.DEFAULT_PASSWORD")) == null ? void 0 : e.find((a) => a.dictCode === "default")).dictName;
199
+ };
200
+ return ue(() => {
201
+ ee(), Z();
202
+ }), (e, a) => {
203
+ const i = r("ut-grid"), w = r("vxe-option"), te = r("vxe-select"), f = r("vxe-form-item"), $ = r("ut-button"), ae = r("vxe-form"), b = r("vxe-modal"), U = r("vxe-column"), le = r("vxe-table"), se = r("el-tree-v2"), re = r("ut-modal-form");
204
+ return h(), S("div", Ne, [l(i, {
205
+ ref_key: "xgrid",
206
+ ref: m,
207
+ columns: T,
208
+ items: I,
209
+ url: o,
210
+ "auto-load": !1,
211
+ "default-params": N.value,
212
+ buttons: D,
213
+ mode: "form",
214
+ onButtonClick: X
215
+ }, null, 8, ["default-params"]), l(b, {
216
+ modelValue: t.showModelView,
217
+ "onUpdate:modelValue": a[0] || (a[0] = (d) => t.showModelView = d),
218
+ title: "用户信息",
219
+ width: "300"
220
+ }, {
221
+ default: n(() => [l(ae, {
222
+ ref_key: "xForm",
223
+ ref: R,
224
+ data: t.record,
225
+ rules: L,
226
+ "title-align": "right"
227
+ }, {
228
+ default: n(() => [l(f, {
229
+ title: e.$t("message.unitName"),
230
+ field: "unitId",
231
+ span: "24"
232
+ }, {
233
+ default: n(({
234
+ data: d
235
+ }) => [l(te, {
236
+ modelValue: d.unitId,
237
+ "onUpdate:modelValue": (p) => d.unitId = p
238
+ }, {
239
+ default: n(() => [(h(!0), S(k, null, ne(me(E), (p) => (h(), P(w, {
240
+ key: p.id,
241
+ value: p.id,
242
+ label: p.unitName
243
+ }, null, 8, ["value", "label"]))), 128))]),
244
+ _: 2
245
+ }, 1032, ["modelValue", "onUpdate:modelValue"])]),
246
+ _: 1
247
+ }, 8, ["title"]), l(f, {
248
+ title: e.$t("message.userCode"),
249
+ "item-render": {
250
+ name: "input",
251
+ attrs: {
252
+ disabled: t.dataStatus === "update"
253
+ }
254
+ },
255
+ field: "userName",
256
+ span: "24"
257
+ }, null, 8, ["title", "item-render"]), l(f, {
258
+ title: e.$t("message.userName"),
259
+ field: "name",
260
+ span: "24",
261
+ "item-render": {
262
+ name: "input"
263
+ }
264
+ }, null, 8, ["title"]), t.dataStatus === "add" ? (h(), P(f, {
265
+ key: 0,
266
+ title: e.$t("message.userPwd"),
267
+ "item-render": {
268
+ name: "input"
269
+ },
270
+ field: "userPwd",
271
+ span: "24"
272
+ }, null, 8, ["title"])) : q("", !0), l(f, {
273
+ align: "right",
274
+ span: "24"
275
+ }, {
276
+ default: n(() => [l($, {
277
+ content: "cancel",
278
+ icon: "ri-close-fill",
279
+ onClick: C
280
+ }), l($, {
281
+ content: "confirm",
282
+ icon: "ri-save-3-fill",
283
+ status: "u-cyan",
284
+ onClick: K
285
+ })]),
286
+ _: 1
287
+ })]),
288
+ _: 1
289
+ }, 8, ["data"])]),
290
+ _: 1
291
+ }, 8, ["modelValue"]), l(b, {
292
+ modelValue: t.showUserRole,
293
+ "onUpdate:modelValue": a[1] || (a[1] = (d) => t.showUserRole = d),
294
+ loading: c.value,
295
+ title: e.$t("message.title.roleInfo"),
296
+ width: "600"
297
+ }, {
298
+ default: n(() => [l(le, {
299
+ height: "300",
300
+ data: t.roleList,
301
+ border: ""
302
+ }, {
303
+ default: n(() => [l(U, {
304
+ type: "seq",
305
+ width: "60"
306
+ }), l(U, {
307
+ field: "roleName",
308
+ title: e.$t("message.udp.roleName")
309
+ }, null, 8, ["title"]), l(U, {
310
+ field: "roleDesc",
311
+ title: e.$t("message.udp.roleDesc")
312
+ }, null, 8, ["title"])]),
313
+ _: 1
314
+ }, 8, ["data"])]),
315
+ _: 1
316
+ }, 8, ["modelValue", "loading", "title"]), l(b, {
317
+ modelValue: t.showAuth,
318
+ "onUpdate:modelValue": a[2] || (a[2] = (d) => t.showAuth = d),
319
+ loading: c.value,
320
+ title: e.$t("message.title.authority", {
321
+ role: t.record.name || "88888"
322
+ }),
323
+ height: "620",
324
+ width: "560"
325
+ }, {
326
+ default: n(() => [l(se, {
327
+ ref: "xTree",
328
+ data: t.roleList,
329
+ props: {
330
+ children: "children",
331
+ label: "menuName"
332
+ },
333
+ height: 560,
334
+ "node-key": "id"
335
+ }, null, 8, ["data"])]),
336
+ _: 1
337
+ }, 8, ["modelValue", "loading", "title"]), t.showModal ? (h(), P(re, {
338
+ key: 0,
339
+ record: t.record,
340
+ items: t.items,
341
+ width: 360,
342
+ height: t.height,
343
+ method: t.record.id ? "put" : "post",
344
+ "data-process-method": j,
345
+ title: e.$t("message.title.userInfo"),
346
+ "data-status": "update",
347
+ url: o,
348
+ onClose: a[3] || (a[3] = (d) => t.showModal = !1),
349
+ onConfirm: z
350
+ }, null, 8, ["record", "items", "height", "method", "title"])) : q("", !0)]);
351
+ };
352
+ }
353
+ });
354
+ export {
355
+ ke as x
356
+ };
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as k, reactive as S, ref as D, createVNode as o, resolveComponent as i, Fragment as h, createElementBlock as A, openBlock as E } from "vue";
2
2
  import { useI18n as I } from "vue-i18n";
3
- import { _ as N } from "./menuInfo.vue_vue_type_style_index_0_lang-DgsifDrm.js";
3
+ import { _ as N } from "./menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X.js";
4
4
  import { _ as P } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js";
5
5
  import { clone as f } from "xe-utils";
6
- import { t as R } from "./await-to-js.es5-BtRbN2QH.js";
6
+ import { t as R } from "./await-to-js.es5-Bv3Eu4mi.js";
7
7
  import { VxeUI as M } from "vxe-pc-ui";
8
8
  import { useRender as U } from "@utogether/utils";
9
- import { y as W } from "./index-BabfUVv_.js";
9
+ import { g as W } from "./index-Dc7xWMiC.js";
10
10
  const B = {
11
11
  class: "page-content"
12
12
  }, L = {
@@ -27,9 +27,9 @@ const B = {
27
27
  }
28
28
  }), {
29
29
  t: g
30
- } = I(), y = U(), d = W(), a = D(null), s = "/uums/menu";
30
+ } = I(), C = U(), d = W(), a = D(null), s = "/uums/menu";
31
31
  let l;
32
- const C = [{
32
+ const y = [{
33
33
  type: "checkbox",
34
34
  width: 50,
35
35
  align: "center"
@@ -57,7 +57,7 @@ const B = {
57
57
  }, {
58
58
  field: "enabled",
59
59
  width: 80,
60
- cellRender: y.renderEnabled(b)
60
+ cellRender: C.renderEnabled(b)
61
61
  }, {
62
62
  field: "operate",
63
63
  width: 140,
@@ -133,7 +133,7 @@ const B = {
133
133
  iconOpen: "ri-checkbox-indeterminate-line ri-lg",
134
134
  iconClose: "ri-add-box-line ri-lg"
135
135
  },
136
- columns: C,
136
+ columns: y,
137
137
  url: s,
138
138
  stripe: !1,
139
139
  mode: "form",
@@ -0,0 +1,156 @@
1
+ import { defineComponent as k, reactive as D, ref as I, createVNode as o, resolveComponent as i, Fragment as h, createElementBlock as E, openBlock as N } from "vue";
2
+ import { useI18n as B } from "vue-i18n";
3
+ import { i as W } from "./menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf.js";
4
+ import { B as R } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8.js";
5
+ import { clone as f } from "xe-utils";
6
+ import { c as A } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes.js";
7
+ import { VxeUI as L } from "vxe-pc-ui";
8
+ import { useRender as P } from "@utogether/utils";
9
+ import { W as z } from "./su-welcome-BjbuSrBZ.js";
10
+ const M = {
11
+ class: "page-content"
12
+ }, U = {
13
+ name: "SystemMenu"
14
+ }, H = /* @__PURE__ */ k({
15
+ ...U,
16
+ setup(F) {
17
+ const r = D({
18
+ record: {},
19
+ dataList: [],
20
+ submitLoading: !1,
21
+ showDrawer: !1,
22
+ dataStatus: "",
23
+ total: 0,
24
+ listQuery: {
25
+ pageSize: 10,
26
+ pageNum: 1
27
+ }
28
+ }), {
29
+ t: w
30
+ } = B(), g = P(), l = z(), n = I(null), a = "/uums/menu";
31
+ let s;
32
+ const y = [{
33
+ type: "checkbox",
34
+ width: 50,
35
+ align: "center"
36
+ }, {
37
+ field: "menuName",
38
+ minWidth: 220,
39
+ treeNode: !0
40
+ }, {
41
+ field: "menuNameEn",
42
+ minWidth: 180
43
+ }, {
44
+ field: "sort",
45
+ width: 70
46
+ }, {
47
+ field: "menuCode",
48
+ minWidth: 220
49
+ }, {
50
+ field: "permissionCode",
51
+ minWidth: 180
52
+ }, {
53
+ field: "menuCategory",
54
+ title: "message.menuType",
55
+ formatter: ["formatDict", "SU.MENU.TYPE"],
56
+ width: 100
57
+ }, {
58
+ field: "enabled",
59
+ width: 80,
60
+ cellRender: g.renderEnabled(b)
61
+ }, {
62
+ field: "operate",
63
+ width: 140,
64
+ fixed: "right",
65
+ slots: {
66
+ default: ({
67
+ row: e
68
+ }) => {
69
+ const t = e.menuType, d = o(i("ut-button"), {
70
+ status: "u-cyan",
71
+ icon: "ri-add-fill",
72
+ content: "add",
73
+ onTap: () => u(e)
74
+ }, null), m = o(i("ut-button"), {
75
+ icon: "ri-lock-fill",
76
+ content: "auth",
77
+ onTap: () => S(e)
78
+ }, null);
79
+ return [o(h, null, [t ? null : o(h, null, [o(i("ut-button"), {
80
+ status: "success",
81
+ icon: "ri-edit-box-line",
82
+ content: "edit",
83
+ onTap: () => v(e)
84
+ }, null), ["0", "5"].includes(e.menuCategory) ? d : m])])];
85
+ }
86
+ }
87
+ }], C = ({
88
+ code: e
89
+ }) => {
90
+ e === "add" && u(), e === "del" && x();
91
+ }, T = async ({
92
+ row: e
93
+ }) => {
94
+ const t = await l.get(a, {
95
+ parentId: e.id
96
+ });
97
+ return new Promise((d) => {
98
+ d(t.list);
99
+ });
100
+ }, u = (e) => {
101
+ r.showDrawer = !0, r.dataStatus = "add", r.record.dispalyCode = e == null ? void 0 : e.permissionCode, r.record.permissionCode = e == null ? void 0 : e.permissionCode, r.record.menuType = "0", r.record.showLink = "Y", r.record.isApprovalPage = "N", r.record.menuCategory = e ? "" : "0", r.record.parentId = e == null ? void 0 : e.id, r.record.hasChildren = e == null ? void 0 : e.hasChildren, r.record.children = r.record.children || [], s = e;
102
+ }, v = (e) => {
103
+ r.showDrawer = !0, r.dataStatus = "update", r.record = f(e, !0), r.record.menuType = r.record.menuType.toString(), r.record.dispalyCode = e.permissionCode;
104
+ };
105
+ async function b({
106
+ row: e
107
+ }) {
108
+ await l.put(a, [e]), n.value.refreshData();
109
+ }
110
+ const x = async () => {
111
+ const e = await L.modal.confirm(w("message.delRecord")), t = n.value.getInstance().getCheckboxRecords();
112
+ if (e === "confirm") {
113
+ const [d, m] = await A(l.delete(a, t));
114
+ if (d) return;
115
+ const p = n.value.getInstance().getTreeParentRow(t[0]);
116
+ p ? n.value.getInstance().reloadTreeExpand(p) : n.value.refreshData();
117
+ }
118
+ }, S = (e) => {
119
+ r.showAuthority = !0, r.dataStatus = "update", r.record = f(e, !0), r.record.menuType = r.record.menuType.toString(), r.record.dispalyCode = e.permissionCode;
120
+ }, c = (e, t) => {
121
+ e === "submit" && (s || t) && n.value.getInstance().reloadTreeExpand(s || t), r.record = {}, r.showDrawer = !1, r.showAuthority = !1;
122
+ };
123
+ return (e, t) => {
124
+ const d = i("ut-grid");
125
+ return N(), E("div", M, [o(d, {
126
+ ref_key: "xgrid",
127
+ ref: n,
128
+ "tree-config": {
129
+ childrenField: "children",
130
+ lazy: !0,
131
+ hasChild: "hasChildren",
132
+ loadMethod: T,
133
+ iconOpen: "ri-checkbox-indeterminate-line ri-lg",
134
+ iconClose: "ri-add-box-line ri-lg"
135
+ },
136
+ columns: y,
137
+ url: a,
138
+ stripe: !1,
139
+ mode: "form",
140
+ onToolbarButtonClick: C
141
+ }, null, 8, ["tree-config"]), o(W, {
142
+ show: r.showDrawer,
143
+ record: r.record,
144
+ "data-status": r.dataStatus,
145
+ onClose: c
146
+ }, null, 8, ["show", "record", "data-status"]), o(R, {
147
+ show: r.showAuthority,
148
+ record: r.record,
149
+ onClose: c
150
+ }, null, 8, ["show", "record"])]);
151
+ };
152
+ }
153
+ });
154
+ export {
155
+ H as default
156
+ };
@@ -0,0 +1,4 @@
1
+ import { D as f } from "./UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-DLIP8xpN.js";
1
+ import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-D-cw11i9.js";
2
2
  export {
3
3
  f as default
4
4
  };