@utogether/udp-core 1.0.1-beta.9 → 1.0.2

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 (168) hide show
  1. package/build/plugins.ts +37 -39
  2. package/dist/{403-BOzKHdlm.js → 403-B1rIjAAu.js} +6 -6
  3. package/dist/{404-uwgt4Nll.js → 404-mBqc2y4t.js} +4 -4
  4. package/dist/{500-4HBf6V9m.js → 500-BoI45Zdh.js} +2 -2
  5. package/dist/{AuthorityInfo-DvbIh1vT.js → AuthorityInfo-B08NBIIn.js} +1 -1
  6. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-BlCPvwXU.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js} +3 -3
  7. package/dist/{Company-D7Q9BFmr.js → Company-JGGyWEWH.js} +3 -3
  8. package/dist/{CompanyPanel-C0-PJlrt.js → CompanyPanel-BQ_cCmDx.js} +7 -7
  9. package/dist/{Department-h2hlXACv.js → Department-z2iO6hwM.js} +10 -10
  10. package/dist/{DepartmentPanel-B6hDEQpG.js → DepartmentPanel-BtQe7zwU.js} +108 -78
  11. package/dist/{DesignPanel-cS58-1v9.js → DesignPanel-7mhtVWas.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-LdvLC8VU.js → DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js} +6 -6
  13. package/dist/{DictView-T3TmpBa8.js → DictView-CjchV2Yk.js} +15 -16
  14. package/dist/InvOrganization-Pn1O_XP0.js +74 -0
  15. package/dist/{Org-CnCBDGKF.js → Org-BqytV_vi.js} +1 -1
  16. package/dist/{Preview-BaktKXB1.js → Preview-CLpUUMay.js} +2 -2
  17. package/dist/{ReportDefine-5Rb0PO9A.js → ReportDefine-Cz1KtEUF.js} +1 -1
  18. package/dist/{ReportDesign-DYdkVREA.js → ReportDesign-BaORYud4.js} +13 -13
  19. package/dist/{ReportQuery-BwhzIXMt.js → ReportQuery-CPCPXiXz.js} +1 -1
  20. package/dist/{ReportQueryFrom-PHtWwlOe.js → ReportQueryFrom-C_AcrfkJ.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-BE5yZNPM.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Bm67ejay.js} +1 -1
  22. package/dist/{ReportTemplate-DaadVXIi.js → ReportTemplate-CFiNMz79.js} +11 -11
  23. package/dist/{Role-Dtg3nAmG.js → Role-B-XDoJd5.js} +3 -3
  24. package/dist/{RoleAssign-DEGtLssH.js → RoleAssign-BolW8YVs.js} +8 -8
  25. package/dist/{RolePanel-DpUzfE_o.js → RolePanel-2kfs5tw9.js} +1 -1
  26. package/dist/{RolePanel-CT7BTPmy.js → RolePanel-HilSuYns.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Xyo0YEI0.js → RolePanel.vue_vue_type_script_setup_true_lang-CE4gApUY.js} +7 -7
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Dg2A6DJu.js → RolePanel.vue_vue_type_script_setup_true_lang-DPzgfAyV.js} +13 -13
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CyutzDZS.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js} +4 -4
  30. package/dist/{Staff-_NlAGkrh.js → Staff-BTk3whFC.js} +3 -3
  31. package/dist/{StaffInfo-DVgUvVgd.js → StaffInfo-d3AuSzlA.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-C8hmlFgX.js → StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js} +5 -5
  33. package/dist/{StaffPanel-DKNZE3IE.js → StaffPanel-DV-D4jjz.js} +1 -1
  34. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js +135 -0
  35. package/dist/{SysUser-kQUf7XKz.js → SysUser-BnjYytws.js} +2 -2
  36. package/dist/{SysUserPanel-C191uX3U.js → SysUserPanel-CBoyD-Qi.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js +341 -0
  38. package/dist/{SystemMenu-DwuSvHnj.js → SystemMenu-kYB_ZaUt.js} +36 -36
  39. package/dist/{UserInfo-DIsInFld.js → UserInfo-4dx97VBL.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CnvGdbej.js → UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js} +10 -10
  41. package/dist/{childView-3Bs2UBEw.js → childView-CHPNfTEb.js} +1 -1
  42. package/dist/{childView-BawyULD7.js → childView-CKA_JgVZ.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-YpWF-p2F.js → childView.vue_vue_type_style_index_0_lang-Bym2fQRd.js} +7 -7
  44. package/dist/childView.vue_vue_type_style_index_0_lang-W7bCtXeu.js +177 -0
  45. package/dist/{code-rule-DVaYcn8S.js → code-rule-CbxuZg0-.js} +40 -38
  46. package/dist/core.es.js +18 -12
  47. package/dist/{cron-task-xuzP-BpE.js → cron-task-nTOpqQYf.js} +7 -7
  48. package/dist/flow-task-B07st2aD.js +10 -0
  49. package/dist/{frameView-Cudt06qS.js → frameView-Z1tPUyCh.js} +1 -1
  50. package/dist/index-C3q8HoJM.js +4650 -0
  51. package/dist/{layoutView-BlFTV2jX.js → layoutView--MGA9zUB.js} +1766 -1760
  52. package/dist/{log-in-e7D5Ss1P.js → log-in-CSYJDA6m.js} +36 -29
  53. package/dist/log-out-DiwGCg7p.js +130 -0
  54. package/dist/login-C6Y0ajDp.js +251 -0
  55. package/dist/{login-log-kqKzKTto.js → login-log-C0V-_l3F.js} +5 -3
  56. package/dist/{lov-view-B2HaxyMs.js → lov-view-Cmv7wZZ9.js} +6 -6
  57. package/dist/{menuInfo-BxCTJ1VW.js → menuInfo-UeutJpOa.js} +1 -1
  58. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CLOPNeUW.js → menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js} +118 -98
  59. package/dist/{pda-app-DPsAFNiw.js → pda-app-B6w99SJo.js} +10 -10
  60. package/dist/{resource-Dibb7t8u.js → resource-BybJvUv0.js} +4 -4
  61. package/dist/{su-welcome-DejR0KkM.js → su-welcome-C1bmxHoY.js} +119 -121
  62. package/dist/sys-config-BnmIDnCj.js +370 -0
  63. package/dist/udp-core.css +1 -9
  64. package/dist/utogether-MlnyYtNS.js +4 -0
  65. package/index.ts +49 -40
  66. package/package.json +18 -18
  67. package/src/App.vue +65 -65
  68. package/src/api/http.ts +1 -4
  69. package/src/api/index.ts +4 -2
  70. package/src/api/user.ts +2 -2
  71. package/src/components/SuCharts/src/UserInfo.vue +78 -78
  72. package/src/components/SuScrollTree/ScrollPanel.vue +1 -6
  73. package/src/components/udp/content/index.vue +88 -0
  74. package/src/components/udp/{form.vue → form/form.vue} +13 -16
  75. package/src/components/udp/{grid.vue → grid/index.vue} +56 -27
  76. package/src/components/udp/index.ts +4 -9
  77. package/src/components/udp/ut-stamp-badge/index.vue +271 -0
  78. package/src/components/udp/utils.ts +66 -105
  79. package/src/layout/components/lay-navbar/index.vue +8 -6
  80. package/src/layout/components/lay-panel/index.vue +150 -150
  81. package/src/layout/components/lay-search/index.vue +25 -25
  82. package/src/layout/components/lay-select-org/index.vue +4 -9
  83. package/src/layout/components/lay-setting/index.vue +503 -510
  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 +101 -98
  87. package/src/layout/components/lay-tag/index.vue +24 -51
  88. package/src/layout/hooks/useDataThemeChange.ts +1 -1
  89. package/src/layout/hooks/useNav.ts +176 -173
  90. package/src/layout/hooks/useTag.ts +227 -233
  91. package/src/layout/types.ts +93 -92
  92. package/src/main.ts +115 -119
  93. package/src/plugins/i18n/en.ts +302 -302
  94. package/src/plugins/i18n/module/u-workflow.ts +1 -1
  95. package/src/plugins/i18n/zh.ts +21 -6
  96. package/src/plugins/vxe-table/index.ts +116 -53
  97. package/src/plugins/vxe-table/render.tsx +945 -956
  98. package/src/router/index.ts +17 -17
  99. package/src/router/modules/flow.ts +35 -0
  100. package/src/router/modules/home.ts +32 -32
  101. package/src/router/modules/remaining.ts +58 -58
  102. package/src/router/utils.ts +420 -377
  103. package/src/store/modules/app.ts +2 -4
  104. package/src/store/modules/epTheme.ts +48 -49
  105. package/src/store/modules/multiTags.ts +15 -14
  106. package/src/store/modules/permission.ts +25 -15
  107. package/src/store/modules/system.ts +1 -3
  108. package/src/style/button.scss +85 -85
  109. package/src/style/login.css +1 -1
  110. package/src/style/vxetable.scss +61 -2
  111. package/src/utils/dataFormat/index.ts +223 -223
  112. package/src/utils/index.ts +3 -1
  113. package/src/utils/lifecycle.ts +39 -20
  114. package/src/utils/propTypes.ts +1 -6
  115. package/src/utils/storage/index.ts +2 -2
  116. package/src/utils/udp/http/index.ts +24 -11
  117. package/src/utils/udp/http/types.d.ts +3 -10
  118. package/src/views/login/login-view.vue +4 -18
  119. package/src/views/organization/company/CompanyPanel.vue +259 -259
  120. package/src/views/organization/department/Department.vue +58 -58
  121. package/src/views/organization/department/DepartmentPanel.vue +303 -283
  122. package/src/views/organization/inv-org/InvOrganization.vue +22 -7
  123. package/src/views/organization/staff/StaffInfo.vue +127 -133
  124. package/src/views/organization/staff/StaffPanel.vue +162 -145
  125. package/src/views/system/cron/cron-task.vue +2 -12
  126. package/src/views/system/menu/SystemMenu.vue +185 -183
  127. package/src/views/system/menu/menuInfo.vue +384 -363
  128. package/src/views/system/role/UserInfo.vue +195 -195
  129. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  130. package/src/views/system/role-assign/RolePanel.vue +139 -139
  131. package/src/views/system/sys/sys-config.vue +69 -20
  132. package/src/views/system/sysUser/SysUserPanel.vue +97 -28
  133. package/src/views/uapp/pda/pda-app.vue +208 -208
  134. package/src/views/udev/coderule/code-rule.vue +132 -121
  135. package/src/views/udev/dict/DictView.vue +2 -2
  136. package/src/views/udev/dict/childView.vue +183 -222
  137. package/src/views/udev/lov/childView.vue +1 -7
  138. package/src/views/udev/lov/lov-view.vue +91 -91
  139. package/src/views/uhome/components/menu-favorite.vue +314 -331
  140. package/src/views/uhome/su-welcome.vue +319 -339
  141. package/src/views/ulogin/login.vue +325 -321
  142. package/src/views/upms/interface/log-in.vue +100 -106
  143. package/src/views/upms/interface/log-out.vue +104 -107
  144. package/src/views/upms/user/login-log.vue +54 -60
  145. package/src/views/urpt/design/DesignPanel.vue +507 -507
  146. package/src/views/urpt/design/Preview.vue +1 -0
  147. package/src/views/urpt/design/ReportDesign.vue +2 -4
  148. package/src/views/utask/flow-task.vue +18 -0
  149. package/types/global.d.ts +231 -236
  150. package/dist/InvOrganization-BVuOhzbt.js +0 -66
  151. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-BOOO6Cek.js +0 -111
  152. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-SwNbAEvW.js +0 -294
  153. package/dist/childView.vue_vue_type_style_index_0_lang-DWIFCX3X.js +0 -187
  154. package/dist/index-CKnq5xIa.js +0 -2623
  155. package/dist/log-out--RRncZhN.js +0 -120
  156. package/dist/login-CpKykfdf.js +0 -253
  157. package/dist/sys-config-DiySRWns.js +0 -277
  158. package/dist/utogether-Dct_14Zk.js +0 -182
  159. package/src/components/udp/count-down.vue +0 -536
  160. package/src/components/udp/flip-down/FlipCard/flip-card.vue +0 -251
  161. package/src/components/udp/flip-down/FlipCard/interfaces.ts +0 -4
  162. package/src/components/udp/flip-down/FlipClock/flip-clock.vue +0 -113
  163. package/src/components/udp/form-upload.vue +0 -482
  164. package/src/components/udp/lov.vue +0 -388
  165. package/src/components/udp/modal-form.vue +0 -189
  166. package/src/components/udp/modal-grid.vue +0 -288
  167. package/src/components/udp/upload.vue +0 -423
  168. package/src/utils/udp/useRender.ts +0 -431
@@ -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-CKnq5xIa.js";
6
- const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */ M({
5
+ import { i as x, y as ee } from "./index-C3q8HoJM.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,117 +12,117 @@ 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, l = o;
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",
@@ -130,21 +130,21 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
130
130
  transfer: ""
131
131
  }, {
132
132
  default: m(() => [
133
- e.record.menuType === "0" ? (s(), i(a, {
133
+ e.record.menuType === "0" ? (r(), u(n, {
134
134
  key: 0,
135
135
  title: e.$t("message.menuType"),
136
136
  field: "menuCategory",
137
137
  span: "24"
138
138
  }, {
139
- default: m(({ data: r }) => [
140
- n(f, {
141
- modelValue: r.menuCategory,
142
- "onUpdate:modelValue": (d) => r.menuCategory = d,
143
- 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
144
  transfer: !1
145
145
  }, {
146
146
  default: m(() => [
147
- (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, {
148
148
  key: d.dictCode,
149
149
  value: d.dictCode,
150
150
  label: d.dictName,
@@ -156,15 +156,15 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
156
156
  ]),
157
157
  _: 1
158
158
  }, 8, ["title"])) : p("", !0),
159
- n(a, {
159
+ t(n, {
160
160
  title: e.$t("message.permissionCode"),
161
161
  field: "dispalyCode",
162
162
  span: "24"
163
163
  }, {
164
- default: m(({ data: r }) => [
165
- n($, {
166
- modelValue: r.dispalyCode,
167
- "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,
168
168
  clearable: "",
169
169
  class: K({ "u-menu-prefix": e.dataStatus === "add" }),
170
170
  disabled: e.dataStatus !== "add"
@@ -180,76 +180,96 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
180
180
  ]),
181
181
  _: 1
182
182
  }, 8, ["title"]),
183
- !(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (s(), i(a, {
183
+ !(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (r(), u(n, {
184
184
  key: 1,
185
185
  title: e.$t("message.menuCode"),
186
186
  "item-render": { name: "$input" },
187
187
  field: "menuCode",
188
188
  span: "24"
189
189
  }, null, 8, ["title"])) : p("", !0),
190
- n(a, {
190
+ t(n, {
191
191
  title: e.$t("message.menuName"),
192
192
  "item-render": { name: "$input" },
193
193
  field: "menuName",
194
194
  span: "24"
195
195
  }, null, 8, ["title"]),
196
- n(a, {
196
+ t(n, {
197
197
  title: e.$t("message.menuNameEn"),
198
198
  field: "menuNameEn",
199
199
  span: "24",
200
200
  "item-render": { name: "$input" }
201
201
  }, null, 8, ["title"]),
202
- e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
202
+ e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
203
203
  key: 2,
204
204
  title: e.$t("message.menuPath"),
205
205
  "item-render": { name: "$input" },
206
206
  field: "menuPath",
207
207
  span: "24"
208
208
  }, null, 8, ["title"])),
209
- e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
209
+ e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
210
210
  key: 3,
211
211
  title: e.$t("message.i18nField"),
212
212
  "item-render": { name: "$input" },
213
213
  field: "i18nField",
214
214
  span: "24"
215
215
  }, null, 8, ["title"])),
216
- e.record.menuCategory === "2" ? (s(), i(a, {
216
+ e.record.menuCategory === "2" ? (r(), u(n, {
217
217
  key: 4,
218
218
  title: e.$t("message.frameSrc"),
219
219
  "item-render": { name: "$input" },
220
220
  field: "frameSrc",
221
221
  span: "24"
222
222
  }, null, 8, ["title"])) : p("", !0),
223
- e.record.menuCategory === "3" ? (s(), i(a, {
223
+ e.record.menuCategory === "3" ? (r(), u(n, {
224
224
  key: 5,
225
225
  title: e.$t("message.externalURI"),
226
226
  "item-render": { name: "$input" },
227
227
  field: "menuCode",
228
228
  span: "24"
229
229
  }, null, 8, ["title"])) : p("", !0),
230
- !(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (s(), i(a, {
230
+ !(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (r(), u(n, {
231
231
  key: 6,
232
232
  title: e.$t("message.extraIcon"),
233
233
  "item-render": { name: "$input" },
234
234
  field: "extraIcon",
235
235
  span: "24"
236
236
  }, null, 8, ["title"])) : p("", !0),
237
- ["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, {
238
258
  key: 7,
239
259
  title: e.$t("message.redirect"),
240
260
  "item-render": { name: "$input" },
241
261
  field: "redirect",
242
262
  span: "24"
243
263
  }, null, 8, ["title"])) : p("", !0),
244
- e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
264
+ e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
245
265
  key: 8,
246
266
  title: e.$t("message.sort"),
247
267
  span: "24"
248
268
  }, {
249
- default: m(({ data: r }) => [
250
- n($, {
251
- modelValue: r.sort,
252
- "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,
253
273
  type: "number",
254
274
  step: "10",
255
275
  clearable: ""
@@ -257,33 +277,33 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
257
277
  ]),
258
278
  _: 1
259
279
  }, 8, ["title"])),
260
- 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, {
261
281
  key: 9,
262
282
  title: e.$t("message.btn.auth")
263
283
  }, {
264
284
  default: m(() => [
265
- n(V, {
266
- modelValue: C.value,
267
- "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)
268
288
  }, {
269
289
  default: m(() => [
270
- n(c, {
290
+ t(c, {
271
291
  label: "add",
272
292
  content: e.$t("message.btn.add")
273
293
  }, null, 8, ["content"]),
274
- n(c, {
294
+ t(c, {
275
295
  label: "del",
276
296
  content: e.$t("message.btn.delete")
277
297
  }, null, 8, ["content"]),
278
- n(c, {
298
+ t(c, {
279
299
  label: "edit",
280
300
  content: e.$t("message.btn.edit")
281
301
  }, null, 8, ["content"]),
282
- n(c, {
302
+ t(c, {
283
303
  label: "fetch",
284
304
  content: e.$t("message.btn.fetch")
285
305
  }, null, 8, ["content"]),
286
- n(c, {
306
+ t(c, {
287
307
  label: "export",
288
308
  content: e.$t("message.btn.export")
289
309
  }, null, 8, ["content"])
@@ -293,15 +313,15 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
293
313
  ]),
294
314
  _: 1
295
315
  }, 8, ["title"])) : p("", !0),
296
- e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
316
+ e.record.menuType * 1 ? p("", !0) : (r(), u(n, {
297
317
  key: 10,
298
318
  title: e.$t("message.icon"),
299
319
  span: "24"
300
320
  }, {
301
- default: m(({ data: r }) => [
302
- n(_, {
303
- modelValue: r.icon,
304
- "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
305
325
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
306
326
  ]),
307
327
  _: 1
@@ -309,22 +329,22 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
309
329
  ]),
310
330
  _: 1
311
331
  }, 8, ["data", "loading"]),
312
- n(S),
313
- n(j, {
332
+ t(S),
333
+ t(z, {
314
334
  type: "flex",
315
335
  justify: "end",
316
336
  style: { "padding-right": "22px" }
317
337
  }, {
318
338
  default: m(() => [
319
- n(U, {
339
+ t(U, {
320
340
  content: "cancel",
321
341
  status: "warning",
322
- onTap: k
342
+ onTap: V
323
343
  }),
324
- n(U, {
344
+ t(U, {
325
345
  content: "confirm",
326
346
  status: "primary",
327
- onTap: A
347
+ onTap: B
328
348
  })
329
349
  ]),
330
350
  _: 1
@@ -337,5 +357,5 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
337
357
  }
338
358
  });
339
359
  export {
340
- se as _
360
+ re as _
341
361
  };
@@ -1,7 +1,7 @@
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";
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";
2
2
  import { useI18n as je } from "vue-i18n";
3
3
  import { t as Ce } from "./await-to-js.es5-BtRbN2QH.js";
4
- import { I as Se, x as xe, q as $e, _ as Pe } from "./index-CKnq5xIa.js";
4
+ import { I as Se, G as xe, y as $e, _ as Pe } from "./index-C3q8HoJM.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 Ke(e) {
260
+ function Ge(e) {
261
261
  return b("instanceOf", {
262
262
  type: e
263
263
  });
264
264
  }
265
- function Ge(e) {
265
+ function Ke(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", Ke), h(e, "oneOfType", He), h(e, "arrayOf", Xe), h(e, "objectOf", Ge), 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", Ge), h(e, "oneOfType", He), h(e, "arrayOf", Xe), h(e, "objectOf", Ke), 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 = G(() => String(e.text)), d = G(() => ({
448
+ } = Ne, o = N(!0), a = N(null), s = K(() => String(e.text)), d = K(() => ({
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 K = v.createPattern(q, "no-repeat");
507
- K && (v.fillStyle = K, v.fill());
506
+ const G = v.createPattern(q, "no-repeat");
507
+ G && (v.fillStyle = G, v.fill());
508
508
  };
509
509
  return new Promise((A) => {
510
510
  V.onload = () => {
@@ -583,7 +583,7 @@ const at = {
583
583
  width: 90,
584
584
  formatter: ({
585
585
  row: i
586
- }) => i.enabled === "1" ? n("message.appupper") : n("message.applower")
586
+ }) => i.enabled === "1" ? n("message.udp.appupper") : n("message.udp.applower")
587
587
  }, {
588
588
  field: "creationDate",
589
589
  width: 140
@@ -704,7 +704,7 @@ const at = {
704
704
  }, null, 8, ["record", "title"])) : we("", !0)]);
705
705
  };
706
706
  }
707
- }), ht = /* @__PURE__ */ Pe(lt, [["__scopeId", "data-v-47cd6243"]]);
707
+ }), ht = /* @__PURE__ */ Pe(lt, [["__scopeId", "data-v-4c7392db"]]);
708
708
  export {
709
709
  ht as default
710
710
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as w, ref as o, resolveComponent as r, createElementBlock as k, openBlock as i, createVNode as l, createBlock as x, createCommentVNode as b, Fragment as U } from "vue";
1
+ import { defineComponent as w, ref as o, resolveComponent as r, createElementBlock as k, openBlock as i, createVNode as l, createBlock as b, createCommentVNode as x, Fragment as U } from "vue";
2
2
  import { successMessage as B } from "@utogether/utils";
3
3
  import { useClipboard as N } from "@vueuse/core";
4
- import { x as y } from "./index-CKnq5xIa.js";
4
+ import { G as y } from "./index-C3q8HoJM.js";
5
5
  const q = {
6
6
  name: "StaticResource"
7
7
  }, V = /* @__PURE__ */ w({
@@ -77,7 +77,7 @@ const q = {
77
77
  editable: !1,
78
78
  mode: "form",
79
79
  events: p
80
- }, null, 512), t.value ? (i(), x(C, {
80
+ }, null, 512), t.value ? (i(), b(C, {
81
81
  key: 0,
82
82
  record: a.value,
83
83
  items: f,
@@ -88,7 +88,7 @@ const q = {
88
88
  url: n,
89
89
  onClose: u[0] || (u[0] = (R) => t.value = !1),
90
90
  onConfirm: h
91
- }, null, 8, ["record"])) : b("", !0)]);
91
+ }, null, 8, ["record"])) : x("", !0)]);
92
92
  };
93
93
  }
94
94
  });