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

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 (201) hide show
  1. package/build/plugins.ts +39 -26
  2. package/dist/{403-B1R-4vXw.js → 403-Ctxjn4q8.js} +9 -8
  3. package/dist/{404-fXPl8csw.js → 404-W5yzyiZ9.js} +15 -14
  4. package/dist/{500-eI5842YB.js → 500-DXuGEOm4.js} +11 -10
  5. package/dist/{AuthorityInfo-CfVH6PaB.js → AuthorityInfo-C2tflCt8.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-SVgy3HX7.js +100 -0
  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-PLez5GoH.js} +3 -3
  10. package/dist/{CompanyPanel-B4MzoqN_.js → CompanyPanel-CIGaQooL.js} +20 -20
  11. package/dist/{Department-B4BNSiYx.js → Department-B9wLsXFm.js} +3 -3
  12. package/dist/{DepartmentPanel-zJO89L2O.js → DepartmentPanel-DSM4lTaz.js} +23 -23
  13. package/dist/{DesignPanel-S8P0J97f.js → DesignPanel-B6a9wW_A.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-DtHfoDQk.js} +28 -30
  15. package/dist/DictView-DhFbQxdJ.js +110 -0
  16. package/dist/{InvOrganization-MuM2jtsG.js → InvOrganization-D90AbR3b.js} +2 -2
  17. package/dist/Org-DxBkYabD.js +39 -0
  18. package/dist/{Preview-CRyiwUIR.js → Preview-BFtRpBxw.js} +1 -1
  19. package/dist/{ReportDefine-WZYIx8Sm.js → ReportDefine-BIa2QryC.js} +1 -1
  20. package/dist/{ReportDesign-D-7GKgpb.js → ReportDesign-CnyjI-WD.js} +44 -44
  21. package/dist/{ReportQuery-BIIJny6w.js → ReportQuery-BiK7yEhV.js} +5 -5
  22. package/dist/{ReportQueryFrom-OoUl7N2O.js → ReportQueryFrom-C2rqdFTm.js} +1 -1
  23. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Ba9HLnXQ.js} +6 -5
  24. package/dist/{ReportTemplate-Cfeq9US-.js → ReportTemplate-DdkLscP3.js} +30 -30
  25. package/dist/{Role-BwTV2QMH.js → Role-BrsxgK8D.js} +6 -6
  26. package/dist/{RoleAssign-De1JjOun.js → RoleAssign-DiqwJqDa.js} +8 -8
  27. package/dist/{RolePanel-pUBXsqCM.js → RolePanel-BDusGyo7.js} +1 -1
  28. package/dist/{RolePanel-E3RcdByM.js → RolePanel-Dqx5dI3f.js} +1 -1
  29. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-2Z1q_5uW.js +132 -0
  30. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-B2pQwHb0.js → RolePanel.vue_vue_type_script_setup_true_lang-B5lUnaMI.js} +40 -34
  31. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js → ScrollPanel.vue_vue_type_style_index_0_lang-vSP23fEq.js} +23 -23
  32. package/dist/{Staff-Czm7A8vI.js → Staff-Cwi9LQiZ.js} +3 -3
  33. package/dist/StaffInfo-XjVtyaMv.js +4 -0
  34. package/dist/{StaffInfo.vue_vue_type_style_index_0_lang-DMTL7KCh.js → StaffInfo.vue_vue_type_script_setup_true_lang-wSrAuyet.js} +16 -16
  35. package/dist/{StaffPanel-CHk60LEz.js → StaffPanel-C-wYcFdv.js} +1 -1
  36. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js → StaffPanel.vue_vue_type_script_setup_true_lang-DZNArmnC.js} +46 -49
  37. package/dist/{SysUser-BGwbttRn.js → SysUser-O4tvr-Ur.js} +2 -2
  38. package/dist/{SysUserPanel-BCbKoLKt.js → SysUserPanel-B853docZ.js} +1 -1
  39. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DhiYYC97.js +294 -0
  40. package/dist/{SystemMenu-BkqZSDKl.js → SystemMenu-CXR6mrXr.js} +52 -50
  41. package/dist/{UserInfo-BsyAcT2d.js → UserInfo-BkP8pE2a.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-D4r_umjV.js} +38 -36
  43. package/dist/{childView-CyuLTUqC.js → childView-D0HwbgDT.js} +1 -1
  44. package/dist/{childView-CF83nhxb.js → childView-TRqUkSDC.js} +1 -1
  45. package/dist/{childView.vue_vue_type_style_index_0_lang-CNSgGda3.js → childView.vue_vue_type_style_index_0_lang-BzISq0Jf.js} +43 -43
  46. package/dist/{childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js → childView.vue_vue_type_style_index_0_lang-DQRgNsJY.js} +1 -1
  47. package/dist/{code-rule-Bz-gnktN.js → code-rule-BV7PQWhK.js} +13 -14
  48. package/dist/core.es.js +13 -10
  49. package/dist/{cron-task-CIifSUdW.js → cron-task-9ZS9bi7K.js} +11 -11
  50. package/dist/{frameView-_d2mqjjQ.js → frameView-DE83AN50.js} +15 -14
  51. package/dist/img/l_img.svg +1 -1
  52. package/dist/img/minicolors.png +0 -0
  53. package/dist/img/v_img.svg +1 -1
  54. package/dist/index-DVARtten.js +2623 -0
  55. package/dist/{layoutView-DLKVepB8.js → layoutView-D1U-c4By.js} +730 -724
  56. package/dist/{login-log-CvVnyGi3.js → login-log-kqKzKTto.js} +1 -1
  57. package/dist/{login-LREiDfFU.js → login-sPCEiTGT.js} +107 -113
  58. package/dist/{lov-view-DDrIVILB.js → lov-view-76NcYTYl.js} +5 -5
  59. package/dist/{menuInfo-B1FUV-Sk.js → menuInfo-CxjfjFpm.js} +1 -1
  60. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js → menuInfo.vue_vue_type_style_index_0_lang-C2qahH3r.js} +98 -95
  61. package/dist/pda-app-BUH16bLj.js +710 -0
  62. package/dist/redirect-BqegffKC.js +15 -0
  63. package/dist/{resource-BCwx9fEv.js → resource-CCuHzoA6.js} +18 -18
  64. package/dist/{su-welcome-189A7N4r.js → su-welcome-mRArONsd.js} +133 -133
  65. package/dist/{sys-config-BZ3sejow.js → sys-config-Cvt05yF6.js} +21 -21
  66. package/dist/udp-core.css +2 -2
  67. package/dist/{utogether-r08LNiIZ.js → utogether-Dm_VBQHR.js} +6 -6
  68. package/index.ts +40 -36
  69. package/package.json +4 -2
  70. package/src/App.vue +65 -70
  71. package/src/api/index.ts +1 -1
  72. package/src/components/SuCharts/src/UserInfo.vue +78 -78
  73. package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
  74. package/src/components/udp/count-down.vue +536 -0
  75. package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
  76. package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
  77. package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
  78. package/src/components/udp/form-upload.vue +482 -0
  79. package/src/components/udp/form.vue +112 -0
  80. package/src/components/udp/grid.vue +495 -0
  81. package/src/components/udp/index.ts +10 -0
  82. package/src/components/udp/lov.vue +388 -0
  83. package/src/components/udp/modal-form.vue +189 -0
  84. package/src/components/udp/modal-grid.vue +288 -0
  85. package/src/components/udp/upload.vue +423 -0
  86. package/src/components/udp/utils.ts +447 -0
  87. package/src/directives/permission/index.ts +1 -1
  88. package/src/layout/components/lay-navbar/index.vue +1 -1
  89. package/src/layout/components/lay-panel/index.vue +150 -150
  90. package/src/layout/components/lay-search/index.vue +25 -25
  91. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  92. package/src/layout/components/lay-tag/index.vue +625 -625
  93. package/src/layout/layoutView.vue +215 -215
  94. package/src/main.ts +25 -14
  95. package/src/plugins/i18n/en.ts +302 -289
  96. package/src/plugins/i18n/zh.ts +348 -337
  97. package/src/plugins/vxe-table/index.ts +53 -46
  98. package/src/plugins/vxe-table/render.tsx +956 -397
  99. package/src/router/index.ts +187 -183
  100. package/src/router/modules/remaining.ts +58 -83
  101. package/src/style/button.scss +85 -78
  102. package/src/style/tailwind.css +1 -68
  103. package/src/style/vxetable.scss +44 -11
  104. package/src/utils/authority/index.ts +1 -1
  105. package/src/utils/{http → udp/http}/index.ts +8 -24
  106. package/src/utils/{http → udp/http}/types.d.ts +8 -5
  107. package/src/utils/udp/useRender.ts +431 -0
  108. package/src/views/login/login-view.vue +2 -2
  109. package/src/views/organization/company/CompanyPanel.vue +259 -259
  110. package/src/views/organization/inv-org/InvOrganization.vue +1 -1
  111. package/src/views/organization/org/Org.vue +9 -5
  112. package/src/views/organization/staff/StaffInfo.vue +0 -30
  113. package/src/views/organization/staff/StaffPanel.vue +4 -3
  114. package/src/views/system/menu/AuthorityPanel.vue +2 -2
  115. package/src/views/system/menu/SystemMenu.vue +183 -191
  116. package/src/views/system/menu/menuInfo.vue +363 -368
  117. package/src/views/system/role/AuthorityInfo.vue +19 -33
  118. package/src/views/system/role/Role.vue +1 -5
  119. package/src/views/system/role/RolePanel.vue +11 -2
  120. package/src/views/system/role/UserInfo.vue +195 -193
  121. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  122. package/src/views/system/role-assign/RolePanel.vue +139 -136
  123. package/src/views/system/sys/sys-config.vue +1 -1
  124. package/src/views/system/sysUser/SysUserPanel.vue +278 -278
  125. package/src/views/uapp/pda/pda-app.vue +208 -176
  126. package/src/views/udev/dict/DictView.vue +118 -106
  127. package/src/views/udev/dict/childView.vue +7 -7
  128. package/src/views/udev/lov/lov-view.vue +91 -91
  129. package/src/views/ufile/aggregation/File.vue +5 -5
  130. package/src/views/ufile/file/water-mark.vue +14 -14
  131. package/src/views/uhome/components/menu-favorite.vue +1 -1
  132. package/src/views/uhome/su-welcome.vue +4 -4
  133. package/src/views/ulogin/login.vue +15 -10
  134. package/src/views/upms/user/login-log.vue +1 -1
  135. package/src/views/urpt/design/DesignPanel.vue +507 -526
  136. package/src/views/urpt/design/ReportDesign.vue +15 -19
  137. package/src/views/urpt/static-resource/resource.vue +3 -3
  138. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  139. package/types/global.d.ts +2 -2
  140. package/vite.config.ts +13 -2
  141. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js +0 -102
  142. package/dist/DictView-bIS5-rK-.js +0 -95
  143. package/dist/Org-kXHSjsgJ.js +0 -35
  144. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CTIad9_Q.js +0 -126
  145. package/dist/StaffInfo-DJzvBuxy.js +0 -4
  146. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-0QUjnhjF.js +0 -289
  147. package/dist/core.umd.js +0 -173
  148. package/dist/index-BKIw8tSn.js +0 -9195
  149. package/dist/pda-app-CRhVGijN.js +0 -2209
  150. package/dist/redirect-DiaNDu8F.js +0 -15
  151. package/src/assets/images/empty.png +0 -0
  152. package/src/assets/images/logo.png +0 -0
  153. package/src/components/ReCountTo/README.md +0 -2
  154. package/src/components/ReCountTo/index.ts +0 -18
  155. package/src/components/ReCountTo/src/normal/index.tsx +0 -165
  156. package/src/components/ReCountTo/src/normal/props.ts +0 -37
  157. package/src/components/ReCountTo/src/rebound/index.tsx +0 -67
  158. package/src/components/ReCountTo/src/rebound/props.ts +0 -14
  159. package/src/components/ReCountTo/src/rebound/rebound.css +0 -77
  160. package/src/components/ReCropper/index.ts +0 -14
  161. package/src/components/ReCropper/src/index.tsx +0 -141
  162. package/src/components/ReFlicker/index.css +0 -39
  163. package/src/components/ReFlicker/index.ts +0 -50
  164. package/src/components/ReFlop/index.ts +0 -14
  165. package/src/components/ReFlop/src/Filpper.tsx +0 -99
  166. package/src/components/ReFlop/src/filpper.css +0 -184
  167. package/src/components/ReFlop/src/index.vue +0 -126
  168. package/src/components/ReFlowChart/index.ts +0 -24
  169. package/src/components/ReFlowChart/src/Control.vue +0 -139
  170. package/src/components/ReFlowChart/src/DataDialog.vue +0 -12
  171. package/src/components/ReFlowChart/src/NodePanel.vue +0 -151
  172. package/src/components/ReFlowChart/src/adpterForTurbo.ts +0 -160
  173. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +0 -49
  174. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
  175. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +0 -61
  176. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +0 -58
  177. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +0 -47
  178. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
  179. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
  180. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
  181. package/src/components/ReFlowChart/src/config.ts +0 -62
  182. package/src/components/ReSplitPane/index.css +0 -49
  183. package/src/components/ReSplitPane/index.tsx +0 -119
  184. package/src/components/ReSplitPane/resizer.css +0 -45
  185. package/src/components/ReSplitPane/resizer.tsx +0 -30
  186. package/src/components/SuCommon/card/components/Card.vue +0 -148
  187. package/src/components/SuCommon/card/components/DialogForm.vue +0 -127
  188. package/src/components/SuCommon/card/index.vue +0 -142
  189. package/src/components/SuCommon/icon-select/index.vue +0 -241
  190. package/src/components/SuCommon/table/index.vue +0 -208
  191. package/src/components/SuCommon/utils/index.ts +0 -103
  192. package/src/components/SuCommon/utils/slot.tsx +0 -50
  193. package/src/views/components/contextmenu/basic.vue +0 -74
  194. package/src/views/components/contextmenu/context-menu.vue +0 -40
  195. package/src/views/components/contextmenu/menuDynamic.vue +0 -99
  196. package/src/views/components/contextmenu/menuGroup.vue +0 -71
  197. package/src/views/components/count-to/index.vue +0 -43
  198. package/src/views/components/cropping/index.vue +0 -59
  199. package/src/views/components/cropping/picture.jpeg +0 -0
  200. package/src/views/components/split-pane/index.vue +0 -82
  201. package/src/views/components/video/index.vue +0 -57
@@ -1,24 +1,24 @@
1
- import { defineComponent as N, reactive as S, inject as I, ref as l, watch as B, createVNode as s, Fragment as M, resolveComponent as r, createElementBlock as E, openBlock as d, createBlock as i, createCommentVNode as c } from "vue";
2
- import { useRender as $ } from "@utogether/utils";
3
- import { _ as O } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js";
4
- import { _ as P } from "./UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js";
5
- import { w as R, i as T } from "./index-BKIw8tSn.js";
6
- const q = {
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-SVgy3HX7.js";
4
+ import { _ as P } from "./UserInfo.vue_vue_type_style_index_0_lang-D4r_umjV.js";
5
+ import { q as R, e as T } from "./index-DVARtten.js";
6
+ const H = {
7
7
  class: "page-content"
8
- }, J = /* @__PURE__ */ N({
8
+ }, K = /* @__PURE__ */ S({
9
9
  __name: "RolePanel",
10
- setup(H) {
11
- const e = S({
10
+ setup(j) {
11
+ const e = I({
12
12
  record: {},
13
13
  showAuthView: !1,
14
14
  showModalView: !1,
15
15
  showUserView: !1,
16
16
  dataStatus: ""
17
- }), o = I("active"), w = $(), a = l(null), n = l(""), f = l({}), u = l("");
17
+ }), o = M("active"), f = q(), a = l(null), n = l(""), p = l({}), u = l("");
18
18
  B(() => o.value, () => {
19
- V();
19
+ C();
20
20
  });
21
- const p = [{
21
+ const w = [{
22
22
  field: "roleName",
23
23
  title: "message.udp.roleName"
24
24
  }, {
@@ -52,7 +52,7 @@ const q = {
52
52
  }, {
53
53
  field: "enabled",
54
54
  width: 90,
55
- cellRender: w.renderEnabled(U)
55
+ cellRender: f.renderEnabled(A)
56
56
  }, {
57
57
  field: "operate",
58
58
  width: 260,
@@ -60,61 +60,67 @@ const q = {
60
60
  slots: {
61
61
  default: ({
62
62
  row: t
63
- }) => [s(M, null, [s(r("ut-button"), {
63
+ }) => [s(E, null, [s(r("ut-button"), {
64
64
  content: "edit",
65
65
  auth: "edit",
66
+ disabled: t.roleCode === "admin",
66
67
  onTap: () => k(t)
67
68
  }, null), s(r("ut-button"), {
68
69
  content: "dispatchUser",
69
70
  status: "warning",
70
71
  icon: "ri-user-3-line",
71
72
  auth: "user",
72
- onTap: () => A(t)
73
+ onTap: () => y(t)
73
74
  }, null), s(r("ut-button"), {
74
75
  content: "dispatchAuth",
75
76
  status: "success",
76
77
  icon: "ri-plane-line",
77
78
  auth: "auth",
78
- onTap: () => y(t)
79
+ onTap: () => D(t)
79
80
  }, null)])]
80
81
  }
81
- }], V = () => {
82
+ }], C = () => {
82
83
  var t;
83
- f.value = {
84
+ p.value = {
84
85
  unitId: (t = o == null ? void 0 : o.value) == null ? void 0 : t.id
85
86
  }, a.value.refreshData();
86
- }, v = (t) => {
87
- t === "add" && C(), t === "del" && D();
88
- }, C = () => {
87
+ }, V = (t) => {
88
+ t === "add" && v(), t === "del" && b();
89
+ }, v = () => {
89
90
  var t;
90
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
92
  }, k = (t) => {
92
93
  n.value = "put", u.value = "/uums/role/singleUpdate", e.dataStatus = "update", e.record = t, e.showModalView = !0;
93
- }, D = () => {
94
+ }, b = () => {
94
95
  a.value.getInstance().commitProxy("delete");
95
- }, y = (t) => {
96
+ }, D = (t) => {
96
97
  e.record = t, e.showAuthView = !0;
97
- }, A = (t) => {
98
+ }, y = (t) => {
98
99
  e.record = t, e.showUserView = !0;
99
100
  };
100
- async function U({
101
+ async function A({
101
102
  row: t
102
103
  }) {
104
+ if (t.roleCode === "admin") {
105
+ t.enabled = "1";
106
+ return;
107
+ }
103
108
  await R().put("/uums/role/singleUpdate", t), a.value.refreshData();
104
109
  }
105
110
  const m = () => {
106
111
  e.showDrawView = !1, e.showAuthView = !1, e.showUserView = !1;
107
- };
112
+ }, U = (t) => t.roleCode !== "admin";
108
113
  return (t, h) => {
109
- const b = r("ut-grid"), x = r("ut-modal-form");
110
- return d(), E("div", q, [s(b, {
114
+ const x = r("ut-grid"), N = r("ut-modal-form");
115
+ return d(), $("div", H, [s(x, {
111
116
  ref_key: "xgrid",
112
117
  ref: a,
113
- items: p,
118
+ items: w,
114
119
  columns: _,
120
+ "check-method": U,
115
121
  url: "/uums/role",
116
122
  mode: "form",
117
- onButtonClick: v
123
+ onButtonClick: V
118
124
  }, null, 512), e.showAuthView ? (d(), i(O, {
119
125
  key: 0,
120
126
  show: e.showAuthView,
@@ -127,7 +133,7 @@ const q = {
127
133
  record: e.record,
128
134
  "data-status": e.dataStatus,
129
135
  onOnClose: m
130
- }, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showModalView ? (d(), i(x, {
136
+ }, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showModalView ? (d(), i(N, {
131
137
  key: 2,
132
138
  ref: "xmodal",
133
139
  record: e.record,
@@ -135,14 +141,14 @@ const q = {
135
141
  url: u.value,
136
142
  method: n.value,
137
143
  width: "400",
138
- height: "220",
144
+ height: "240",
139
145
  "data-status": "update",
140
146
  title: t.$t("message.title.authEdit"),
141
- onClose: h[0] || (h[0] = (j) => e.showModalView = !1)
147
+ onClose: h[0] || (h[0] = (F) => e.showModalView = !1)
142
148
  }, null, 8, ["record", "url", "method", "title"])) : c("", !0)]);
143
149
  };
144
150
  }
145
151
  });
146
152
  export {
147
- J as _
153
+ K as _
148
154
  };
@@ -1,6 +1,6 @@
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({
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-DVARtten.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: {},
@@ -10,10 +10,10 @@ const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scro
10
10
  children: "children",
11
11
  label: "label"
12
12
  }) },
13
- extParam: { default: () => ({}) }
13
+ defaultParams: { default: () => ({}) }
14
14
  },
15
- setup(b, { expose: x }) {
16
- const h = b, s = k([]), n = k(null), r = p("active"), c = p("scrollPanelChange"), w = p("treeList");
15
+ setup(b, { expose: B }) {
16
+ const h = b, s = k([]), o = k(null), r = p("active"), c = p("scrollPanelChange"), w = p("treeList");
17
17
  A(
18
18
  () => c.value,
19
19
  () => {
@@ -21,53 +21,53 @@ const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scro
21
21
  }
22
22
  );
23
23
  const u = async (l = {}) => {
24
- const t = Object.assign(l, h.extParam), e = await j().get(h.url, t);
24
+ const t = Object.assign(l, h.defaultParams), e = await j().get(h.url, t);
25
25
  s.value = e.list || e, w.value = e.list || e, r.value = e.list ? e.list[0] : e[0], L(() => {
26
- var o;
27
- n.value && (n == null || n.value.setCurrentKey(((o = r.value) == null ? void 0 : o.id) || ""));
26
+ var n;
27
+ o.value && (o == null || o.value.setCurrentKey(((n = r.value) == null ? void 0 : n.id) || ""));
28
28
  }), c.value = !1;
29
- }, B = (l) => {
29
+ }, x = (l) => {
30
30
  r.value = l;
31
31
  }, P = () => {
32
32
  r.value = {};
33
33
  }, d = (l, t) => {
34
34
  l.forEach((e) => {
35
- var o;
36
- n.value.store.nodesMap[e.id].expanded = t, (o = e.children) != null && o.length && d(e.children, t);
37
- }), console.log("[ tree.value ] >", n.value);
35
+ var n;
36
+ o.value.store.nodesMap[e.id].expanded = t, (n = e.children) != null && n.length && d(e.children, t);
37
+ });
38
38
  }, m = () => {
39
39
  u();
40
40
  };
41
- return x({
41
+ return B({
42
42
  onRefresh: m
43
43
  }), u(), (l, t) => {
44
- const e = v("ut-button"), o = v("vxe-button"), E = v("el-tree");
45
- return f(), D("div", {
44
+ const e = f("ut-button"), n = f("vxe-button"), E = f("el-tree");
45
+ return v(), D("div", {
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
- l.showAllButton ? (f(), C(e, {
51
+ l.showAllButton ? (v(), C(e, {
52
52
  key: 0,
53
53
  content: "BtnExpand",
54
54
  onClick: t[0] || (t[0] = (i) => d(s.value, !0))
55
55
  })) : g("", !0),
56
- l.showAllButton ? (f(), C(e, {
56
+ l.showAllButton ? (v(), C(e, {
57
57
  key: 1,
58
58
  status: "warning",
59
59
  content: "BtnCollapse",
60
60
  onClick: t[1] || (t[1] = (i) => d(s.value, !1))
61
61
  })) : g("", !0),
62
- y(o, {
62
+ y(n, {
63
63
  icon: "vxe-icon-refresh",
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
- ref: n,
70
+ ref: o,
71
71
  data: s.value,
72
72
  props: l.treeOtions,
73
73
  "expand-on-click-node": !1,
@@ -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: x
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-vSP23fEq.js";
3
+ import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-DZNArmnC.js";
4
+ import { _ as p } from "./index-DVARtten.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-wSrAuyet.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,7 +1,7 @@
1
- import { defineComponent as b, ref as u, onMounted as D, resolveComponent as d, createElementBlock as E, openBlock as k, createVNode as n, withCtx as f } from "vue";
2
- import { useRender as F } from "@utogether/utils";
3
- import { w as _ } from "./index-BKIw8tSn.js";
4
- const T = { class: "config" }, x = /* @__PURE__ */ b({
1
+ import { defineComponent as b, ref as u, onMounted as D, resolveComponent as r, createElementBlock as E, openBlock as k, createVNode as n, withCtx as f } from "vue";
2
+ import { useRender as q } from "@utogether/utils";
3
+ import { q as _ } from "./index-DVARtten.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(), d = 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,18 +35,18 @@ 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) {
42
- var r, a, s;
43
- e.row.deptName = ((r = e.item) == null ? void 0 : r.deptName) || e.row.deptName, e.row.deptCode = ((a = e.item) == null ? void 0 : a.deptCode) || e.row.deptCode, e.row.departmentId = ((s = e.item) == null ? void 0 : s.id) || e.row.departmentId;
42
+ var o, a, s;
43
+ e.row.deptName = ((o = e.item) == null ? void 0 : o.deptName) || e.row.deptName, e.row.deptCode = ((a = e.item) == null ? void 0 : a.deptCode) || e.row.deptCode, e.row.departmentId = ((s = e.item) == null ? void 0 : s.id) || e.row.departmentId;
44
44
  }
45
45
  const I = y, N = () => {
46
46
  p.value.validateForm(async (e) => {
47
47
  if (!e) {
48
- const { dataStatus: r } = i;
49
- l.value = !0, console.log(o), r === "add" ? await _().post("/uums/employee", o.value) : await _().put("/uums/employee", o.value), l.value = !1, m();
48
+ const { dataStatus: o } = i;
49
+ l.value = !0, o === "add" ? await _().post("/uums/employee", d.value) : await _().put("/uums/employee", d.value), l.value = !1, m();
50
50
  }
51
51
  });
52
52
  };
@@ -54,10 +54,10 @@ const T = { class: "config" }, x = /* @__PURE__ */ b({
54
54
  I("onClose");
55
55
  }
56
56
  return D(() => {
57
- o.value = i.record;
58
- }), (e, r) => {
59
- const a = d("ut-form"), s = d("el-divider"), c = d("ut-button"), S = d("el-row"), h = d("el-drawer");
60
- return k(), E("div", T, [
57
+ d.value = i.record;
58
+ }), (e, o) => {
59
+ const a = r("ut-form"), s = r("el-divider"), c = r("ut-button"), S = r("el-row"), h = r("el-drawer");
60
+ return k(), E("div", F, [
61
61
  n(h, {
62
62
  "model-value": e.show,
63
63
  "before-close": m,
@@ -70,7 +70,7 @@ const T = { class: "config" }, x = /* @__PURE__ */ b({
70
70
  n(a, {
71
71
  ref_key: "suFormRef",
72
72
  ref: p,
73
- record: o.value,
73
+ record: d.value,
74
74
  loading: l.value,
75
75
  items: g,
76
76
  "data-status": e.dataStatus
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js";
1
+ import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-DZNArmnC.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-wSrAuyet.js";
5
+ import { q as P } from "./index-DVARtten.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-DhiYYC97.js";
3
+ import { _ as a } from "./index-DVARtten.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-DhiYYC97.js";
2
2
  export {
3
3
  f as default
4
4
  };