@utogether/udp-core 1.0.1-beta.3 → 1.0.1-beta.30

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 (165) hide show
  1. package/build/plugins.ts +3 -3
  2. package/dist/{403-BuP9jvH9.js → 403-DdjDWbkf.js} +1 -1
  3. package/dist/{404-DfQk8kKl.js → 404-D9vF2gFz.js} +1 -1
  4. package/dist/{500-OgROWdiZ.js → 500-mVaDmUjL.js} +1 -1
  5. package/dist/{AuthorityInfo-q2ksfkWH.js → AuthorityInfo-DOUJ_Zrj.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-B12sAzqt.js +100 -0
  7. package/dist/{Company-DgqowAxc.js → Company-DY__kM9F.js} +3 -3
  8. package/dist/{CompanyPanel-BNb1rUhD.js → CompanyPanel-C5N8QcMA.js} +17 -17
  9. package/dist/{Department-Cl8CROSU.js → Department-DsuDZdy5.js} +3 -3
  10. package/dist/{DepartmentPanel-D5VkqKeP.js → DepartmentPanel-CdwI7Rzu.js} +25 -25
  11. package/dist/{DesignPanel-BGvEusHC.js → DesignPanel-B50-g0TL.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BQF1uQ7w.js → DesignPanel.vue_vue_type_style_index_0_lang-KV8JOZ6v.js} +28 -30
  13. package/dist/DictView-Be2Z5Obk.js +110 -0
  14. package/dist/InvOrganization-Lui1q3Ou.js +74 -0
  15. package/dist/Org-qO5ExsPN.js +39 -0
  16. package/dist/{Preview-BaGmXH7r.js → Preview-Dq4dfV2D.js} +2 -2
  17. package/dist/{ReportDefine-DkQdBErt.js → ReportDefine-DH3FvbS1.js} +1 -1
  18. package/dist/{ReportDesign-DzB_A_G6.js → ReportDesign-Bou01Jbr.js} +43 -43
  19. package/dist/{ReportQuery-DRcMb6ya.js → ReportQuery-BBkmPPSw.js} +1 -1
  20. package/dist/{ReportQueryFrom-CeA9xhR4.js → ReportQueryFrom-BCY8lTJ7.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CgGtcs5V.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CpktcM8J.js} +1 -1
  22. package/dist/{ReportTemplate-qaiTMQuT.js → ReportTemplate-C_yJXxQ-.js} +28 -28
  23. package/dist/{Role-DsFulAjq.js → Role-CTatYsrC.js} +6 -6
  24. package/dist/{RoleAssign-DMRdocpa.js → RoleAssign-Cqt3CelK.js} +9 -9
  25. package/dist/{RolePanel-wXVysDHM.js → RolePanel-C3JMpNu8.js} +1 -1
  26. package/dist/{RolePanel-B9POS_pg.js → RolePanel-brKRJIhD.js} +1 -1
  27. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DD8u9pq8.js +132 -0
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CleVvkcY.js → RolePanel.vue_vue_type_script_setup_true_lang-i6Gq4r5B.js} +44 -38
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DlXUs0j9.js → ScrollPanel.vue_vue_type_style_index_0_lang-CiWKyjm3.js} +23 -23
  30. package/dist/{Staff-Cq4V7ruC.js → Staff-Cd3twQ6Y.js} +3 -3
  31. package/dist/{StaffInfo-CJDKMbud.js → StaffInfo-DJp0a0qd.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DQ4DL1KY.js → StaffInfo.vue_vue_type_script_setup_true_lang-Dp2AhJ4I.js} +16 -16
  33. package/dist/{StaffPanel-CG-uggdr.js → StaffPanel-B93hClzs.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DAgN7zN2.js → StaffPanel.vue_vue_type_script_setup_true_lang-CXjUzq7n.js} +2 -2
  35. package/dist/{SysUser-kwnzRNdD.js → SysUser-BvI6vaqI.js} +2 -2
  36. package/dist/{SysUserPanel-DTlZf3vk.js → SysUserPanel-C9V8X-Ek.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-bMqTui07.js +343 -0
  38. package/dist/{SystemMenu-BVT0n-L2.js → SystemMenu-D4WME5d0.js} +27 -27
  39. package/dist/{UserInfo-BbTQ9Zat.js → UserInfo-D-AfdfJs.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D_bpYDmI.js → UserInfo.vue_vue_type_style_index_0_lang-C-JQYIxe.js} +41 -39
  41. package/dist/{childView-BJbIhjmf.js → childView--WMSo-wH.js} +1 -1
  42. package/dist/{childView-DCsGFrG-.js → childView-1MTl6Kaj.js} +1 -1
  43. package/dist/childView.vue_vue_type_style_index_0_lang-B8Losc4Y.js +170 -0
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-BCDxpVoD.js → childView.vue_vue_type_style_index_0_lang-BAVKNIXs.js} +1 -1
  45. package/dist/{code-rule-DePU6cdp.js → code-rule-D-RqrQB6.js} +42 -41
  46. package/dist/core.es.js +19 -10
  47. package/dist/{cron-task-DUM1SIGL.js → cron-task-D-X-KFZm.js} +11 -11
  48. package/dist/flow-task-B07st2aD.js +10 -0
  49. package/dist/{frameView-CEUTDtSm.js → frameView-MAW_-GHJ.js} +1 -1
  50. package/dist/index-Bc9vCX7z.js +2904 -0
  51. package/dist/{layoutView-PCjwVwkX.js → layoutView-De2QIEr2.js} +1639 -1629
  52. package/dist/{log-in-e7D5Ss1P.js → log-in-CpGqc33f.js} +5 -4
  53. package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
  54. package/dist/{login-log-CvVnyGi3.js → login-log-BNRXLeMi.js} +4 -3
  55. package/dist/login-rdZ0GPYc.js +249 -0
  56. package/dist/{lov-view-D8wwkxFJ.js → lov-view-Ao7LMspL.js} +5 -5
  57. package/dist/{menuInfo-B5JKVwrB.js → menuInfo-DmOcK6An.js} +1 -1
  58. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CcM9WX4n.js → menuInfo.vue_vue_type_style_index_0_lang-Ln-zFWV7.js} +121 -99
  59. package/dist/{pda-app-DIa1p1Ww.js → pda-app-DY63mQ2T.js} +202 -188
  60. package/dist/{resource-CCQ7Dd-5.js → resource-B21uV58T.js} +18 -18
  61. package/dist/{su-welcome-CLp9YaJa.js → su-welcome-DgjzJeDF.js} +122 -121
  62. package/dist/sys-config-DOtK2I32.js +370 -0
  63. package/dist/udp-core.css +1 -9
  64. package/dist/utogether-MlnyYtNS.js +4 -0
  65. package/index.ts +19 -6
  66. package/package.json +3 -3
  67. package/src/App.vue +65 -70
  68. package/src/api/http.ts +1 -4
  69. package/src/api/index.ts +5 -3
  70. package/src/api/user.ts +2 -2
  71. package/src/components/SuCharts/src/UserInfo.vue +3 -3
  72. package/src/components/SuScrollTree/ScrollPanel.vue +4 -9
  73. package/src/components/udp/content/index.vue +89 -0
  74. package/src/components/udp/form/form.vue +109 -0
  75. package/src/components/udp/{grid.vue → grid/index.vue} +524 -500
  76. package/src/components/udp/index.ts +4 -6
  77. package/src/components/udp/ut-stamp-badge/index.vue +272 -0
  78. package/src/components/udp/utils.ts +408 -379
  79. package/src/directives/permission/index.ts +1 -1
  80. package/src/layout/components/lay-navbar/index.vue +8 -6
  81. package/src/layout/components/lay-panel/index.vue +150 -150
  82. package/src/layout/components/lay-search/index.vue +1 -1
  83. package/src/layout/components/lay-select-org/index.vue +4 -9
  84. package/src/layout/components/lay-sidebar/horizontal.vue +8 -6
  85. package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
  86. package/src/layout/components/lay-sidebar/sidebar-logo.vue +8 -12
  87. package/src/layout/components/lay-tag/index.vue +596 -625
  88. package/src/layout/hooks/useTag.ts +12 -18
  89. package/src/layout/types.ts +3 -2
  90. package/src/main.ts +115 -110
  91. package/src/plugins/i18n/en.ts +302 -291
  92. package/src/plugins/i18n/module/u-workflow.ts +1 -1
  93. package/src/plugins/i18n/zh.ts +362 -338
  94. package/src/plugins/vxe-table/index.ts +116 -53
  95. package/src/plugins/vxe-table/render.tsx +183 -57
  96. package/src/router/index.ts +101 -97
  97. package/src/router/modules/flow.ts +35 -0
  98. package/src/router/modules/remaining.ts +1 -26
  99. package/src/router/utils.ts +50 -7
  100. package/src/store/modules/app.ts +1 -3
  101. package/src/store/modules/multiTags.ts +15 -14
  102. package/src/store/modules/permission.ts +25 -15
  103. package/src/store/modules/system.ts +1 -3
  104. package/src/style/button.scss +85 -85
  105. package/src/style/login.css +1 -1
  106. package/src/style/vxetable.scss +348 -258
  107. package/src/utils/authority/index.ts +1 -1
  108. package/src/utils/index.ts +3 -1
  109. package/src/utils/propTypes.ts +1 -6
  110. package/src/utils/{http → udp/http}/index.ts +27 -30
  111. package/src/utils/{http → udp/http}/types.d.ts +2 -6
  112. package/src/views/login/login-view.vue +6 -20
  113. package/src/views/organization/company/CompanyPanel.vue +259 -259
  114. package/src/views/organization/department/DepartmentPanel.vue +6 -20
  115. package/src/views/organization/inv-org/InvOrganization.vue +22 -7
  116. package/src/views/organization/org/Org.vue +9 -5
  117. package/src/views/system/cron/cron-task.vue +2 -12
  118. package/src/views/system/menu/SystemMenu.vue +185 -197
  119. package/src/views/system/menu/menuInfo.vue +384 -372
  120. package/src/views/system/role/AuthorityInfo.vue +19 -15
  121. package/src/views/system/role/Role.vue +1 -5
  122. package/src/views/system/role/RolePanel.vue +11 -2
  123. package/src/views/system/role/UserInfo.vue +11 -9
  124. package/src/views/system/role-assign/RoleAssign.vue +2 -2
  125. package/src/views/system/role-assign/RolePanel.vue +12 -9
  126. package/src/views/system/sys/sys-config.vue +70 -21
  127. package/src/views/system/sysUser/SysUserPanel.vue +132 -62
  128. package/src/views/uapp/pda/pda-app.vue +48 -16
  129. package/src/views/udev/coderule/code-rule.vue +132 -121
  130. package/src/views/udev/dict/DictView.vue +118 -106
  131. package/src/views/udev/dict/childView.vue +71 -111
  132. package/src/views/udev/lov/childView.vue +1 -7
  133. package/src/views/udev/lov/lov-view.vue +91 -91
  134. package/src/views/ufile/aggregation/File.vue +5 -5
  135. package/src/views/ufile/file/water-mark.vue +14 -14
  136. package/src/views/uhome/components/menu-favorite.vue +314 -331
  137. package/src/views/uhome/su-welcome.vue +3 -3
  138. package/src/views/ulogin/login.vue +19 -12
  139. package/src/views/upms/interface/log-in.vue +2 -8
  140. package/src/views/upms/interface/log-out.vue +2 -8
  141. package/src/views/upms/user/login-log.vue +2 -8
  142. package/src/views/urpt/design/DesignPanel.vue +16 -35
  143. package/src/views/urpt/design/Preview.vue +1 -0
  144. package/src/views/urpt/design/ReportDesign.vue +17 -23
  145. package/src/views/urpt/static-resource/resource.vue +3 -3
  146. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  147. package/src/views/utask/flow-task.vue +18 -0
  148. package/types/global.d.ts +4 -9
  149. package/vite.config.ts +2 -1
  150. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bwsf6lMH.js +0 -102
  151. package/dist/DictView-BnxfaOBv.js +0 -96
  152. package/dist/InvOrganization-5y79ZLdY.js +0 -66
  153. package/dist/Org-2oBAXN2r.js +0 -35
  154. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-t6S_0zmJ.js +0 -126
  155. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BW6PlGjM.js +0 -288
  156. package/dist/childView.vue_vue_type_style_index_0_lang-CDtsalCm.js +0 -187
  157. package/dist/index-ZdgOD7cF.js +0 -3399
  158. package/dist/login-B1CjWVKu.js +0 -252
  159. package/dist/sys-config-BBmf_SqF.js +0 -277
  160. package/dist/utogether-Bkptx2lB.js +0 -182
  161. package/src/components/udp/form-upload.vue +0 -183
  162. package/src/components/udp/lov.vue +0 -410
  163. package/src/components/udp/modal-form.vue +0 -180
  164. package/src/components/udp/modal-grid.vue +0 -297
  165. package/src/utils/udp/useRender.ts +0 -420
@@ -1,7 +1,7 @@
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";
1
+ import { defineComponent as k, ref as o, createVNode as u, resolveComponent as a, nextTick as w, createElementBlock as g, openBlock as s, createBlock as C, createCommentVNode as R } from "vue";
2
2
  import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
3
- import { q as b } from "./index-ZdgOD7cF.js";
4
- import { _ as D } from "./childView.vue_vue_type_style_index_0_lang-BCDxpVoD.js";
3
+ import { w as b } from "./index-Bc9vCX7z.js";
4
+ import { _ as D } from "./childView.vue_vue_type_style_index_0_lang-BAVKNIXs.js";
5
5
  import { useRender as I } from "@utogether/utils";
6
6
  const c = "/upfm/v1/lovViewHeader", B = /* @__PURE__ */ k({
7
7
  name: "LovView",
@@ -57,7 +57,7 @@ const c = "/upfm/v1/lovViewHeader", B = /* @__PURE__ */ k({
57
57
  }, null)] : null
58
58
  }
59
59
  }], n = o(!1), d = o(null), m = (e) => {
60
- g(() => {
60
+ w(() => {
61
61
  n.value = !0, d.value = e;
62
62
  });
63
63
  }, p = () => {
@@ -76,7 +76,7 @@ const c = "/upfm/v1/lovViewHeader", B = /* @__PURE__ */ k({
76
76
  };
77
77
  return (e, i) => {
78
78
  const _ = a("ut-grid");
79
- return s(), w("div", null, [u(_, {
79
+ return s(), g("div", null, [u(_, {
80
80
  ref_key: "xgrid",
81
81
  ref: t,
82
82
  items: f,
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./menuInfo.vue_vue_type_style_index_0_lang-CcM9WX4n.js";
1
+ import { _ as f } from "./menuInfo.vue_vue_type_style_index_0_lang-Ln-zFWV7.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as M, watch as Y, ref as w, resolveComponent as u, createElementBlock as I, openBlock as s, createVNode as n, withCtx as m, createBlock as i, 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 _, 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 q } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { t as N } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { templateRef as Z } from "@vueuse/core";
5
- import { e as x, q as ee } from "./index-ZdgOD7cF.js";
6
- const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */ M({
5
+ import { i as x, w as ee } from "./index-Bc9vCX7z.js";
6
+ const te = { class: "ut-menu-wrapper" }, q = "/uums/menu", re = /* @__PURE__ */ H({
7
7
  __name: "menuInfo",
8
8
  props: {
9
9
  show: { type: Boolean, default: !1 },
@@ -12,137 +12,139 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
12
12
  direction: { default: "rtl" }
13
13
  },
14
14
  emits: ["close"],
15
- setup(F, { emit: E }) {
16
- const P = x().getDataDict, g = F;
17
- Y(
15
+ setup(I, { emit: F }) {
16
+ const P = x().getDataDict, g = I;
17
+ M(
18
18
  () => g.show,
19
19
  () => {
20
- h.value = g.show && L();
20
+ h.value = g.show && D();
21
21
  }
22
22
  );
23
- const v = ee(), { t } = X(), D = {
23
+ const v = ee(), { t: a } = X(), E = {
24
24
  menuCode: [
25
25
  {
26
26
  required: !0,
27
- message: `${t("message.required")}${t("message.menuCode")}`
27
+ message: `${a("message.required")}${a("message.menuCode")}`
28
28
  }
29
29
  ],
30
30
  menuName: [
31
31
  {
32
32
  required: !0,
33
- message: `${t("message.required")}${t("message.menuName")}`
33
+ message: `${a("message.required")}${a("message.menuName")}`
34
34
  }
35
35
  ],
36
36
  menuPath: [
37
37
  {
38
38
  required: !0,
39
- message: `${t("message.required")}${t("message.menuPath")}`
39
+ message: `${a("message.required")}${a("message.menuPath")}`
40
40
  }
41
41
  ],
42
42
  frameSrc: [
43
43
  {
44
44
  required: !0,
45
- message: `${t("message.required")}${t("message.externalURI")}`
45
+ message: `${a("message.required")}${a("message.externalURI")}`
46
46
  }
47
47
  ],
48
48
  i18nField: [
49
49
  {
50
50
  required: !0,
51
- message: `${t("message.required")}${t("message.i18nField")}`
51
+ message: `${a("message.required")}${a("message.i18nField")}`
52
52
  }
53
53
  ],
54
54
  dispalyCode: [
55
55
  {
56
56
  required: !0,
57
- message: `${t("message.required")}${t("message.permissionCode")}`
57
+ message: `${a("message.required")}${a("message.permissionCode")}`
58
58
  }
59
59
  ],
60
60
  menuCategory: [
61
61
  {
62
62
  required: !0,
63
- message: `${t("message.required")}${t("message.menuType")}`
63
+ message: `${a("message.required")}${a("message.menuType")}`
64
64
  }
65
65
  ]
66
- }, T = Z("xForm", null), y = w(!1), h = w(""), C = w(["fetch"]), B = E, L = () => {
67
- const { record: e, dataStatus: l } = g, { id: o, parentId: f, hasChildren: a } = e;
68
- if (l !== "update")
69
- return !o && !f ? "su" : ((a || l === "add") && (e.dispalyCode = ""), e.permissionCode);
70
- }, A = () => {
66
+ }, T = Z("xForm", null), y = _(!1), h = _(""), b = _(["fetch"]), A = F, D = () => {
67
+ const { record: e, dataStatus: s } = g, { id: l, parentId: f, hasChildren: n } = e;
68
+ if (s !== "update")
69
+ return !l && !f ? "su" : ((n || s === "add") && (e.dispalyCode = ""), e.permissionCode);
70
+ }, B = () => {
71
71
  T.value.validate(async (e) => {
72
72
  if (!e) {
73
73
  y.value = !0;
74
- let l;
75
- const { record: o, dataStatus: f } = g;
74
+ let s;
75
+ const { record: l, dataStatus: f } = g;
76
76
  if (f === "add") {
77
- o.permissionCode = `${h.value}.${o.dispalyCode}`;
78
- const [a, $] = await q(v.post(N, [o]));
79
- if (!a && !["0", "5"].includes(o.menuCategory) && C.value.length) {
80
- const c = C.value.map((b, S) => ({
81
- permissionCode: o.permissionCode + "." + b,
82
- parentId: $[0].id,
83
- menuName: R(b),
77
+ l.permissionCode = `${h.value}.${l.dispalyCode}`;
78
+ const [n, C] = await N(v.post(q, [l]));
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($),
84
84
  menuType: 1,
85
85
  enabled: "1",
86
86
  sort: (S + 1) * 10
87
- })), [V, _] = await q(v.post(N, c));
88
- V || (l = _[0]);
87
+ })), [k, w] = await N(v.post(q, c));
88
+ k || (s = w[0]);
89
89
  }
90
90
  y.value = !1;
91
91
  } else
92
- o.permissionCode = o.dispalyCode, await q(v.put(N, [o])), y.value = !1;
93
- k("submit", l);
92
+ l.permissionCode = l.dispalyCode, await N(v.put(q, [l])), y.value = !1, s = l;
93
+ V("submit", s);
94
94
  }
95
95
  });
96
96
  }, R = (e) => ({
97
- fetch: t("message.btn.fetch"),
98
- add: t("message.btn.add"),
99
- edit: t("message.btn.edit"),
100
- del: t("message.btn.delete"),
101
- export: t("message.btn.export")
102
- })[e], z = (e) => {
103
- var l;
104
- return (l = P[e]) == null ? void 0 : l.children.map((o) => (o.enabled = o.dictCode === "0" && g.record.menuCategory !== "0", o));
97
+ fetch: a("message.btn.fetch"),
98
+ add: a("message.btn.add"),
99
+ edit: a("message.btn.edit"),
100
+ del: a("message.btn.delete"),
101
+ export: a("message.btn.export")
102
+ })[e], Y = (e) => {
103
+ var s;
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 k(e, l) {
107
- B("close", e, l);
106
+ function V(e, s) {
107
+ A("close", e, s);
108
108
  }
109
- return (e, l) => {
110
- const o = u("vxe-option"), f = u("vxe-select"), a = u("vxe-form-item"), $ = u("vxe-input"), c = u("vxe-checkbox"), V = u("vxe-checkbox-group"), _ = u("ut-icon-select"), b = u("vxe-form"), S = u("el-divider"), U = u("ut-button"), j = u("el-row"), H = u("el-drawer");
111
- return s(), I("div", te, [
112
- n(H, {
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, {
113
113
  "model-value": e.show,
114
114
  title: e.$t("message.title.memuInfo"),
115
- "before-close": k,
115
+ "before-close": V,
116
116
  direction: "rtl",
117
117
  "destroy-on-close": "",
118
118
  size: "50%"
119
119
  }, {
120
120
  default: m(() => [
121
- n(b, {
121
+ t($, {
122
122
  ref_key: "xForm",
123
123
  ref: T,
124
124
  data: e.record,
125
- rules: D,
125
+ rules: E,
126
126
  loading: y.value,
127
127
  "title-colon": "",
128
128
  "title-align": "right",
129
- "title-width": "110"
129
+ "title-width": "110",
130
+ transfer: ""
130
131
  }, {
131
132
  default: m(() => [
132
- e.record.menuType === "0" ? (s(), i(a, {
133
+ e.record.menuType === "0" ? (r(), u(n, {
133
134
  key: 0,
134
135
  title: e.$t("message.menuType"),
135
136
  field: "menuCategory",
136
137
  span: "24"
137
138
  }, {
138
- default: m(({ data: r }) => [
139
- n(f, {
140
- modelValue: r.menuCategory,
141
- "onUpdate:modelValue": (d) => r.menuCategory = d,
142
- disabled: r.menuCategory === "0"
139
+ default: m(({ data: o }) => [
140
+ t(f, {
141
+ modelValue: o.menuCategory,
142
+ "onUpdate:modelValue": (d) => o.menuCategory = d,
143
+ disabled: o.menuCategory === "0",
144
+ transfer: !1
143
145
  }, {
144
146
  default: m(() => [
145
- (s(!0), I(G, null, J(z("SU.MENU.TYPE"), (d) => (s(), i(o, {
147
+ (r(!0), L(G, null, J(Y("SU.MENU.TYPE"), (d) => (r(), u(l, {
146
148
  key: d.dictCode,
147
149
  value: d.dictCode,
148
150
  label: d.dictName,
@@ -154,15 +156,15 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
154
156
  ]),
155
157
  _: 1
156
158
  }, 8, ["title"])) : p("", !0),
157
- n(a, {
159
+ t(n, {
158
160
  title: e.$t("message.permissionCode"),
159
161
  field: "dispalyCode",
160
162
  span: "24"
161
163
  }, {
162
- default: m(({ data: r }) => [
163
- n($, {
164
- modelValue: r.dispalyCode,
165
- "onUpdate:modelValue": (d) => r.dispalyCode = d,
164
+ default: m(({ data: o }) => [
165
+ t(C, {
166
+ modelValue: o.dispalyCode,
167
+ "onUpdate:modelValue": (d) => o.dispalyCode = d,
166
168
  clearable: "",
167
169
  class: K({ "u-menu-prefix": e.dataStatus === "add" }),
168
170
  disabled: e.dataStatus !== "add"
@@ -178,76 +180,96 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
178
180
  ]),
179
181
  _: 1
180
182
  }, 8, ["title"]),
181
- !(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (s(), i(a, {
183
+ !(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (r(), u(n, {
182
184
  key: 1,
183
185
  title: e.$t("message.menuCode"),
184
186
  "item-render": { name: "$input" },
185
187
  field: "menuCode",
186
188
  span: "24"
187
189
  }, null, 8, ["title"])) : p("", !0),
188
- n(a, {
190
+ t(n, {
189
191
  title: e.$t("message.menuName"),
190
192
  "item-render": { name: "$input" },
191
193
  field: "menuName",
192
194
  span: "24"
193
195
  }, null, 8, ["title"]),
194
- n(a, {
196
+ t(n, {
195
197
  title: e.$t("message.menuNameEn"),
196
198
  field: "menuNameEn",
197
199
  span: "24",
198
200
  "item-render": { name: "$input" }
199
201
  }, null, 8, ["title"]),
200
- e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
202
+ e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
201
203
  key: 2,
202
204
  title: e.$t("message.menuPath"),
203
205
  "item-render": { name: "$input" },
204
206
  field: "menuPath",
205
207
  span: "24"
206
208
  }, null, 8, ["title"])),
207
- e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
209
+ e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
208
210
  key: 3,
209
211
  title: e.$t("message.i18nField"),
210
212
  "item-render": { name: "$input" },
211
213
  field: "i18nField",
212
214
  span: "24"
213
215
  }, null, 8, ["title"])),
214
- e.record.menuCategory === "2" ? (s(), i(a, {
216
+ e.record.menuCategory === "2" ? (r(), u(n, {
215
217
  key: 4,
216
218
  title: e.$t("message.frameSrc"),
217
219
  "item-render": { name: "$input" },
218
220
  field: "frameSrc",
219
221
  span: "24"
220
222
  }, null, 8, ["title"])) : p("", !0),
221
- e.record.menuCategory === "3" ? (s(), i(a, {
223
+ e.record.menuCategory === "3" ? (r(), u(n, {
222
224
  key: 5,
223
225
  title: e.$t("message.externalURI"),
224
226
  "item-render": { name: "$input" },
225
227
  field: "menuCode",
226
228
  span: "24"
227
229
  }, null, 8, ["title"])) : p("", !0),
228
- !(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (s(), i(a, {
230
+ !(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (r(), u(n, {
229
231
  key: 6,
230
232
  title: e.$t("message.extraIcon"),
231
233
  "item-render": { name: "$input" },
232
234
  field: "extraIcon",
233
235
  span: "24"
234
236
  }, null, 8, ["title"])) : p("", !0),
235
- ["0", "5"].includes(e.record.menuCategory) ? (s(), i(a, {
237
+ t(n, {
238
+ "visible-method": ({ data: o }) => o.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(n, {
248
+ "visible-method": ({ data: o }) => o.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(n, {
236
258
  key: 7,
237
259
  title: e.$t("message.redirect"),
238
260
  "item-render": { name: "$input" },
239
261
  field: "redirect",
240
262
  span: "24"
241
263
  }, null, 8, ["title"])) : p("", !0),
242
- e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
264
+ e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
243
265
  key: 8,
244
266
  title: e.$t("message.sort"),
245
267
  span: "24"
246
268
  }, {
247
- default: m(({ data: r }) => [
248
- n($, {
249
- modelValue: r.sort,
250
- "onUpdate:modelValue": (d) => r.sort = d,
269
+ default: m(({ data: o }) => [
270
+ t(C, {
271
+ modelValue: o.sort,
272
+ "onUpdate:modelValue": (d) => o.sort = d,
251
273
  type: "number",
252
274
  step: "10",
253
275
  clearable: ""
@@ -255,33 +277,33 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
255
277
  ]),
256
278
  _: 1
257
279
  }, 8, ["title"])),
258
- e.dataStatus === "add" && ["2", "1"].includes(e.record.menuCategory) ? (s(), i(a, {
280
+ e.dataStatus === "add" && ["2", "1"].includes(e.record.menuCategory) ? (r(), u(n, {
259
281
  key: 9,
260
282
  title: e.$t("message.btn.auth")
261
283
  }, {
262
284
  default: m(() => [
263
- n(V, {
264
- modelValue: C.value,
265
- "onUpdate:modelValue": l[0] || (l[0] = (r) => C.value = r)
285
+ t(k, {
286
+ modelValue: b.value,
287
+ "onUpdate:modelValue": s[0] || (s[0] = (o) => b.value = o)
266
288
  }, {
267
289
  default: m(() => [
268
- n(c, {
290
+ t(c, {
269
291
  label: "add",
270
292
  content: e.$t("message.btn.add")
271
293
  }, null, 8, ["content"]),
272
- n(c, {
294
+ t(c, {
273
295
  label: "del",
274
296
  content: e.$t("message.btn.delete")
275
297
  }, null, 8, ["content"]),
276
- n(c, {
298
+ t(c, {
277
299
  label: "edit",
278
300
  content: e.$t("message.btn.edit")
279
301
  }, null, 8, ["content"]),
280
- n(c, {
302
+ t(c, {
281
303
  label: "fetch",
282
304
  content: e.$t("message.btn.fetch")
283
305
  }, null, 8, ["content"]),
284
- n(c, {
306
+ t(c, {
285
307
  label: "export",
286
308
  content: e.$t("message.btn.export")
287
309
  }, null, 8, ["content"])
@@ -291,15 +313,15 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
291
313
  ]),
292
314
  _: 1
293
315
  }, 8, ["title"])) : p("", !0),
294
- e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
316
+ e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
295
317
  key: 10,
296
318
  title: e.$t("message.icon"),
297
319
  span: "24"
298
320
  }, {
299
- default: m(({ data: r }) => [
300
- n(_, {
301
- modelValue: r.icon,
302
- "onUpdate:modelValue": (d) => r.icon = d
321
+ default: m(({ data: o }) => [
322
+ t(w, {
323
+ modelValue: o.icon,
324
+ "onUpdate:modelValue": (d) => o.icon = d
303
325
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
304
326
  ]),
305
327
  _: 1
@@ -307,22 +329,22 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
307
329
  ]),
308
330
  _: 1
309
331
  }, 8, ["data", "loading"]),
310
- n(S),
311
- n(j, {
332
+ t(S),
333
+ t(z, {
312
334
  type: "flex",
313
335
  justify: "end",
314
336
  style: { "padding-right": "22px" }
315
337
  }, {
316
338
  default: m(() => [
317
- n(U, {
339
+ t(U, {
318
340
  content: "cancel",
319
341
  status: "warning",
320
- onTap: k
342
+ onTap: V
321
343
  }),
322
- n(U, {
344
+ t(U, {
323
345
  content: "confirm",
324
346
  status: "primary",
325
- onTap: A
347
+ onTap: B
326
348
  })
327
349
  ]),
328
350
  _: 1
@@ -335,5 +357,5 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
335
357
  }
336
358
  });
337
359
  export {
338
- se as _
360
+ re as _
339
361
  };