@utogether/udp-core 1.0.0 → 1.0.1-beta.1

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 (144) hide show
  1. package/build/plugins.ts +8 -2
  2. package/dist/{403-B1R-4vXw.js → 403-Dp617CWX.js} +9 -8
  3. package/dist/{404-fXPl8csw.js → 404-Cz_Axb6Y.js} +15 -14
  4. package/dist/{500-eI5842YB.js → 500-BGCtRNse.js} +11 -10
  5. package/dist/{AuthorityInfo-CfVH6PaB.js → AuthorityInfo-DGGfm7IS.js} +1 -1
  6. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BqccGW7v.js} +3 -3
  7. package/dist/{AuthorityPanel-BaLMwMgW.js → AuthorityPanel-BeBNiwqc.js} +1 -1
  8. package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js → AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js} +6 -6
  9. package/dist/{Company-CYC9Avfz.js → Company-IV3GTnzY.js} +3 -3
  10. package/dist/{CompanyPanel-B4MzoqN_.js → CompanyPanel-qV-_VtoL.js} +10 -10
  11. package/dist/{Department-B4BNSiYx.js → Department-B3W-OxW8.js} +3 -3
  12. package/dist/{DepartmentPanel-zJO89L2O.js → DepartmentPanel-Cw3OWxE7.js} +23 -23
  13. package/dist/{DesignPanel-S8P0J97f.js → DesignPanel-BFxR2fHJ.js} +1 -1
  14. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js → DesignPanel.vue_vue_type_style_index_0_lang-DljbeFba.js} +6 -6
  15. package/dist/{DictView-bIS5-rK-.js → DictView-C-i7e4hZ.js} +9 -9
  16. package/dist/InvOrganization-cfT6riGU.js +260 -0
  17. package/dist/{Org-kXHSjsgJ.js → Org-CA7vTDIF.js} +3 -3
  18. package/dist/{Preview-CRyiwUIR.js → Preview-BlDMmpdR.js} +1 -1
  19. package/dist/{ReportDefine-WZYIx8Sm.js → ReportDefine-Cub_85LA.js} +1 -1
  20. package/dist/{ReportDesign-D-7GKgpb.js → ReportDesign-hFhq5UVE.js} +10 -10
  21. package/dist/{ReportQuery-BIIJny6w.js → ReportQuery-ChkWEyxT.js} +5 -5
  22. package/dist/{ReportQueryFrom-OoUl7N2O.js → ReportQueryFrom-KVyD_8Dj.js} +1 -1
  23. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CLNODquq.js} +6 -5
  24. package/dist/{ReportTemplate-Cfeq9US-.js → ReportTemplate-ag9NDvh2.js} +11 -11
  25. package/dist/{Role-BwTV2QMH.js → Role-_q3lQ8CZ.js} +3 -3
  26. package/dist/{RoleAssign-De1JjOun.js → RoleAssign-DZb9IRsm.js} +3 -3
  27. package/dist/{RolePanel-pUBXsqCM.js → RolePanel-BQb1LlhD.js} +1 -1
  28. package/dist/{RolePanel-E3RcdByM.js → RolePanel-CsLsz-Ds.js} +1 -1
  29. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-B2pQwHb0.js → RolePanel.vue_vue_type_script_setup_true_lang-BrnRgHEk.js} +12 -12
  30. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CTIad9_Q.js → RolePanel.vue_vue_type_script_setup_true_lang-cmW7zBLu.js} +4 -4
  31. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js → ScrollPanel.vue_vue_type_style_index_0_lang-CaFKRwXu.js} +8 -8
  32. package/dist/{Staff-Czm7A8vI.js → Staff-BSf9Ypbk.js} +3 -3
  33. package/dist/StaffInfo-BNKasyMF.js +4 -0
  34. package/dist/{StaffInfo.vue_vue_type_style_index_0_lang-DMTL7KCh.js → StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js} +7 -7
  35. package/dist/{StaffPanel-CHk60LEz.js → StaffPanel-Bpq0WVlH.js} +1 -1
  36. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js → StaffPanel.vue_vue_type_script_setup_true_lang-BhiJ0Q-Q.js} +46 -49
  37. package/dist/{SysUser-BGwbttRn.js → SysUser-FAABuNti.js} +2 -2
  38. package/dist/{SysUserPanel-BCbKoLKt.js → SysUserPanel-PxJeOgHm.js} +1 -1
  39. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-0QUjnhjF.js → SysUserPanel.vue_vue_type_script_setup_true_lang-njefUln5.js} +1 -2
  40. package/dist/{SystemMenu-BkqZSDKl.js → SystemMenu-C-7NAGon.js} +47 -45
  41. package/dist/{UserInfo-BsyAcT2d.js → UserInfo-ClXKtyGo.js} +1 -1
  42. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js → UserInfo.vue_vue_type_style_index_0_lang-8N7P4Hl7.js} +13 -13
  43. package/dist/{childView-CyuLTUqC.js → childView-C_HmDQNd.js} +1 -1
  44. package/dist/{childView-CF83nhxb.js → childView-uUlBcTza.js} +1 -1
  45. package/dist/{childView.vue_vue_type_style_index_0_lang-CNSgGda3.js → childView.vue_vue_type_style_index_0_lang-Ckjmw6wJ.js} +6 -6
  46. package/dist/{childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js → childView.vue_vue_type_style_index_0_lang-y0sDvYx5.js} +1 -1
  47. package/dist/{code-rule-Bz-gnktN.js → code-rule-AgCVDKFy.js} +6 -6
  48. package/dist/core.es.js +4 -4
  49. package/dist/{cron-task-CIifSUdW.js → cron-task-C6FgQxTi.js} +11 -11
  50. package/dist/{frameView-_d2mqjjQ.js → frameView-BDgISK7N.js} +15 -14
  51. package/dist/index-DzOzUkf6.js +3388 -0
  52. package/dist/{layoutView-DLKVepB8.js → layoutView-yb3DV2DQ.js} +658 -653
  53. package/dist/{login-LREiDfFU.js → login-RRpljbkm.js} +26 -25
  54. package/dist/{lov-view-DDrIVILB.js → lov-view-C9-rjzZR.js} +5 -5
  55. package/dist/{menuInfo-B1FUV-Sk.js → menuInfo-CzPQyFhp.js} +1 -1
  56. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js → menuInfo.vue_vue_type_style_index_0_lang-BumXunCg.js} +17 -17
  57. package/dist/pda-app-Dvy3U-b6.js +696 -0
  58. package/dist/redirect-BqegffKC.js +15 -0
  59. package/dist/{resource-BCwx9fEv.js → resource-Fy0lFkSV.js} +7 -7
  60. package/dist/{su-welcome-189A7N4r.js → su-welcome-DYvSCUST.js} +41 -40
  61. package/dist/{sys-config-BZ3sejow.js → sys-config-DJ1vNQTy.js} +18 -18
  62. package/dist/udp-core.css +2 -2
  63. package/dist/{utogether-r08LNiIZ.js → utogether-CjmJiHoE.js} +6 -6
  64. package/package.json +4 -2
  65. package/src/App.vue +3 -3
  66. package/src/components/udp/form-upload.vue +132 -0
  67. package/src/components/udp/index.ts +4 -0
  68. package/src/components/udp/modal-form.vue +180 -0
  69. package/src/components/udp/utils.ts +40 -0
  70. package/src/main.ts +5 -4
  71. package/src/plugins/vxe-table/index.ts +3 -3
  72. package/src/plugins/vxe-table/render.tsx +604 -184
  73. package/src/utils/udp/useRender.ts +420 -0
  74. package/src/views/organization/inv-org/InvOrganization.vue +2 -1
  75. package/src/views/organization/staff/StaffInfo.vue +0 -30
  76. package/src/views/organization/staff/StaffPanel.vue +4 -3
  77. package/src/views/system/menu/AuthorityPanel.vue +2 -2
  78. package/src/views/system/menu/SystemMenu.vue +9 -3
  79. package/src/views/system/menu/menuInfo.vue +6 -3
  80. package/src/views/system/role/AuthorityInfo.vue +1 -19
  81. package/src/views/system/sysUser/SysUserPanel.vue +1 -1
  82. package/src/views/udev/dict/DictView.vue +2 -2
  83. package/src/views/uhome/components/menu-favorite.vue +1 -1
  84. package/src/views/uhome/su-welcome.vue +1 -1
  85. package/src/views/ulogin/login.vue +1 -1
  86. package/types/global.d.ts +0 -1
  87. package/vite.config.ts +9 -2
  88. package/dist/InvOrganization-MuM2jtsG.js +0 -66
  89. package/dist/StaffInfo-DJzvBuxy.js +0 -4
  90. package/dist/core.umd.js +0 -173
  91. package/dist/index-BKIw8tSn.js +0 -9195
  92. package/dist/pda-app-CRhVGijN.js +0 -2209
  93. package/dist/redirect-DiaNDu8F.js +0 -15
  94. package/src/assets/images/empty.png +0 -0
  95. package/src/assets/images/logo.png +0 -0
  96. package/src/components/ReCountTo/README.md +0 -2
  97. package/src/components/ReCountTo/index.ts +0 -18
  98. package/src/components/ReCountTo/src/normal/index.tsx +0 -165
  99. package/src/components/ReCountTo/src/normal/props.ts +0 -37
  100. package/src/components/ReCountTo/src/rebound/index.tsx +0 -67
  101. package/src/components/ReCountTo/src/rebound/props.ts +0 -14
  102. package/src/components/ReCountTo/src/rebound/rebound.css +0 -77
  103. package/src/components/ReCropper/index.ts +0 -14
  104. package/src/components/ReCropper/src/index.tsx +0 -141
  105. package/src/components/ReFlicker/index.css +0 -39
  106. package/src/components/ReFlicker/index.ts +0 -50
  107. package/src/components/ReFlop/index.ts +0 -14
  108. package/src/components/ReFlop/src/Filpper.tsx +0 -99
  109. package/src/components/ReFlop/src/filpper.css +0 -184
  110. package/src/components/ReFlop/src/index.vue +0 -126
  111. package/src/components/ReFlowChart/index.ts +0 -24
  112. package/src/components/ReFlowChart/src/Control.vue +0 -139
  113. package/src/components/ReFlowChart/src/DataDialog.vue +0 -12
  114. package/src/components/ReFlowChart/src/NodePanel.vue +0 -151
  115. package/src/components/ReFlowChart/src/adpterForTurbo.ts +0 -160
  116. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +0 -49
  117. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
  118. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +0 -61
  119. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +0 -58
  120. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +0 -47
  121. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
  122. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
  123. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
  124. package/src/components/ReFlowChart/src/config.ts +0 -62
  125. package/src/components/ReSplitPane/index.css +0 -49
  126. package/src/components/ReSplitPane/index.tsx +0 -119
  127. package/src/components/ReSplitPane/resizer.css +0 -45
  128. package/src/components/ReSplitPane/resizer.tsx +0 -30
  129. package/src/components/SuCommon/card/components/Card.vue +0 -148
  130. package/src/components/SuCommon/card/components/DialogForm.vue +0 -127
  131. package/src/components/SuCommon/card/index.vue +0 -142
  132. package/src/components/SuCommon/icon-select/index.vue +0 -241
  133. package/src/components/SuCommon/table/index.vue +0 -208
  134. package/src/components/SuCommon/utils/index.ts +0 -103
  135. package/src/components/SuCommon/utils/slot.tsx +0 -50
  136. package/src/views/components/contextmenu/basic.vue +0 -74
  137. package/src/views/components/contextmenu/context-menu.vue +0 -40
  138. package/src/views/components/contextmenu/menuDynamic.vue +0 -99
  139. package/src/views/components/contextmenu/menuGroup.vue +0 -71
  140. package/src/views/components/count-to/index.vue +0 -43
  141. package/src/views/components/cropping/index.vue +0 -59
  142. package/src/views/components/cropping/picture.jpeg +0 -0
  143. package/src/views/components/split-pane/index.vue +0 -82
  144. package/src/views/components/video/index.vue +0 -57
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as N, ref as k, inject as p, watch as A, nextTick as L, resolveComponent as v, createElementBlock as D, openBlock as f, 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 { w as j } from "./index-BKIw8tSn.js";
3
- const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scrollbar" }, K = /* @__PURE__ */ N({
2
+ import { q as j } from "./index-DzOzUkf6.js";
3
+ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scrollbar" }, K = /* @__PURE__ */ N({
4
4
  __name: "ScrollPanel",
5
5
  props: {
6
6
  title: {},
@@ -13,7 +13,7 @@ const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scro
13
13
  extParam: { default: () => ({}) }
14
14
  },
15
15
  setup(b, { expose: x }) {
16
- const h = b, s = k([]), n = k(null), r = p("active"), c = p("scrollPanelChange"), w = p("treeList");
16
+ const h = b, s = k([]), n = k(null), r = p("active"), c = p("scrollPanelChange"), B = p("treeList");
17
17
  A(
18
18
  () => c.value,
19
19
  () => {
@@ -22,11 +22,11 @@ const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scro
22
22
  );
23
23
  const u = async (l = {}) => {
24
24
  const t = Object.assign(l, h.extParam), 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 o;
27
27
  n.value && (n == null || n.value.setCurrentKey(((o = r.value) == null ? void 0 : o.id) || ""));
28
28
  }), c.value = !1;
29
- }, B = (l) => {
29
+ }, w = (l) => {
30
30
  r.value = l;
31
31
  }, P = () => {
32
32
  r.value = {};
@@ -46,7 +46,7 @@ const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scro
46
46
  class: "u-scroll-panel",
47
47
  onClick: O(P, ["prevent"])
48
48
  }, [
49
- a("div", M, [
49
+ a("div", q, [
50
50
  a("h2", null, _(l.title), 1),
51
51
  l.showAllButton ? (f(), C(e, {
52
52
  key: 0,
@@ -64,7 +64,7 @@ const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scro
64
64
  onClick: m
65
65
  })
66
66
  ]),
67
- a("div", $, [
67
+ a("div", M, [
68
68
  y(E, {
69
69
  ref_key: "tree",
70
70
  ref: n,
@@ -75,7 +75,7 @@ const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scro
75
75
  class: "u-tree-panel",
76
76
  "node-key": "id",
77
77
  "highlight-current": "",
78
- onNodeClick: B
78
+ onNodeClick: w
79
79
  }, {
80
80
  default: S(({ node: i }) => [
81
81
  a("span", {
@@ -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-vMR1fBi0.js";
3
- import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js";
4
- import { _ as p } from "./index-BKIw8tSn.js";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-CaFKRwXu.js";
3
+ import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-BhiJ0Q-Q.js";
4
+ import { _ as p } from "./index-DzOzUkf6.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) {
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,7 +1,7 @@
1
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 F } from "@utogether/utils";
3
- import { w as _ } from "./index-BKIw8tSn.js";
4
- const T = { class: "config" }, x = /* @__PURE__ */ b({
2
+ import { useRender as q } from "@utogether/utils";
3
+ import { q as _ } from "./index-DzOzUkf6.js";
4
+ const F = { class: "config" }, x = /* @__PURE__ */ b({
5
5
  __name: "StaffInfo",
6
6
  props: {
7
7
  show: { type: Boolean, default: !0 },
@@ -10,12 +10,12 @@ const T = { class: "config" }, x = /* @__PURE__ */ b({
10
10
  },
11
11
  emits: ["onClose"],
12
12
  setup(v, { emit: y }) {
13
- const i = v, t = F(), o = u({}), p = u(null), l = u(!1), w = { userName: "userName", userId: "id" }, R = { disabled: i.dataStatus !== "add" }, g = [
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 = [
14
14
  {
15
15
  field: "employeeCode",
16
16
  required: !0,
17
17
  span: 8,
18
- itemRender: t.renderInput({ props: R })
18
+ itemRender: t.renderInput({ props: w })
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 T = { class: "config" }, x = /* @__PURE__ */ b({
35
35
  field: "attribute5",
36
36
  title: "message.releateUser",
37
37
  span: 8,
38
- itemRender: t.renderSysUser({ mapField: w })
38
+ itemRender: t.renderSysUser({ mapField: R })
39
39
  }
40
40
  ];
41
41
  function C(e) {
@@ -57,7 +57,7 @@ const T = { class: "config" }, x = /* @__PURE__ */ b({
57
57
  o.value = i.record;
58
58
  }), (e, r) => {
59
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", T, [
60
+ return k(), E("div", F, [
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-iPKLb5wG.js";
1
+ import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-BhiJ0Q-Q.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,11 +1,11 @@
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 s, createVNode as d, createBlock as C, createCommentVNode as k, Fragment as S } from "vue";
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_style_index_0_lang-DMTL7KCh.js";
5
- import { w as P } from "./index-BKIw8tSn.js";
4
+ import { _ as B } from "./StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js";
5
+ import { q as P } from "./index-DzOzUkf6.js";
6
6
  const A = {
7
7
  class: "page-content"
8
- }, c = "/uums/employee", j = /* @__PURE__ */ b({
8
+ }, s = "/uums/employee", j = /* @__PURE__ */ b({
9
9
  __name: "StaffPanel",
10
10
  setup(I) {
11
11
  const o = g(null), n = w("active"), t = x({
@@ -24,48 +24,45 @@ const A = {
24
24
  field: "employeeCode"
25
25
  }, {
26
26
  field: "employeeName"
27
- }], u = [
28
- // { type: 'checkbox', width: 50, align: 'center' },
29
- {
30
- field: "employeeCode"
31
- },
32
- {
33
- field: "employeeName",
34
- width: 150
35
- },
36
- {
37
- field: "gender",
38
- width: 100,
39
- formatter: ["formatDict", "SU.GENDER"]
40
- },
41
- {
42
- field: "enabled",
43
- width: 100,
44
- formatter: ["formatDict", "SU.ENABLE"]
45
- },
46
- {
47
- field: "operate",
48
- width: 150,
49
- fixed: "right",
50
- slots: {
51
- default: ({
52
- row: e
53
- }) => {
54
- const a = ["1", "Y"].includes(e.enabled) ? "disabled" : "enabled", r = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", v = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
55
- return [d(S, null, [d(l("ut-button"), {
56
- icon: "ri-edit-box-line",
57
- content: "edit",
58
- onTap: () => p(e)
59
- }, null), d(l("ut-button"), {
60
- icon: r,
61
- content: a,
62
- status: v,
63
- onTap: () => h(e)
64
- }, null)])];
65
- }
27
+ }], u = [{
28
+ type: "checkbox",
29
+ width: 50,
30
+ align: "center"
31
+ }, {
32
+ field: "employeeCode"
33
+ }, {
34
+ field: "employeeName",
35
+ width: 150
36
+ }, {
37
+ field: "gender",
38
+ width: 100,
39
+ formatter: ["formatDict", "SU.GENDER"]
40
+ }, {
41
+ field: "enabled",
42
+ width: 100,
43
+ formatter: ["formatDict", "SU.ENABLE"]
44
+ }, {
45
+ field: "operate",
46
+ width: 150,
47
+ fixed: "right",
48
+ slots: {
49
+ default: ({
50
+ row: e
51
+ }) => {
52
+ const a = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", r = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", v = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
53
+ return [d(S, null, [d(l("ut-button"), {
54
+ icon: "ri-edit-box-line",
55
+ content: "edit",
56
+ onTap: () => p(e)
57
+ }, null), d(l("ut-button"), {
58
+ icon: r,
59
+ content: a,
60
+ status: v,
61
+ onTap: () => h(e)
62
+ }, null)])];
66
63
  }
67
64
  }
68
- ], m = {
65
+ }], m = {
69
66
  toolbarButtonClick({
70
67
  code: e
71
68
  }) {
@@ -80,13 +77,13 @@ const A = {
80
77
  t.dataStatus = "update", t.record = e, t.showModelView = !0;
81
78
  }, h = async (e) => {
82
79
  const a = D(e, !0);
83
- o.value.showLoading(), a.enabled = a.enabled === "1" ? "0" : "1", await P().put(c, a), o.value.refreshData();
80
+ o.value.showLoading(), a.enabled = a.enabled === "1" ? "0" : "1", await P().put(s, a), o.value.hiddenLoading(), o.value.refreshData();
84
81
  }, _ = () => {
85
82
  t.showModelView = !1, o.value.refreshData();
86
83
  };
87
84
  return (e, a) => {
88
85
  const r = l("ut-grid");
89
- return s(), N("div", A, [d(r, {
86
+ return c(), N("div", A, [d(r, {
90
87
  ref_key: "xgrid",
91
88
  ref: o,
92
89
  items: i,
@@ -98,14 +95,14 @@ const A = {
98
95
  code: "del",
99
96
  auth: "/"
100
97
  }],
101
- url: c,
98
+ url: s,
102
99
  mode: "form"
103
- }, null, 8, ["default-params"]), t.showModelView ? (s(), C(B, {
100
+ }, null, 8, ["default-params"]), t.showModelView ? (c(), k(B, {
104
101
  key: 0,
105
102
  record: t.record,
106
103
  "data-status": t.dataStatus,
107
104
  onOnClose: _
108
- }, null, 8, ["record", "data-status"])) : k("", !0)]);
105
+ }, null, 8, ["record", "data-status"])) : C("", !0)]);
109
106
  };
110
107
  }
111
108
  });
@@ -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-0QUjnhjF.js";
3
- import { _ as a } from "./index-BKIw8tSn.js";
2
+ import { _ as n } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-njefUln5.js";
3
+ import { _ as a } from "./index-DzOzUkf6.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-0QUjnhjF.js";
1
+ import { _ as f } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-njefUln5.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -4,7 +4,7 @@ import { t as $ } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { useRender as X, warnMessage as Z, errorMessage as ee } from "@utogether/utils";
5
5
  import { VxeUI as te } from "vxe-pc-ui";
6
6
  import { isEmpty as se } from "xe-utils";
7
- import { w as ae } from "./index-BKIw8tSn.js";
7
+ import { q as ae } from "./index-DzOzUkf6.js";
8
8
  const re = {
9
9
  class: "page"
10
10
  }, u = "/uums/user", pe = /* @__PURE__ */ z({
@@ -143,7 +143,6 @@ const re = {
143
143
  }).then((e) => {
144
144
  y.value = {
145
145
  unitId: e[0].id,
146
- type: "system",
147
146
  enabled: "1"
148
147
  };
149
148
  }).catch(() => {
@@ -1,20 +1,20 @@
1
- import { defineComponent as x, reactive as S, ref as k, createVNode as o, resolveComponent as i, Fragment as c, createElementBlock as D, openBlock as v } from "vue";
2
- import { useI18n as A } from "vue-i18n";
3
- import { _ as E } from "./menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js";
4
- import { _ as N } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js";
5
- import { clone as m } from "xe-utils";
6
- import { t as I } from "./await-to-js.es5-BtRbN2QH.js";
7
- import { VxeUI as M } from "vxe-pc-ui";
8
- import { useRender as R } from "@utogether/utils";
9
- import { w as U } from "./index-BKIw8tSn.js";
10
- const B = {
1
+ import { defineComponent as S, reactive as k, ref as v, createVNode as o, resolveComponent as i, Fragment as m, createElementBlock as D, openBlock as A } from "vue";
2
+ import { useI18n as E } from "vue-i18n";
3
+ import { _ as I } from "./menuInfo.vue_vue_type_style_index_0_lang-BumXunCg.js";
4
+ import { _ as N } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js";
5
+ import { clone as p } from "xe-utils";
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-DzOzUkf6.js";
10
+ const P = {
11
11
  class: "page-content"
12
- }, O = {
12
+ }, z = {
13
13
  name: "SystemMenu"
14
- }, j = /* @__PURE__ */ x({
15
- ...O,
16
- setup(P) {
17
- const t = S({
14
+ }, j = /* @__PURE__ */ S({
15
+ ...z,
16
+ setup(F) {
17
+ const t = k({
18
18
  record: {},
19
19
  dataList: [],
20
20
  submitLoading: !1,
@@ -26,8 +26,10 @@ const B = {
26
26
  pageNum: 1
27
27
  }
28
28
  }), {
29
- t: p
30
- } = A(), h = R(), r = U(), d = k(null), s = "/uums/menu", f = [{
29
+ t: h
30
+ } = E(), f = U(), d = B(), r = v(null), s = "/uums/menu";
31
+ let l;
32
+ const C = [{
31
33
  type: "checkbox",
32
34
  width: 50,
33
35
  align: "center"
@@ -55,7 +57,7 @@ const B = {
55
57
  }, {
56
58
  field: "enabled",
57
59
  width: 80,
58
- cellRender: h.renderEnabled(g)
60
+ cellRender: f.renderEnabled(_)
59
61
  }, {
60
62
  field: "operate",
61
63
  width: 140,
@@ -68,58 +70,58 @@ const B = {
68
70
  status: "u-cyan",
69
71
  icon: "ri-add-fill",
70
72
  content: "add",
71
- onTap: () => l(e)
72
- }, null), b = o(i("ut-button"), {
73
+ onTap: () => c(e)
74
+ }, null), x = o(i("ut-button"), {
73
75
  icon: "ri-lock-fill",
74
76
  content: "auth",
75
- onTap: () => T(e)
77
+ onTap: () => b(e)
76
78
  }, null);
77
- return [o(c, null, [n ? null : o(c, null, [o(i("ut-button"), {
79
+ return [o(m, null, [n ? null : o(m, null, [o(i("ut-button"), {
78
80
  status: "success",
79
81
  icon: "ri-edit-box-line",
80
82
  content: "edit",
81
83
  onTap: () => w(e)
82
- }, null), ["0", "5"].includes(e.menuCategory) ? a : b])])];
84
+ }, null), ["0", "5"].includes(e.menuCategory) ? a : x])])];
83
85
  }
84
86
  }
85
- }], C = ({
87
+ }], g = ({
86
88
  code: e
87
89
  }) => {
88
- e === "add" && l(), e === "del" && _();
90
+ e === "add" && c(), e === "del" && T();
89
91
  }, y = async ({
90
92
  row: e
91
93
  }) => {
92
- const n = await r.get(s, {
94
+ const n = await d.get(s, {
93
95
  parentId: e.id
94
96
  });
95
97
  return new Promise((a) => {
96
98
  a(n.list);
97
99
  });
98
- }, l = (e) => {
99
- 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;
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;
100
102
  }, w = (e) => {
101
- t.showDrawer = !0, t.dataStatus = "update", t.record = m(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
103
+ t.showDrawer = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
102
104
  };
103
- async function g({
105
+ async function _({
104
106
  row: e
105
107
  }) {
106
- await r.put(s, [e]), d.value.refreshData();
108
+ await d.put(s, [e]), r.value.refreshData();
107
109
  }
108
- const _ = async () => {
109
- const e = await M.modal.confirm(p("message.delRecord")), n = d.value.getInstance().getCheckboxRecords();
110
+ const T = async () => {
111
+ const e = await R.modal.confirm(h("message.delRecord")), n = r.value.getInstance().getCheckboxRecords();
110
112
  if (e === "confirm") {
111
- const [a] = await I(r.delete(s, n));
113
+ const [a] = await M(d.delete(s, n));
112
114
  }
113
- }, T = (e) => {
114
- t.showAuthority = !0, t.dataStatus = "update", t.record = m(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
115
- }, u = () => {
116
- t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
115
+ }, b = (e) => {
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) => {
118
+ e === "submit" && r.value.getInstance().reloadTreeExpand(l), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
117
119
  };
118
120
  return (e, n) => {
119
121
  const a = i("ut-grid");
120
- return v(), D("div", B, [o(a, {
122
+ return A(), D("div", P, [o(a, {
121
123
  ref_key: "xgrid",
122
- ref: d,
124
+ ref: r,
123
125
  "tree-config": {
124
126
  childrenField: "children",
125
127
  lazy: !0,
@@ -128,20 +130,20 @@ const B = {
128
130
  iconOpen: "ri-checkbox-indeterminate-line ri-lg",
129
131
  iconClose: "ri-add-box-line ri-lg"
130
132
  },
131
- columns: f,
133
+ columns: C,
132
134
  url: s,
133
135
  stripe: !1,
134
136
  mode: "form",
135
- onToolbarButtonClick: C
136
- }, null, 8, ["tree-config"]), o(E, {
137
+ onToolbarButtonClick: g
138
+ }, null, 8, ["tree-config"]), o(I, {
137
139
  show: t.showDrawer,
138
140
  record: t.record,
139
141
  "data-status": t.dataStatus,
140
- onOnClose: u
142
+ onClose: u
141
143
  }, null, 8, ["show", "record", "data-status"]), o(N, {
142
144
  show: t.showAuthority,
143
145
  record: t.record,
144
- onOnClose: u
146
+ onClose: u
145
147
  }, null, 8, ["show", "record"])]);
146
148
  };
147
149
  }
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js";
1
+ import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-8N7P4Hl7.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as x, ref as i, reactive as R, onBeforeMount as B, resolveComponent as d, createElementBlock as U, openBlock as u, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as A, mergeProps as E, toHandlers as P } from "vue";
2
- import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
3
- import { w as V } from "./index-BKIw8tSn.js";
4
- const q = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
1
+ import { defineComponent as x, ref as i, reactive as R, onBeforeMount as B, resolveComponent as d, createElementBlock as U, openBlock as u, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as q, mergeProps as A, toHandlers as E } from "vue";
2
+ import { t as P } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { q as S } from "./index-DzOzUkf6.js";
4
+ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
5
5
  __name: "UserInfo",
6
6
  props: {
7
7
  record: { default: () => ({}) },
@@ -10,7 +10,7 @@ const q = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
10
10
  },
11
11
  emits: ["onClose"],
12
12
  setup(f, { emit: p }) {
13
- const s = f, g = i(!1), r = i(!1), a = V(), h = p, b = [
13
+ const s = f, g = i(!1), r = i(!1), a = S(), h = p, b = [
14
14
  {
15
15
  field: "userName",
16
16
  title: "message.userCode",
@@ -70,7 +70,7 @@ const q = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
70
70
  ], y = [
71
71
  { field: "userName", title: "message.userCode" },
72
72
  { field: "name", title: "message.userName" }
73
- ], w = [
73
+ ], _ = [
74
74
  { type: "checkbox", width: 40 },
75
75
  { field: "userName", title: "message.userCode" },
76
76
  { field: "name", title: "message.userName" },
@@ -103,14 +103,14 @@ const q = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
103
103
  }
104
104
  },
105
105
  columns: v
106
- }), _ = {
106
+ }), w = {
107
107
  toolbarButtonClick({ code: e }) {
108
108
  e === "add" && (r.value = !0);
109
109
  }
110
110
  }, N = async (e) => {
111
111
  const o = { userIds: "", roleId: s.record.id };
112
112
  o.userIds = e.map((l) => l.id).join(","), n.loading = !0;
113
- const [t] = await S(a.post("/uums/role/addUserRole", o));
113
+ const [t] = await P(a.post("/uums/role/addUserRole", o));
114
114
  n.loading = !1, t || (m.value.commitProxy("query"), r.value = !1);
115
115
  };
116
116
  function I() {
@@ -120,7 +120,7 @@ const q = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
120
120
  g.value = !0;
121
121
  }), (e, o) => {
122
122
  const t = d("vxe-grid"), l = d("ut-modal-grid"), k = d("el-drawer");
123
- return u(), U("div", q, [
123
+ return u(), U("div", V, [
124
124
  c(k, {
125
125
  "model-value": e.show,
126
126
  title: e.$t("message.title.authUser", { role: e.record.roleName }),
@@ -130,22 +130,22 @@ const q = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
130
130
  size: "80%"
131
131
  }, {
132
132
  default: $(() => [
133
- c(t, E({
133
+ c(t, A({
134
134
  ref_key: "xgrid",
135
135
  ref: m
136
- }, n, P(_)), null, 16),
136
+ }, n, E(w)), null, 16),
137
137
  r.value ? (u(), j(l, {
138
138
  key: 0,
139
139
  url: "/uums/user/listUserToRole",
140
140
  "default-params": { roleId: e.record.id },
141
141
  items: y,
142
- columns: w,
142
+ columns: _,
143
143
  "show-footer": !0,
144
144
  editable: !1,
145
145
  width: "60%",
146
146
  onClose: o[0] || (o[0] = (z) => r.value = !1),
147
147
  onConfirm: N
148
- }, null, 8, ["default-params"])) : A("", !0)
148
+ }, null, 8, ["default-params"])) : q("", !0)
149
149
  ]),
150
150
  _: 1
151
151
  }, 8, ["model-value", "title"])
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-Ckjmw6wJ.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-CNSgGda3.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-y0sDvYx5.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as U, ref as c, onMounted as F, resolveComponent as n, createElementBlock as j, openBlock as w, createVNode as t, withCtx as s, createElementVNode as N, createBlock as G, createCommentVNode as K, createTextVNode as P, toDisplayString as $ } from "vue";
1
+ import { defineComponent as U, ref as c, onMounted as F, resolveComponent as n, createElementBlock as j, openBlock as N, createVNode as t, withCtx as s, createElementVNode as w, createBlock as G, createCommentVNode as K, createTextVNode as P, toDisplayString as $ } from "vue";
2
2
  import { useI18n as Q } from "vue-i18n";
3
3
  import { t as I } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { VxeUI as W } from "vxe-pc-ui";
5
5
  import { useRender as X, successMessage as k } from "@utogether/utils";
6
- import { w as _, i as S } from "./index-BKIw8tSn.js";
6
+ import { q as _, e as S } from "./index-DzOzUkf6.js";
7
7
  const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } }, h = "/upfm/v1/lov", se = /* @__PURE__ */ U({
8
8
  __name: "childView",
9
9
  props: {
@@ -66,7 +66,7 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
66
66
  f();
67
67
  }), (e, o) => {
68
68
  const i = n("vxe-button"), g = n("vxe-toolbar"), r = n("vxe-table-column"), b = n("ut-button"), M = n("vxe-table"), H = n("ut-modal-form"), L = n("el-drawer");
69
- return w(), j("div", Y, [
69
+ return N(), j("div", Y, [
70
70
  t(L, {
71
71
  "model-value": e.show,
72
72
  "before-close": E,
@@ -76,7 +76,7 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
76
76
  size: "76%"
77
77
  }, {
78
78
  default: s(() => [
79
- N("div", Z, [
79
+ w("div", Z, [
80
80
  t(g, null, {
81
81
  buttons: s(() => [
82
82
  t(i, {
@@ -130,7 +130,7 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
130
130
  width: "100"
131
131
  }, {
132
132
  default: s(({ row: l }) => [
133
- N("span", null, $(l.enabled === "1" ? e.$t("message.enabled") : e.$t("message.disabled")), 1)
133
+ w("span", null, $(l.enabled === "1" ? e.$t("message.enabled") : e.$t("message.disabled")), 1)
134
134
  ]),
135
135
  _: 1
136
136
  }, 8, ["title"]),
@@ -163,7 +163,7 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
163
163
  _: 1
164
164
  }, 8, ["data", "loading"])
165
165
  ]),
166
- d.value ? (w(), G(H, {
166
+ d.value ? (N(), G(H, {
167
167
  key: 0,
168
168
  ref: "xmodal",
169
169
  record: a.value,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as V, ref as a, resolveComponent as o, resolveDirective as F, createElementBlock as h, openBlock as _, createVNode as d, withCtx as c, withDirectives as W } from "vue";
2
2
  import { t as u } from "./await-to-js.es5-BtRbN2QH.js";
3
3
  import { useRender as P } from "@utogether/utils";
4
- import { i as $, w as f } from "./index-BKIw8tSn.js";
4
+ import { e as $, q as f } from "./index-DzOzUkf6.js";
5
5
  const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/upfm/v1/lovViewLine", G = /* @__PURE__ */ V({
6
6
  __name: "childView",
7
7
  props: {