@utogether/udp-core 1.0.1-beta.2 → 1.0.1-beta.20

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 (159) hide show
  1. package/build/plugins.ts +8 -1
  2. package/dist/{403-BBQoJwTM.js → 403-Bz5EJPLA.js} +1 -1
  3. package/dist/{404-BbJPSIWM.js → 404-ClOnaj9V.js} +1 -1
  4. package/dist/{500-BtFL9R4M.js → 500-DCUfhV7Y.js} +1 -1
  5. package/dist/{AuthorityInfo-DhiwCeLN.js → AuthorityInfo-q6E-js1r.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BM52QDgn.js +100 -0
  7. package/dist/{Company-CGqmslx-.js → Company-BSShW3Q4.js} +3 -3
  8. package/dist/{CompanyPanel-hlDsxD-6.js → CompanyPanel-Dl8eOYLk.js} +26 -26
  9. package/dist/{Department-BZyJtacc.js → Department-CVIxAnUN.js} +3 -3
  10. package/dist/{DepartmentPanel-D-a_EBFt.js → DepartmentPanel-Sa3IDl4z.js} +25 -25
  11. package/dist/{DesignPanel-Bl4luWDV.js → DesignPanel-DnRipagE.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js → DesignPanel.vue_vue_type_style_index_0_lang-DGNyp3Vl.js} +28 -30
  13. package/dist/DictView-uf2K9A1d.js +109 -0
  14. package/dist/InvOrganization-CG9VCpXl.js +74 -0
  15. package/dist/Org-W2CBN1B8.js +39 -0
  16. package/dist/{Preview-pHD84xqI.js → Preview-DPBxdDvW.js} +2 -2
  17. package/dist/{ReportDefine-DnnCNQWS.js → ReportDefine-Dsx9VM-I.js} +1 -1
  18. package/dist/{ReportDesign-BnI_Q4pg.js → ReportDesign-DiIGfte0.js} +43 -43
  19. package/dist/{ReportQuery-Dby2MmtM.js → ReportQuery-9A4Bfs1M.js} +1 -1
  20. package/dist/{ReportQueryFrom-Blm1N8P1.js → ReportQueryFrom-M5qLoGAa.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-OQ9pUCKP.js} +1 -1
  22. package/dist/{ReportTemplate-D65RXRY_.js → ReportTemplate-C34FWAuK.js} +28 -28
  23. package/dist/{Role-eFZoTpXc.js → Role-jG3VTeOF.js} +6 -6
  24. package/dist/{RoleAssign-D9-Y3UNz.js → RoleAssign-BfHpCequ.js} +9 -9
  25. package/dist/{RolePanel-DlFw6HSf.js → RolePanel-DW9pNl0L.js} +1 -1
  26. package/dist/{RolePanel-CoUOc3sX.js → RolePanel-xRN2-rkk.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js → RolePanel.vue_vue_type_script_setup_true_lang-BVEHqEq9.js} +44 -38
  28. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-C0rTy6vZ.js +132 -0
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js → ScrollPanel.vue_vue_type_style_index_0_lang-D65sJYWT.js} +23 -23
  30. package/dist/{Staff-DFBLCsAd.js → Staff-BqBVEjau.js} +3 -3
  31. package/dist/{StaffInfo-d2CK0oBA.js → StaffInfo-DXeyyEFL.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js → StaffInfo.vue_vue_type_script_setup_true_lang-Dg0iYgRf.js} +16 -16
  33. package/dist/{StaffPanel-D6aWLKN3.js → StaffPanel-iE-8VtUm.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js → StaffPanel.vue_vue_type_script_setup_true_lang-BrrvE1xm.js} +2 -2
  35. package/dist/{SysUser-BdZvYxQH.js → SysUser-DSZyW30i.js} +2 -2
  36. package/dist/{SysUserPanel-BIVa6LLr.js → SysUserPanel-CbiG6GQF.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-B1Y1fmBe.js +298 -0
  38. package/dist/{SystemMenu-C-5VKlHK.js → SystemMenu-DreuWY-a.js} +33 -33
  39. package/dist/{UserInfo-DqXCRZts.js → UserInfo-DXrzKAim.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js → UserInfo.vue_vue_type_style_index_0_lang-C44E20b4.js} +41 -39
  41. package/dist/{childView-B2lSsqS3.js → childView-VCidWgY6.js} +1 -1
  42. package/dist/{childView-DRUNqgjI.js → childView-k5IkJOBr.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js → childView.vue_vue_type_style_index_0_lang-C6ftwwvZ.js} +1 -1
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-oGriyFTv.js → childView.vue_vue_type_style_index_0_lang-DmG82dVB.js} +43 -43
  45. package/dist/{code-rule-DZC9T6cl.js → code-rule-7WQMabpW.js} +13 -15
  46. package/dist/core.es.js +18 -10
  47. package/dist/{cron-task-BJwPeA5F.js → cron-task-D1t56MSu.js} +11 -11
  48. package/dist/{frameView-C6wkvok-.js → frameView-CWsIFBgU.js} +1 -1
  49. package/dist/img/l_img.svg +1 -1
  50. package/dist/img/minicolors.png +0 -0
  51. package/dist/img/v_img.svg +1 -1
  52. package/dist/index-DxWAYxai.js +5495 -0
  53. package/dist/{layoutView-CeJBpZb_.js → layoutView-DLpHSner.js} +1564 -1559
  54. package/dist/{log-in-e7D5Ss1P.js → log-in-CpGqc33f.js} +5 -4
  55. package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
  56. package/dist/login-OjDiQmz8.js +249 -0
  57. package/dist/{login-log-CvVnyGi3.js → login-log-BNRXLeMi.js} +4 -3
  58. package/dist/{lov-view-DRF-99U4.js → lov-view-D28X6m3k.js} +5 -5
  59. package/dist/{menuInfo-3Sjvs9nM.js → menuInfo-DwPB6rHz.js} +1 -1
  60. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js → menuInfo.vue_vue_type_style_index_0_lang-l5DNRfb7.js} +34 -32
  61. package/dist/{pda-app-B9tn7jdv.js → pda-app-Bdms2PRY.js} +202 -188
  62. package/dist/{resource-BqnxbQNe.js → resource-y6SHrHoq.js} +18 -18
  63. package/dist/{su-welcome-VwifUK_O.js → su-welcome-D9G6EuK2.js} +118 -120
  64. package/dist/sys-config-DFnGHiFc.js +355 -0
  65. package/dist/udp-core.css +1 -9
  66. package/dist/utogether-MlnyYtNS.js +4 -0
  67. package/index.ts +17 -5
  68. package/package.json +1 -1
  69. package/src/App.vue +2 -7
  70. package/src/api/http.ts +1 -4
  71. package/src/api/index.ts +5 -3
  72. package/src/api/user.ts +2 -2
  73. package/src/components/SuCharts/src/UserInfo.vue +3 -3
  74. package/src/components/SuScrollTree/ScrollPanel.vue +170 -175
  75. package/src/components/udp/form/form.vue +109 -0
  76. package/src/components/udp/grid/index.vue +509 -0
  77. package/src/components/udp/index.ts +4 -4
  78. package/src/components/udp/utils.ts +405 -40
  79. package/src/directives/permission/index.ts +1 -1
  80. package/src/layout/components/lay-navbar/index.vue +9 -7
  81. package/src/layout/components/lay-panel/index.vue +3 -3
  82. package/src/layout/components/lay-search/index.vue +1 -1
  83. package/src/layout/components/lay-select-org/index.vue +4 -9
  84. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  85. package/src/layout/components/lay-sidebar/horizontal.vue +4 -5
  86. package/src/layout/components/lay-sidebar/mixNav.vue +6 -4
  87. package/src/layout/components/lay-sidebar/sidebar-logo.vue +94 -98
  88. package/src/layout/components/lay-tag/index.vue +596 -625
  89. package/src/layout/hooks/useTag.ts +223 -233
  90. package/src/layout/layoutView.vue +215 -215
  91. package/src/layout/types.ts +3 -2
  92. package/src/main.ts +39 -31
  93. package/src/plugins/i18n/en.ts +26 -13
  94. package/src/plugins/i18n/zh.ts +35 -16
  95. package/src/plugins/vxe-table/index.ts +67 -4
  96. package/src/plugins/vxe-table/render.tsx +945 -817
  97. package/src/router/index.ts +186 -183
  98. package/src/router/modules/remaining.ts +1 -26
  99. package/src/router/utils.ts +393 -377
  100. package/src/store/modules/app.ts +1 -3
  101. package/src/store/modules/multiTags.ts +110 -109
  102. package/src/store/modules/permission.ts +113 -103
  103. package/src/store/modules/system.ts +1 -3
  104. package/src/style/button.scss +10 -3
  105. package/src/style/login.css +1 -1
  106. package/src/style/tailwind.css +1 -68
  107. package/src/style/vxetable.scss +348 -256
  108. package/src/utils/authority/index.ts +1 -1
  109. package/src/utils/index.ts +3 -1
  110. package/src/utils/propTypes.ts +1 -6
  111. package/src/views/login/login-view.vue +6 -20
  112. package/src/views/organization/company/CompanyPanel.vue +2 -2
  113. package/src/views/organization/department/DepartmentPanel.vue +269 -283
  114. package/src/views/organization/inv-org/InvOrganization.vue +23 -9
  115. package/src/views/organization/org/Org.vue +9 -5
  116. package/src/views/system/menu/SystemMenu.vue +183 -197
  117. package/src/views/system/menu/menuInfo.vue +8 -18
  118. package/src/views/system/role/AuthorityInfo.vue +19 -15
  119. package/src/views/system/role/Role.vue +1 -5
  120. package/src/views/system/role/RolePanel.vue +11 -2
  121. package/src/views/system/role/UserInfo.vue +11 -9
  122. package/src/views/system/role-assign/RoleAssign.vue +2 -2
  123. package/src/views/system/role-assign/RolePanel.vue +12 -9
  124. package/src/views/system/sys/sys-config.vue +66 -21
  125. package/src/views/system/sysUser/SysUserPanel.vue +44 -43
  126. package/src/views/uapp/pda/pda-app.vue +48 -16
  127. package/src/views/udev/coderule/code-rule.vue +120 -121
  128. package/src/views/udev/dict/DictView.vue +16 -4
  129. package/src/views/udev/dict/childView.vue +8 -8
  130. package/src/views/ufile/aggregation/File.vue +5 -5
  131. package/src/views/ufile/file/water-mark.vue +14 -14
  132. package/src/views/uhome/components/menu-favorite.vue +314 -331
  133. package/src/views/uhome/su-welcome.vue +3 -3
  134. package/src/views/ulogin/login.vue +19 -12
  135. package/src/views/upms/interface/log-in.vue +100 -106
  136. package/src/views/upms/interface/log-out.vue +2 -8
  137. package/src/views/upms/user/login-log.vue +54 -60
  138. package/src/views/urpt/design/DesignPanel.vue +16 -35
  139. package/src/views/urpt/design/Preview.vue +1 -0
  140. package/src/views/urpt/design/ReportDesign.vue +17 -23
  141. package/src/views/urpt/static-resource/resource.vue +3 -3
  142. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  143. package/types/global.d.ts +4 -9
  144. package/vite.config.ts +6 -2
  145. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js +0 -102
  146. package/dist/DictView-B4a7Hs1X.js +0 -95
  147. package/dist/InvOrganization-q4T3y8dQ.js +0 -260
  148. package/dist/Org-BTGTrAVz.js +0 -35
  149. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js +0 -126
  150. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js +0 -288
  151. package/dist/index-DZc3qRTx.js +0 -2650
  152. package/dist/login-BOxwzwdB.js +0 -252
  153. package/dist/sys-config-C0-gSBFO.js +0 -277
  154. package/dist/utogether-Di1byIum.js +0 -182
  155. package/src/components/udp/form-upload.vue +0 -183
  156. package/src/components/udp/modal-form.vue +0 -180
  157. package/src/utils/http/index.ts +0 -297
  158. package/src/utils/http/types.d.ts +0 -46
  159. package/src/utils/udp/useRender.ts +0 -420
@@ -1,7 +1,7 @@
1
- import { defineComponent as b, ref as u, onMounted as D, resolveComponent as d, createElementBlock as E, openBlock as k, createVNode as n, withCtx as f } from "vue";
2
- import { useRender as q } from "@utogether/utils";
3
- import { q as _ } from "./index-DZc3qRTx.js";
4
- const F = { class: "config" }, x = /* @__PURE__ */ b({
1
+ import { defineComponent as b, ref as u, onMounted as D, resolveComponent as r, createElementBlock as E, openBlock as k, createVNode as n, withCtx as f } from "vue";
2
+ import { useRender as F } from "@utogether/utils";
3
+ import { w as _ } from "./index-DxWAYxai.js";
4
+ const T = { class: "config" }, x = /* @__PURE__ */ b({
5
5
  __name: "StaffInfo",
6
6
  props: {
7
7
  show: { type: Boolean, default: !0 },
@@ -10,12 +10,12 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
10
10
  },
11
11
  emits: ["onClose"],
12
12
  setup(v, { emit: y }) {
13
- const i = v, t = q(), o = u({}), p = u(null), l = u(!1), R = { userName: "userName", userId: "id" }, w = { disabled: i.dataStatus !== "add" }, g = [
13
+ const i = v, t = F(), d = u({}), p = u(null), l = u(!1), w = { userName: "userName", userId: "id" }, R = { disabled: i.dataStatus !== "add" }, g = [
14
14
  {
15
15
  field: "employeeCode",
16
16
  required: !0,
17
17
  span: 8,
18
- itemRender: t.renderInput({ props: w })
18
+ itemRender: t.renderInput({ props: R })
19
19
  },
20
20
  { field: "employeeName", required: !0, span: 8, itemRender: t.renderInput() },
21
21
  { field: "gender", span: 8, itemRender: t.renderDict("SU.GENDER") },
@@ -35,18 +35,18 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
35
35
  field: "attribute5",
36
36
  title: "message.releateUser",
37
37
  span: 8,
38
- itemRender: t.renderSysUser({ mapField: R })
38
+ itemRender: t.renderSysUser({ mapField: w })
39
39
  }
40
40
  ];
41
41
  function C(e) {
42
- var r, a, s;
43
- e.row.deptName = ((r = e.item) == null ? void 0 : r.deptName) || e.row.deptName, e.row.deptCode = ((a = e.item) == null ? void 0 : a.deptCode) || e.row.deptCode, e.row.departmentId = ((s = e.item) == null ? void 0 : s.id) || e.row.departmentId;
42
+ var o, a, s;
43
+ e.row.deptName = ((o = e.item) == null ? void 0 : o.deptName) || e.row.deptName, e.row.deptCode = ((a = e.item) == null ? void 0 : a.deptCode) || e.row.deptCode, e.row.departmentId = ((s = e.item) == null ? void 0 : s.id) || e.row.departmentId;
44
44
  }
45
45
  const I = y, N = () => {
46
46
  p.value.validateForm(async (e) => {
47
47
  if (!e) {
48
- const { dataStatus: r } = i;
49
- l.value = !0, console.log(o), r === "add" ? await _().post("/uums/employee", o.value) : await _().put("/uums/employee", o.value), l.value = !1, m();
48
+ const { dataStatus: o } = i;
49
+ l.value = !0, o === "add" ? await _().post("/uums/employee", d.value) : await _().put("/uums/employee", d.value), l.value = !1, m();
50
50
  }
51
51
  });
52
52
  };
@@ -54,10 +54,10 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
54
54
  I("onClose");
55
55
  }
56
56
  return D(() => {
57
- o.value = i.record;
58
- }), (e, r) => {
59
- const a = d("ut-form"), s = d("el-divider"), c = d("ut-button"), S = d("el-row"), h = d("el-drawer");
60
- return k(), E("div", F, [
57
+ d.value = i.record;
58
+ }), (e, o) => {
59
+ const a = r("ut-form"), s = r("el-divider"), c = r("ut-button"), S = r("el-row"), h = r("el-drawer");
60
+ return k(), E("div", T, [
61
61
  n(h, {
62
62
  "model-value": e.show,
63
63
  "before-close": m,
@@ -70,7 +70,7 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
70
70
  n(a, {
71
71
  ref_key: "suFormRef",
72
72
  ref: p,
73
- record: o.value,
73
+ record: d.value,
74
74
  loading: l.value,
75
75
  items: g,
76
76
  "data-status": e.dataStatus
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js";
1
+ import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-BrrvE1xm.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as b, ref as g, inject as w, reactive as x, watch as y, nextTick as E, resolveComponent as l, createElementBlock as N, openBlock as c, createVNode as d, createBlock as k, createCommentVNode as C, Fragment as S } from "vue";
2
2
  import { clone as D } from "xe-utils";
3
3
  import { warnMessage as M } from "@utogether/utils";
4
- import { _ as B } from "./StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js";
5
- import { q as P } from "./index-DZc3qRTx.js";
4
+ import { _ as B } from "./StaffInfo.vue_vue_type_script_setup_true_lang-Dg0iYgRf.js";
5
+ import { w as P } from "./index-DxWAYxai.js";
6
6
  const A = {
7
7
  class: "page-content"
8
8
  }, s = "/uums/employee", j = /* @__PURE__ */ b({
@@ -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-BsBKpYR7.js";
3
- import { _ as a } from "./index-DZc3qRTx.js";
2
+ import { _ as n } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-B1Y1fmBe.js";
3
+ import { _ as a } from "./index-DxWAYxai.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-BsBKpYR7.js";
1
+ import { _ as f } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-B1Y1fmBe.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,298 @@
1
+ import { defineComponent as z, reactive as G, ref as h, inject as H, createVNode as s, Fragment as x, resolveComponent as l, onMounted as Q, createElementBlock as $, openBlock as v, withCtx as i, createBlock as k, createCommentVNode as J, renderList as K, unref as O } from "vue";
2
+ import { useI18n as W } from "vue-i18n";
3
+ import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
4
+ import { useRender as X, warnMessage as Z, delay as ee, errorMessage as te } from "@utogether/utils";
5
+ import { VxeUI as se } from "vxe-pc-ui";
6
+ import { isEmpty as ae } from "xe-utils";
7
+ import { w as le } from "./index-DxWAYxai.js";
8
+ const re = {
9
+ class: "page"
10
+ }, u = "/uums/user", fe = /* @__PURE__ */ z({
11
+ __name: "SysUserPanel",
12
+ setup(oe) {
13
+ const t = G({
14
+ record: {},
15
+ listQuery: {},
16
+ dataList: [],
17
+ roleList: [],
18
+ submitLoading: !1,
19
+ showModelView: !1,
20
+ showUserRole: !1,
21
+ showAuth: !1,
22
+ dataStatus: ""
23
+ }), d = le(), {
24
+ t: r
25
+ } = W(), L = {
26
+ userName: [{
27
+ required: !0,
28
+ message: `${r("message.required")}${r("message.userCode")}`
29
+ }],
30
+ name: [{
31
+ required: !0,
32
+ message: `${r("message.required")}${r("message.userName")}`
33
+ }],
34
+ unitId: [{
35
+ required: !0,
36
+ message: `${r("message.required")}${r("message.unitName")}`
37
+ }],
38
+ userPwd: [{
39
+ required: !0,
40
+ message: `${r("message.required")}${r("message.userPwd")}`
41
+ }]
42
+ }, c = X(), w = h({}), P = H("treeList"), m = h(!1), _ = h(null), q = [{
43
+ field: "name",
44
+ title: "message.udp.userName"
45
+ }, {
46
+ field: "userName",
47
+ title: "message.udp.userCode"
48
+ }, {
49
+ field: "type",
50
+ title: "message.udp.userType",
51
+ code: "SU.USER.TYPE"
52
+ }], y = [{
53
+ type: "checkbox",
54
+ width: 40,
55
+ align: "center"
56
+ }, {
57
+ field: "userName",
58
+ title: "message.udp.userCode",
59
+ required: !0,
60
+ editRender: c.renderInput()
61
+ }, {
62
+ field: "name",
63
+ title: "message.udp.userName",
64
+ required: !0,
65
+ editRender: c.renderInput()
66
+ }, {
67
+ field: "type",
68
+ title: "message.udp.userType",
69
+ formatter: ["formatDict", "SU.USER.TYPE"],
70
+ editRender: c.renderDict("SU.USER.TYPE")
71
+ }, {
72
+ field: "userPwd",
73
+ required: !0,
74
+ width: 150,
75
+ editRender: c.renderInput(),
76
+ formatter: () => "*******"
77
+ }, {
78
+ field: "enabled",
79
+ width: 80,
80
+ cellRender: c.renderEnabled(C)
81
+ }, {
82
+ field: "operate",
83
+ width: 240,
84
+ fixed: "right",
85
+ slots: {
86
+ default: ({
87
+ row: e
88
+ }) => e.id ? [s(x, null, [s(l("ut-button"), {
89
+ icon: "ri-user-fill",
90
+ content: "role",
91
+ onTap: () => I(e)
92
+ }, null), s(l("ut-button"), {
93
+ icon: "ri-lock-fill",
94
+ content: "auth",
95
+ status: "success",
96
+ onTap: () => A(e)
97
+ }, null), s(l("ut-button"), {
98
+ icon: "ri-lock-fill",
99
+ content: "passwordReset",
100
+ status: "warning",
101
+ onTap: () => E(e)
102
+ }, null)])] : null
103
+ }
104
+ }];
105
+ async function C({
106
+ row: e
107
+ }) {
108
+ await S(d.put(u, [e])), _.value.refreshData();
109
+ }
110
+ const I = async (e) => {
111
+ var o;
112
+ t.roleList = [], t.showUserRole = !0, m.value = !0;
113
+ const a = await d.get(u + "/getUserRole", {
114
+ userName: e.userName
115
+ });
116
+ m.value = !1, t.roleList = (o = a[0]) == null ? void 0 : o.sysRoles;
117
+ }, E = async (e) => {
118
+ await d.put(u + "/resetPwd", e), await se.modal.alert(r("message.tip.initPassword"));
119
+ }, A = async (e) => {
120
+ var g;
121
+ t.roleList = [], t.showAuth = !0, m.value = !0, t.record = e;
122
+ const [a, o] = await S(d.get(u + "/getUserRole", {
123
+ userName: e.userName
124
+ }));
125
+ m.value = !1, a || (ae(o) ? Z(r("message.tip.emptyAuth")) : t.roleList = (g = o[0]) == null ? void 0 : g.sysMenuExts);
126
+ }, T = {
127
+ editActived({
128
+ row: e
129
+ }) {
130
+ y[1].editRender.props.disabled = !!e.id, y[4].editRender.props.disabled = !!e.id;
131
+ }
132
+ }, N = h(null), M = () => {
133
+ N.value.validate(async (e) => {
134
+ if (!e) {
135
+ const {
136
+ record: a,
137
+ dataStatus: o
138
+ } = t;
139
+ o === "add" ? await d.post(u, a) : await d.put(u, a), U();
140
+ }
141
+ });
142
+ }, U = () => {
143
+ t.showModelView = !1;
144
+ }, D = () => {
145
+ d.get("/uums/unit", {
146
+ pageSize: 10
147
+ }).then(async (e) => {
148
+ w.value = {
149
+ unitId: e[0].id,
150
+ enabled: "1"
151
+ }, await ee(100), _.value.refreshData();
152
+ }).catch(() => {
153
+ te("获取租户失败,刷新后重试");
154
+ });
155
+ };
156
+ return Q(() => {
157
+ D();
158
+ }), (e, a) => {
159
+ const o = l("ut-grid"), g = l("vxe-option"), B = l("vxe-select"), p = l("vxe-form-item"), V = l("ut-button"), F = l("vxe-form"), R = l("vxe-modal"), b = l("vxe-column"), Y = l("vxe-table"), j = l("el-tree-v2");
160
+ return v(), $("div", re, [s(o, {
161
+ ref_key: "xgrid",
162
+ ref: _,
163
+ columns: y,
164
+ items: q,
165
+ url: u,
166
+ "auto-load": !1,
167
+ "default-params": w.value,
168
+ "default-value": w.value,
169
+ events: T
170
+ }, null, 8, ["default-params", "default-value"]), s(R, {
171
+ modelValue: t.showModelView,
172
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => t.showModelView = n),
173
+ title: "用户信息",
174
+ width: "300"
175
+ }, {
176
+ default: i(() => [s(F, {
177
+ ref_key: "xForm",
178
+ ref: N,
179
+ data: t.record,
180
+ rules: L,
181
+ "title-align": "right"
182
+ }, {
183
+ default: i(() => [s(p, {
184
+ title: e.$t("message.unitName"),
185
+ field: "unitId",
186
+ span: "24"
187
+ }, {
188
+ default: i(({
189
+ data: n
190
+ }) => [s(B, {
191
+ modelValue: n.unitId,
192
+ "onUpdate:modelValue": (f) => n.unitId = f
193
+ }, {
194
+ default: i(() => [(v(!0), $(x, null, K(O(P), (f) => (v(), k(g, {
195
+ key: f.id,
196
+ value: f.id,
197
+ label: f.unitName
198
+ }, null, 8, ["value", "label"]))), 128))]),
199
+ _: 2
200
+ }, 1032, ["modelValue", "onUpdate:modelValue"])]),
201
+ _: 1
202
+ }, 8, ["title"]), s(p, {
203
+ title: e.$t("message.userCode"),
204
+ "item-render": {
205
+ name: "input",
206
+ attrs: {
207
+ disabled: t.dataStatus === "update"
208
+ }
209
+ },
210
+ field: "userName",
211
+ span: "24"
212
+ }, null, 8, ["title", "item-render"]), s(p, {
213
+ title: e.$t("message.userName"),
214
+ field: "name",
215
+ span: "24",
216
+ "item-render": {
217
+ name: "input"
218
+ }
219
+ }, null, 8, ["title"]), t.dataStatus === "add" ? (v(), k(p, {
220
+ key: 0,
221
+ title: e.$t("message.userPwd"),
222
+ "item-render": {
223
+ name: "input"
224
+ },
225
+ field: "userPwd",
226
+ span: "24"
227
+ }, null, 8, ["title"])) : J("", !0), s(p, {
228
+ align: "right",
229
+ span: "24"
230
+ }, {
231
+ default: i(() => [s(V, {
232
+ content: "cancel",
233
+ icon: "ri-close-fill",
234
+ onClick: U
235
+ }), s(V, {
236
+ content: "confirm",
237
+ icon: "ri-save-3-fill",
238
+ status: "u-cyan",
239
+ onClick: M
240
+ })]),
241
+ _: 1
242
+ })]),
243
+ _: 1
244
+ }, 8, ["data"])]),
245
+ _: 1
246
+ }, 8, ["modelValue"]), s(R, {
247
+ modelValue: t.showUserRole,
248
+ "onUpdate:modelValue": a[1] || (a[1] = (n) => t.showUserRole = n),
249
+ loading: m.value,
250
+ title: e.$t("message.title.roleInfo"),
251
+ width: "600"
252
+ }, {
253
+ default: i(() => [s(Y, {
254
+ height: "300",
255
+ data: t.roleList,
256
+ border: ""
257
+ }, {
258
+ default: i(() => [s(b, {
259
+ type: "seq",
260
+ width: "60"
261
+ }), s(b, {
262
+ field: "roleName",
263
+ title: e.$t("message.udp.roleName")
264
+ }, null, 8, ["title"]), s(b, {
265
+ field: "roleDesc",
266
+ title: e.$t("message.udp.roleDesc")
267
+ }, null, 8, ["title"])]),
268
+ _: 1
269
+ }, 8, ["data"])]),
270
+ _: 1
271
+ }, 8, ["modelValue", "loading", "title"]), s(R, {
272
+ modelValue: t.showAuth,
273
+ "onUpdate:modelValue": a[2] || (a[2] = (n) => t.showAuth = n),
274
+ loading: m.value,
275
+ title: e.$t("message.title.authority", {
276
+ role: t.record.name || "88888"
277
+ }),
278
+ height: "620",
279
+ width: "560"
280
+ }, {
281
+ default: i(() => [s(j, {
282
+ ref: "xTree",
283
+ data: t.roleList,
284
+ props: {
285
+ children: "children",
286
+ label: "menuName"
287
+ },
288
+ height: 560,
289
+ "node-key": "id"
290
+ }, null, 8, ["data"])]),
291
+ _: 1
292
+ }, 8, ["modelValue", "loading", "title"])]);
293
+ };
294
+ }
295
+ });
296
+ export {
297
+ fe as _
298
+ };
@@ -1,17 +1,17 @@
1
- import { defineComponent as S, reactive as k, ref as v, createVNode as n, resolveComponent as i, Fragment as m, createElementBlock as D, openBlock as A } from "vue";
1
+ import { defineComponent as S, reactive as k, ref as v, createVNode as o, resolveComponent as r, Fragment as m, createElementBlock as D, openBlock as A } from "vue";
2
2
  import { useI18n as E } from "vue-i18n";
3
- import { _ as I } from "./menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js";
3
+ import { _ as I } from "./menuInfo.vue_vue_type_style_index_0_lang-l5DNRfb7.js";
4
4
  import { _ as N } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js";
5
5
  import { clone as p } from "xe-utils";
6
6
  import { t as M } from "./await-to-js.es5-BtRbN2QH.js";
7
7
  import { VxeUI as R } from "vxe-pc-ui";
8
8
  import { useRender as U } from "@utogether/utils";
9
- import { q as B } from "./index-DZc3qRTx.js";
9
+ import { w as B } from "./index-DxWAYxai.js";
10
10
  const P = {
11
11
  class: "page-content"
12
12
  }, z = {
13
13
  name: "SystemMenu"
14
- }, j = /* @__PURE__ */ S({
14
+ }, q = /* @__PURE__ */ S({
15
15
  ...z,
16
16
  setup(F) {
17
17
  const t = k({
@@ -27,7 +27,7 @@ const P = {
27
27
  }
28
28
  }), {
29
29
  t: h
30
- } = E(), f = U(), d = B(), r = v(null), s = "/uums/menu";
30
+ } = E(), f = U(), d = B(), s = v(null), i = "/uums/menu";
31
31
  let l;
32
32
  const C = [{
33
33
  type: "checkbox",
@@ -66,62 +66,62 @@ const P = {
66
66
  default: ({
67
67
  row: e
68
68
  }) => {
69
- const o = e.menuType, a = n(i("ut-button"), {
69
+ const n = e.menuType, a = o(r("ut-button"), {
70
70
  status: "u-cyan",
71
71
  icon: "ri-add-fill",
72
72
  content: "add",
73
- onTap: () => c(e)
74
- }, null), x = n(i("ut-button"), {
73
+ onTap: () => u(e)
74
+ }, null), x = o(r("ut-button"), {
75
75
  icon: "ri-lock-fill",
76
76
  content: "auth",
77
77
  onTap: () => b(e)
78
78
  }, null);
79
- return [n(m, null, [o ? null : n(m, null, [n(i("ut-button"), {
79
+ return [o(m, null, [n ? null : o(m, null, [o(r("ut-button"), {
80
80
  status: "success",
81
81
  icon: "ri-edit-box-line",
82
82
  content: "edit",
83
- onTap: () => w(e)
83
+ onTap: () => g(e)
84
84
  }, null), ["0", "5"].includes(e.menuCategory) ? a : x])])];
85
85
  }
86
86
  }
87
- }], g = ({
87
+ }], w = ({
88
88
  code: e
89
89
  }) => {
90
- e === "add" && c(), e === "del" && T();
90
+ e === "add" && u(), e === "del" && T();
91
91
  }, y = async ({
92
92
  row: e
93
93
  }) => {
94
- const o = await d.get(s, {
94
+ const n = await d.get(i, {
95
95
  parentId: e.id
96
96
  });
97
97
  return new Promise((a) => {
98
- a(o.list);
98
+ a(n.list);
99
99
  });
100
- }, c = (e) => {
101
- t.showDrawer = !0, t.dataStatus = "add", t.record.dispalyCode = e == null ? void 0 : e.permissionCode, t.record.permissionCode = e == null ? void 0 : e.permissionCode, t.record.menuType = "0", t.record.menuCategory = e ? "" : "0", t.record.parentId = e == null ? void 0 : e.id, t.record.hasChildren = e == null ? void 0 : e.hasChildren, t.record.children = t.record.children || [], console.log(t.record), l = e;
102
- }, w = (e) => {
100
+ }, u = (e) => {
101
+ t.showDrawer = !0, t.dataStatus = "add", t.record.dispalyCode = e == null ? void 0 : e.permissionCode, t.record.permissionCode = e == null ? void 0 : e.permissionCode, t.record.menuType = "0", t.record.menuCategory = e ? "" : "0", t.record.parentId = e == null ? void 0 : e.id, t.record.hasChildren = e == null ? void 0 : e.hasChildren, t.record.children = t.record.children || [], l = e;
102
+ }, g = (e) => {
103
103
  t.showDrawer = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
104
104
  };
105
105
  async function _({
106
106
  row: e
107
107
  }) {
108
- await d.put(s, [e]), r.value.refreshData();
108
+ await d.put(i, [e]), s.value.refreshData();
109
109
  }
110
110
  const T = async () => {
111
- const e = await R.modal.confirm(h("message.delRecord")), o = r.value.getInstance().getCheckboxRecords();
111
+ const e = await R.modal.confirm(h("message.delRecord")), n = s.value.getInstance().getCheckboxRecords();
112
112
  if (e === "confirm") {
113
- const [a] = await M(d.delete(s, o));
113
+ const [a] = await M(d.delete(i, n));
114
114
  }
115
115
  }, b = (e) => {
116
116
  t.showAuthority = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
117
- }, u = (e, o) => {
118
- e === "submit" && l && r.value.getInstance().reloadTreeExpand(l || o), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
117
+ }, c = (e, n) => {
118
+ e === "submit" && (l || n) && s.value.getInstance().reloadTreeExpand(l || n), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
119
119
  };
120
- return (e, o) => {
121
- const a = i("ut-grid");
122
- return A(), D("div", P, [n(a, {
120
+ return (e, n) => {
121
+ const a = r("ut-grid");
122
+ return A(), D("div", P, [o(a, {
123
123
  ref_key: "xgrid",
124
- ref: r,
124
+ ref: s,
125
125
  "tree-config": {
126
126
  childrenField: "children",
127
127
  lazy: !0,
@@ -131,23 +131,23 @@ const P = {
131
131
  iconClose: "ri-add-box-line ri-lg"
132
132
  },
133
133
  columns: C,
134
- url: s,
134
+ url: i,
135
135
  stripe: !1,
136
136
  mode: "form",
137
- onToolbarButtonClick: g
138
- }, null, 8, ["tree-config"]), n(I, {
137
+ onToolbarButtonClick: w
138
+ }, null, 8, ["tree-config"]), o(I, {
139
139
  show: t.showDrawer,
140
140
  record: t.record,
141
141
  "data-status": t.dataStatus,
142
- onClose: u
143
- }, null, 8, ["show", "record", "data-status"]), n(N, {
142
+ onClose: c
143
+ }, null, 8, ["show", "record", "data-status"]), o(N, {
144
144
  show: t.showAuthority,
145
145
  record: t.record,
146
- onClose: u
146
+ onClose: c
147
147
  }, null, 8, ["show", "record"])]);
148
148
  };
149
149
  }
150
150
  });
151
151
  export {
152
- j as default
152
+ q as default
153
153
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js";
1
+ import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-C44E20b4.js";
2
2
  export {
3
3
  f as default
4
4
  };