@utogether/udp-core 1.0.1-beta.9 → 1.0.2

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 (168) hide show
  1. package/build/plugins.ts +37 -39
  2. package/dist/{403-BOzKHdlm.js → 403-B1rIjAAu.js} +6 -6
  3. package/dist/{404-uwgt4Nll.js → 404-mBqc2y4t.js} +4 -4
  4. package/dist/{500-4HBf6V9m.js → 500-BoI45Zdh.js} +2 -2
  5. package/dist/{AuthorityInfo-DvbIh1vT.js → AuthorityInfo-B08NBIIn.js} +1 -1
  6. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-BlCPvwXU.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js} +3 -3
  7. package/dist/{Company-D7Q9BFmr.js → Company-JGGyWEWH.js} +3 -3
  8. package/dist/{CompanyPanel-C0-PJlrt.js → CompanyPanel-BQ_cCmDx.js} +7 -7
  9. package/dist/{Department-h2hlXACv.js → Department-z2iO6hwM.js} +10 -10
  10. package/dist/{DepartmentPanel-B6hDEQpG.js → DepartmentPanel-BtQe7zwU.js} +108 -78
  11. package/dist/{DesignPanel-cS58-1v9.js → DesignPanel-7mhtVWas.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-LdvLC8VU.js → DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js} +6 -6
  13. package/dist/{DictView-T3TmpBa8.js → DictView-CjchV2Yk.js} +15 -16
  14. package/dist/InvOrganization-Pn1O_XP0.js +74 -0
  15. package/dist/{Org-CnCBDGKF.js → Org-BqytV_vi.js} +1 -1
  16. package/dist/{Preview-BaktKXB1.js → Preview-CLpUUMay.js} +2 -2
  17. package/dist/{ReportDefine-5Rb0PO9A.js → ReportDefine-Cz1KtEUF.js} +1 -1
  18. package/dist/{ReportDesign-DYdkVREA.js → ReportDesign-BaORYud4.js} +13 -13
  19. package/dist/{ReportQuery-BwhzIXMt.js → ReportQuery-CPCPXiXz.js} +1 -1
  20. package/dist/{ReportQueryFrom-PHtWwlOe.js → ReportQueryFrom-C_AcrfkJ.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-BE5yZNPM.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Bm67ejay.js} +1 -1
  22. package/dist/{ReportTemplate-DaadVXIi.js → ReportTemplate-CFiNMz79.js} +11 -11
  23. package/dist/{Role-Dtg3nAmG.js → Role-B-XDoJd5.js} +3 -3
  24. package/dist/{RoleAssign-DEGtLssH.js → RoleAssign-BolW8YVs.js} +8 -8
  25. package/dist/{RolePanel-DpUzfE_o.js → RolePanel-2kfs5tw9.js} +1 -1
  26. package/dist/{RolePanel-CT7BTPmy.js → RolePanel-HilSuYns.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Xyo0YEI0.js → RolePanel.vue_vue_type_script_setup_true_lang-CE4gApUY.js} +7 -7
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Dg2A6DJu.js → RolePanel.vue_vue_type_script_setup_true_lang-DPzgfAyV.js} +13 -13
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CyutzDZS.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js} +4 -4
  30. package/dist/{Staff-_NlAGkrh.js → Staff-BTk3whFC.js} +3 -3
  31. package/dist/{StaffInfo-DVgUvVgd.js → StaffInfo-d3AuSzlA.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-C8hmlFgX.js → StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js} +5 -5
  33. package/dist/{StaffPanel-DKNZE3IE.js → StaffPanel-DV-D4jjz.js} +1 -1
  34. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js +135 -0
  35. package/dist/{SysUser-kQUf7XKz.js → SysUser-BnjYytws.js} +2 -2
  36. package/dist/{SysUserPanel-C191uX3U.js → SysUserPanel-CBoyD-Qi.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js +341 -0
  38. package/dist/{SystemMenu-DwuSvHnj.js → SystemMenu-kYB_ZaUt.js} +36 -36
  39. package/dist/{UserInfo-DIsInFld.js → UserInfo-4dx97VBL.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CnvGdbej.js → UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js} +10 -10
  41. package/dist/{childView-3Bs2UBEw.js → childView-CHPNfTEb.js} +1 -1
  42. package/dist/{childView-BawyULD7.js → childView-CKA_JgVZ.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-YpWF-p2F.js → childView.vue_vue_type_style_index_0_lang-Bym2fQRd.js} +7 -7
  44. package/dist/childView.vue_vue_type_style_index_0_lang-W7bCtXeu.js +177 -0
  45. package/dist/{code-rule-DVaYcn8S.js → code-rule-CbxuZg0-.js} +40 -38
  46. package/dist/core.es.js +18 -12
  47. package/dist/{cron-task-xuzP-BpE.js → cron-task-nTOpqQYf.js} +7 -7
  48. package/dist/flow-task-B07st2aD.js +10 -0
  49. package/dist/{frameView-Cudt06qS.js → frameView-Z1tPUyCh.js} +1 -1
  50. package/dist/index-C3q8HoJM.js +4650 -0
  51. package/dist/{layoutView-BlFTV2jX.js → layoutView--MGA9zUB.js} +1766 -1760
  52. package/dist/{log-in-e7D5Ss1P.js → log-in-CSYJDA6m.js} +36 -29
  53. package/dist/log-out-DiwGCg7p.js +130 -0
  54. package/dist/login-C6Y0ajDp.js +251 -0
  55. package/dist/{login-log-kqKzKTto.js → login-log-C0V-_l3F.js} +5 -3
  56. package/dist/{lov-view-B2HaxyMs.js → lov-view-Cmv7wZZ9.js} +6 -6
  57. package/dist/{menuInfo-BxCTJ1VW.js → menuInfo-UeutJpOa.js} +1 -1
  58. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CLOPNeUW.js → menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js} +118 -98
  59. package/dist/{pda-app-DPsAFNiw.js → pda-app-B6w99SJo.js} +10 -10
  60. package/dist/{resource-Dibb7t8u.js → resource-BybJvUv0.js} +4 -4
  61. package/dist/{su-welcome-DejR0KkM.js → su-welcome-C1bmxHoY.js} +119 -121
  62. package/dist/sys-config-BnmIDnCj.js +370 -0
  63. package/dist/udp-core.css +1 -9
  64. package/dist/utogether-MlnyYtNS.js +4 -0
  65. package/index.ts +49 -40
  66. package/package.json +18 -18
  67. package/src/App.vue +65 -65
  68. package/src/api/http.ts +1 -4
  69. package/src/api/index.ts +4 -2
  70. package/src/api/user.ts +2 -2
  71. package/src/components/SuCharts/src/UserInfo.vue +78 -78
  72. package/src/components/SuScrollTree/ScrollPanel.vue +1 -6
  73. package/src/components/udp/content/index.vue +88 -0
  74. package/src/components/udp/{form.vue → form/form.vue} +13 -16
  75. package/src/components/udp/{grid.vue → grid/index.vue} +56 -27
  76. package/src/components/udp/index.ts +4 -9
  77. package/src/components/udp/ut-stamp-badge/index.vue +271 -0
  78. package/src/components/udp/utils.ts +66 -105
  79. package/src/layout/components/lay-navbar/index.vue +8 -6
  80. package/src/layout/components/lay-panel/index.vue +150 -150
  81. package/src/layout/components/lay-search/index.vue +25 -25
  82. package/src/layout/components/lay-select-org/index.vue +4 -9
  83. package/src/layout/components/lay-setting/index.vue +503 -510
  84. package/src/layout/components/lay-sidebar/horizontal.vue +8 -6
  85. package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
  86. package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -98
  87. package/src/layout/components/lay-tag/index.vue +24 -51
  88. package/src/layout/hooks/useDataThemeChange.ts +1 -1
  89. package/src/layout/hooks/useNav.ts +176 -173
  90. package/src/layout/hooks/useTag.ts +227 -233
  91. package/src/layout/types.ts +93 -92
  92. package/src/main.ts +115 -119
  93. package/src/plugins/i18n/en.ts +302 -302
  94. package/src/plugins/i18n/module/u-workflow.ts +1 -1
  95. package/src/plugins/i18n/zh.ts +21 -6
  96. package/src/plugins/vxe-table/index.ts +116 -53
  97. package/src/plugins/vxe-table/render.tsx +945 -956
  98. package/src/router/index.ts +17 -17
  99. package/src/router/modules/flow.ts +35 -0
  100. package/src/router/modules/home.ts +32 -32
  101. package/src/router/modules/remaining.ts +58 -58
  102. package/src/router/utils.ts +420 -377
  103. package/src/store/modules/app.ts +2 -4
  104. package/src/store/modules/epTheme.ts +48 -49
  105. package/src/store/modules/multiTags.ts +15 -14
  106. package/src/store/modules/permission.ts +25 -15
  107. package/src/store/modules/system.ts +1 -3
  108. package/src/style/button.scss +85 -85
  109. package/src/style/login.css +1 -1
  110. package/src/style/vxetable.scss +61 -2
  111. package/src/utils/dataFormat/index.ts +223 -223
  112. package/src/utils/index.ts +3 -1
  113. package/src/utils/lifecycle.ts +39 -20
  114. package/src/utils/propTypes.ts +1 -6
  115. package/src/utils/storage/index.ts +2 -2
  116. package/src/utils/udp/http/index.ts +24 -11
  117. package/src/utils/udp/http/types.d.ts +3 -10
  118. package/src/views/login/login-view.vue +4 -18
  119. package/src/views/organization/company/CompanyPanel.vue +259 -259
  120. package/src/views/organization/department/Department.vue +58 -58
  121. package/src/views/organization/department/DepartmentPanel.vue +303 -283
  122. package/src/views/organization/inv-org/InvOrganization.vue +22 -7
  123. package/src/views/organization/staff/StaffInfo.vue +127 -133
  124. package/src/views/organization/staff/StaffPanel.vue +162 -145
  125. package/src/views/system/cron/cron-task.vue +2 -12
  126. package/src/views/system/menu/SystemMenu.vue +185 -183
  127. package/src/views/system/menu/menuInfo.vue +384 -363
  128. package/src/views/system/role/UserInfo.vue +195 -195
  129. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  130. package/src/views/system/role-assign/RolePanel.vue +139 -139
  131. package/src/views/system/sys/sys-config.vue +69 -20
  132. package/src/views/system/sysUser/SysUserPanel.vue +97 -28
  133. package/src/views/uapp/pda/pda-app.vue +208 -208
  134. package/src/views/udev/coderule/code-rule.vue +132 -121
  135. package/src/views/udev/dict/DictView.vue +2 -2
  136. package/src/views/udev/dict/childView.vue +183 -222
  137. package/src/views/udev/lov/childView.vue +1 -7
  138. package/src/views/udev/lov/lov-view.vue +91 -91
  139. package/src/views/uhome/components/menu-favorite.vue +314 -331
  140. package/src/views/uhome/su-welcome.vue +319 -339
  141. package/src/views/ulogin/login.vue +325 -321
  142. package/src/views/upms/interface/log-in.vue +100 -106
  143. package/src/views/upms/interface/log-out.vue +104 -107
  144. package/src/views/upms/user/login-log.vue +54 -60
  145. package/src/views/urpt/design/DesignPanel.vue +507 -507
  146. package/src/views/urpt/design/Preview.vue +1 -0
  147. package/src/views/urpt/design/ReportDesign.vue +2 -4
  148. package/src/views/utask/flow-task.vue +18 -0
  149. package/types/global.d.ts +231 -236
  150. package/dist/InvOrganization-BVuOhzbt.js +0 -66
  151. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-BOOO6Cek.js +0 -111
  152. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-SwNbAEvW.js +0 -294
  153. package/dist/childView.vue_vue_type_style_index_0_lang-DWIFCX3X.js +0 -187
  154. package/dist/index-CKnq5xIa.js +0 -2623
  155. package/dist/log-out--RRncZhN.js +0 -120
  156. package/dist/login-CpKykfdf.js +0 -253
  157. package/dist/sys-config-DiySRWns.js +0 -277
  158. package/dist/utogether-Dct_14Zk.js +0 -182
  159. package/src/components/udp/count-down.vue +0 -536
  160. package/src/components/udp/flip-down/FlipCard/flip-card.vue +0 -251
  161. package/src/components/udp/flip-down/FlipCard/interfaces.ts +0 -4
  162. package/src/components/udp/flip-down/FlipClock/flip-clock.vue +0 -113
  163. package/src/components/udp/form-upload.vue +0 -482
  164. package/src/components/udp/lov.vue +0 -388
  165. package/src/components/udp/modal-form.vue +0 -189
  166. package/src/components/udp/modal-grid.vue +0 -288
  167. package/src/components/udp/upload.vue +0 -423
  168. package/src/utils/udp/useRender.ts +0 -431
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-BOOO6Cek.js";
1
+ import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,135 @@
1
+ import { defineComponent as E, ref as k, inject as C, reactive as N, watch as S, nextTick as B, resolveComponent as r, createElementBlock as D, openBlock as d, 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 V } from "./StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js";
6
+ import { y as i } from "./index-C3q8HoJM.js";
7
+ import { VxeUI as T } from "vxe-pc-ui";
8
+ const Y = {
9
+ class: "page-content"
10
+ }, l = "/uums/employee", H = /* @__PURE__ */ E({
11
+ __name: "StaffPanel",
12
+ setup(O) {
13
+ const o = k(null), {
14
+ t: u
15
+ } = A(), n = C("active"), t = N({
16
+ record: {},
17
+ showModelView: !1,
18
+ fetchExtParam: {}
19
+ });
20
+ S(() => n.value, (e) => {
21
+ t.fetchExtParam = {
22
+ departmentId: e == null ? void 0 : e.id
23
+ }, B(() => {
24
+ o.value.refreshData();
25
+ });
26
+ });
27
+ const m = [{
28
+ code: "sync",
29
+ auth: "wechat",
30
+ status: "success",
31
+ icon: "ri-refresh-line"
32
+ }, {
33
+ code: "sync",
34
+ auth: "dingding",
35
+ status: "success",
36
+ icon: "ri-refresh-line"
37
+ }, {
38
+ code: "sync",
39
+ auth: "OA",
40
+ status: "success",
41
+ icon: "ri-refresh-line"
42
+ }, {
43
+ code: "del",
44
+ auth: "/"
45
+ }], f = [{
46
+ field: "employeeCode"
47
+ }, {
48
+ field: "employeeName"
49
+ }], p = [{
50
+ type: "checkbox",
51
+ width: 50,
52
+ align: "center"
53
+ }, {
54
+ field: "employeeCode"
55
+ }, {
56
+ field: "employeeName",
57
+ width: 150
58
+ }, {
59
+ field: "gender",
60
+ width: 100,
61
+ formatter: ["formatDict", "SU.GENDER"]
62
+ }, {
63
+ field: "enabled",
64
+ width: 100,
65
+ formatter: ["formatDict", "SU.ENABLE"]
66
+ }, {
67
+ field: "operate",
68
+ width: 150,
69
+ fixed: "right",
70
+ slots: {
71
+ default: ({
72
+ row: e
73
+ }) => {
74
+ 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";
75
+ return [s(L, null, [s(r("ut-button"), {
76
+ icon: "ri-edit-box-line",
77
+ content: "edit",
78
+ onTap: () => v(e)
79
+ }, null), s(r("ut-button"), {
80
+ icon: c,
81
+ content: a,
82
+ status: x,
83
+ onTap: () => g(e)
84
+ }, null)])];
85
+ }
86
+ }
87
+ }], h = {
88
+ toolbarButtonClick({
89
+ code: e
90
+ }) {
91
+ e === "add" && y();
92
+ }
93
+ }, y = () => {
94
+ var e, a;
95
+ if (!((e = n.value) != null && e.deptName))
96
+ return U("请先选择部门");
97
+ 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;
98
+ }, v = (e) => {
99
+ t.dataStatus = "update", t.record = e, t.showModelView = !0;
100
+ }, g = async (e) => {
101
+ const a = P(e, !0);
102
+ o.value.showLoading(), a.enabled = a.enabled === "1" ? "0" : "1", await i().put(l, a), o.value.hiddenLoading(), o.value.refreshData();
103
+ }, _ = async () => {
104
+ await T.modal.confirm(u("message.tip.confirmSync")) === "confirm" && (o.value.showLoading(), await i().post("/uums/employee/syncEwEmp", {}), o.value.hiddenLoading(), o.value.refreshData());
105
+ }, b = (e) => {
106
+ e === "sync" && _();
107
+ }, w = () => {
108
+ t.showModelView = !1, o.value.refreshData();
109
+ };
110
+ return (e, a) => {
111
+ const c = r("ut-grid");
112
+ return d(), D("div", Y, [s(c, {
113
+ ref_key: "xgrid",
114
+ ref: o,
115
+ items: f,
116
+ columns: p,
117
+ "default-params": t.fetchExtParam,
118
+ events: h,
119
+ "auto-load": !1,
120
+ buttons: m,
121
+ url: l,
122
+ mode: "form",
123
+ onButtonClick: b
124
+ }, null, 8, ["default-params"]), t.showModelView ? (d(), M(V, {
125
+ key: 0,
126
+ record: t.record,
127
+ "data-status": t.dataStatus,
128
+ onOnClose: w
129
+ }, null, 8, ["record", "data-status"])) : I("", !0)]);
130
+ };
131
+ }
132
+ });
133
+ export {
134
+ H as _
135
+ };
@@ -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-SwNbAEvW.js";
3
- import { _ as a } from "./index-CKnq5xIa.js";
2
+ import { _ as n } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js";
3
+ import { _ as a } from "./index-C3q8HoJM.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-SwNbAEvW.js";
1
+ import { _ as f } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,341 @@
1
+ import { defineComponent as oe, reactive as ae, ref as w, inject as le, createVNode as o, Fragment as x, resolveComponent as a, onMounted as re, createElementBlock as $, openBlock as g, createBlock as b, createCommentVNode as R, withCtx as d, renderList as ne, unref as de } from "vue";
2
+ import { useI18n as ie } from "vue-i18n";
3
+ import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
4
+ import { useRender as ue, warnMessage as me, delay as ce, errorMessage as fe, getDictChildren as pe } from "@utogether/utils";
5
+ import { VxeUI as ge } from "vxe-pc-ui";
6
+ import { clone as C, isEmpty as he } from "xe-utils";
7
+ import { y as we } from "./index-C3q8HoJM.js";
8
+ const ve = {
9
+ class: "page"
10
+ }, i = "/uums/user", ke = /* @__PURE__ */ oe({
11
+ __name: "SysUserPanel",
12
+ setup(_e) {
13
+ const t = ae({
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 = we(), {
26
+ t: r
27
+ } = ie(), M = {
28
+ userName: [{
29
+ required: !0,
30
+ message: `${r("message.required")}${r("message.userCode")}`
31
+ }],
32
+ name: [{
33
+ required: !0,
34
+ message: `${r("message.required")}${r("message.userName")}`
35
+ }],
36
+ unitId: [{
37
+ required: !0,
38
+ message: `${r("message.required")}${r("message.unitName")}`
39
+ }],
40
+ userPwd: [{
41
+ required: !0,
42
+ message: `${r("message.required")}${r("message.userPwd")}`
43
+ }]
44
+ }, L = ue(), v = w({}), q = le("treeList"), m = w(!1);
45
+ let _ = "";
46
+ const c = w(null), D = [{
47
+ field: "name",
48
+ title: "message.udp.userName"
49
+ }, {
50
+ field: "userName",
51
+ title: "message.udp.userCode"
52
+ }, {
53
+ field: "type",
54
+ title: "message.udp.userType",
55
+ code: "SU.USER.TYPE"
56
+ }], E = [{
57
+ type: "checkbox",
58
+ width: 40,
59
+ align: "center"
60
+ }, {
61
+ field: "userName",
62
+ title: "message.udp.userCode"
63
+ }, {
64
+ field: "name",
65
+ title: "message.udp.userName"
66
+ }, {
67
+ field: "type",
68
+ title: "message.udp.userType",
69
+ formatter: ["formatDict", "SU.USER.TYPE"]
70
+ }, {
71
+ field: "enabled",
72
+ width: 80,
73
+ cellRender: L.renderEnabled(z)
74
+ }, {
75
+ field: "operate",
76
+ width: 150,
77
+ fixed: "right",
78
+ slots: {
79
+ default: ({
80
+ row: e
81
+ }) => [o(x, null, [o(a("ut-button"), {
82
+ content: "edit",
83
+ icon: "ri-edit-line",
84
+ onTap: () => B(e)
85
+ }, null), o(a("ut-dropdown"), {
86
+ buttons: I(),
87
+ onCommand: (s) => A(e, s)
88
+ }, null)])]
89
+ }
90
+ }], A = (e, s) => {
91
+ s === "role" && H(e), s === "auth" && Q(e), s === "passwordReset" && O(e);
92
+ }, I = () => [{
93
+ code: "role",
94
+ icon: "ri-user-fill"
95
+ }, {
96
+ code: "auth",
97
+ icon: "ri-lock-fill"
98
+ }, {
99
+ code: "passwordReset",
100
+ icon: "ri-lock-password-line"
101
+ }], U = [{
102
+ field: "userName",
103
+ title: "message.udp.userCode",
104
+ required: !0,
105
+ disabled: !1
106
+ }, {
107
+ field: "name",
108
+ title: "message.udp.userName",
109
+ required: !0
110
+ }, {
111
+ field: "type",
112
+ required: !0,
113
+ title: "message.udp.userType",
114
+ code: "SU.USER.TYPE"
115
+ }, {
116
+ field: "userPwd",
117
+ required: !0,
118
+ visibleMethod: ({
119
+ data: e
120
+ }) => !e.id
121
+ }], T = () => {
122
+ t.record = {
123
+ userPwd: _,
124
+ ...v.value,
125
+ type: "system"
126
+ }, t.items = C(U, !0), t.height = 280, t.showModal = !0;
127
+ }, B = (e) => {
128
+ t.record = C(e, !0), t.items = C(U, !0), t.items[0].disabled = !0, t.height = 240, t.showModal = !0;
129
+ }, F = () => {
130
+ c.value.getInstance().commitProxy("delete");
131
+ }, Y = (e) => [e], j = () => {
132
+ c.value.refreshData();
133
+ };
134
+ async function z({
135
+ row: e
136
+ }) {
137
+ await S(u.put(i, [e])), c.value.refreshData();
138
+ }
139
+ const H = async (e) => {
140
+ var l;
141
+ t.roleList = [], t.showUserRole = !0, m.value = !0;
142
+ const s = await u.get(i + "/getUserRole", {
143
+ userName: e.userName
144
+ });
145
+ m.value = !1, t.roleList = (l = s[0]) == null ? void 0 : l.sysRoles;
146
+ }, O = async (e) => {
147
+ await u.put(i + "/resetPwd", e), await ge.modal.alert(r("message.tip.initPassword", {
148
+ code: _
149
+ }));
150
+ }, Q = async (e) => {
151
+ var h;
152
+ t.roleList = [], t.showAuth = !0, m.value = !0, t.record = e;
153
+ const [s, l] = await S(u.get(i + "/getUserRole", {
154
+ userName: e.userName
155
+ }));
156
+ m.value = !1, s || (he(l) ? me(r("message.tip.emptyAuth")) : t.roleList = (h = l[0]) == null ? void 0 : h.sysMenuExts);
157
+ }, V = w(null), W = () => {
158
+ V.value.validate(async (e) => {
159
+ if (!e) {
160
+ const {
161
+ record: s,
162
+ dataStatus: l
163
+ } = t;
164
+ l === "add" ? await u.post(i, s) : await u.put(i, s), P();
165
+ }
166
+ });
167
+ }, P = () => {
168
+ t.showModelView = !1;
169
+ }, G = (e) => {
170
+ e === "add" && T(), e === "del" && F();
171
+ }, J = () => {
172
+ u.get("/uums/unit", {
173
+ pageSize: 10
174
+ }).then(async (e) => {
175
+ v.value = {
176
+ unitId: e[0].id,
177
+ enabled: "1"
178
+ }, await ce(100), c.value.refreshData();
179
+ }).catch(() => {
180
+ fe("获取租户失败,刷新后重试");
181
+ });
182
+ }, K = () => {
183
+ var s;
184
+ _ = ((s = pe("SU.DEFAULT_PASSWORD")) == null ? void 0 : s.find((l) => l.dictCode === "default")).dictName;
185
+ };
186
+ return re(() => {
187
+ K(), J();
188
+ }), (e, s) => {
189
+ const l = a("ut-grid"), h = a("vxe-option"), X = a("vxe-select"), f = a("vxe-form-item"), k = a("ut-button"), Z = a("vxe-form"), y = a("vxe-modal"), N = a("vxe-column"), ee = a("vxe-table"), te = a("el-tree-v2"), se = a("ut-modal-form");
190
+ return g(), $("div", ve, [o(l, {
191
+ ref_key: "xgrid",
192
+ ref: c,
193
+ columns: E,
194
+ items: D,
195
+ url: i,
196
+ "auto-load": !1,
197
+ "default-params": v.value,
198
+ mode: "form",
199
+ onButtonClick: G
200
+ }, null, 8, ["default-params"]), o(y, {
201
+ modelValue: t.showModelView,
202
+ "onUpdate:modelValue": s[0] || (s[0] = (n) => t.showModelView = n),
203
+ title: "用户信息",
204
+ width: "300"
205
+ }, {
206
+ default: d(() => [o(Z, {
207
+ ref_key: "xForm",
208
+ ref: V,
209
+ data: t.record,
210
+ rules: M,
211
+ "title-align": "right"
212
+ }, {
213
+ default: d(() => [o(f, {
214
+ title: e.$t("message.unitName"),
215
+ field: "unitId",
216
+ span: "24"
217
+ }, {
218
+ default: d(({
219
+ data: n
220
+ }) => [o(X, {
221
+ modelValue: n.unitId,
222
+ "onUpdate:modelValue": (p) => n.unitId = p
223
+ }, {
224
+ default: d(() => [(g(!0), $(x, null, ne(de(q), (p) => (g(), b(h, {
225
+ key: p.id,
226
+ value: p.id,
227
+ label: p.unitName
228
+ }, null, 8, ["value", "label"]))), 128))]),
229
+ _: 2
230
+ }, 1032, ["modelValue", "onUpdate:modelValue"])]),
231
+ _: 1
232
+ }, 8, ["title"]), o(f, {
233
+ title: e.$t("message.userCode"),
234
+ "item-render": {
235
+ name: "input",
236
+ attrs: {
237
+ disabled: t.dataStatus === "update"
238
+ }
239
+ },
240
+ field: "userName",
241
+ span: "24"
242
+ }, null, 8, ["title", "item-render"]), o(f, {
243
+ title: e.$t("message.userName"),
244
+ field: "name",
245
+ span: "24",
246
+ "item-render": {
247
+ name: "input"
248
+ }
249
+ }, null, 8, ["title"]), t.dataStatus === "add" ? (g(), b(f, {
250
+ key: 0,
251
+ title: e.$t("message.userPwd"),
252
+ "item-render": {
253
+ name: "input"
254
+ },
255
+ field: "userPwd",
256
+ span: "24"
257
+ }, null, 8, ["title"])) : R("", !0), o(f, {
258
+ align: "right",
259
+ span: "24"
260
+ }, {
261
+ default: d(() => [o(k, {
262
+ content: "cancel",
263
+ icon: "ri-close-fill",
264
+ onClick: P
265
+ }), o(k, {
266
+ content: "confirm",
267
+ icon: "ri-save-3-fill",
268
+ status: "u-cyan",
269
+ onClick: W
270
+ })]),
271
+ _: 1
272
+ })]),
273
+ _: 1
274
+ }, 8, ["data"])]),
275
+ _: 1
276
+ }, 8, ["modelValue"]), o(y, {
277
+ modelValue: t.showUserRole,
278
+ "onUpdate:modelValue": s[1] || (s[1] = (n) => t.showUserRole = n),
279
+ loading: m.value,
280
+ title: e.$t("message.title.roleInfo"),
281
+ width: "600"
282
+ }, {
283
+ default: d(() => [o(ee, {
284
+ height: "300",
285
+ data: t.roleList,
286
+ border: ""
287
+ }, {
288
+ default: d(() => [o(N, {
289
+ type: "seq",
290
+ width: "60"
291
+ }), o(N, {
292
+ field: "roleName",
293
+ title: e.$t("message.udp.roleName")
294
+ }, null, 8, ["title"]), o(N, {
295
+ field: "roleDesc",
296
+ title: e.$t("message.udp.roleDesc")
297
+ }, null, 8, ["title"])]),
298
+ _: 1
299
+ }, 8, ["data"])]),
300
+ _: 1
301
+ }, 8, ["modelValue", "loading", "title"]), o(y, {
302
+ modelValue: t.showAuth,
303
+ "onUpdate:modelValue": s[2] || (s[2] = (n) => t.showAuth = n),
304
+ loading: m.value,
305
+ title: e.$t("message.title.authority", {
306
+ role: t.record.name || "88888"
307
+ }),
308
+ height: "620",
309
+ width: "560"
310
+ }, {
311
+ default: d(() => [o(te, {
312
+ ref: "xTree",
313
+ data: t.roleList,
314
+ props: {
315
+ children: "children",
316
+ label: "menuName"
317
+ },
318
+ height: 560,
319
+ "node-key": "id"
320
+ }, null, 8, ["data"])]),
321
+ _: 1
322
+ }, 8, ["modelValue", "loading", "title"]), t.showModal ? (g(), b(se, {
323
+ key: 0,
324
+ record: t.record,
325
+ items: t.items,
326
+ width: 360,
327
+ height: t.height,
328
+ method: t.record.id ? "put" : "post",
329
+ "data-process-method": Y,
330
+ title: e.$t("message.title.userInfo"),
331
+ "data-status": "update",
332
+ url: i,
333
+ onClose: s[3] || (s[3] = (n) => t.showModal = !1),
334
+ onConfirm: j
335
+ }, null, 8, ["record", "items", "height", "method", "title"])) : R("", !0)]);
336
+ };
337
+ }
338
+ });
339
+ export {
340
+ ke as _
341
+ };
@@ -1,20 +1,20 @@
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";
1
+ import { defineComponent as k, reactive as S, ref as v, createVNode as n, resolveComponent as i, Fragment as m, createElementBlock as A, openBlock as D } from "vue";
2
2
  import { useI18n as E } from "vue-i18n";
3
- import { _ as I } from "./menuInfo.vue_vue_type_style_index_0_lang-CLOPNeUW.js";
4
- import { _ as N } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js";
3
+ import { _ as N } from "./menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js";
4
+ import { _ as I } 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
- import { VxeUI as R } from "vxe-pc-ui";
8
- import { useRender as U } from "@utogether/utils";
9
- import { q as B } from "./index-CKnq5xIa.js";
10
- const P = {
7
+ import { VxeUI as P } from "vxe-pc-ui";
8
+ import { useRender as R } from "@utogether/utils";
9
+ import { y as U } from "./index-C3q8HoJM.js";
10
+ const B = {
11
11
  class: "page-content"
12
- }, z = {
12
+ }, L = {
13
13
  name: "SystemMenu"
14
- }, j = /* @__PURE__ */ S({
15
- ...z,
16
- setup(F) {
17
- const t = k({
14
+ }, q = /* @__PURE__ */ k({
15
+ ...L,
16
+ setup(z) {
17
+ const t = S({
18
18
  record: {},
19
19
  dataList: [],
20
20
  submitLoading: !1,
@@ -27,9 +27,9 @@ const P = {
27
27
  }
28
28
  }), {
29
29
  t: h
30
- } = E(), f = U(), d = B(), s = v(null), i = "/uums/menu";
30
+ } = E(), f = R(), d = U(), r = v(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"
@@ -66,17 +66,17 @@ const P = {
66
66
  default: ({
67
67
  row: e
68
68
  }) => {
69
- const n = e.menuType, a = o(r("ut-button"), {
69
+ const o = e.menuType, a = n(i("ut-button"), {
70
70
  status: "u-cyan",
71
71
  icon: "ri-add-fill",
72
72
  content: "add",
73
73
  onTap: () => u(e)
74
- }, null), x = o(r("ut-button"), {
74
+ }, null), x = n(i("ut-button"), {
75
75
  icon: "ri-lock-fill",
76
76
  content: "auth",
77
77
  onTap: () => b(e)
78
78
  }, null);
79
- return [o(m, null, [n ? null : o(m, null, [o(r("ut-button"), {
79
+ return [n(m, null, [o ? null : n(m, null, [n(i("ut-button"), {
80
80
  status: "success",
81
81
  icon: "ri-edit-box-line",
82
82
  content: "edit",
@@ -84,44 +84,44 @@ const P = {
84
84
  }, null), ["0", "5"].includes(e.menuCategory) ? a : x])])];
85
85
  }
86
86
  }
87
- }], y = ({
87
+ }], C = ({
88
88
  code: e
89
89
  }) => {
90
90
  e === "add" && u(), e === "del" && T();
91
91
  }, g = async ({
92
92
  row: e
93
93
  }) => {
94
- const n = await d.get(i, {
94
+ const o = await d.get(s, {
95
95
  parentId: e.id
96
96
  });
97
97
  return new Promise((a) => {
98
- a(n.list);
98
+ a(o.list);
99
99
  });
100
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;
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.showLink = "Y", t.record.isApprovalPage = "N", 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
102
  }, w = (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(i, [e]), s.value.refreshData();
108
+ await d.put(s, [e]), r.value.refreshData();
109
109
  }
110
110
  const T = async () => {
111
- const e = await R.modal.confirm(h("message.delRecord")), n = s.value.getInstance().getCheckboxRecords();
111
+ const e = await P.modal.confirm(h("message.delRecord")), o = r.value.getInstance().getCheckboxRecords();
112
112
  if (e === "confirm") {
113
- const [a] = await M(d.delete(i, n));
113
+ const [a] = await M(d.delete(s, o));
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
- }, c = (e, n) => {
118
- e === "submit" && (l || n) && s.value.getInstance().reloadTreeExpand(l || n), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
117
+ }, c = (e, o) => {
118
+ e === "submit" && (l || o) && r.value.getInstance().reloadTreeExpand(l || o), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
119
119
  };
120
- return (e, n) => {
121
- const a = r("ut-grid");
122
- return A(), D("div", P, [o(a, {
120
+ return (e, o) => {
121
+ const a = i("ut-grid");
122
+ return D(), A("div", B, [n(a, {
123
123
  ref_key: "xgrid",
124
- ref: s,
124
+ ref: r,
125
125
  "tree-config": {
126
126
  childrenField: "children",
127
127
  lazy: !0,
@@ -130,17 +130,17 @@ const P = {
130
130
  iconOpen: "ri-checkbox-indeterminate-line ri-lg",
131
131
  iconClose: "ri-add-box-line ri-lg"
132
132
  },
133
- columns: C,
134
- url: i,
133
+ columns: y,
134
+ url: s,
135
135
  stripe: !1,
136
136
  mode: "form",
137
- onToolbarButtonClick: y
138
- }, null, 8, ["tree-config"]), o(I, {
137
+ onToolbarButtonClick: C
138
+ }, null, 8, ["tree-config"]), n(N, {
139
139
  show: t.showDrawer,
140
140
  record: t.record,
141
141
  "data-status": t.dataStatus,
142
142
  onClose: c
143
- }, null, 8, ["show", "record", "data-status"]), o(N, {
143
+ }, null, 8, ["show", "record", "data-status"]), n(I, {
144
144
  show: t.showAuthority,
145
145
  record: t.record,
146
146
  onClose: c
@@ -149,5 +149,5 @@ const P = {
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-CnvGdbej.js";
1
+ import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js";
2
2
  export {
3
3
  f as default
4
4
  };