@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,17 +1,17 @@
1
1
  import { defineComponent as k, ref as o, createVNode as u, resolveComponent as a, nextTick as g, createElementBlock as w, openBlock as s, createBlock as C, createCommentVNode as R } from "vue";
2
- import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
3
- import { y as b } from "./index-BbtbEMCH.js";
4
- import { _ as y } from "./childView.vue_vue_type_style_index_0_lang-B8x99f1B.js";
5
- import { useRender as D } from "@utogether/utils";
2
+ import { t as x } from "./await-to-js.es5-Bv3Eu4mi.js";
3
+ import { g as b } from "./index-Dc7xWMiC.js";
4
+ import { _ as D } from "./childView.vue_vue_type_style_index_0_lang-CW3EbAmW.js";
5
+ import { useRender as I } from "@utogether/utils";
6
6
  const c = "/upfm/v1/lovViewHeader", B = /* @__PURE__ */ k({
7
7
  name: "LovView",
8
8
  __name: "lov-view",
9
- setup(I) {
9
+ setup(T) {
10
10
  const t = o(null), f = [{
11
11
  field: "lovCode"
12
12
  }, {
13
13
  field: "lovName"
14
- }], r = D(), l = [{
14
+ }], r = I(), l = [{
15
15
  type: "checkbox",
16
16
  width: 50,
17
17
  align: "center"
@@ -83,7 +83,7 @@ const c = "/upfm/v1/lovViewHeader", B = /* @__PURE__ */ k({
83
83
  columns: l,
84
84
  url: c,
85
85
  events: h
86
- }, null, 512), n.value ? (s(), C(y, {
86
+ }, null, 512), n.value ? (s(), C(D, {
87
87
  key: 0,
88
88
  show: n.value,
89
89
  record: d.value,
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./menuInfo.vue_vue_type_style_index_0_lang-DoQjX9Ly.js";
1
+ import { _ as f } from "./menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,4 @@
1
+ import { i as f } from "./menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,363 @@
1
+ import { defineComponent as j, watch as W, ref as _, resolveComponent as i, createElementBlock as U, openBlock as r, createVNode as t, withCtx as m, createBlock as u, createCommentVNode as p, Fragment as G, renderList as H, normalizeClass as J, createSlots as K, createElementVNode as O, toDisplayString as Q } from "vue";
2
+ import { useI18n as X } from "vue-i18n";
3
+ import { c as q } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes.js";
4
+ import { templateRef as Z } from "@vueuse/core";
5
+ import { M as ee, W as te } from "./su-welcome-BjbuSrBZ.js";
6
+ const ae = { class: "ut-menu-wrapper" }, S = "/uums/menu", ie = /* @__PURE__ */ j({
7
+ __name: "menuInfo",
8
+ props: {
9
+ show: { type: Boolean, default: !1 },
10
+ record: { default: () => ({}) },
11
+ dataStatus: { default: "detail" },
12
+ direction: { default: "rtl" }
13
+ },
14
+ emits: ["close"],
15
+ setup(I, { emit: P }) {
16
+ const E = ee().getDataDict, g = I;
17
+ W(
18
+ () => g.show,
19
+ () => {
20
+ v.value = g.show && B();
21
+ }
22
+ );
23
+ const C = te(), { t: l } = X(), F = {
24
+ menuCode: [
25
+ {
26
+ required: !0,
27
+ message: `${l("message.required")}${l("message.menuCode")}`
28
+ }
29
+ ],
30
+ menuName: [
31
+ {
32
+ required: !0,
33
+ message: `${l("message.required")}${l("message.menuName")}`
34
+ }
35
+ ],
36
+ menuPath: [
37
+ {
38
+ required: !0,
39
+ message: `${l("message.required")}${l("message.menuPath")}`
40
+ }
41
+ ],
42
+ frameSrc: [
43
+ {
44
+ required: !0,
45
+ message: `${l("message.required")}${l("message.externalURI")}`
46
+ }
47
+ ],
48
+ i18nField: [
49
+ {
50
+ required: !0,
51
+ message: `${l("message.required")}${l("message.i18nField")}`
52
+ }
53
+ ],
54
+ dispalyCode: [
55
+ {
56
+ required: !0,
57
+ message: `${l("message.required")}${l("message.permissionCode")}`
58
+ }
59
+ ],
60
+ menuCategory: [
61
+ {
62
+ required: !0,
63
+ message: `${l("message.required")}${l("message.menuType")}`
64
+ }
65
+ ]
66
+ }, N = Z("xForm", null), y = _(!1), v = _(""), $ = _(["fetch"]), L = P, B = () => {
67
+ const { record: e, dataStatus: s } = g, { id: d, parentId: f, hasChildren: a } = e;
68
+ if (s !== "update")
69
+ return !d && !f ? "su" : ((a || s === "add") && (e.dispalyCode = ""), e.permissionCode);
70
+ }, D = () => {
71
+ N.value.validate(async (e) => {
72
+ if (!e) {
73
+ y.value = !0;
74
+ let s;
75
+ const { record: d, dataStatus: f } = g;
76
+ if (f === "add") {
77
+ d.permissionCode = `${v.value}.${d.dispalyCode}`;
78
+ const [a, V] = await q(C.post(S, [d]));
79
+ if (!a && !["0", "5"].includes(d.menuCategory) && $.value.length) {
80
+ const x = $.value.map((b, w) => ({
81
+ permissionCode: d.permissionCode + "." + b,
82
+ parentId: V[0].id,
83
+ menuName: R(b),
84
+ menuType: 1,
85
+ enabled: "1",
86
+ sort: (w + 1) * 10
87
+ })), [c, k] = await q(C.post(S, x));
88
+ c || (s = k[0]);
89
+ }
90
+ y.value = !1;
91
+ } else
92
+ d.permissionCode = d.dispalyCode, await q(C.put(S, [d])), y.value = !1, s = d;
93
+ h("submit", s);
94
+ }
95
+ });
96
+ }, R = (e) => ({
97
+ fetch: l("message.btn.fetch"),
98
+ add: l("message.btn.add"),
99
+ edit: l("message.btn.edit"),
100
+ del: l("message.btn.delete"),
101
+ export: l("message.btn.export")
102
+ })[e], Y = (e) => {
103
+ var s;
104
+ return (s = E[e]) == null ? void 0 : s.children.map((d) => (d.enabled = d.dictCode === "0" && g.record.menuCategory !== "0", d));
105
+ };
106
+ function h(e, s) {
107
+ L("close", e, s);
108
+ }
109
+ return (e, s) => {
110
+ const d = i("vxe-option"), f = i("vxe-select"), a = i("vxe-form-item"), V = i("vxe-input"), x = i("vxe-number-input"), c = i("vxe-checkbox"), k = i("vxe-checkbox-group"), b = i("ut-icon-select"), w = i("vxe-form"), z = i("el-divider"), T = i("ut-button"), A = i("el-row"), M = i("el-drawer");
111
+ return r(), U("div", ae, [
112
+ t(M, {
113
+ "model-value": e.show,
114
+ title: e.$t("message.title.memuInfo"),
115
+ "before-close": h,
116
+ direction: "rtl",
117
+ "destroy-on-close": "",
118
+ size: "50%"
119
+ }, {
120
+ default: m(() => [
121
+ t(w, {
122
+ ref_key: "xForm",
123
+ ref: N,
124
+ data: e.record,
125
+ rules: F,
126
+ loading: y.value,
127
+ "title-colon": "",
128
+ "title-align": "right",
129
+ "title-width": "110",
130
+ transfer: ""
131
+ }, {
132
+ default: m(() => [
133
+ e.record.menuType === "0" ? (r(), u(a, {
134
+ key: 0,
135
+ title: e.$t("message.menuType"),
136
+ field: "menuCategory",
137
+ span: "24"
138
+ }, {
139
+ default: m(({ data: n }) => [
140
+ t(f, {
141
+ modelValue: n.menuCategory,
142
+ "onUpdate:modelValue": (o) => n.menuCategory = o,
143
+ disabled: n.menuCategory === "0",
144
+ transfer: !1
145
+ }, {
146
+ default: m(() => [
147
+ (r(!0), U(G, null, H(Y("SU.MENU.TYPE"), (o) => (r(), u(d, {
148
+ key: o.dictCode,
149
+ value: o.dictCode,
150
+ label: o.dictName,
151
+ disabled: o.enabled
152
+ }, null, 8, ["value", "label", "disabled"]))), 128))
153
+ ]),
154
+ _: 2
155
+ }, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])
156
+ ]),
157
+ _: 1
158
+ }, 8, ["title"])) : p("", !0),
159
+ t(a, {
160
+ title: e.$t("message.permissionCode"),
161
+ field: "dispalyCode",
162
+ span: "24"
163
+ }, {
164
+ default: m(({ data: n }) => [
165
+ t(V, {
166
+ modelValue: n.dispalyCode,
167
+ "onUpdate:modelValue": (o) => n.dispalyCode = o,
168
+ clearable: "",
169
+ class: J({ "u-menu-prefix": e.dataStatus === "add" }),
170
+ disabled: e.dataStatus !== "add"
171
+ }, K({ _: 2 }, [
172
+ e.dataStatus === "add" ? {
173
+ name: "prefix",
174
+ fn: m(() => [
175
+ O("span", null, Q(v.value), 1)
176
+ ]),
177
+ key: "0"
178
+ } : void 0
179
+ ]), 1032, ["modelValue", "onUpdate:modelValue", "class", "disabled"])
180
+ ]),
181
+ _: 1
182
+ }, 8, ["title"]),
183
+ !(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (r(), u(a, {
184
+ key: 1,
185
+ title: e.$t("message.menuCode"),
186
+ "item-render": { name: "$input" },
187
+ field: "menuCode",
188
+ span: "24"
189
+ }, null, 8, ["title"])) : p("", !0),
190
+ t(a, {
191
+ title: e.$t("message.menuName"),
192
+ "item-render": { name: "$input" },
193
+ field: "menuName",
194
+ span: "24"
195
+ }, null, 8, ["title"]),
196
+ t(a, {
197
+ title: e.$t("message.menuNameEn"),
198
+ field: "menuNameEn",
199
+ span: "24",
200
+ "item-render": { name: "$input" }
201
+ }, null, 8, ["title"]),
202
+ e.record.menuType * 1 ? p("", !0) : (r(), u(a, {
203
+ key: 2,
204
+ title: e.$t("message.menuPath"),
205
+ "item-render": { name: "$input" },
206
+ field: "menuPath",
207
+ span: "24"
208
+ }, null, 8, ["title"])),
209
+ e.record.menuType * 1 ? p("", !0) : (r(), u(a, {
210
+ key: 3,
211
+ title: e.$t("message.i18nField"),
212
+ "item-render": { name: "$input" },
213
+ field: "i18nField",
214
+ span: "24"
215
+ }, null, 8, ["title"])),
216
+ e.record.menuCategory === "2" ? (r(), u(a, {
217
+ key: 4,
218
+ title: e.$t("message.frameSrc"),
219
+ "item-render": { name: "$input" },
220
+ field: "frameSrc",
221
+ span: "24"
222
+ }, null, 8, ["title"])) : p("", !0),
223
+ e.record.menuCategory === "3" ? (r(), u(a, {
224
+ key: 5,
225
+ title: e.$t("message.externalURI"),
226
+ "item-render": { name: "$input" },
227
+ field: "menuCode",
228
+ span: "24"
229
+ }, null, 8, ["title"])) : p("", !0),
230
+ !(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (r(), u(a, {
231
+ key: 6,
232
+ title: e.$t("message.extraIcon"),
233
+ "item-render": { name: "$input" },
234
+ field: "extraIcon",
235
+ span: "24"
236
+ }, null, 8, ["title"])) : p("", !0),
237
+ t(a, {
238
+ "visible-method": ({ data: n }) => n.menuCategory === "1",
239
+ title: e.$t("message.udp.showLink"),
240
+ "item-render": {
241
+ name: "VxeSwitch",
242
+ props: { openLabel: "显示", closeLabel: "隐藏", closeValue: "N", openValue: "Y" }
243
+ },
244
+ field: "showLink",
245
+ span: "24"
246
+ }, null, 8, ["visible-method", "title"]),
247
+ t(a, {
248
+ "visible-method": ({ data: n }) => n.menuCategory === "1",
249
+ title: e.$t("message.udp.isApprovalPage"),
250
+ "item-render": {
251
+ name: "VxeSwitch",
252
+ props: { openLabel: "是", closeLabel: "否", closeValue: "N", openValue: "Y" }
253
+ },
254
+ field: "isApprovalPage",
255
+ span: "24"
256
+ }, null, 8, ["visible-method", "title"]),
257
+ ["0", "5"].includes(e.record.menuCategory) ? (r(), u(a, {
258
+ key: 7,
259
+ title: e.$t("message.redirect"),
260
+ "item-render": { name: "$input" },
261
+ field: "redirect",
262
+ span: "24"
263
+ }, null, 8, ["title"])) : p("", !0),
264
+ e.record.menuType * 1 ? p("", !0) : (r(), u(a, {
265
+ key: 8,
266
+ title: e.$t("message.sort"),
267
+ span: "24"
268
+ }, {
269
+ default: m(({ data: n }) => [
270
+ t(x, {
271
+ modelValue: n.sort,
272
+ "onUpdate:modelValue": (o) => n.sort = o,
273
+ "control-config": { enabled: !1 },
274
+ tep: "10",
275
+ clearable: ""
276
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
277
+ ]),
278
+ _: 1
279
+ }, 8, ["title"])),
280
+ e.dataStatus === "add" && ["2", "1"].includes(e.record.menuCategory) ? (r(), u(a, {
281
+ key: 9,
282
+ title: e.$t("message.btn.auth")
283
+ }, {
284
+ default: m(() => [
285
+ t(k, {
286
+ modelValue: $.value,
287
+ "onUpdate:modelValue": s[0] || (s[0] = (n) => $.value = n)
288
+ }, {
289
+ default: m(() => [
290
+ t(c, {
291
+ label: "add",
292
+ content: e.$t("message.btn.add")
293
+ }, null, 8, ["content"]),
294
+ t(c, {
295
+ label: "del",
296
+ content: e.$t("message.btn.delete")
297
+ }, null, 8, ["content"]),
298
+ t(c, {
299
+ label: "edit",
300
+ content: e.$t("message.btn.edit")
301
+ }, null, 8, ["content"]),
302
+ t(c, {
303
+ label: "fetch",
304
+ content: e.$t("message.btn.fetch")
305
+ }, null, 8, ["content"]),
306
+ t(c, {
307
+ label: "export",
308
+ content: e.$t("message.btn.export")
309
+ }, null, 8, ["content"])
310
+ ]),
311
+ _: 1
312
+ }, 8, ["modelValue"])
313
+ ]),
314
+ _: 1
315
+ }, 8, ["title"])) : p("", !0),
316
+ e.record.menuType * 1 ? p("", !0) : (r(), u(a, {
317
+ key: 10,
318
+ title: e.$t("message.icon"),
319
+ span: "24"
320
+ }, {
321
+ default: m(({ data: n }) => [
322
+ t(b, {
323
+ modelValue: n.icon,
324
+ "onUpdate:modelValue": (o) => n.icon = o
325
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
326
+ ]),
327
+ _: 1
328
+ }, 8, ["title"]))
329
+ ]),
330
+ _: 1
331
+ }, 8, ["data", "loading"]),
332
+ t(z),
333
+ t(A, {
334
+ type: "flex",
335
+ justify: "end",
336
+ style: { "padding-right": "22px" }
337
+ }, {
338
+ default: m(() => [
339
+ t(T, {
340
+ content: "cancel",
341
+ status: "warning",
342
+ icon: "ri-close-line",
343
+ onTap: h
344
+ }),
345
+ t(T, {
346
+ content: "confirm",
347
+ status: "primary",
348
+ icon: "ri-save-line",
349
+ onTap: D
350
+ })
351
+ ]),
352
+ _: 1
353
+ })
354
+ ]),
355
+ _: 1
356
+ }, 8, ["model-value", "title"])
357
+ ]);
358
+ };
359
+ }
360
+ });
361
+ export {
362
+ ie as i
363
+ };
@@ -1,9 +1,9 @@
1
- import { defineComponent as H, watch as M, ref as _, resolveComponent as i, createElementBlock as L, openBlock as r, createVNode as t, withCtx as m, createBlock as u, createCommentVNode as p, Fragment as G, renderList as J, normalizeClass as K, createSlots as O, createElementVNode as Q, toDisplayString as W } from "vue";
1
+ import { defineComponent as H, watch as M, ref as S, resolveComponent as i, createElementBlock as L, openBlock as r, createVNode as t, withCtx as m, createBlock as u, createCommentVNode as p, Fragment as G, renderList as J, normalizeClass as K, createSlots as O, createElementVNode as Q, toDisplayString as W } from "vue";
2
2
  import { useI18n as X } from "vue-i18n";
3
- import { t as N } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { t as N } from "./await-to-js.es5-Bv3Eu4mi.js";
4
4
  import { templateRef as Z } from "@vueuse/core";
5
- import { i as x, y as ee } from "./index-BbtbEMCH.js";
6
- const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */ H({
5
+ import { u as ee, g as te } from "./index-Dc7xWMiC.js";
6
+ const ne = { class: "ut-menu-wrapper" }, q = "/uums/menu", ie = /* @__PURE__ */ H({
7
7
  __name: "menuInfo",
8
8
  props: {
9
9
  show: { type: Boolean, default: !1 },
@@ -13,14 +13,14 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
13
13
  },
14
14
  emits: ["close"],
15
15
  setup(I, { emit: F }) {
16
- const P = x().getDataDict, g = I;
16
+ const P = ee().getDataDict, g = I;
17
17
  M(
18
18
  () => g.show,
19
19
  () => {
20
- h.value = g.show && D();
20
+ $.value = g.show && D();
21
21
  }
22
22
  );
23
- const v = ee(), { t: a } = X(), E = {
23
+ const C = te(), { t: a } = X(), E = {
24
24
  menuCode: [
25
25
  {
26
26
  required: !0,
@@ -63,7 +63,7 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
63
63
  message: `${a("message.required")}${a("message.menuType")}`
64
64
  }
65
65
  ]
66
- }, T = Z("xForm", null), y = _(!1), h = _(""), b = _(["fetch"]), A = F, D = () => {
66
+ }, T = Z("xForm", null), y = S(!1), $ = S(""), b = S(["fetch"]), A = F, D = () => {
67
67
  const { record: e, dataStatus: s } = g, { id: l, parentId: f, hasChildren: n } = e;
68
68
  if (s !== "update")
69
69
  return !l && !f ? "su" : ((n || s === "add") && (e.dispalyCode = ""), e.permissionCode);
@@ -74,23 +74,23 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
74
74
  let s;
75
75
  const { record: l, dataStatus: f } = g;
76
76
  if (f === "add") {
77
- l.permissionCode = `${h.value}.${l.dispalyCode}`;
78
- const [n, C] = await N(v.post(q, [l]));
77
+ l.permissionCode = `${$.value}.${l.dispalyCode}`;
78
+ const [n, V] = await N(C.post(q, [l]));
79
79
  if (!n && !["0", "5"].includes(l.menuCategory) && b.value.length) {
80
- const c = b.value.map(($, S) => ({
81
- permissionCode: l.permissionCode + "." + $,
82
- parentId: C[0].id,
83
- menuName: R($),
80
+ const k = b.value.map((v, w) => ({
81
+ permissionCode: l.permissionCode + "." + v,
82
+ parentId: V[0].id,
83
+ menuName: R(v),
84
84
  menuType: 1,
85
85
  enabled: "1",
86
- sort: (S + 1) * 10
87
- })), [k, w] = await N(v.post(q, c));
88
- k || (s = w[0]);
86
+ sort: (w + 1) * 10
87
+ })), [c, _] = await N(C.post(q, k));
88
+ c || (s = _[0]);
89
89
  }
90
90
  y.value = !1;
91
91
  } else
92
- l.permissionCode = l.dispalyCode, await N(v.put(q, [l])), y.value = !1, s = l;
93
- V("submit", s);
92
+ l.permissionCode = l.dispalyCode, await N(C.put(q, [l])), y.value = !1, s = l;
93
+ h("submit", s);
94
94
  }
95
95
  });
96
96
  }, R = (e) => ({
@@ -103,22 +103,22 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
103
103
  var s;
104
104
  return (s = P[e]) == null ? void 0 : s.children.map((l) => (l.enabled = l.dictCode === "0" && g.record.menuCategory !== "0", l));
105
105
  };
106
- function V(e, s) {
106
+ function h(e, s) {
107
107
  A("close", e, s);
108
108
  }
109
109
  return (e, s) => {
110
- const l = i("vxe-option"), f = i("vxe-select"), n = i("vxe-form-item"), C = i("vxe-input"), c = i("vxe-checkbox"), k = i("vxe-checkbox-group"), w = i("ut-icon-select"), $ = i("vxe-form"), S = i("el-divider"), U = i("ut-button"), z = i("el-row"), j = i("el-drawer");
111
- return r(), L("div", te, [
112
- t(j, {
110
+ const l = i("vxe-option"), f = i("vxe-select"), n = i("vxe-form-item"), V = i("vxe-input"), k = i("vxe-number-input"), c = i("vxe-checkbox"), _ = i("vxe-checkbox-group"), v = i("ut-icon-select"), w = i("vxe-form"), z = i("el-divider"), U = i("ut-button"), j = i("el-row"), x = i("el-drawer");
111
+ return r(), L("div", ne, [
112
+ t(x, {
113
113
  "model-value": e.show,
114
114
  title: e.$t("message.title.memuInfo"),
115
- "before-close": V,
115
+ "before-close": h,
116
116
  direction: "rtl",
117
117
  "destroy-on-close": "",
118
118
  size: "50%"
119
119
  }, {
120
120
  default: m(() => [
121
- t($, {
121
+ t(w, {
122
122
  ref_key: "xForm",
123
123
  ref: T,
124
124
  data: e.record,
@@ -162,7 +162,7 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
162
162
  span: "24"
163
163
  }, {
164
164
  default: m(({ data: o }) => [
165
- t(C, {
165
+ t(V, {
166
166
  modelValue: o.dispalyCode,
167
167
  "onUpdate:modelValue": (d) => o.dispalyCode = d,
168
168
  clearable: "",
@@ -172,7 +172,7 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
172
172
  e.dataStatus === "add" ? {
173
173
  name: "prefix",
174
174
  fn: m(() => [
175
- Q("span", null, W(h.value), 1)
175
+ Q("span", null, W($.value), 1)
176
176
  ]),
177
177
  key: "0"
178
178
  } : void 0
@@ -267,11 +267,11 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
267
267
  span: "24"
268
268
  }, {
269
269
  default: m(({ data: o }) => [
270
- t(C, {
270
+ t(k, {
271
271
  modelValue: o.sort,
272
272
  "onUpdate:modelValue": (d) => o.sort = d,
273
- type: "number",
274
- step: "10",
273
+ "control-config": { enabled: !1 },
274
+ tep: "10",
275
275
  clearable: ""
276
276
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
277
277
  ]),
@@ -282,7 +282,7 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
282
282
  title: e.$t("message.btn.auth")
283
283
  }, {
284
284
  default: m(() => [
285
- t(k, {
285
+ t(_, {
286
286
  modelValue: b.value,
287
287
  "onUpdate:modelValue": s[0] || (s[0] = (o) => b.value = o)
288
288
  }, {
@@ -319,7 +319,7 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
319
319
  span: "24"
320
320
  }, {
321
321
  default: m(({ data: o }) => [
322
- t(w, {
322
+ t(v, {
323
323
  modelValue: o.icon,
324
324
  "onUpdate:modelValue": (d) => o.icon = d
325
325
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
@@ -329,8 +329,8 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
329
329
  ]),
330
330
  _: 1
331
331
  }, 8, ["data", "loading"]),
332
- t(S),
333
- t(z, {
332
+ t(z),
333
+ t(j, {
334
334
  type: "flex",
335
335
  justify: "end",
336
336
  style: { "padding-right": "22px" }
@@ -339,11 +339,13 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
339
339
  t(U, {
340
340
  content: "cancel",
341
341
  status: "warning",
342
- onTap: V
342
+ icon: "ri-close-line",
343
+ onTap: h
343
344
  }),
344
345
  t(U, {
345
346
  content: "confirm",
346
347
  status: "primary",
348
+ icon: "ri-save-line",
347
349
  onTap: B
348
350
  })
349
351
  ]),
@@ -357,5 +359,5 @@ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */
357
359
  }
358
360
  });
359
361
  export {
360
- re as _
362
+ ie as _
361
363
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as re, ref as N, computed as K, watch as me, createVNode as p, Fragment as Y, withDirectives as he, unref as C, resolveDirective as be, nextTick as ve, resolveComponent as x, createElementBlock as Oe, openBlock as J, createBlock as _e, createCommentVNode as we, isVNode as Te } from "vue";
1
+ import { defineComponent as re, ref as N, computed as G, watch as me, createVNode as p, Fragment as Y, withDirectives as he, unref as C, resolveDirective as be, nextTick as ve, resolveComponent as x, createElementBlock as Oe, openBlock as J, createBlock as _e, createCommentVNode as we, isVNode as Te } from "vue";
2
2
  import { useI18n as je } from "vue-i18n";
3
- import { t as Ce } from "./await-to-js.es5-BtRbN2QH.js";
4
- import { I as Se, G as xe, y as $e, _ as Pe } from "./index-BbtbEMCH.js";
3
+ import { t as Ce } from "./await-to-js.es5-Bv3Eu4mi.js";
4
+ import { I as Se, b as xe, g as $e, _ as Pe } from "./index-Dc7xWMiC.js";
5
5
  import { withInstall as Ve, useRender as Ae } from "@utogether/utils";
6
6
  import { clone as oe, isString as Z } from "xe-utils";
7
7
  import Ne from "qrcode";
@@ -257,12 +257,12 @@ ${B(r)}`), n;
257
257
  }
258
258
  });
259
259
  }
260
- function Ge(e) {
260
+ function Ke(e) {
261
261
  return b("instanceOf", {
262
262
  type: e
263
263
  });
264
264
  }
265
- function Ke(e) {
265
+ function Ge(e) {
266
266
  return b("objectOf", {
267
267
  type: Object,
268
268
  validator(t) {
@@ -359,7 +359,7 @@ const tt = /* @__PURE__ */ (() => {
359
359
  "VueTypes.extend has been removed. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."
360
360
  );
361
361
  }
362
- }, h(e, "defaults", {}), h(e, "sensibleDefaults"), h(e, "config", z), h(e, "custom", Me), h(e, "oneOf", Qe), h(e, "instanceOf", Ge), h(e, "oneOfType", He), h(e, "arrayOf", Xe), h(e, "objectOf", Ke), h(e, "shape", Je), h(e, "utils", {
362
+ }, h(e, "defaults", {}), h(e, "sensibleDefaults"), h(e, "config", z), h(e, "custom", Me), h(e, "oneOf", Qe), h(e, "instanceOf", Ke), h(e, "oneOfType", He), h(e, "arrayOf", Xe), h(e, "objectOf", Ge), h(e, "shape", Je), h(e, "utils", {
363
363
  validate(t, r) {
364
364
  return S(r, t, !0) === !0;
365
365
  },
@@ -445,7 +445,7 @@ const rt = {
445
445
  const {
446
446
  toCanvas: r,
447
447
  toDataURL: n
448
- } = Ne, o = N(!0), a = N(null), s = K(() => String(e.text)), d = K(() => ({
448
+ } = Ne, o = N(!0), a = N(null), s = G(() => String(e.text)), d = G(() => ({
449
449
  width: e.width + "px",
450
450
  height: e.width + "px"
451
451
  })), y = async () => {
@@ -503,8 +503,8 @@ const rt = {
503
503
  q.width = T + w, q.height = T + w;
504
504
  const X = q.getContext("2d");
505
505
  if (!X || !v || (X.drawImage(A, T, T, w, w), I(v)(T, T, w, w, W), !v)) return;
506
- const G = v.createPattern(q, "no-repeat");
507
- G && (v.fillStyle = G, v.fill());
506
+ const K = v.createPattern(q, "no-repeat");
507
+ K && (v.fillStyle = K, v.fill());
508
508
  };
509
509
  return new Promise((A) => {
510
510
  V.onload = () => {