@utogether/udp-core 1.0.4 → 2.0.0-beta.3

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 (184) hide show
  1. package/dist/{403-DASI6Pwz.js → 403-CxOqlq0f.js} +3 -3
  2. package/dist/403-WCboRvzZ-ZAPgYStl.js +65 -0
  3. package/dist/404-2V0Qi-d7-DkNwQggp.js +65 -0
  4. package/dist/{404-YhBA92cb.js → 404-xdB6lFeQ.js} +1 -1
  5. package/dist/500-BYfzvixf-CGpEieyQ.js +67 -0
  6. package/dist/{500-ywbFF5MX.js → 500-C94bRK2S.js} +2 -2
  7. package/dist/AuthorityInfo-DBovfUjB-DpQwT9Q5.js +4 -0
  8. package/dist/{AuthorityInfo-tCSX2Fh7.js → AuthorityInfo-Dy3b_nFN.js} +1 -1
  9. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Cwd6UT2i.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Bh7IbcdY.js} +2 -2
  10. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D-l_Az3s-Cw7WmFxz.js +100 -0
  11. package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE.js +4 -0
  12. package/dist/{AuthorityPanel-BeBNiwqc.js → AuthorityPanel-CRlAwbaI.js} +1 -1
  13. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8.js +114 -0
  14. package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js → AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js} +31 -24
  15. package/dist/Company-B4vsXy2I-CkNCOqjJ.js +25 -0
  16. package/dist/{Company-l23MEzdM.js → Company-gKkfnhLt.js} +3 -3
  17. package/dist/{CompanyPanel-D_s0rh6h.js → CompanyPanel-BF5Pc35s.js} +7 -7
  18. package/dist/CompanyPanel-Czcx8Gyw-CvndXwB_.js +206 -0
  19. package/dist/DataSet-DT-rGICv-DaUfgbxk.js +147 -0
  20. package/dist/{Department-DSEvORLg.js → Department-D0I3QVZe.js} +3 -3
  21. package/dist/Department-D0dVUrGC-C6HJcYI1.js +25 -0
  22. package/dist/{DepartmentPanel-WN8nOgCV.js → DepartmentPanel-2LHODgc7.js} +22 -22
  23. package/dist/DepartmentPanel-e91Lxr1j-BS_A-ILd.js +254 -0
  24. package/dist/{DesignPanel-DirEGh9M.js → DesignPanel-CtF3cAAQ.js} +1 -1
  25. package/dist/DesignPanel-DdFl_ohi-uCwFxcl1.js +4 -0
  26. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BACPrfUI-cC7yL0uY.js +1013 -0
  27. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-D02hXSrN.js → DesignPanel.vue_vue_type_style_index_0_lang-BCYgwoVt.js} +3 -3
  28. package/dist/DictView-BzQLOf_P-DDicwdmM.js +111 -0
  29. package/dist/{DictView-DiIQdiek.js → DictView-H3V5hxg3.js} +17 -16
  30. package/dist/{InvOrganization-b7v3g9EJ.js → InvOrganization-BiGLnbqe.js} +2 -2
  31. package/dist/InvOrganization-atbhw0CI-BABbVt9V.js +74 -0
  32. package/dist/Org-BW1YHG-Q-Cow7JWlD.js +39 -0
  33. package/dist/{Org-BORfx1PL.js → Org-DQTCQHNY.js} +2 -2
  34. package/dist/Preview-DJtVsoq1-CCGidQjJ.js +48 -0
  35. package/dist/{Preview-DkRn_TSc.js → Preview-DXaiis29.js} +1 -1
  36. package/dist/{ReportDefine-Cd0QeaWA.js → ReportDefine-BLh4CiER.js} +1 -1
  37. package/dist/ReportDefine-CNx_ob99-6NQAHK-Q.js +10 -0
  38. package/dist/ReportDesign-FbQ6yTJS-C1pPAUSp.js +165 -0
  39. package/dist/{ReportDesign-4qNqyeEW.js → ReportDesign-Ni1YxrLC.js} +7 -7
  40. package/dist/ReportQuery-C5gz8Lgd-Eu2cQmda.js +75 -0
  41. package/dist/{ReportQuery-BJfTFpec.js → ReportQuery-C8G88_qF.js} +1 -1
  42. package/dist/ReportQueryFrom-C7scua5v-uHXWq8Gy.js +4 -0
  43. package/dist/{ReportQueryFrom-CB7sExZx.js → ReportQueryFrom-CuZKPtB4.js} +1 -1
  44. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CqO_2Ier.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BAn_siFW.js} +7 -7
  45. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DCbz67Wa-vK6r2uCl.js +178 -0
  46. package/dist/ReportTemplate-BDANdIWv-D_IGjR1w.js +161 -0
  47. package/dist/{ReportTemplate-B69muSgT.js → ReportTemplate-DFnDXWmx.js} +8 -8
  48. package/dist/{Role-Bo4YrNDC.js → Role-BQ7hsfPn.js} +3 -3
  49. package/dist/Role-ByB0WbxW-5E8Mb148.js +25 -0
  50. package/dist/RoleAssign-DW6iC_0v-Bis61auk.js +26 -0
  51. package/dist/{RoleAssign-kOMYJ4s3.js → RoleAssign-UPCg2d4G.js} +3 -3
  52. package/dist/RolePanel-BM2MaQPU-CgcsbfaX.js +4 -0
  53. package/dist/{RolePanel-BSJmjyqc.js → RolePanel-C-mQ5XRq.js} +1 -1
  54. package/dist/RolePanel-ClQy8DBL-DARL4O-o.js +4 -0
  55. package/dist/{RolePanel-B1d4e6uk.js → RolePanel-CoSXOCZN.js} +1 -1
  56. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI.js +132 -0
  57. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DgQpfjaU.js → RolePanel.vue_vue_type_script_setup_true_lang-Bg-t2UhF.js} +7 -7
  58. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DCzX-ZP_.js → RolePanel.vue_vue_type_script_setup_true_lang-D-o7HYZ8.js} +8 -8
  59. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy.js +154 -0
  60. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js +100 -0
  61. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-WNOYFxJ1.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk.js} +1 -1
  62. package/dist/Staff-CuxzvhD9-D0KTcyRh.js +25 -0
  63. package/dist/{Staff-BFp3zNNR.js → Staff-D-CmvG1R.js} +3 -3
  64. package/dist/StaffInfo-CY7gUICu-EZUhUwIp.js +4 -0
  65. package/dist/{StaffInfo-DcU9_40C.js → StaffInfo-Idhvuc6e.js} +1 -1
  66. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn.js +108 -0
  67. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CtfN2CAr.js → StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU.js} +1 -1
  68. package/dist/{StaffPanel-7exWkZd9.js → StaffPanel-CDDmAYE5.js} +1 -1
  69. package/dist/StaffPanel-CwqG0_xr-CrvzLJoc.js +4 -0
  70. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-v5xOXKRS.js → StaffPanel.vue_vue_type_script_setup_true_lang-Bdilqbee.js} +42 -42
  71. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0.js +143 -0
  72. package/dist/SysUser-9Q2UJWhi-DprWXFlR.js +15 -0
  73. package/dist/{SysUser-B3uB_cp2.js → SysUser-a-j5bppr.js} +2 -2
  74. package/dist/{SysUserPanel-B0CLp5AO.js → SysUserPanel-6V232wwB.js} +1 -1
  75. package/dist/SysUserPanel-bJy69O7x-BJtBgFEs.js +4 -0
  76. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-Cwea_4dY.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy.js} +126 -111
  77. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen.js +356 -0
  78. package/dist/{SystemMenu-a59l4hTk.js → SystemMenu-BnVeOSOQ.js} +50 -47
  79. package/dist/SystemMenu-DGOAolc1-CJSLHP8i.js +156 -0
  80. package/dist/UserInfo-CKoOHkAM-DDWp0I_U.js +4 -0
  81. package/dist/{UserInfo-D1IA2oLt.js → UserInfo-Cax9b2nw.js} +1 -1
  82. package/dist/UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO.js +160 -0
  83. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DDVgYRD5.js → UserInfo.vue_vue_type_style_index_0_lang-D-cw11i9.js} +2 -2
  84. package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes.js +10 -0
  85. package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
  86. package/dist/childView-0YZQ6GBn-CEqg7k5d.js +4 -0
  87. package/dist/{childView-6rCeLcsx.js → childView-DKG3eZo8.js} +1 -1
  88. package/dist/childView-DKkgi3yo-D47ft-vi.js +4 -0
  89. package/dist/{childView-JdrkroL5.js → childView-siumuBz0.js} +1 -1
  90. package/dist/childView.vue_vue_type_style_index_0_lang-ABMrGInv-ClOdE_sa.js +143 -0
  91. package/dist/{childView.vue_vue_type_style_index_0_lang-BfcnWnx9.js → childView.vue_vue_type_style_index_0_lang-CUfXDS1q.js} +28 -25
  92. package/dist/{childView.vue_vue_type_style_index_0_lang-B8x99f1B.js → childView.vue_vue_type_style_index_0_lang-CW3EbAmW.js} +8 -8
  93. package/dist/childView.vue_vue_type_style_index_0_lang-CaW106ve-CClTM8PK.js +180 -0
  94. package/dist/{code-rule-2lkPF547.js → code-rule-Dtoree6F.js} +2 -2
  95. package/dist/code-rule-wQyfgpNL-C4evD4Co.js +148 -0
  96. package/dist/core.es.js +10 -10
  97. package/dist/cron-task-C-kryDtd-C0NuGZCe.js +135 -0
  98. package/dist/{cron-task-DV1pGO1m.js → cron-task-GSRgA7S5.js} +2 -2
  99. package/dist/flow-task-B07st2aD-CgQvagSQ.js +10 -0
  100. package/dist/frameView-BOGA3ezf-QoSxzmSQ.js +44 -0
  101. package/dist/{frameView-C0bzSB8c.js → frameView-Cy6wxW0K.js} +1 -1
  102. package/dist/index-Dc7xWMiC.js +7265 -0
  103. package/dist/layout-home-3Dy4onl4.js +228 -0
  104. package/dist/layout-home-CYHksXN_-Basy-3IH.js +228 -0
  105. package/dist/layoutView-BaRvAbIa-xVgfqspc.js +3302 -0
  106. package/dist/{layoutView-CTV-E4Cj.js → layoutView-DMjNscJ-.js} +148 -149
  107. package/dist/log-in-Cx1dGik8-BVeEHeZ8.js +117 -0
  108. package/dist/{log-in-CoBP2x6u.js → log-in-VAG6Cvcx.js} +8 -8
  109. package/dist/log-out-COYdxrNC-ftopGZdE.js +130 -0
  110. package/dist/{log-out-KX8FiRVf.js → log-out-DZGaMCjC.js} +4 -4
  111. package/dist/{login-CtCoGWzD.js → login-CqVMdNHs.js} +126 -136
  112. package/dist/login-Dg9ofNS8-Bocp1XMA.js +241 -0
  113. package/dist/login-log-DJBGJVV0-AoOyj0jD.js +70 -0
  114. package/dist/lov-view-C0T5prk8-B2DBmn55.js +97 -0
  115. package/dist/{lov-view-Bm0JEzzg.js → lov-view-Cc68_28B.js} +7 -7
  116. package/dist/{menuInfo-D2qPoRwz.js → menuInfo-BIrIaJlH.js} +1 -1
  117. package/dist/menuInfo-BZJ_q7bz-Drho-_QC.js +4 -0
  118. package/dist/menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf.js +363 -0
  119. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DoQjX9Ly.js → menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X.js} +38 -36
  120. package/dist/{pda-app-SbcIclbH.js → pda-app-DnjphrRS.js} +9 -9
  121. package/dist/pda-app-m9hsppHo-B4xyja1o.js +710 -0
  122. package/dist/redirect-BqegffKC-CBCIuqmz.js +15 -0
  123. package/dist/resource-C6KEIXu--B_ddyecm.js +97 -0
  124. package/dist/{resource-Cdq1UKGI.js → resource-DISgPDM7.js} +4 -4
  125. package/dist/su-welcome-BjbuSrBZ.js +49424 -0
  126. package/dist/su-welcome-CYYy-dzr-D3RKPoB0.js +42089 -0
  127. package/dist/sys-config-DCjJGtht-DARDjlrt.js +370 -0
  128. package/dist/{sys-config-CCOf4xbj.js → sys-config-Yc9vh1t1.js} +13 -13
  129. package/dist/udp-core.css +1 -1
  130. package/dist/utogether-MlnyYtNS-CGgjFNPS.js +4 -0
  131. package/package.json +5 -2
  132. package/src/App.vue +37 -31
  133. package/src/components/udp/content/index.vue +88 -88
  134. package/src/components/udp/form-upload/form-upload.vue +492 -0
  135. package/src/components/udp/grid/index.vue +524 -524
  136. package/src/components/udp/index.ts +6 -5
  137. package/src/components/udp/ut-stamp-badge/index.vue +271 -271
  138. package/src/components/udp/utils.ts +408 -408
  139. package/src/layout/components/lay-content/index.vue +4 -11
  140. package/src/layout/components/lay-search/components/SearchModal.vue +181 -189
  141. package/src/layout/components/lay-setting/index.vue +503 -503
  142. package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -101
  143. package/src/layout/components/lay-tag/index.vue +598 -598
  144. package/src/layout/hooks/useNav.ts +176 -176
  145. package/src/layout/hooks/useTag.ts +227 -227
  146. package/src/layout/layoutView.vue +216 -215
  147. package/src/layout/types.ts +93 -93
  148. package/src/main.ts +111 -115
  149. package/src/plugins/i18n/zh.ts +17 -3
  150. package/src/plugins/vxe-table/index.ts +116 -116
  151. package/src/plugins/vxe-table/render.tsx +968 -950
  152. package/src/router/index.ts +187 -187
  153. package/src/router/modules/home.ts +32 -32
  154. package/src/router/utils.ts +420 -420
  155. package/src/store/modules/epTheme.ts +48 -48
  156. package/src/style/vxetable.scss +18 -2
  157. package/src/utils/dataFormat/index.ts +222 -222
  158. package/src/utils/lifecycle.ts +39 -39
  159. package/src/views/organization/department/DepartmentPanel.vue +303 -303
  160. package/src/views/organization/staff/StaffInfo.vue +127 -127
  161. package/src/views/organization/staff/StaffPanel.vue +3 -3
  162. package/src/views/system/layout/layout-home.vue +237 -0
  163. package/src/views/system/menu/AuthorityPanel.vue +10 -9
  164. package/src/views/system/menu/SystemMenu.vue +194 -185
  165. package/src/views/system/menu/menuInfo.vue +384 -384
  166. package/src/views/system/sysUser/SysUserPanel.vue +363 -347
  167. package/src/views/udev/coderule/code-rule.vue +132 -132
  168. package/src/views/udev/dict/DictView.vue +118 -118
  169. package/src/views/udev/dict/childView.vue +184 -183
  170. package/src/views/udev/lov/childView.vue +174 -174
  171. package/src/views/uhome/components/common-menu.vue +118 -0
  172. package/src/views/uhome/components/dynamic-component.vue +66 -0
  173. package/src/views/uhome/components/home-todo.vue +170 -0
  174. package/src/views/uhome/components/menu-favorite.vue +315 -315
  175. package/src/views/uhome/dynamic-card.vue +31 -0
  176. package/src/views/uhome/su-welcome.vue +48 -113
  177. package/src/views/ulogin/login.vue +336 -325
  178. package/src/views/upms/interface/log-in.vue +100 -100
  179. package/src/views/upms/interface/log-out.vue +104 -104
  180. package/src/views/upms/user/login-log.vue +54 -54
  181. package/types/global.d.ts +232 -231
  182. package/dist/await-to-js.es5-BtRbN2QH.js +0 -10
  183. package/dist/index-BbtbEMCH.js +0 -4649
  184. package/dist/su-welcome-BHDsjqqV.js +0 -524
@@ -1,8 +1,8 @@
1
- import { defineComponent as h, watch as _, ref as v, createVNode as d, resolveComponent as l, createElementBlock as y, openBlock as g, withCtx as w, createTextVNode as I } from "vue";
1
+ import { defineComponent as h, watch as _, ref as v, createVNode as s, resolveComponent as l, createElementBlock as y, openBlock as g, withCtx as I, createTextVNode as w } from "vue";
2
2
  import { useRender as N } from "@utogether/utils";
3
3
  const x = {
4
4
  class: "u-dict-config_wrapper"
5
- }, R = /* @__PURE__ */ h({
5
+ }, B = /* @__PURE__ */ h({
6
6
  __name: "AuthorityPanel",
7
7
  props: {
8
8
  record: {
@@ -17,11 +17,11 @@ const x = {
17
17
  setup(a, {
18
18
  emit: u
19
19
  }) {
20
- const s = a;
21
- _(() => s.show, () => {
22
- n.value = s.show && p();
20
+ const i = a;
21
+ _(() => i.show, () => {
22
+ r.value = i.show && c();
23
23
  });
24
- const n = v(""), i = N(), c = [{
24
+ const r = v(""), n = N(), p = [{
25
25
  type: "checkbox",
26
26
  width: 50,
27
27
  align: "center"
@@ -29,55 +29,59 @@ const x = {
29
29
  field: "menuName",
30
30
  title: "message.permissionName",
31
31
  required: !0,
32
- editRender: i.renderInput()
32
+ editRender: n.renderInput()
33
33
  }, {
34
34
  field: "permissionCode",
35
35
  required: !0,
36
- minWidth: 200,
37
- editRender: i.renderInput(),
36
+ minWidth: 180,
37
+ editRender: n.renderInput(),
38
38
  slots: {
39
39
  edit: ({
40
40
  row: e
41
41
  }) => {
42
42
  var t;
43
- const r = {
44
- prefix: () => d("span", null, [n.value, I(".")])
43
+ const d = {
44
+ prefix: () => s("span", null, [r.value, w(".")])
45
45
  };
46
- return e.dispalyCode = (t = e.permissionCode) == null ? void 0 : t.replace(`${n.value}.`, ""), [d(l("vxe-input"), {
46
+ return e.dispalyCode = (t = e.permissionCode) == null ? void 0 : t.replace(`${r.value}.`, ""), [s(l("vxe-input"), {
47
47
  modelValue: e.dispalyCode,
48
48
  "onUpdate:modelValue": (o) => e.dispalyCode = o,
49
49
  className: "ut-slot-input",
50
50
  onInput: () => m(e)
51
- }, r)];
51
+ }, d)];
52
52
  }
53
53
  }
54
+ }, {
55
+ field: "remark",
56
+ title: "message.udp.description",
57
+ editRender: n.renderInput()
54
58
  }, {
55
59
  field: "enabled",
56
60
  title: "message.enabled",
57
61
  width: 90,
58
- editRender: i.renderDict({
62
+ editRender: n.renderDict({
59
63
  code: "SU.ENABLE",
60
64
  defaultValue: "1"
61
65
  }),
62
66
  formatter: ["formatDict", "SU.ENABLE"]
63
- }], p = () => {
67
+ }], c = () => {
64
68
  const {
65
69
  record: e
66
- } = s, {
67
- id: r,
70
+ } = i, {
71
+ id: d,
68
72
  parentId: t,
69
73
  hasChildren: o
70
74
  } = e;
71
- return !r && !t ? "su" : (o && (e.dispalyCode = ""), e.permissionCode);
75
+ return !d && !t ? "su" : (o && (e.dispalyCode = ""), e.permissionCode);
72
76
  }, m = (e) => {
73
- e.permissionCode = `${n.value}.${e.dispalyCode}`;
77
+ e.permissionCode = `${r.value}.${e.dispalyCode}`;
74
78
  }, f = u;
75
79
  function C() {
76
80
  f("close");
77
81
  }
78
- return (e, r) => {
82
+ return (e, d) => {
79
83
  const t = l("ut-grid"), o = l("el-drawer");
80
- return g(), y("div", x, [d(o, {
84
+ return g(), y("div", x, [s(o, {
81
85
  "model-value": e.show,
82
86
  "before-close": C,
83
87
  title: "权限明细",
@@ -85,9 +89,9 @@ const x = {
85
89
  "destroy-on-close": "",
86
90
  size: "66%"
87
91
  }, {
88
- default: w(() => [d(t, {
92
+ default: I(() => [s(t, {
89
93
  ref: "SuGridRef",
90
- columns: c,
94
+ columns: p,
91
95
  url: "/uums/menu",
92
96
  "default-params": {
93
97
  parentId: e.record.id
@@ -95,6 +99,9 @@ const x = {
95
99
  "default-value": {
96
100
  parentId: e.record.id,
97
101
  menuType: 1
102
+ },
103
+ "pager-config": {
104
+ layouts: []
98
105
  }
99
106
  }, null, 8, ["default-params", "default-value"])]),
100
107
  _: 1
@@ -103,5 +110,5 @@ const x = {
103
110
  }
104
111
  });
105
112
  export {
106
- R as _
113
+ B as _
107
114
  };
@@ -0,0 +1,25 @@
1
+ import { defineComponent as c, ref as e, createElementBlock as i, provide as t, openBlock as m, createElementVNode as o, createVNode as n } from "vue";
2
+ import { K as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js";
3
+ import d from "./CompanyPanel-Czcx8Gyw-CvndXwB_.js";
4
+ import { t as u } from "./su-welcome-BjbuSrBZ.js";
5
+ const f = { class: "u-content-panel" }, v = { class: "u-left-panel" }, h = { class: "content" }, C = /* @__PURE__ */ c({
6
+ __name: "Company",
7
+ setup(_) {
8
+ const a = e({}), l = e(!1), r = e([]);
9
+ return t("active", a), t("scrollPanelChange", l), t("treeList", r), (s, y) => (m(), i("div", f, [
10
+ o("div", v, [
11
+ n(p, {
12
+ title: s.$t("company"),
13
+ url: "/uums/unit",
14
+ "tree-otions": { children: "children", label: "unitName" }
15
+ }, null, 8, ["title"])
16
+ ]),
17
+ o("div", h, [
18
+ n(d)
19
+ ])
20
+ ]));
21
+ }
22
+ }), E = /* @__PURE__ */ u(C, [["__scopeId", "data-v-a3f1da33"]]);
23
+ export {
24
+ E as default
25
+ };
@@ -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-WNOYFxJ1.js";
3
- import p from "./CompanyPanel-D_s0rh6h.js";
4
- import { _ as d } from "./index-BbtbEMCH.js";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk.js";
3
+ import p from "./CompanyPanel-BF5Pc35s.js";
4
+ import { _ as d } from "./index-Dc7xWMiC.js";
5
5
  const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ r({
6
6
  __name: "Company",
7
7
  setup(C) {
@@ -4,7 +4,7 @@ import { VxeUI as U } from "vxe-table";
4
4
  import { templateRef as R } from "@vueuse/core";
5
5
  import { clone as z } from "xe-utils";
6
6
  import { warnMessage as G, successMessage as H } from "@utogether/utils";
7
- import { y as J, _ as K } from "./index-BbtbEMCH.js";
7
+ import { g as J, _ as K } from "./index-Dc7xWMiC.js";
8
8
  const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
9
9
  __name: "CompanyPanel",
10
10
  setup(W) {
@@ -40,19 +40,19 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
40
40
  e.dataStatus = "add", e.record = {}, e.record.parentId = (t = m.value) == null ? void 0 : t.id, e.isChecked = !1, e.dialogFormVisible = !0;
41
41
  }, x = (t) => {
42
42
  e.dataStatus = t, e.record = z(m.value, !0), e.dialogFormVisible = !0;
43
- }, y = R("xForm", null), h = () => {
44
- y.value.validate(async (t) => {
43
+ }, b = R("xForm", null), h = () => {
44
+ b.value.validate(async (t) => {
45
45
  if (!t) {
46
46
  const { record: a, dataStatus: o } = e;
47
- o === "add" ? await f.post(_, a) : await f.put(_, a), b();
47
+ o === "add" ? await f.post(_, a) : await f.put(_, a), y();
48
48
  }
49
49
  });
50
50
  }, N = async () => {
51
51
  var o;
52
52
  const { record: t } = e;
53
53
  if ((o = t.children) != null && o.length) return G(r("message.deletePartment"));
54
- await U.modal.confirm(r("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await f.delete(_, t), b());
55
- }, b = () => {
54
+ await U.modal.confirm(r("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await f.delete(_, t), y());
55
+ }, y = () => {
56
56
  $.value = !0, H(r("message.operateSuccess")), I();
57
57
  }, F = () => {
58
58
  e.dialogFormVisible = !1, e.dataStatus = "";
@@ -109,7 +109,7 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
109
109
  default: d(() => [
110
110
  s(q, {
111
111
  ref_key: "xForm",
112
- ref: y,
112
+ ref: b,
113
113
  data: e.record,
114
114
  rules: k,
115
115
  "label-width": "80px"
@@ -0,0 +1,206 @@
1
+ import { defineComponent as j, reactive as B, inject as C, watch as W, resolveComponent as s, createElementBlock as A, openBlock as r, createVNode as i, createBlock as u, withCtx as d, createElementVNode as l, createCommentVNode as v, createTextVNode as E, toDisplayString as L } from "vue";
2
+ import { useI18n as M } from "vue-i18n";
3
+ import { VxeUI as U } from "vxe-table";
4
+ import { templateRef as D } from "@vueuse/core";
5
+ import { clone as O } from "xe-utils";
6
+ import { warnMessage as Q, successMessage as R } from "@utogether/utils";
7
+ import { t as z, W as G } from "./su-welcome-BjbuSrBZ.js";
8
+ const H = { class: "page-content" }, w = "/uums/unit", J = /* @__PURE__ */ j({
9
+ __name: "CompanyPanel",
10
+ setup(K) {
11
+ const e = B({
12
+ record: {},
13
+ dataList: [],
14
+ submitLoading: !1,
15
+ dialogFormVisible: !1,
16
+ isChecked: !1,
17
+ dataStatus: ""
18
+ }), { t: n } = M(), h = {
19
+ unitName: [
20
+ {
21
+ required: !0,
22
+ message: `${n("message.required")}${n("message.udp.unitName")}`
23
+ }
24
+ ],
25
+ unitCode: [
26
+ {
27
+ required: !0,
28
+ message: `${n("message.required")}${n("message.udp.unitCode")}`
29
+ }
30
+ ]
31
+ }, c = C("active"), S = C("scrollPanelChange"), f = G();
32
+ W(
33
+ () => c.value,
34
+ (a, t) => {
35
+ e.record = c.value, a != null && a.id && t != null && t.id && a !== t && x("detail");
36
+ }
37
+ );
38
+ const V = () => {
39
+ var a;
40
+ e.dataStatus = "add", e.record = {}, e.record.parentId = (a = c.value) == null ? void 0 : a.id, e.isChecked = !1, e.dialogFormVisible = !0;
41
+ }, x = (a) => {
42
+ e.dataStatus = a, e.record = O(c.value, !0), e.dialogFormVisible = !0;
43
+ }, y = D("xForm", null), _ = () => {
44
+ y.value.validate(async (a) => {
45
+ if (!a) {
46
+ const { record: t, dataStatus: o } = e;
47
+ o === "add" ? await f.post(w, t) : await f.put(w, t), b();
48
+ }
49
+ });
50
+ }, $ = async () => {
51
+ var a;
52
+ const { record: t } = e;
53
+ if ((a = t.children) != null && a.length) return Q(n("message.deletePartment"));
54
+ await U.modal.confirm(n("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await f.delete(w, t), b());
55
+ }, b = () => {
56
+ S.value = !0, R(n("message.operateSuccess")), F();
57
+ }, N = () => {
58
+ e.dialogFormVisible = !1, e.dataStatus = "";
59
+ }, F = () => {
60
+ e.dialogFormVisible = !1;
61
+ };
62
+ return (a, t) => {
63
+ const o = s("ut-button"), I = s("vxe-toolbar"), g = s("vxe-form-item"), q = s("vxe-form"), m = s("el-row"), T = s("vxe-checkbox"), k = s("vxe-button"), P = s("el-card");
64
+ return r(), A("div", H, [
65
+ i(I, {
66
+ perfect: "",
67
+ class: ""
68
+ }, {
69
+ buttons: d(() => [
70
+ i(o, {
71
+ status: "u-cyan",
72
+ icon: "ri-add-line",
73
+ content: "add",
74
+ onTap: t[0] || (t[0] = (p) => V())
75
+ }),
76
+ i(o, {
77
+ status: "primary",
78
+ icon: "ri-edit-box-line",
79
+ content: "edit",
80
+ onTap: t[1] || (t[1] = (p) => x("update"))
81
+ }),
82
+ i(o, {
83
+ status: "danger",
84
+ icon: "ri-close-fill",
85
+ content: "delete",
86
+ onTap: t[2] || (t[2] = (p) => $())
87
+ })
88
+ ]),
89
+ _: 1
90
+ }),
91
+ e.dialogFormVisible ? (r(), u(m, {
92
+ key: 0,
93
+ type: "flex",
94
+ justify: "center",
95
+ align: "middle",
96
+ class: "w-departInfo-wrapper"
97
+ }, {
98
+ default: d(() => [
99
+ i(P, {
100
+ width: "60%",
101
+ shadow: "always",
102
+ class: "box-card w-card-wrapper"
103
+ }, {
104
+ default: d(() => [
105
+ t[4] || (t[4] = l("div", { class: "clearfix" }, [
106
+ l("span", { class: "w-card-title" })
107
+ ], -1)),
108
+ i(m, null, {
109
+ default: d(() => [
110
+ i(q, {
111
+ ref_key: "xForm",
112
+ ref: y,
113
+ data: e.record,
114
+ rules: h,
115
+ "label-width": "80px"
116
+ }, {
117
+ default: d(() => [
118
+ i(g, {
119
+ title: a.$t("message.udp.unitName"),
120
+ field: "unitName",
121
+ "item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
122
+ span: 24
123
+ }, null, 8, ["title", "item-render"]),
124
+ i(g, {
125
+ title: a.$t("message.udp.unitCode"),
126
+ field: "unitCode",
127
+ "item-render": { name: "$input", props: { disabled: e.dataStatus !== "add" } },
128
+ span: 24
129
+ }, null, 8, ["title", "item-render"]),
130
+ i(g, {
131
+ title: a.$t("message.udp.unitNote"),
132
+ field: "unitNote",
133
+ "item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
134
+ span: 24
135
+ }, null, 8, ["title", "item-render"])
136
+ ]),
137
+ _: 1
138
+ }, 8, ["data"])
139
+ ]),
140
+ _: 1
141
+ }),
142
+ i(m, {
143
+ type: "flex",
144
+ justify: "center"
145
+ }, {
146
+ default: d(() => [
147
+ e.dataStatus === "add" ? (r(), u(T, {
148
+ key: 0,
149
+ modelValue: e.isChecked,
150
+ "onUpdate:modelValue": t[3] || (t[3] = (p) => e.isChecked = p),
151
+ style: { "padding-top": "5px", "margin-right": "8px" }
152
+ }, {
153
+ default: d(() => [
154
+ E(L(a.$t("message.udp.continueAdd")), 1)
155
+ ]),
156
+ _: 1
157
+ }, 8, ["modelValue"])) : v("", !0),
158
+ e.dataStatus !== "detail" ? (r(), u(k, {
159
+ key: 1,
160
+ status: "primary",
161
+ content: a.$t("message.btn.confirm"),
162
+ onClick: _
163
+ }, null, 8, ["content"])) : v("", !0),
164
+ e.dataStatus !== "detail" ? (r(), u(k, {
165
+ key: 2,
166
+ status: "warning",
167
+ content: a.$t("message.btn.cancel"),
168
+ onClick: N
169
+ }, null, 8, ["content"])) : v("", !0)
170
+ ]),
171
+ _: 1
172
+ })
173
+ ]),
174
+ _: 1
175
+ })
176
+ ]),
177
+ _: 1
178
+ })) : (r(), u(m, {
179
+ key: 1,
180
+ class: "w-noclick-wrapper"
181
+ }, {
182
+ default: d(() => t[5] || (t[5] = [
183
+ l("div", { class: "w-content-wrapper" }, [
184
+ l("ul", null, [
185
+ l("li", { class: "w-department-line" }, [
186
+ l("div", null, "● 点击新建,新建租户信息。"),
187
+ l("div", { style: { margin: "0", "text-indent": "2em" } }, " 已点击树结构上的租户名称,默认创建为当前租户的下属租户 "),
188
+ l("div", { style: { margin: "0", "text-indent": "2em" } }, "未点击树结构上的租户名称,则创建为一级租户")
189
+ ]),
190
+ l("li", { class: "w-department-line" }, "● 点击树结构上的租户名称,点击修改按钮,修改租户信息。"),
191
+ l("li", { class: "w-department-line" }, [
192
+ l("div", null, "● 点击树结构上的租户名称,点击删除按钮,删除租户信息。"),
193
+ l("div", { style: { "text-indent": "2em" } }, "当租户下有单位存在时,不允许删除租户信息。")
194
+ ])
195
+ ])
196
+ ], -1)
197
+ ])),
198
+ _: 1
199
+ }))
200
+ ]);
201
+ };
202
+ }
203
+ }), ie = /* @__PURE__ */ z(J, [["__scopeId", "data-v-bc1a230e"]]);
204
+ export {
205
+ ie as default
206
+ };
@@ -0,0 +1,147 @@
1
+ import { defineComponent as w, ref as o, reactive as E, createVNode as d, Fragment as u, resolveComponent as l, createElementBlock as C, openBlock as m, createBlock as v, createCommentVNode as k } from "vue";
2
+ import { useRender as I } from "@utogether/utils";
3
+ import { clone as b } from "xe-utils";
4
+ const T = {
5
+ name: "DataSet"
6
+ }, N = /* @__PURE__ */ w({
7
+ ...T,
8
+ setup(g) {
9
+ const a = o(null), i = o({}), t = I(), r = E({
10
+ paramExt: {},
11
+ showChild: !1
12
+ }), f = [{
13
+ field: "dataSetCode"
14
+ }, {
15
+ field: "dataSetName"
16
+ }], n = [{
17
+ type: "checkbox",
18
+ width: 50,
19
+ align: "center"
20
+ }, {
21
+ field: "dataSetCode",
22
+ required: !0,
23
+ width: 150,
24
+ editRender: t.renderSelect({
25
+ optionProps: {
26
+ label: "templateCode",
27
+ value: "templateCode"
28
+ },
29
+ props: {
30
+ code: "SYS075",
31
+ fetchField: "templateCode"
32
+ }
33
+ })
34
+ }, {
35
+ field: "dataSetName",
36
+ required: !0,
37
+ width: 150,
38
+ editRender: t.renderInput()
39
+ }, {
40
+ field: "dataSetType",
41
+ required: !0,
42
+ editRender: t.renderDict("SU.DATASET.TYPE"),
43
+ formatter: ["formatDict", "SU.DATASET.TYPE"]
44
+ }, {
45
+ field: "dataSetUrl",
46
+ width: 180,
47
+ required: !0,
48
+ editRender: t.renderInput()
49
+ }, {
50
+ field: "remark",
51
+ minWidth: 80,
52
+ editRender: t.renderInput()
53
+ }, {
54
+ field: "enabled",
55
+ width: 80,
56
+ formatter: ["formatDict", "SU.ENABLE"]
57
+ }, {
58
+ field: "operate",
59
+ width: 150,
60
+ slots: {
61
+ default: ({
62
+ row: e
63
+ }) => e.id ? [
64
+ d(u, null, [d(l("ut-button"), {
65
+ icon: "ri-save-3-fill",
66
+ content: "paramSet",
67
+ onClick: () => c(e)
68
+ }, null)])
69
+ // <ut-button row={row} onTap={() => handleClick(row)} />
70
+ ] : null
71
+ }
72
+ }], p = [{
73
+ type: "checkbox",
74
+ width: 50,
75
+ align: "center"
76
+ }, {
77
+ field: "seqNo",
78
+ editRender: t.renderInput({
79
+ props: {
80
+ type: "number"
81
+ }
82
+ })
83
+ }, {
84
+ field: "paramCode",
85
+ editRender: t.renderInput()
86
+ }, {
87
+ field: "paramName",
88
+ editRender: t.renderInput()
89
+ }, {
90
+ field: "defaultValue",
91
+ editRender: t.renderInput()
92
+ }, {
93
+ field: "isRequired",
94
+ required: !0,
95
+ editRender: t.renderDict("SU.WHETHER"),
96
+ formatter: ["formatDict", "SU.WHETHER"]
97
+ }, {
98
+ field: "remark",
99
+ width: 100,
100
+ editRender: t.renderInput()
101
+ }, {
102
+ field: "operate",
103
+ width: 80,
104
+ fixed: "right",
105
+ slots: {
106
+ default: ({
107
+ row: e
108
+ }) => e.id ? [d(u, null, [d(l("ut-button"), {
109
+ row: e
110
+ }, null)])] : null
111
+ }
112
+ }], c = (e) => {
113
+ i.value = b(e, !0), r.paramExt = {
114
+ dataSetId: e.id
115
+ }, r.showChild = !0;
116
+ }, s = {
117
+ editActived({
118
+ row: e,
119
+ column: h
120
+ }) {
121
+ e.id && (n[1].editRender.props.disabled = !0, a.value.refreshColumn());
122
+ }
123
+ };
124
+ return (e, h) => {
125
+ const S = l("ut-grid"), R = l("ut-modal-grif");
126
+ return m(), C("div", null, [d(S, {
127
+ ref_key: "SuGridRef",
128
+ ref: a,
129
+ items: f,
130
+ columns: n,
131
+ events: s
132
+ }, null, 512), r.showChild ? (m(), v(R, {
133
+ key: 0,
134
+ record: i.value,
135
+ "default-value": r.paramExt,
136
+ "default-params": r.paramExt,
137
+ columns: p,
138
+ title: e.$t("message.paramSet"),
139
+ editable: !0,
140
+ width: "60%"
141
+ }, null, 8, ["record", "default-value", "default-params", "title"])) : k("", !0)]);
142
+ };
143
+ }
144
+ });
145
+ export {
146
+ N as default
147
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, ref as e, provide as t, createElementBlock as i, openBlock as m, createElementVNode as n, createVNode as a } from "vue";
2
- import { _ as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-WNOYFxJ1.js";
3
- import _ from "./DepartmentPanel-WN8nOgCV.js";
4
- import { _ as d } from "./index-BbtbEMCH.js";
2
+ import { _ as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk.js";
3
+ import _ from "./DepartmentPanel-2LHODgc7.js";
4
+ import { _ as d } from "./index-Dc7xWMiC.js";
5
5
  const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ l({
6
6
  __name: "Department",
7
7
  setup(D) {
@@ -0,0 +1,25 @@
1
+ import { defineComponent as m, ref as e, createElementBlock as c, provide as t, openBlock as p, createElementVNode as r, createVNode as a } from "vue";
2
+ import { K as i } from "./ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js";
3
+ import d from "./DepartmentPanel-e91Lxr1j-BS_A-ILd.js";
4
+ import { t as u } from "./su-welcome-BjbuSrBZ.js";
5
+ const f = { class: "u-content-panel" }, v = { class: "u-left-panel" }, h = { class: "content" }, _ = /* @__PURE__ */ m({
6
+ __name: "Department",
7
+ setup(k) {
8
+ const n = e({}), o = e(!1), l = e([]);
9
+ return t("active", n), t("scrollPanelChange", o), t("treeList", l), (s, C) => (p(), c("div", f, [
10
+ r("div", v, [
11
+ a(i, {
12
+ title: s.$t("department"),
13
+ url: "/uums/department/treeDepartment",
14
+ "tree-otions": { children: "children", label: "deptName" }
15
+ }, null, 8, ["title"])
16
+ ]),
17
+ r("div", h, [
18
+ a(d)
19
+ ])
20
+ ]));
21
+ }
22
+ }), E = /* @__PURE__ */ u(_, [["__scopeId", "data-v-a043aab6"]]);
23
+ export {
24
+ E as default
25
+ };