@utogether/udp-core 1.0.1-beta.15 → 1.0.1-beta.17

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 (126) hide show
  1. package/build/plugins.ts +39 -39
  2. package/dist/{403-DpJevH-h.js → 403-C3cfjZIT.js} +1 -1
  3. package/dist/{404-BpqJK3YD.js → 404-Bg3j7QIo.js} +1 -1
  4. package/dist/{500-DyvRbMD_.js → 500-CMT7Zyy7.js} +1 -1
  5. package/dist/{AuthorityInfo-Cyu4XHXx.js → AuthorityInfo-B1mvqs4x.js} +1 -1
  6. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-BxmnEEFq.js → AuthorityInfo.vue_vue_type_style_index_0_lang-DwoW7QWO.js} +3 -3
  7. package/dist/{Company-BLygcYrI.js → Company-qTguidK8.js} +3 -3
  8. package/dist/{CompanyPanel-D5Tgw6LF.js → CompanyPanel-BBC-o-k3.js} +17 -17
  9. package/dist/{Department-qI9OninZ.js → Department-C3mKZOnK.js} +3 -3
  10. package/dist/{DepartmentPanel-P-P8fPZQ.js → DepartmentPanel-CNdpOHBT.js} +25 -25
  11. package/dist/{DesignPanel-BxjD0AZi.js → DesignPanel-D9jrRCoG.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DN_OKxCu.js → DesignPanel.vue_vue_type_style_index_0_lang-A-Aj1Hl0.js} +6 -6
  13. package/dist/{DictView-PWL_Vf0T.js → DictView-CgdVkSiP.js} +15 -16
  14. package/dist/{InvOrganization-JXBXyn3G.js → InvOrganization-RE7s3vBq.js} +1 -1
  15. package/dist/{Org-DcTJn6YQ.js → Org-wXDGvTrS.js} +3 -3
  16. package/dist/{Preview-IKvbHI8a.js → Preview-Pvt1__BV.js} +1 -1
  17. package/dist/{ReportDefine-_G7ts7Ch.js → ReportDefine-xEQsgFyv.js} +1 -1
  18. package/dist/{ReportDesign-7h5oFklh.js → ReportDesign-jOSuEFH9.js} +9 -9
  19. package/dist/{ReportQuery-dj0BQUyi.js → ReportQuery-DxEmmGiN.js} +1 -1
  20. package/dist/{ReportQueryFrom-6WaZPg9i.js → ReportQueryFrom-CFlxfS5M.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-ChhcBPqa.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-iHpiYz8f.js} +1 -1
  22. package/dist/{ReportTemplate-DIvJ3RrB.js → ReportTemplate-Dtz3aet7.js} +11 -11
  23. package/dist/{Role-ia_3qAZU.js → Role-B_NsHIyE.js} +3 -3
  24. package/dist/{RoleAssign-D0zVl4y3.js → RoleAssign-C9wm4zq4.js} +8 -8
  25. package/dist/{RolePanel-CQxOiAzj.js → RolePanel-BlHidBR0.js} +1 -1
  26. package/dist/{RolePanel-BiGGmP2w.js → RolePanel-DWM9mfNs.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BYDLRS_x.js → RolePanel.vue_vue_type_script_setup_true_lang-Cn4RRzXm.js} +1 -1
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Dwv5LFbf.js → RolePanel.vue_vue_type_script_setup_true_lang-DVQ9aqb1.js} +9 -9
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-gPP4duO8.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCm-_i8O.js} +8 -8
  30. package/dist/{Staff-Bf_oUqF6.js → Staff-BfDc61QS.js} +3 -3
  31. package/dist/{StaffInfo-D5aisjx2.js → StaffInfo-BaJFo4mg.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-6PX7Bx6A.js → StaffInfo.vue_vue_type_script_setup_true_lang-Bwj4x1wu.js} +7 -7
  33. package/dist/{StaffPanel--zKzd4rt.js → StaffPanel-B6I2ZS6A.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BWZSIFpq.js → StaffPanel.vue_vue_type_script_setup_true_lang-vbyS4w3V.js} +2 -2
  35. package/dist/{SysUser-BelbESLR.js → SysUser-B_r9LYc5.js} +2 -2
  36. package/dist/{SysUserPanel-BixKqQcA.js → SysUserPanel-C4ajcHPV.js} +1 -1
  37. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BhaWZEfo.js → SysUserPanel.vue_vue_type_script_setup_true_lang-8Q0VvC9B.js} +41 -37
  38. package/dist/{SystemMenu-D40tzcSj.js → SystemMenu-CyPG23uP.js} +10 -10
  39. package/dist/{UserInfo-DTyk071j.js → UserInfo-BkoGt4ib.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-p9MByikC.js → UserInfo.vue_vue_type_style_index_0_lang-DrzF1YYG.js} +10 -10
  41. package/dist/{childView-so5qSxr0.js → childView-9vEO8ymO.js} +1 -1
  42. package/dist/{childView-xL3iE1yN.js → childView-Dh0NyiQe.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-CKcXpSqa.js → childView.vue_vue_type_style_index_0_lang-BOeoZuAK.js} +7 -7
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-DK1ei5uM.js → childView.vue_vue_type_style_index_0_lang-CMOjfXBX.js} +1 -1
  45. package/dist/{code-rule-DC35y76w.js → code-rule-C7jI_1gJ.js} +6 -6
  46. package/dist/core.es.js +17 -12
  47. package/dist/{cron-task-BhjQ4S68.js → cron-task-Dg9DJXvv.js} +11 -11
  48. package/dist/{frameView-G_zhG9pf.js → frameView-CeR-_hjB.js} +1 -1
  49. package/dist/{index-C6ehxLLO.js → index-Bb7gIEvu.js} +739 -496
  50. package/dist/{layoutView-CO2U8qCQ.js → layoutView-wsLHrEeX.js} +1347 -1346
  51. package/dist/login-CluzzdqH.js +249 -0
  52. package/dist/{lov-view-Cr929NMD.js → lov-view-BvQCvwbW.js} +5 -5
  53. package/dist/{menuInfo-BWuROp7u.js → menuInfo-B8RLelIC.js} +1 -1
  54. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-9nouHUjO.js → menuInfo.vue_vue_type_style_index_0_lang-DvkapEZr.js} +7 -7
  55. package/dist/{pda-app-CQP1sMAI.js → pda-app-D3LNmD9a.js} +19 -19
  56. package/dist/{resource-BDQLrMpK.js → resource-D8JA_03-.js} +7 -7
  57. package/dist/{su-welcome-CZysrZQ1.js → su-welcome-BjxeEKSo.js} +88 -88
  58. package/dist/{sys-config-BiGNMYSA.js → sys-config-sbeLk9bP.js} +6 -6
  59. package/dist/udp-core.css +1 -9
  60. package/dist/utogether-MlnyYtNS.js +4 -0
  61. package/index.ts +48 -40
  62. package/package.json +1 -1
  63. package/src/App.vue +65 -65
  64. package/src/components/SuCharts/src/UserInfo.vue +78 -78
  65. package/src/components/SuScrollTree/ScrollPanel.vue +170 -175
  66. package/src/components/udp/{grid.vue → grid/index.vue} +27 -24
  67. package/src/components/udp/index.ts +2 -9
  68. package/src/components/udp/utils.ts +60 -107
  69. package/src/layout/components/lay-navbar/index.vue +239 -239
  70. package/src/layout/components/lay-panel/index.vue +150 -150
  71. package/src/layout/components/lay-search/index.vue +25 -25
  72. package/src/layout/components/lay-select-org/index.vue +64 -64
  73. package/src/layout/components/lay-sidebar/horizontal.vue +190 -190
  74. package/src/layout/components/lay-sidebar/mixNav.vue +260 -260
  75. package/src/layout/components/lay-sidebar/sidebar-logo.vue +92 -92
  76. package/src/layout/components/lay-tag/index.vue +20 -48
  77. package/src/layout/hooks/useNav.ts +173 -173
  78. package/src/layout/hooks/useTag.ts +223 -233
  79. package/src/layout/types.ts +3 -2
  80. package/src/main.ts +117 -113
  81. package/src/plugins/i18n/en.ts +302 -302
  82. package/src/plugins/i18n/zh.ts +356 -354
  83. package/src/plugins/vxe-table/index.ts +116 -53
  84. package/src/plugins/vxe-table/render.tsx +956 -956
  85. package/src/router/index.ts +186 -177
  86. package/src/router/modules/remaining.ts +58 -58
  87. package/src/router/utils.ts +393 -377
  88. package/src/store/modules/app.ts +1 -3
  89. package/src/store/modules/multiTags.ts +110 -109
  90. package/src/store/modules/permission.ts +113 -100
  91. package/src/style/button.scss +85 -85
  92. package/src/style/login.css +1 -1
  93. package/src/style/vxetable.scss +25 -2
  94. package/src/utils/index.ts +3 -1
  95. package/src/views/organization/company/CompanyPanel.vue +259 -259
  96. package/src/views/organization/department/DepartmentPanel.vue +269 -283
  97. package/src/views/system/menu/SystemMenu.vue +183 -183
  98. package/src/views/system/menu/menuInfo.vue +363 -363
  99. package/src/views/system/role/UserInfo.vue +195 -195
  100. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  101. package/src/views/system/role-assign/RolePanel.vue +139 -139
  102. package/src/views/system/sys/sys-config.vue +336 -336
  103. package/src/views/system/sysUser/SysUserPanel.vue +279 -278
  104. package/src/views/uapp/pda/pda-app.vue +208 -208
  105. package/src/views/udev/dict/DictView.vue +118 -118
  106. package/src/views/udev/dict/childView.vue +1 -1
  107. package/src/views/udev/lov/lov-view.vue +91 -91
  108. package/src/views/ulogin/login.vue +2 -2
  109. package/src/views/upms/interface/log-out.vue +101 -101
  110. package/src/views/urpt/design/DesignPanel.vue +507 -507
  111. package/types/global.d.ts +2 -8
  112. package/dist/login-DzyK2soP.js +0 -278
  113. package/dist/utogether-BRirriOz.js +0 -182
  114. package/src/components/udp/count-down.vue +0 -536
  115. package/src/components/udp/flip-down/FlipCard/flip-card.vue +0 -251
  116. package/src/components/udp/flip-down/FlipCard/interfaces.ts +0 -4
  117. package/src/components/udp/flip-down/FlipClock/flip-clock.vue +0 -113
  118. package/src/components/udp/form-upload.vue +0 -482
  119. package/src/components/udp/form.vue +0 -112
  120. package/src/components/udp/lov.vue +0 -388
  121. package/src/components/udp/modal-form.vue +0 -190
  122. package/src/components/udp/modal-grid.vue +0 -298
  123. package/src/components/udp/upload.vue +0 -423
  124. package/src/utils/udp/http/index.ts +0 -294
  125. package/src/utils/udp/http/types.d.ts +0 -49
  126. package/src/utils/udp/useRender.ts +0 -431
@@ -3,7 +3,7 @@ import { useI18n as z } from "vue-i18n";
3
3
  import { clone as A } from "xe-utils";
4
4
  import { useRoute as J } from "vue-router";
5
5
  import { templateRef as O } from "@vueuse/core";
6
- import { q as V } from "./index-C6ehxLLO.js";
6
+ import { w as V } from "./index-Bb7gIEvu.js";
7
7
  import { useRender as Y } from "@utogether/utils";
8
8
  const H = { class: "ut-drawer-template" }, M = { class: "flex" }, te = /* @__PURE__ */ T({
9
9
  __name: "ReportQueryFrom",
@@ -1,14 +1,14 @@
1
- import { defineComponent as E, ref as r, createVNode as p, Fragment as S, resolveComponent as s, createElementBlock as q, openBlock as f, createBlock as v, createCommentVNode as h } from "vue";
2
- import { useI18n as O } from "vue-i18n";
1
+ import { defineComponent as E, ref as r, createVNode as p, Fragment as S, resolveComponent as s, createElementBlock as O, openBlock as f, createBlock as v, createCommentVNode as h } from "vue";
2
+ import { useI18n as q } from "vue-i18n";
3
3
  import { clone as U } from "xe-utils";
4
4
  import { useRender as V, successMessage as B, warnMessage as M } from "@utogether/utils";
5
- import { e as C, q as D } from "./index-C6ehxLLO.js";
5
+ import { i as C, w as D } from "./index-Bb7gIEvu.js";
6
6
  const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
7
7
  __name: "ReportTemplate",
8
8
  setup(W) {
9
9
  const {
10
10
  t: b
11
- } = O(), o = V(), d = r(null), l = r(!1), i = r(!1), g = r({}), u = r([]), a = r({}), R = [{
11
+ } = q(), o = V(), i = r(null), l = r(!1), d = r(!1), g = r({}), u = r([]), a = r({}), R = [{
12
12
  field: "templateCode",
13
13
  title: "message.urpt.templateCode"
14
14
  }, {
@@ -72,7 +72,7 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
72
72
  }, null)])]
73
73
  }
74
74
  }], N = () => {
75
- if (!d.value.getInstance().getCheckboxRecords().length)
75
+ if (!i.value.getInstance().getCheckboxRecords().length)
76
76
  return M(b("message.selectedRecord"));
77
77
  u.value = [], u.value.push({
78
78
  field: "orgName",
@@ -87,7 +87,7 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
87
87
  }), a.value = {}, l.value = !0;
88
88
  }, _ = () => {
89
89
  if (a.value.orgName) {
90
- const t = d.value.getInstance().getCheckboxRecords(), e = [];
90
+ const t = i.value.getInstance().getCheckboxRecords(), e = [];
91
91
  t.forEach((m) => {
92
92
  a.value.orgName.forEach((c) => {
93
93
  const n = U(m, !0);
@@ -115,7 +115,7 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
115
115
  }], y = (t) => {
116
116
  g.value = {
117
117
  headerId: t.id
118
- }, i.value = !0;
118
+ }, d.value = !0;
119
119
  }, P = [{
120
120
  code: "copy",
121
121
  icon: "ri-file-copy-line",
@@ -124,9 +124,9 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
124
124
  }];
125
125
  return (t, e) => {
126
126
  const m = s("ut-grid"), c = s("ut-modal-form"), n = s("ut-modal-grid");
127
- return f(), q("div", null, [p(m, {
127
+ return f(), O("div", null, [p(m, {
128
128
  ref_key: "xgrid",
129
- ref: d,
129
+ ref: i,
130
130
  items: R,
131
131
  buttons: P,
132
132
  columns: k,
@@ -143,7 +143,7 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
143
143
  title: "单据复制",
144
144
  onConfirm: _,
145
145
  onClose: e[0] || (e[0] = (T) => l.value = !1)
146
- }, null, 8, ["record", "items"])) : h("", !0), i.value ? (f(), v(n, {
146
+ }, null, 8, ["record", "items"])) : h("", !0), d.value ? (f(), v(n, {
147
147
  key: 1,
148
148
  ref: "xmgrid",
149
149
  "default-value": g.value,
@@ -151,7 +151,7 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
151
151
  url: "/upms/v1/printTemplateConfigOgn",
152
152
  title: "库存组织",
153
153
  width: "45%",
154
- onClose: e[1] || (e[1] = (T) => i.value = !1)
154
+ onClose: e[1] || (e[1] = (T) => d.value = !1)
155
155
  }, null, 8, ["default-value"])) : h("", !0)]);
156
156
  };
157
157
  }
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as r, ref as e, provide as t, createElementBlock as i, openBlock as _, createElementVNode as o, createVNode as n } from "vue";
2
- import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-gPP4duO8.js";
3
- import { _ as d } from "./RolePanel.vue_vue_type_script_setup_true_lang-Dwv5LFbf.js";
4
- import { _ as p } from "./index-C6ehxLLO.js";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-CCm-_i8O.js";
3
+ import { _ as d } from "./RolePanel.vue_vue_type_script_setup_true_lang-DVQ9aqb1.js";
4
+ import { _ as p } from "./index-Bb7gIEvu.js";
5
5
  const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ r({
6
6
  __name: "Role",
7
7
  setup(C) {
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as l, ref as e, provide as t, createElementBlock as i, openBlock as _, createElementVNode as o, createVNode as s } from "vue";
2
- import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-gPP4duO8.js";
3
- import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-BYDLRS_x.js";
4
- import { _ as d } from "./index-C6ehxLLO.js";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-CCm-_i8O.js";
3
+ import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-Cn4RRzXm.js";
4
+ import { _ as d } from "./index-Bb7gIEvu.js";
5
5
  const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, g = { class: "content" }, h = /* @__PURE__ */ l({
6
6
  __name: "RoleAssign",
7
7
  setup(v) {
8
- const n = e({}), a = e(!1), c = e([]);
9
- return t("active", n), t("scrollPanelChange", a), t("treeList", c), (r, C) => (_(), i("div", f, [
8
+ const n = e({}), a = e(!1), r = e([]);
9
+ return t("active", n), t("scrollPanelChange", a), t("treeList", r), (c, C) => (_(), i("div", f, [
10
10
  o("div", u, [
11
11
  s(m, {
12
- title: r.$t("SuOrg"),
12
+ title: c.$t("SuOrg"),
13
13
  "tree-otions": { children: "children", label: "orgName" },
14
14
  "default-params": { pageSize: 500 },
15
15
  url: "/uums/org"
@@ -20,7 +20,7 @@ const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, g = { cla
20
20
  ])
21
21
  ]));
22
22
  }
23
- }), x = /* @__PURE__ */ d(h, [["__scopeId", "data-v-1092c64b"]]);
23
+ }), A = /* @__PURE__ */ d(h, [["__scopeId", "data-v-ee175fa5"]]);
24
24
  export {
25
- x as default
25
+ A as default
26
26
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-Dwv5LFbf.js";
1
+ import { _ as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-DVQ9aqb1.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-BYDLRS_x.js";
1
+ import { _ as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-Cn4RRzXm.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -4,7 +4,7 @@ import { clone as $ } from "xe-utils";
4
4
  import { VxeUI as j } from "vxe-pc-ui";
5
5
  import { t as v } from "./await-to-js.es5-BtRbN2QH.js";
6
6
  import { successMessage as _ } from "@utogether/utils";
7
- import { q as C } from "./index-C6ehxLLO.js";
7
+ import { w as C } from "./index-Bb7gIEvu.js";
8
8
  const q = {
9
9
  class: "page-content"
10
10
  }, d = "/uums/orgRole", X = /* @__PURE__ */ b({
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as S, reactive as I, inject as M, ref as l, watch as B, createVNode as s, Fragment as E, resolveComponent as r, createElementBlock as $, openBlock as d, createBlock as i, createCommentVNode as c } from "vue";
2
- import { useRender as q } from "@utogether/utils";
3
- import { _ as O } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-BxmnEEFq.js";
4
- import { _ as P } from "./UserInfo.vue_vue_type_style_index_0_lang-p9MByikC.js";
5
- import { q as R, e as T } from "./index-C6ehxLLO.js";
2
+ import { useRender as O } from "@utogether/utils";
3
+ import { _ as P } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-DwoW7QWO.js";
4
+ import { _ as R } from "./UserInfo.vue_vue_type_style_index_0_lang-DrzF1YYG.js";
5
+ import { w as T, i as q } from "./index-Bb7gIEvu.js";
6
6
  const H = {
7
7
  class: "page-content"
8
8
  }, K = /* @__PURE__ */ S({
@@ -14,7 +14,7 @@ const H = {
14
14
  showModalView: !1,
15
15
  showUserView: !1,
16
16
  dataStatus: ""
17
- }), o = M("active"), f = q(), a = l(null), n = l(""), p = l({}), u = l("");
17
+ }), o = M("active"), f = O(), a = l(null), n = l(""), p = l({}), u = l("");
18
18
  B(() => o.value, () => {
19
19
  C();
20
20
  });
@@ -88,7 +88,7 @@ const H = {
88
88
  t === "add" && v(), t === "del" && b();
89
89
  }, v = () => {
90
90
  var t;
91
- e.dataStatus = "add", n.value = "post", u.value = "/uums/role", e.record = {}, e.record.unitId = (t = o == null ? void 0 : o.value) == null ? void 0 : t.id, e.record.enabled = "1", e.record.orgId = T().getOrgId, e.showModalView = !0;
91
+ e.dataStatus = "add", n.value = "post", u.value = "/uums/role", e.record = {}, e.record.unitId = (t = o == null ? void 0 : o.value) == null ? void 0 : t.id, e.record.enabled = "1", e.record.orgId = q().getOrgId, e.showModalView = !0;
92
92
  }, k = (t) => {
93
93
  n.value = "put", u.value = "/uums/role/singleUpdate", e.dataStatus = "update", e.record = t, e.showModalView = !0;
94
94
  }, b = () => {
@@ -105,7 +105,7 @@ const H = {
105
105
  t.enabled = "1";
106
106
  return;
107
107
  }
108
- await R().put("/uums/role/singleUpdate", t), a.value.refreshData();
108
+ await T().put("/uums/role/singleUpdate", t), a.value.refreshData();
109
109
  }
110
110
  const m = () => {
111
111
  e.showDrawView = !1, e.showAuthView = !1, e.showUserView = !1;
@@ -121,13 +121,13 @@ const H = {
121
121
  url: "/uums/role",
122
122
  mode: "form",
123
123
  onButtonClick: V
124
- }, null, 512), e.showAuthView ? (d(), i(O, {
124
+ }, null, 512), e.showAuthView ? (d(), i(P, {
125
125
  key: 0,
126
126
  show: e.showAuthView,
127
127
  record: e.record,
128
128
  "data-status": e.dataStatus,
129
129
  onOnClose: m
130
- }, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (d(), i(P, {
130
+ }, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (d(), i(R, {
131
131
  key: 1,
132
132
  show: e.showUserView,
133
133
  record: e.record,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as N, ref as k, inject as p, watch as A, nextTick as L, resolveComponent as f, createElementBlock as D, openBlock as v, withModifiers as O, createElementVNode as a, createBlock as C, createCommentVNode as g, createVNode as y, toDisplayString as _, withCtx as S, normalizeClass as V } from "vue";
2
- import { q as j } from "./index-C6ehxLLO.js";
3
- const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scrollbar" }, K = /* @__PURE__ */ N({
2
+ import { w as j } from "./index-Bb7gIEvu.js";
3
+ const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scrollbar" }, K = /* @__PURE__ */ N({
4
4
  __name: "ScrollPanel",
5
5
  props: {
6
6
  title: {},
@@ -12,8 +12,8 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
12
12
  }) },
13
13
  defaultParams: { default: () => ({}) }
14
14
  },
15
- setup(b, { expose: B }) {
16
- const h = b, s = k([]), o = k(null), r = p("active"), c = p("scrollPanelChange"), w = p("treeList");
15
+ setup(b, { expose: w }) {
16
+ const h = b, s = k([]), o = k(null), r = p("active"), c = p("scrollPanelChange"), B = p("treeList");
17
17
  A(
18
18
  () => c.value,
19
19
  () => {
@@ -22,7 +22,7 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
22
22
  );
23
23
  const u = async (l = {}) => {
24
24
  const t = Object.assign(l, h.defaultParams), e = await j().get(h.url, t);
25
- s.value = e.list || e, w.value = e.list || e, r.value = e.list ? e.list[0] : e[0], L(() => {
25
+ s.value = e.list || e, B.value = e.list || e, r.value = e.list ? e.list[0] : e[0], L(() => {
26
26
  var n;
27
27
  o.value && (o == null || o.value.setCurrentKey(((n = r.value) == null ? void 0 : n.id) || ""));
28
28
  }), c.value = !1;
@@ -38,7 +38,7 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
38
38
  }, m = () => {
39
39
  u();
40
40
  };
41
- return B({
41
+ return w({
42
42
  onRefresh: m
43
43
  }), u(), (l, t) => {
44
44
  const e = f("ut-button"), n = f("vxe-button"), E = f("el-tree");
@@ -46,7 +46,7 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
46
46
  class: "u-scroll-panel",
47
47
  onClick: O(P, ["prevent"])
48
48
  }, [
49
- a("div", q, [
49
+ a("div", M, [
50
50
  a("h2", null, _(l.title), 1),
51
51
  l.showAllButton ? (v(), C(e, {
52
52
  key: 0,
@@ -64,7 +64,7 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
64
64
  onClick: m
65
65
  })
66
66
  ]),
67
- a("div", M, [
67
+ a("div", $, [
68
68
  y(E, {
69
69
  ref_key: "tree",
70
70
  ref: o,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, ref as e, provide as t, createElementBlock as _, openBlock as i, createElementVNode as n, createVNode as a } from "vue";
2
- import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-gPP4duO8.js";
3
- import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-BWZSIFpq.js";
4
- import { _ as p } from "./index-C6ehxLLO.js";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-CCm-_i8O.js";
3
+ import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-vbyS4w3V.js";
4
+ import { _ as p } from "./index-Bb7gIEvu.js";
5
5
  const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = { name: "StaffPanel" }, C = /* @__PURE__ */ l({
6
6
  ...v,
7
7
  setup(N) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./StaffInfo.vue_vue_type_script_setup_true_lang-6PX7Bx6A.js";
1
+ import { _ as f } from "./StaffInfo.vue_vue_type_script_setup_true_lang-Bwj4x1wu.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
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 q } from "@utogether/utils";
3
- import { q as _ } from "./index-C6ehxLLO.js";
4
- const F = { class: "config" }, x = /* @__PURE__ */ b({
2
+ import { useRender as F } from "@utogether/utils";
3
+ import { w as _ } from "./index-Bb7gIEvu.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(), d = 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,7 +35,7 @@ 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) {
@@ -57,7 +57,7 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
57
57
  d.value = i.record;
58
58
  }), (e, o) => {
59
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", F, [
60
+ return k(), E("div", T, [
61
61
  n(h, {
62
62
  "model-value": e.show,
63
63
  "before-close": m,
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-BWZSIFpq.js";
1
+ import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-vbyS4w3V.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-6PX7Bx6A.js";
5
- import { q as P } from "./index-C6ehxLLO.js";
4
+ import { _ as B } from "./StaffInfo.vue_vue_type_script_setup_true_lang-Bwj4x1wu.js";
5
+ import { w as P } from "./index-Bb7gIEvu.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-BhaWZEfo.js";
3
- import { _ as a } from "./index-C6ehxLLO.js";
2
+ import { _ as n } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-8Q0VvC9B.js";
3
+ import { _ as a } from "./index-Bb7gIEvu.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-BhaWZEfo.js";
1
+ import { _ as f } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-8Q0VvC9B.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as z, reactive as G, ref as h, inject as H, createVNode as s, Fragment as U, 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";
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
2
  import { useI18n as W } from "vue-i18n";
3
- import { t as q } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { useRender as X, warnMessage as Z, delay as ee, errorMessage as te } from "@utogether/utils";
5
5
  import { VxeUI as se } from "vxe-pc-ui";
6
6
  import { isEmpty as ae } from "xe-utils";
7
- import { q as le } from "./index-C6ehxLLO.js";
7
+ import { w as le } from "./index-Bb7gIEvu.js";
8
8
  const re = {
9
9
  class: "page"
10
10
  }, u = "/uums/user", fe = /* @__PURE__ */ z({
@@ -39,12 +39,16 @@ const re = {
39
39
  required: !0,
40
40
  message: `${r("message.required")}${r("message.userPwd")}`
41
41
  }]
42
- }, c = X(), w = h({}), C = H("treeList"), m = h(!1), _ = h(null), I = [{
42
+ }, c = X(), w = h({}), P = H("treeList"), m = h(!1), _ = h(null), q = [{
43
43
  field: "name",
44
44
  title: "message.udp.userName"
45
45
  }, {
46
46
  field: "userName",
47
47
  title: "message.udp.userCode"
48
+ }, {
49
+ field: "type",
50
+ title: "message.udp.userType",
51
+ code: "SU.USER.TYPE"
48
52
  }], y = [{
49
53
  type: "checkbox",
50
54
  width: 40,
@@ -73,7 +77,7 @@ const re = {
73
77
  }, {
74
78
  field: "enabled",
75
79
  width: 80,
76
- cellRender: c.renderEnabled(P)
80
+ cellRender: c.renderEnabled(C)
77
81
  }, {
78
82
  field: "operate",
79
83
  width: 240,
@@ -81,63 +85,63 @@ const re = {
81
85
  slots: {
82
86
  default: ({
83
87
  row: e
84
- }) => e.id ? [s(U, null, [s(l("ut-button"), {
88
+ }) => e.id ? [s(x, null, [s(l("ut-button"), {
85
89
  icon: "ri-user-fill",
86
90
  content: "role",
87
- onTap: () => S(e)
91
+ onTap: () => I(e)
88
92
  }, null), s(l("ut-button"), {
89
93
  icon: "ri-lock-fill",
90
94
  content: "auth",
91
95
  status: "success",
92
- onTap: () => E(e)
96
+ onTap: () => A(e)
93
97
  }, null), s(l("ut-button"), {
94
98
  icon: "ri-lock-fill",
95
99
  content: "passwordReset",
96
100
  status: "warning",
97
- onTap: () => A(e)
101
+ onTap: () => E(e)
98
102
  }, null)])] : null
99
103
  }
100
104
  }];
101
- async function P({
105
+ async function C({
102
106
  row: e
103
107
  }) {
104
- await q(d.put(u, [e])), _.value.refreshData();
108
+ await S(d.put(u, [e])), _.value.refreshData();
105
109
  }
106
- const S = async (e) => {
110
+ const I = async (e) => {
107
111
  var o;
108
112
  t.roleList = [], t.showUserRole = !0, m.value = !0;
109
113
  const a = await d.get(u + "/getUserRole", {
110
114
  userName: e.userName
111
115
  });
112
116
  m.value = !1, t.roleList = (o = a[0]) == null ? void 0 : o.sysRoles;
113
- }, A = async (e) => {
114
- await d.put(u + "/resetPwd", e), await se.modal.alert(r("message.tip.initPassword"));
115
117
  }, E = async (e) => {
118
+ await d.put(u + "/resetPwd", e), await se.modal.alert(r("message.tip.initPassword"));
119
+ }, A = async (e) => {
116
120
  var g;
117
121
  t.roleList = [], t.showAuth = !0, m.value = !0, t.record = e;
118
- const [a, o] = await q(d.get(u + "/getUserRole", {
122
+ const [a, o] = await S(d.get(u + "/getUserRole", {
119
123
  userName: e.userName
120
124
  }));
121
125
  m.value = !1, a || (ae(o) ? Z(r("message.tip.emptyAuth")) : t.roleList = (g = o[0]) == null ? void 0 : g.sysMenuExts);
122
- }, M = {
126
+ }, T = {
123
127
  editActived({
124
128
  row: e
125
129
  }) {
126
130
  y[1].editRender.props.disabled = !!e.id, y[4].editRender.props.disabled = !!e.id;
127
131
  }
128
- }, R = h(null), D = () => {
129
- R.value.validate(async (e) => {
132
+ }, N = h(null), M = () => {
133
+ N.value.validate(async (e) => {
130
134
  if (!e) {
131
135
  const {
132
136
  record: a,
133
137
  dataStatus: o
134
138
  } = t;
135
- o === "add" ? await d.post(u, a) : await d.put(u, a), V();
139
+ o === "add" ? await d.post(u, a) : await d.put(u, a), U();
136
140
  }
137
141
  });
138
- }, V = () => {
142
+ }, U = () => {
139
143
  t.showModelView = !1;
140
- }, T = () => {
144
+ }, D = () => {
141
145
  d.get("/uums/unit", {
142
146
  pageSize: 10
143
147
  }).then(async (e) => {
@@ -150,20 +154,20 @@ const re = {
150
154
  });
151
155
  };
152
156
  return Q(() => {
153
- T();
157
+ D();
154
158
  }), (e, a) => {
155
- const o = l("ut-grid"), g = l("vxe-option"), B = l("vxe-select"), p = l("vxe-form-item"), x = l("ut-button"), F = l("vxe-form"), b = l("vxe-modal"), N = l("vxe-column"), Y = l("vxe-table"), j = l("el-tree-v2");
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");
156
160
  return v(), $("div", re, [s(o, {
157
161
  ref_key: "xgrid",
158
162
  ref: _,
159
163
  columns: y,
160
- items: I,
164
+ items: q,
161
165
  url: u,
162
166
  "auto-load": !1,
163
167
  "default-params": w.value,
164
168
  "default-value": w.value,
165
- events: M
166
- }, null, 8, ["default-params", "default-value"]), s(b, {
169
+ events: T
170
+ }, null, 8, ["default-params", "default-value"]), s(R, {
167
171
  modelValue: t.showModelView,
168
172
  "onUpdate:modelValue": a[0] || (a[0] = (n) => t.showModelView = n),
169
173
  title: "用户信息",
@@ -171,7 +175,7 @@ const re = {
171
175
  }, {
172
176
  default: i(() => [s(F, {
173
177
  ref_key: "xForm",
174
- ref: R,
178
+ ref: N,
175
179
  data: t.record,
176
180
  rules: L,
177
181
  "title-align": "right"
@@ -187,7 +191,7 @@ const re = {
187
191
  modelValue: n.unitId,
188
192
  "onUpdate:modelValue": (f) => n.unitId = f
189
193
  }, {
190
- default: i(() => [(v(!0), $(U, null, K(O(C), (f) => (v(), k(g, {
194
+ default: i(() => [(v(!0), $(x, null, K(O(P), (f) => (v(), k(g, {
191
195
  key: f.id,
192
196
  value: f.id,
193
197
  label: f.unitName
@@ -224,22 +228,22 @@ const re = {
224
228
  align: "right",
225
229
  span: "24"
226
230
  }, {
227
- default: i(() => [s(x, {
231
+ default: i(() => [s(V, {
228
232
  content: "cancel",
229
233
  icon: "ri-close-fill",
230
- onClick: V
231
- }), s(x, {
234
+ onClick: U
235
+ }), s(V, {
232
236
  content: "confirm",
233
237
  icon: "ri-save-3-fill",
234
238
  status: "u-cyan",
235
- onClick: D
239
+ onClick: M
236
240
  })]),
237
241
  _: 1
238
242
  })]),
239
243
  _: 1
240
244
  }, 8, ["data"])]),
241
245
  _: 1
242
- }, 8, ["modelValue"]), s(b, {
246
+ }, 8, ["modelValue"]), s(R, {
243
247
  modelValue: t.showUserRole,
244
248
  "onUpdate:modelValue": a[1] || (a[1] = (n) => t.showUserRole = n),
245
249
  loading: m.value,
@@ -251,20 +255,20 @@ const re = {
251
255
  data: t.roleList,
252
256
  border: ""
253
257
  }, {
254
- default: i(() => [s(N, {
258
+ default: i(() => [s(b, {
255
259
  type: "seq",
256
260
  width: "60"
257
- }), s(N, {
261
+ }), s(b, {
258
262
  field: "roleName",
259
263
  title: e.$t("message.udp.roleName")
260
- }, null, 8, ["title"]), s(N, {
264
+ }, null, 8, ["title"]), s(b, {
261
265
  field: "roleDesc",
262
266
  title: e.$t("message.udp.roleDesc")
263
267
  }, null, 8, ["title"])]),
264
268
  _: 1
265
269
  }, 8, ["data"])]),
266
270
  _: 1
267
- }, 8, ["modelValue", "loading", "title"]), s(b, {
271
+ }, 8, ["modelValue", "loading", "title"]), s(R, {
268
272
  modelValue: t.showAuth,
269
273
  "onUpdate:modelValue": a[2] || (a[2] = (n) => t.showAuth = n),
270
274
  loading: m.value,