@utogether/udp-core 2.0.0-beta.1 → 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 (182) hide show
  1. package/dist/{403-CTJDBjz7.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-BFYkWIkQ.js → 404-xdB6lFeQ.js} +1 -1
  5. package/dist/500-BYfzvixf-CGpEieyQ.js +67 -0
  6. package/dist/{500-DGG3qadg.js → 500-C94bRK2S.js} +2 -2
  7. package/dist/AuthorityInfo-DBovfUjB-DpQwT9Q5.js +4 -0
  8. package/dist/{AuthorityInfo-ozZIo1Te.js → AuthorityInfo-Dy3b_nFN.js} +1 -1
  9. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DujerENw.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.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8.js +114 -0
  13. package/dist/Company-B4vsXy2I-CkNCOqjJ.js +25 -0
  14. package/dist/{Company-6VJtwh23.js → Company-gKkfnhLt.js} +3 -3
  15. package/dist/{CompanyPanel-B2P488mq.js → CompanyPanel-BF5Pc35s.js} +7 -7
  16. package/dist/CompanyPanel-Czcx8Gyw-CvndXwB_.js +206 -0
  17. package/dist/DataSet-DT-rGICv-DaUfgbxk.js +147 -0
  18. package/dist/{Department-BnwoLEOC.js → Department-D0I3QVZe.js} +3 -3
  19. package/dist/Department-D0dVUrGC-C6HJcYI1.js +25 -0
  20. package/dist/{DepartmentPanel-CRrrmxtv.js → DepartmentPanel-2LHODgc7.js} +22 -22
  21. package/dist/DepartmentPanel-e91Lxr1j-BS_A-ILd.js +254 -0
  22. package/dist/{DesignPanel-CvbccgX2.js → DesignPanel-CtF3cAAQ.js} +1 -1
  23. package/dist/DesignPanel-DdFl_ohi-uCwFxcl1.js +4 -0
  24. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BACPrfUI-cC7yL0uY.js +1013 -0
  25. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Dz2tUszs.js → DesignPanel.vue_vue_type_style_index_0_lang-BCYgwoVt.js} +3 -3
  26. package/dist/DictView-BzQLOf_P-DDicwdmM.js +111 -0
  27. package/dist/{DictView-Ce1LoVHh.js → DictView-H3V5hxg3.js} +1 -1
  28. package/dist/{InvOrganization-BwCFZO1X.js → InvOrganization-BiGLnbqe.js} +2 -2
  29. package/dist/InvOrganization-atbhw0CI-BABbVt9V.js +74 -0
  30. package/dist/Org-BW1YHG-Q-Cow7JWlD.js +39 -0
  31. package/dist/{Org-0hzs6b0R.js → Org-DQTCQHNY.js} +2 -2
  32. package/dist/Preview-DJtVsoq1-CCGidQjJ.js +48 -0
  33. package/dist/{Preview--DnEAhwh.js → Preview-DXaiis29.js} +1 -1
  34. package/dist/{ReportDefine-Cu983bTN.js → ReportDefine-BLh4CiER.js} +1 -1
  35. package/dist/ReportDefine-CNx_ob99-6NQAHK-Q.js +10 -0
  36. package/dist/ReportDesign-FbQ6yTJS-C1pPAUSp.js +165 -0
  37. package/dist/{ReportDesign-QsWXXgvo.js → ReportDesign-Ni1YxrLC.js} +7 -7
  38. package/dist/ReportQuery-C5gz8Lgd-Eu2cQmda.js +75 -0
  39. package/dist/{ReportQuery-BjKIIhPu.js → ReportQuery-C8G88_qF.js} +1 -1
  40. package/dist/ReportQueryFrom-C7scua5v-uHXWq8Gy.js +4 -0
  41. package/dist/{ReportQueryFrom-DIjBO6Fx.js → ReportQueryFrom-CuZKPtB4.js} +1 -1
  42. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-0T62cUMK.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BAn_siFW.js} +7 -7
  43. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DCbz67Wa-vK6r2uCl.js +178 -0
  44. package/dist/ReportTemplate-BDANdIWv-D_IGjR1w.js +161 -0
  45. package/dist/{ReportTemplate-2uk9tJcy.js → ReportTemplate-DFnDXWmx.js} +8 -8
  46. package/dist/{Role-_QP8QEaI.js → Role-BQ7hsfPn.js} +3 -3
  47. package/dist/Role-ByB0WbxW-5E8Mb148.js +25 -0
  48. package/dist/RoleAssign-DW6iC_0v-Bis61auk.js +26 -0
  49. package/dist/{RoleAssign-C2gkcmEQ.js → RoleAssign-UPCg2d4G.js} +3 -3
  50. package/dist/RolePanel-BM2MaQPU-CgcsbfaX.js +4 -0
  51. package/dist/{RolePanel-vnl_lXNY.js → RolePanel-C-mQ5XRq.js} +1 -1
  52. package/dist/RolePanel-ClQy8DBL-DARL4O-o.js +4 -0
  53. package/dist/{RolePanel-B8FPNGaA.js → RolePanel-CoSXOCZN.js} +1 -1
  54. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI.js +132 -0
  55. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-bxHXrBYl.js → RolePanel.vue_vue_type_script_setup_true_lang-Bg-t2UhF.js} +7 -7
  56. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BuQbYEEI.js → RolePanel.vue_vue_type_script_setup_true_lang-D-o7HYZ8.js} +8 -8
  57. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy.js +154 -0
  58. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js +100 -0
  59. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-C6yZXBqB.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk.js} +1 -1
  60. package/dist/Staff-CuxzvhD9-D0KTcyRh.js +25 -0
  61. package/dist/{Staff-CHWrMIEb.js → Staff-D-CmvG1R.js} +3 -3
  62. package/dist/StaffInfo-CY7gUICu-EZUhUwIp.js +4 -0
  63. package/dist/{StaffInfo-Cpq2eayz.js → StaffInfo-Idhvuc6e.js} +1 -1
  64. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn.js +108 -0
  65. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-BVCjF2i1.js → StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU.js} +1 -1
  66. package/dist/{StaffPanel-D2BMXt5p.js → StaffPanel-CDDmAYE5.js} +1 -1
  67. package/dist/StaffPanel-CwqG0_xr-CrvzLJoc.js +4 -0
  68. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B6jAGo-g.js → StaffPanel.vue_vue_type_script_setup_true_lang-Bdilqbee.js} +42 -42
  69. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0.js +143 -0
  70. package/dist/SysUser-9Q2UJWhi-DprWXFlR.js +15 -0
  71. package/dist/{SysUser-om6H1BeC.js → SysUser-a-j5bppr.js} +2 -2
  72. package/dist/{SysUserPanel-CH0HPP7h.js → SysUserPanel-6V232wwB.js} +1 -1
  73. package/dist/SysUserPanel-bJy69O7x-BJtBgFEs.js +4 -0
  74. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-Dpl13ee0.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy.js} +2 -2
  75. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen.js +356 -0
  76. package/dist/{SystemMenu-BkG_DKxA.js → SystemMenu-BnVeOSOQ.js} +7 -7
  77. package/dist/SystemMenu-DGOAolc1-CJSLHP8i.js +156 -0
  78. package/dist/UserInfo-CKoOHkAM-DDWp0I_U.js +4 -0
  79. package/dist/{UserInfo-D9croxUe.js → UserInfo-Cax9b2nw.js} +1 -1
  80. package/dist/UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO.js +160 -0
  81. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DLIP8xpN.js → UserInfo.vue_vue_type_style_index_0_lang-D-cw11i9.js} +2 -2
  82. package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes.js +10 -0
  83. package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
  84. package/dist/childView-0YZQ6GBn-CEqg7k5d.js +4 -0
  85. package/dist/{childView-BY_Ip-l1.js → childView-DKG3eZo8.js} +1 -1
  86. package/dist/childView-DKkgi3yo-D47ft-vi.js +4 -0
  87. package/dist/{childView-CHp_TueS.js → childView-siumuBz0.js} +1 -1
  88. package/dist/childView.vue_vue_type_style_index_0_lang-ABMrGInv-ClOdE_sa.js +143 -0
  89. package/dist/{childView.vue_vue_type_style_index_0_lang-BNHbDRjt.js → childView.vue_vue_type_style_index_0_lang-CUfXDS1q.js} +8 -8
  90. package/dist/{childView.vue_vue_type_style_index_0_lang-CbjGf7Z7.js → childView.vue_vue_type_style_index_0_lang-CW3EbAmW.js} +8 -8
  91. package/dist/childView.vue_vue_type_style_index_0_lang-CaW106ve-CClTM8PK.js +180 -0
  92. package/dist/{code-rule-Ce6yWqCq.js → code-rule-Dtoree6F.js} +2 -2
  93. package/dist/code-rule-wQyfgpNL-C4evD4Co.js +148 -0
  94. package/dist/core.es.js +10 -10
  95. package/dist/cron-task-C-kryDtd-C0NuGZCe.js +135 -0
  96. package/dist/{cron-task-DziaH0rI.js → cron-task-GSRgA7S5.js} +2 -2
  97. package/dist/flow-task-B07st2aD-CgQvagSQ.js +10 -0
  98. package/dist/frameView-BOGA3ezf-QoSxzmSQ.js +44 -0
  99. package/dist/{frameView-DNeCVQaY.js → frameView-Cy6wxW0K.js} +1 -1
  100. package/dist/{index-BabfUVv_.js → index-Dc7xWMiC.js} +1057 -1033
  101. package/dist/layout-home-3Dy4onl4.js +228 -0
  102. package/dist/layout-home-CYHksXN_-Basy-3IH.js +228 -0
  103. package/dist/layoutView-BaRvAbIa-xVgfqspc.js +3302 -0
  104. package/dist/{layoutView-12Mlp9A2.js → layoutView-DMjNscJ-.js} +8 -8
  105. package/dist/log-in-Cx1dGik8-BVeEHeZ8.js +117 -0
  106. package/dist/{log-in-1NGaA5OM.js → log-in-VAG6Cvcx.js} +8 -8
  107. package/dist/log-out-COYdxrNC-ftopGZdE.js +130 -0
  108. package/dist/{log-out-B8_atGcQ.js → log-out-DZGaMCjC.js} +4 -4
  109. package/dist/{login-5dydO6GR.js → login-CqVMdNHs.js} +16 -16
  110. package/dist/login-Dg9ofNS8-Bocp1XMA.js +241 -0
  111. package/dist/login-log-DJBGJVV0-AoOyj0jD.js +70 -0
  112. package/dist/lov-view-C0T5prk8-B2DBmn55.js +97 -0
  113. package/dist/{lov-view-DPvGUu3h.js → lov-view-Cc68_28B.js} +7 -7
  114. package/dist/{menuInfo-DVADYfEK.js → menuInfo-BIrIaJlH.js} +1 -1
  115. package/dist/menuInfo-BZJ_q7bz-Drho-_QC.js +4 -0
  116. package/dist/menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf.js +363 -0
  117. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DgsifDrm.js → menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X.js} +2 -2
  118. package/dist/{pda-app-BZXs-2BQ.js → pda-app-DnjphrRS.js} +9 -9
  119. package/dist/pda-app-m9hsppHo-B4xyja1o.js +710 -0
  120. package/dist/redirect-BqegffKC-CBCIuqmz.js +15 -0
  121. package/dist/resource-C6KEIXu--B_ddyecm.js +97 -0
  122. package/dist/{resource-BZA9NFKc.js → resource-DISgPDM7.js} +4 -4
  123. package/dist/su-welcome-BjbuSrBZ.js +49424 -0
  124. package/dist/su-welcome-CYYy-dzr-D3RKPoB0.js +42089 -0
  125. package/dist/sys-config-DCjJGtht-DARDjlrt.js +370 -0
  126. package/dist/{sys-config-DQmNjWH4.js → sys-config-Yc9vh1t1.js} +13 -13
  127. package/dist/udp-core.css +1 -1
  128. package/dist/utogether-MlnyYtNS-CGgjFNPS.js +4 -0
  129. package/package.json +5 -2
  130. package/src/App.vue +71 -71
  131. package/src/components/udp/content/index.vue +88 -88
  132. package/src/components/udp/form-upload/form-upload.vue +492 -492
  133. package/src/components/udp/grid/index.vue +524 -524
  134. package/src/components/udp/index.ts +6 -6
  135. package/src/components/udp/ut-stamp-badge/index.vue +271 -271
  136. package/src/components/udp/utils.ts +408 -408
  137. package/src/layout/components/lay-content/index.vue +136 -136
  138. package/src/layout/components/lay-search/components/SearchModal.vue +181 -189
  139. package/src/layout/components/lay-setting/index.vue +503 -503
  140. package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -101
  141. package/src/layout/components/lay-tag/index.vue +598 -598
  142. package/src/layout/hooks/useNav.ts +176 -176
  143. package/src/layout/hooks/useTag.ts +227 -227
  144. package/src/layout/layoutView.vue +216 -216
  145. package/src/layout/types.ts +93 -93
  146. package/src/main.ts +111 -112
  147. package/src/plugins/i18n/zh.ts +1 -0
  148. package/src/plugins/vxe-table/index.ts +116 -116
  149. package/src/plugins/vxe-table/render.tsx +968 -968
  150. package/src/router/index.ts +187 -187
  151. package/src/router/modules/home.ts +32 -32
  152. package/src/router/utils.ts +420 -420
  153. package/src/store/modules/epTheme.ts +48 -48
  154. package/src/style/vxetable.scss +364 -356
  155. package/src/utils/dataFormat/index.ts +222 -222
  156. package/src/utils/lifecycle.ts +39 -39
  157. package/src/views/organization/department/DepartmentPanel.vue +303 -303
  158. package/src/views/organization/staff/StaffInfo.vue +127 -127
  159. package/src/views/organization/staff/StaffPanel.vue +3 -3
  160. package/src/views/system/layout/layout-home.vue +45 -7
  161. package/src/views/system/menu/AuthorityPanel.vue +141 -141
  162. package/src/views/system/menu/SystemMenu.vue +194 -194
  163. package/src/views/system/menu/menuInfo.vue +1 -1
  164. package/src/views/system/sysUser/SysUserPanel.vue +363 -363
  165. package/src/views/udev/coderule/code-rule.vue +132 -132
  166. package/src/views/udev/dict/DictView.vue +118 -118
  167. package/src/views/udev/dict/childView.vue +184 -184
  168. package/src/views/udev/lov/childView.vue +174 -174
  169. package/src/views/uhome/components/common-menu.vue +118 -0
  170. package/src/views/uhome/components/dynamic-component.vue +66 -0
  171. package/src/views/uhome/components/home-todo.vue +170 -0
  172. package/src/views/uhome/components/menu-favorite.vue +315 -315
  173. package/src/views/uhome/dynamic-card.vue +18 -19
  174. package/src/views/uhome/su-welcome.vue +46 -116
  175. package/src/views/ulogin/login.vue +336 -336
  176. package/src/views/upms/interface/log-in.vue +100 -100
  177. package/src/views/upms/interface/log-out.vue +104 -104
  178. package/src/views/upms/user/login-log.vue +54 -54
  179. package/types/global.d.ts +232 -232
  180. package/dist/await-to-js.es5-BtRbN2QH.js +0 -10
  181. package/dist/layout-home-Cis1KlEr.js +0 -195
  182. package/dist/su-welcome-BXe6Cdp3.js +0 -580
@@ -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-BabfUVv_.js";
4
- import { _ as y } from "./childView.vue_vue_type_style_index_0_lang-CbjGf7Z7.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-DgsifDrm.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,8 +1,8 @@
1
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 ee, y as te } from "./index-BabfUVv_.js";
5
+ import { u as ee, g as te } from "./index-Dc7xWMiC.js";
6
6
  const ne = { class: "ut-menu-wrapper" }, q = "/uums/menu", ie = /* @__PURE__ */ H({
7
7
  __name: "menuInfo",
8
8
  props: {
@@ -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-BabfUVv_.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 = () => {