@utogether/udp-core 1.0.0 → 1.0.1-beta.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 (144) hide show
  1. package/build/plugins.ts +8 -2
  2. package/dist/{403-B1R-4vXw.js → 403-BBQoJwTM.js} +9 -8
  3. package/dist/{404-fXPl8csw.js → 404-BbJPSIWM.js} +15 -14
  4. package/dist/{500-eI5842YB.js → 500-BtFL9R4M.js} +11 -10
  5. package/dist/{AuthorityInfo-CfVH6PaB.js → AuthorityInfo-DhiwCeLN.js} +1 -1
  6. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js} +3 -3
  7. package/dist/{AuthorityPanel-BaLMwMgW.js → AuthorityPanel-BeBNiwqc.js} +1 -1
  8. package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js → AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js} +6 -6
  9. package/dist/{Company-CYC9Avfz.js → Company-CGqmslx-.js} +3 -3
  10. package/dist/{CompanyPanel-B4MzoqN_.js → CompanyPanel-hlDsxD-6.js} +10 -10
  11. package/dist/{Department-B4BNSiYx.js → Department-BZyJtacc.js} +3 -3
  12. package/dist/{DepartmentPanel-zJO89L2O.js → DepartmentPanel-D-a_EBFt.js} +23 -23
  13. package/dist/{DesignPanel-S8P0J97f.js → DesignPanel-Bl4luWDV.js} +1 -1
  14. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js → DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js} +6 -6
  15. package/dist/{DictView-bIS5-rK-.js → DictView-B4a7Hs1X.js} +9 -9
  16. package/dist/InvOrganization-q4T3y8dQ.js +260 -0
  17. package/dist/{Org-kXHSjsgJ.js → Org-BTGTrAVz.js} +3 -3
  18. package/dist/{Preview-CRyiwUIR.js → Preview-pHD84xqI.js} +1 -1
  19. package/dist/{ReportDefine-WZYIx8Sm.js → ReportDefine-DnnCNQWS.js} +1 -1
  20. package/dist/{ReportDesign-D-7GKgpb.js → ReportDesign-BnI_Q4pg.js} +10 -10
  21. package/dist/{ReportQuery-BIIJny6w.js → ReportQuery-Dby2MmtM.js} +5 -5
  22. package/dist/{ReportQueryFrom-OoUl7N2O.js → ReportQueryFrom-Blm1N8P1.js} +1 -1
  23. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js} +6 -5
  24. package/dist/{ReportTemplate-Cfeq9US-.js → ReportTemplate-D65RXRY_.js} +11 -11
  25. package/dist/{Role-BwTV2QMH.js → Role-eFZoTpXc.js} +3 -3
  26. package/dist/{RoleAssign-De1JjOun.js → RoleAssign-D9-Y3UNz.js} +3 -3
  27. package/dist/{RolePanel-pUBXsqCM.js → RolePanel-CoUOc3sX.js} +1 -1
  28. package/dist/{RolePanel-E3RcdByM.js → RolePanel-DlFw6HSf.js} +1 -1
  29. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-B2pQwHb0.js → RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js} +12 -12
  30. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CTIad9_Q.js → RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js} +4 -4
  31. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js → ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js} +8 -8
  32. package/dist/{Staff-Czm7A8vI.js → Staff-DFBLCsAd.js} +3 -3
  33. package/dist/StaffInfo-d2CK0oBA.js +4 -0
  34. package/dist/{StaffInfo.vue_vue_type_style_index_0_lang-DMTL7KCh.js → StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js} +7 -7
  35. package/dist/{StaffPanel-CHk60LEz.js → StaffPanel-D6aWLKN3.js} +1 -1
  36. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js → StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js} +46 -49
  37. package/dist/{SysUser-BGwbttRn.js → SysUser-BdZvYxQH.js} +2 -2
  38. package/dist/{SysUserPanel-BCbKoLKt.js → SysUserPanel-BIVa6LLr.js} +1 -1
  39. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-0QUjnhjF.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js} +1 -2
  40. package/dist/{SystemMenu-BkqZSDKl.js → SystemMenu-C-5VKlHK.js} +51 -49
  41. package/dist/{UserInfo-BsyAcT2d.js → UserInfo-DqXCRZts.js} +1 -1
  42. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js → UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js} +13 -13
  43. package/dist/{childView-CyuLTUqC.js → childView-B2lSsqS3.js} +1 -1
  44. package/dist/{childView-CF83nhxb.js → childView-DRUNqgjI.js} +1 -1
  45. package/dist/{childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js → childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js} +1 -1
  46. package/dist/{childView.vue_vue_type_style_index_0_lang-CNSgGda3.js → childView.vue_vue_type_style_index_0_lang-oGriyFTv.js} +6 -6
  47. package/dist/{code-rule-Bz-gnktN.js → code-rule-DZC9T6cl.js} +6 -6
  48. package/dist/core.es.js +4 -4
  49. package/dist/{cron-task-CIifSUdW.js → cron-task-BJwPeA5F.js} +11 -11
  50. package/dist/{frameView-_d2mqjjQ.js → frameView-C6wkvok-.js} +15 -14
  51. package/dist/index-DZc3qRTx.js +2650 -0
  52. package/dist/{layoutView-DLKVepB8.js → layoutView-CeJBpZb_.js} +658 -653
  53. package/dist/{login-LREiDfFU.js → login-BOxwzwdB.js} +26 -25
  54. package/dist/{lov-view-DDrIVILB.js → lov-view-DRF-99U4.js} +5 -5
  55. package/dist/{menuInfo-B1FUV-Sk.js → menuInfo-3Sjvs9nM.js} +1 -1
  56. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js → menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js} +95 -94
  57. package/dist/pda-app-B9tn7jdv.js +696 -0
  58. package/dist/redirect-BqegffKC.js +15 -0
  59. package/dist/{resource-BCwx9fEv.js → resource-BqnxbQNe.js} +7 -7
  60. package/dist/{su-welcome-189A7N4r.js → su-welcome-VwifUK_O.js} +41 -40
  61. package/dist/{sys-config-BZ3sejow.js → sys-config-C0-gSBFO.js} +18 -18
  62. package/dist/udp-core.css +2 -2
  63. package/dist/{utogether-r08LNiIZ.js → utogether-Di1byIum.js} +6 -6
  64. package/package.json +18 -16
  65. package/src/App.vue +3 -3
  66. package/src/components/udp/form-upload.vue +183 -0
  67. package/src/components/udp/index.ts +4 -0
  68. package/src/components/udp/modal-form.vue +180 -0
  69. package/src/components/udp/utils.ts +40 -0
  70. package/src/main.ts +109 -108
  71. package/src/plugins/vxe-table/index.ts +53 -46
  72. package/src/plugins/vxe-table/render.tsx +604 -184
  73. package/src/utils/udp/useRender.ts +420 -0
  74. package/src/views/organization/inv-org/InvOrganization.vue +2 -1
  75. package/src/views/organization/staff/StaffInfo.vue +0 -30
  76. package/src/views/organization/staff/StaffPanel.vue +4 -3
  77. package/src/views/system/menu/AuthorityPanel.vue +2 -2
  78. package/src/views/system/menu/SystemMenu.vue +197 -191
  79. package/src/views/system/menu/menuInfo.vue +11 -6
  80. package/src/views/system/role/AuthorityInfo.vue +1 -19
  81. package/src/views/system/sysUser/SysUserPanel.vue +1 -1
  82. package/src/views/udev/dict/DictView.vue +2 -2
  83. package/src/views/uhome/components/menu-favorite.vue +1 -1
  84. package/src/views/uhome/su-welcome.vue +1 -1
  85. package/src/views/ulogin/login.vue +1 -1
  86. package/types/global.d.ts +0 -1
  87. package/vite.config.ts +9 -2
  88. package/dist/InvOrganization-MuM2jtsG.js +0 -66
  89. package/dist/StaffInfo-DJzvBuxy.js +0 -4
  90. package/dist/core.umd.js +0 -173
  91. package/dist/index-BKIw8tSn.js +0 -9195
  92. package/dist/pda-app-CRhVGijN.js +0 -2209
  93. package/dist/redirect-DiaNDu8F.js +0 -15
  94. package/src/assets/images/empty.png +0 -0
  95. package/src/assets/images/logo.png +0 -0
  96. package/src/components/ReCountTo/README.md +0 -2
  97. package/src/components/ReCountTo/index.ts +0 -18
  98. package/src/components/ReCountTo/src/normal/index.tsx +0 -165
  99. package/src/components/ReCountTo/src/normal/props.ts +0 -37
  100. package/src/components/ReCountTo/src/rebound/index.tsx +0 -67
  101. package/src/components/ReCountTo/src/rebound/props.ts +0 -14
  102. package/src/components/ReCountTo/src/rebound/rebound.css +0 -77
  103. package/src/components/ReCropper/index.ts +0 -14
  104. package/src/components/ReCropper/src/index.tsx +0 -141
  105. package/src/components/ReFlicker/index.css +0 -39
  106. package/src/components/ReFlicker/index.ts +0 -50
  107. package/src/components/ReFlop/index.ts +0 -14
  108. package/src/components/ReFlop/src/Filpper.tsx +0 -99
  109. package/src/components/ReFlop/src/filpper.css +0 -184
  110. package/src/components/ReFlop/src/index.vue +0 -126
  111. package/src/components/ReFlowChart/index.ts +0 -24
  112. package/src/components/ReFlowChart/src/Control.vue +0 -139
  113. package/src/components/ReFlowChart/src/DataDialog.vue +0 -12
  114. package/src/components/ReFlowChart/src/NodePanel.vue +0 -151
  115. package/src/components/ReFlowChart/src/adpterForTurbo.ts +0 -160
  116. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +0 -49
  117. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
  118. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +0 -61
  119. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +0 -58
  120. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +0 -47
  121. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
  122. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
  123. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
  124. package/src/components/ReFlowChart/src/config.ts +0 -62
  125. package/src/components/ReSplitPane/index.css +0 -49
  126. package/src/components/ReSplitPane/index.tsx +0 -119
  127. package/src/components/ReSplitPane/resizer.css +0 -45
  128. package/src/components/ReSplitPane/resizer.tsx +0 -30
  129. package/src/components/SuCommon/card/components/Card.vue +0 -148
  130. package/src/components/SuCommon/card/components/DialogForm.vue +0 -127
  131. package/src/components/SuCommon/card/index.vue +0 -142
  132. package/src/components/SuCommon/icon-select/index.vue +0 -241
  133. package/src/components/SuCommon/table/index.vue +0 -208
  134. package/src/components/SuCommon/utils/index.ts +0 -103
  135. package/src/components/SuCommon/utils/slot.tsx +0 -50
  136. package/src/views/components/contextmenu/basic.vue +0 -74
  137. package/src/views/components/contextmenu/context-menu.vue +0 -40
  138. package/src/views/components/contextmenu/menuDynamic.vue +0 -99
  139. package/src/views/components/contextmenu/menuGroup.vue +0 -71
  140. package/src/views/components/count-to/index.vue +0 -43
  141. package/src/views/components/cropping/index.vue +0 -59
  142. package/src/views/components/cropping/picture.jpeg +0 -0
  143. package/src/views/components/split-pane/index.vue +0 -82
  144. package/src/views/components/video/index.vue +0 -57
@@ -1,11 +1,12 @@
1
1
  import { defineComponent as O, reactive as u, ref as x, onBeforeMount as T, resolveComponent as _, resolveDirective as Q, createElementBlock as Y, openBlock as S, normalizeStyle as $, createCommentVNode as tt, createElementVNode as s, unref as h, withDirectives as m, createTextVNode as f, toDisplayString as U, createVNode as C, withKeys as R, vModelText as E, normalizeClass as Lt, createStaticVNode as it } from "vue";
2
- import { c as at, w as st, B as w, i as k, p as ot, J as Wt, n as lt, o as A, k as et, K as Ft, _ as ct } from "./index-BKIw8tSn.js";
3
- import { useI18n as nt } from "vue-i18n";
4
- import { useFavicon as Yt } from "@vueuse/core";
5
- import { isEmpty as K, toDateString as St } from "xe-utils";
6
- import { errorMessage as mt, cookies as b, storageLocal as d, delay as pt, removeClass as I } from "@utogether/utils";
7
- import { t as G } from "./await-to-js.es5-BtRbN2QH.js";
8
- import { d as rt, b as yt, c as J } from "./utogether-r08LNiIZ.js";
2
+ import { useRouter as at } from "vue-router";
3
+ import { useI18n as st } from "vue-i18n";
4
+ import { useFavicon as ot } from "@vueuse/core";
5
+ import { isEmpty as w, toDateString as Wt } from "xe-utils";
6
+ import { errorMessage as lt, cookies as b, storageLocal as k, delay as et, removeClass as A } from "@utogether/utils";
7
+ import { t as K } from "./await-to-js.es5-BtRbN2QH.js";
8
+ import { q as Ft, x as d, e as I, n as ct, D as nt, l as Yt, m as G, k as St, E as mt, _ as pt } from "./index-DZc3qRTx.js";
9
+ import { d as rt, b as yt, c as J } from "./utogether-Di1byIum.js";
9
10
  const xt = (t) => {
10
11
  const W = t.indexOf("windows nt 5.1") > -1 || t.indexOf("windows xp") > -1;
11
12
  if (t.indexOf("windows xp") > -1, W) return "WinXP";
@@ -80,33 +81,33 @@ const xt = (t) => {
80
81
  backgroundImage: "",
81
82
  backgroundRepeat: "no-repeat",
82
83
  backgroundPosition: "center"
83
- }), p = x(0), Z = x({}), v = at(), { t: q } = nt(), M = st(), { initStorage: B } = rt(), { overallStyle: X, dataThemeChange: P } = yt();
84
+ }), p = x(0), Z = x({}), v = at(), { t: q } = st(), M = Ft(), { initStorage: B } = rt(), { overallStyle: X, dataThemeChange: P } = yt();
84
85
  B();
85
86
  const r = x(!1), V = async () => {
86
87
  const { username: a, passWord: L, verify: l } = W;
87
- if (K(a) || K(L))
88
- return mt(q("message.tip.loginFailure"));
88
+ if (w(a) || w(L))
89
+ return lt(q("message.tip.loginFailure"));
89
90
  setMaxDigits(200);
90
91
  const o = new RSAKeyPair(n.publicKeyExponent, "", n.publicKeyModulus), e = encryptedString(o, L.split("").reverse().join("")), i = {
91
92
  username: a,
92
93
  password: e,
93
94
  requestKey: n.requestKey,
94
95
  verify: l,
95
- domain: w()
96
+ domain: d()
96
97
  };
97
98
  r.value = !0;
98
- const [g, y] = await G(M.post("/uath/login", i));
99
+ const [g, y] = await K(M.post("/uath/login", i));
99
100
  if (g) {
100
101
  r.value = !1;
101
102
  return;
102
103
  }
103
- k().setSessionKey(y), D(y), b.set(ot, a), d.getItem("kLov") || Wt().then((F) => k().setDict(F)), await pt(100), Ft(), v.push("/"), H(a), r.value = !1;
104
+ I().setSessionKey(y), D(y), b.set(ct, a), k.getItem("kLov") || nt().then((F) => I().setDict(F)), await et(100), mt(), v.push("/"), H(a), r.value = !1;
104
105
  };
105
106
  function j() {
106
- W.username.length === 0 && I(document.querySelector(".user"), "focus");
107
+ W.username.length === 0 && A(document.querySelector(".user"), "focus");
107
108
  }
108
109
  function z() {
109
- W.passWord.length === 0 && I(document.querySelector(".pwd"), "focus");
110
+ W.passWord.length === 0 && A(document.querySelector(".pwd"), "focus");
110
111
  }
111
112
  const D = (a) => {
112
113
  const { access_token: L, expires_in: l, refresh_token: o } = a, e = {
@@ -114,13 +115,13 @@ const xt = (t) => {
114
115
  refreshToken: o,
115
116
  expires: Date.now() + l * 1e3
116
117
  };
117
- b.set(lt, a.access_token);
118
+ b.set(Yt, a.access_token);
118
119
  const i = JSON.stringify(e);
119
- l > 0 ? b.set(A, i) : b.set(A, i);
120
+ l > 0 ? b.set(G, i) : b.set(G, i);
120
121
  }, H = (a) => {
121
122
  const L = navigator.userAgent.toLowerCase(), { browser: l, browserVersion: o } = ht(L), e = {
122
123
  userName: a,
123
- loginTime: St(/* @__PURE__ */ new Date()),
124
+ loginTime: Wt(/* @__PURE__ */ new Date()),
124
125
  browser: l,
125
126
  browserVersion: o,
126
127
  operatingSystem: xt(L)
@@ -128,11 +129,11 @@ const xt = (t) => {
128
129
  M.post("/upms/v1/userMonitor", e);
129
130
  }, N = async () => {
130
131
  var l, o, e;
131
- const [a, L] = await G(M.get("/upfm/v1/sysConfig", {}));
132
+ const [a, L] = await K(M.get("/upfm/v1/sysConfig", {}));
132
133
  if (!a) {
133
134
  const i = {};
134
135
  (l = L.list) == null || l.forEach((F) => {
135
- i[F.configCode] = F.configValue, F.fileName && (i[F.configCode] = w() + "/ufil" + F.configValue);
136
+ i[F.configCode] = F.configValue, F.fileName && (i[F.configCode] = d() + "/ufil" + F.configValue);
136
137
  });
137
138
  const g = (e = (o = L.list) == null ? void 0 : o.find((F) => F.configCode === "title")) == null ? void 0 : e.configValue;
138
139
  i.title = g || "U-DP", Z.value = i, c.value = {
@@ -140,8 +141,8 @@ const xt = (t) => {
140
141
  backgroundRepeat: "no-repeat",
141
142
  backgroundPosition: "center"
142
143
  }, console.log("bgStyle=", c);
143
- const y = Yt();
144
- y.value = i.favicon || J, d.setItem(et, i);
144
+ const y = ot();
145
+ y.value = i.favicon || J, k.setItem(St, i);
145
146
  }
146
147
  };
147
148
  return P(X.value), T(() => {
@@ -240,12 +241,12 @@ const xt = (t) => {
240
241
  class: "!h-10",
241
242
  style: { height: "40px" }
242
243
  }, null, 8, At),
243
- L[3] || (L[3] = it('<span class="flex flex-row justify-center" style="width:300px;" data-v-1017fcb4><span style="font-size:0;text-align:center;" data-v-1017fcb4><a href="http://www.u-together.cn/" target="_blank" class="!inline-block" style="margin-bottom:-5px;font-size:17px;color:#59d8d8;" data-v-1017fcb4> 深圳友聚信息技术有限公司 </a><a href="http://www.u-together.cn/" target="_blank" class="!inline-block" style="font-size:12px;color:#d9d9d9;" data-v-1017fcb4> SHENZHEN U-TOGETHER CO. LTD </a></span><span class="flex items-center text-white" style="width:150px;font-size:10px;" data-v-1017fcb4>技术支持</span></span>', 1))
244
+ L[3] || (L[3] = it('<span class="flex flex-row justify-center" style="width:300px;" data-v-f243071a><span style="font-size:0;text-align:center;" data-v-f243071a><a href="http://www.u-together.cn/" target="_blank" class="!inline-block" style="margin-bottom:-5px;font-size:17px;color:#59d8d8;" data-v-f243071a> 深圳友聚信息技术有限公司 </a><a href="http://www.u-together.cn/" target="_blank" class="!inline-block" style="font-size:12px;color:#d9d9d9;" data-v-f243071a> SHENZHEN U-TOGETHER CO. LTD </a></span><span class="flex items-center text-white" style="width:75px;font-size:10px;" data-v-f243071a>技术支持</span></span>', 1))
244
245
  ])
245
246
  ], 4);
246
247
  };
247
248
  }
248
- }), jt = /* @__PURE__ */ ct(dt, [["__scopeId", "data-v-1017fcb4"]]);
249
+ }), zt = /* @__PURE__ */ pt(dt, [["__scopeId", "data-v-f243071a"]]);
249
250
  export {
250
- jt as default
251
+ zt as default
251
252
  };
@@ -1,7 +1,7 @@
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";
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
2
  import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
3
- import { w as b } from "./index-BKIw8tSn.js";
4
- import { _ as D } from "./childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js";
3
+ import { q as b } from "./index-DZc3qRTx.js";
4
+ import { _ as D } from "./childView.vue_vue_type_style_index_0_lang-B9XBDDU_.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
- w(() => {
60
+ g(() => {
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(), g("div", null, [u(_, {
79
+ return s(), w("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-Cnk3vdtD.js";
1
+ import { _ as f } from "./menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.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 V, resolveComponent as d, createElementBlock as N, openBlock as r, createVNode as n, withCtx as i, createBlock as u, createCommentVNode as m, Fragment as G, renderList as J, normalizeClass as K, createSlots as O, createElementVNode as Q, toDisplayString as W } from "vue";
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";
2
2
  import { useI18n as X } from "vue-i18n";
3
- import { t as _ } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { t as q } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { templateRef as Z } from "@vueuse/core";
5
- import { i as x, w as ee } from "./index-BKIw8tSn.js";
6
- const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */ M({
5
+ import { e as x, q as ee } from "./index-DZc3qRTx.js";
6
+ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */ M({
7
7
  __name: "menuInfo",
8
8
  props: {
9
9
  show: { type: Boolean, default: !1 },
@@ -11,16 +11,16 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
11
11
  dataStatus: { default: "detail" },
12
12
  direction: { default: "rtl" }
13
13
  },
14
- emits: ["onClose"],
15
- setup(T, { emit: U }) {
16
- const I = x().getDataDict, g = T;
14
+ emits: ["close"],
15
+ setup(F, { emit: E }) {
16
+ const P = x().getDataDict, g = F;
17
17
  Y(
18
18
  () => g.show,
19
19
  () => {
20
- v.value = g.show && P();
20
+ h.value = g.show && L();
21
21
  }
22
22
  );
23
- const b = ee(), { t } = X(), F = {
23
+ const v = ee(), { t } = X(), D = {
24
24
  menuCode: [
25
25
  {
26
26
  required: !0,
@@ -63,113 +63,114 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
63
63
  message: `${t("message.required")}${t("message.menuType")}`
64
64
  }
65
65
  ]
66
- }, S = Z("xForm", null), y = V(!1), v = V(""), C = V(["fetch"]), E = U, P = () => {
67
- const { record: e, dataStatus: o } = g, { id: p, parentId: f, hasChildren: a } = e;
66
+ }, T = Z("xForm", null), y = w(!1), h = w(""), $ = w(["fetch"]), B = E, L = () => {
67
+ const { record: e, dataStatus: o } = g, { id: l, parentId: f, hasChildren: a } = e;
68
68
  if (o !== "update")
69
- return !p && !f ? "su" : ((a || o === "add") && (e.dispalyCode = ""), e.permissionCode);
70
- }, B = () => {
71
- S.value.validate(async (e) => {
69
+ return !l && !f ? "su" : ((a || o === "add") && (e.dispalyCode = ""), e.permissionCode);
70
+ }, A = () => {
71
+ T.value.validate(async (e) => {
72
72
  if (!e) {
73
73
  y.value = !0;
74
- const { record: o, dataStatus: p } = g;
75
- if (p === "add") {
76
- o.permissionCode = `${v.value}.${o.dispalyCode}`;
77
- const [f, a] = await _(b.post(w, [o]));
78
- if (!f && !["0", "5"].includes(o.menuCategory) && C.value.length) {
79
- const $ = C.value.map((c, k) => ({
80
- permissionCode: o.permissionCode + "." + c,
81
- parentId: a[0].id,
82
- menuName: D(c),
74
+ let o;
75
+ const { record: l, dataStatus: f } = g;
76
+ if (f === "add") {
77
+ l.permissionCode = `${h.value}.${l.dispalyCode}`;
78
+ const [a, C] = await q(v.post(N, [l]));
79
+ if (!a && !["0", "5"].includes(l.menuCategory) && $.value.length) {
80
+ const c = $.value.map((b, S) => ({
81
+ permissionCode: l.permissionCode + "." + b,
82
+ parentId: C[0].id,
83
+ menuName: R(b),
83
84
  menuType: 1,
84
85
  enabled: "1",
85
- sort: (k + 1) * 10
86
- }));
87
- await _(b.post(w, $));
86
+ sort: (S + 1) * 10
87
+ })), [V, _] = await q(v.post(N, c));
88
+ V || (o = _[0]);
88
89
  }
89
90
  y.value = !1;
90
91
  } else
91
- await _(b.put(w, [o])), y.value = !1;
92
- h("submit");
92
+ await q(v.put(N, [l])), y.value = !1;
93
+ k("submit", o);
93
94
  }
94
95
  });
95
- }, D = (e) => ({
96
+ }, R = (e) => ({
96
97
  fetch: t("message.btn.fetch"),
97
98
  add: t("message.btn.add"),
98
99
  edit: t("message.btn.edit"),
99
100
  del: t("message.btn.delete"),
100
101
  export: t("message.btn.export")
101
- })[e], L = (e) => {
102
+ })[e], z = (e) => {
102
103
  var o;
103
- return (o = I[e]) == null ? void 0 : o.children.map((p) => (p.enabled = p.dictCode === "0" && g.record.menuCategory !== "0", p));
104
+ return (o = P[e]) == null ? void 0 : o.children.map((l) => (l.enabled = l.dictCode === "0" && g.record.menuCategory !== "0", l));
104
105
  };
105
- function h(e) {
106
- E("onClose", e);
106
+ function k(e, o) {
107
+ B("close", e, o);
107
108
  }
108
109
  return (e, o) => {
109
- const p = d("vxe-option"), f = d("vxe-select"), a = d("vxe-form-item"), $ = d("vxe-input"), c = d("vxe-checkbox"), k = d("vxe-checkbox-group"), A = d("ut-icon-select"), R = d("vxe-form"), z = d("el-divider"), q = d("ut-button"), j = d("el-row"), H = d("el-drawer");
110
- return r(), N("div", te, [
110
+ const l = u("vxe-option"), f = u("vxe-select"), a = u("vxe-form-item"), C = 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, [
111
112
  n(H, {
112
113
  "model-value": e.show,
113
114
  title: e.$t("message.title.memuInfo"),
114
- "before-close": h,
115
+ "before-close": k,
115
116
  direction: "rtl",
116
117
  "destroy-on-close": "",
117
118
  size: "50%"
118
119
  }, {
119
- default: i(() => [
120
- n(R, {
120
+ default: m(() => [
121
+ n(b, {
121
122
  ref_key: "xForm",
122
- ref: S,
123
+ ref: T,
123
124
  data: e.record,
124
- rules: F,
125
+ rules: D,
125
126
  loading: y.value,
126
127
  "title-colon": "",
127
128
  "title-align": "right",
128
129
  "title-width": "110"
129
130
  }, {
130
- default: i(() => [
131
- e.record.menuType === "0" ? (r(), u(a, {
131
+ default: m(() => [
132
+ e.record.menuType === "0" ? (s(), i(a, {
132
133
  key: 0,
133
134
  title: e.$t("message.menuType"),
134
135
  field: "menuCategory",
135
136
  span: "24"
136
137
  }, {
137
- default: i(({ data: l }) => [
138
+ default: m(({ data: r }) => [
138
139
  n(f, {
139
- modelValue: l.menuCategory,
140
- "onUpdate:modelValue": (s) => l.menuCategory = s,
141
- disabled: l.menuCategory === "0"
140
+ modelValue: r.menuCategory,
141
+ "onUpdate:modelValue": (d) => r.menuCategory = d,
142
+ disabled: r.menuCategory === "0"
142
143
  }, {
143
- default: i(() => [
144
- (r(!0), N(G, null, J(L("SU.MENU.TYPE"), (s) => (r(), u(p, {
145
- key: s.dictCode,
146
- value: s.dictCode,
147
- label: s.dictName,
148
- disabled: s.enabled
144
+ default: m(() => [
145
+ (s(!0), I(G, null, J(z("SU.MENU.TYPE"), (d) => (s(), i(l, {
146
+ key: d.dictCode,
147
+ value: d.dictCode,
148
+ label: d.dictName,
149
+ disabled: d.enabled
149
150
  }, null, 8, ["value", "label", "disabled"]))), 128))
150
151
  ]),
151
152
  _: 2
152
153
  }, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])
153
154
  ]),
154
155
  _: 1
155
- }, 8, ["title"])) : m("", !0),
156
+ }, 8, ["title"])) : p("", !0),
156
157
  n(a, {
157
158
  title: e.$t("message.permissionCode"),
158
159
  field: "dispalyCode",
159
160
  span: "24"
160
161
  }, {
161
- default: i(({ data: l }) => [
162
- n($, {
163
- modelValue: l.dispalyCode,
164
- "onUpdate:modelValue": (s) => l.dispalyCode = s,
162
+ default: m(({ data: r }) => [
163
+ n(C, {
164
+ modelValue: r.dispalyCode,
165
+ "onUpdate:modelValue": (d) => r.dispalyCode = d,
165
166
  clearable: "",
166
167
  class: K({ "u-menu-prefix": e.dataStatus === "add" }),
167
168
  disabled: e.dataStatus !== "add"
168
169
  }, O({ _: 2 }, [
169
170
  e.dataStatus === "add" ? {
170
171
  name: "prefix",
171
- fn: i(() => [
172
- Q("span", null, W(v.value), 1)
172
+ fn: m(() => [
173
+ Q("span", null, W(h.value), 1)
173
174
  ]),
174
175
  key: "0"
175
176
  } : void 0
@@ -177,13 +178,13 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
177
178
  ]),
178
179
  _: 1
179
180
  }, 8, ["title"]),
180
- !(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (r(), u(a, {
181
+ !(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (s(), i(a, {
181
182
  key: 1,
182
183
  title: e.$t("message.menuCode"),
183
184
  "item-render": { name: "$input" },
184
185
  field: "menuCode",
185
186
  span: "24"
186
- }, null, 8, ["title"])) : m("", !0),
187
+ }, null, 8, ["title"])) : p("", !0),
187
188
  n(a, {
188
189
  title: e.$t("message.menuName"),
189
190
  "item-render": { name: "$input" },
@@ -196,57 +197,57 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
196
197
  span: "24",
197
198
  "item-render": { name: "$input" }
198
199
  }, null, 8, ["title"]),
199
- e.record.menuType * 1 ? m("", !0) : (r(), u(a, {
200
+ e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
200
201
  key: 2,
201
202
  title: e.$t("message.menuPath"),
202
203
  "item-render": { name: "$input" },
203
204
  field: "menuPath",
204
205
  span: "24"
205
206
  }, null, 8, ["title"])),
206
- e.record.menuType * 1 ? m("", !0) : (r(), u(a, {
207
+ e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
207
208
  key: 3,
208
209
  title: e.$t("message.i18nField"),
209
210
  "item-render": { name: "$input" },
210
211
  field: "i18nField",
211
212
  span: "24"
212
213
  }, null, 8, ["title"])),
213
- e.record.menuCategory === "2" ? (r(), u(a, {
214
+ e.record.menuCategory === "2" ? (s(), i(a, {
214
215
  key: 4,
215
216
  title: e.$t("message.frameSrc"),
216
217
  "item-render": { name: "$input" },
217
218
  field: "frameSrc",
218
219
  span: "24"
219
- }, null, 8, ["title"])) : m("", !0),
220
- e.record.menuCategory === "3" ? (r(), u(a, {
220
+ }, null, 8, ["title"])) : p("", !0),
221
+ e.record.menuCategory === "3" ? (s(), i(a, {
221
222
  key: 5,
222
223
  title: e.$t("message.externalURI"),
223
224
  "item-render": { name: "$input" },
224
225
  field: "menuCode",
225
226
  span: "24"
226
- }, null, 8, ["title"])) : m("", !0),
227
- !(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (r(), u(a, {
227
+ }, null, 8, ["title"])) : p("", !0),
228
+ !(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (s(), i(a, {
228
229
  key: 6,
229
230
  title: e.$t("message.extraIcon"),
230
231
  "item-render": { name: "$input" },
231
232
  field: "extraIcon",
232
233
  span: "24"
233
- }, null, 8, ["title"])) : m("", !0),
234
- ["0", "5"].includes(e.record.menuCategory) ? (r(), u(a, {
234
+ }, null, 8, ["title"])) : p("", !0),
235
+ ["0", "5"].includes(e.record.menuCategory) ? (s(), i(a, {
235
236
  key: 7,
236
237
  title: e.$t("message.redirect"),
237
238
  "item-render": { name: "$input" },
238
239
  field: "redirect",
239
240
  span: "24"
240
- }, null, 8, ["title"])) : m("", !0),
241
- e.record.menuType * 1 ? m("", !0) : (r(), u(a, {
241
+ }, null, 8, ["title"])) : p("", !0),
242
+ e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
242
243
  key: 8,
243
244
  title: e.$t("message.sort"),
244
245
  span: "24"
245
246
  }, {
246
- default: i(({ data: l }) => [
247
- n($, {
248
- modelValue: l.sort,
249
- "onUpdate:modelValue": (s) => l.sort = s,
247
+ default: m(({ data: r }) => [
248
+ n(C, {
249
+ modelValue: r.sort,
250
+ "onUpdate:modelValue": (d) => r.sort = d,
250
251
  type: "number",
251
252
  step: "10",
252
253
  clearable: ""
@@ -254,16 +255,16 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
254
255
  ]),
255
256
  _: 1
256
257
  }, 8, ["title"])),
257
- e.dataStatus === "add" && ["2", "1"].includes(e.record.menuCategory) ? (r(), u(a, {
258
+ e.dataStatus === "add" && ["2", "1"].includes(e.record.menuCategory) ? (s(), i(a, {
258
259
  key: 9,
259
260
  title: e.$t("message.btn.auth")
260
261
  }, {
261
- default: i(() => [
262
- n(k, {
263
- modelValue: C.value,
264
- "onUpdate:modelValue": o[0] || (o[0] = (l) => C.value = l)
262
+ default: m(() => [
263
+ n(V, {
264
+ modelValue: $.value,
265
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => $.value = r)
265
266
  }, {
266
- default: i(() => [
267
+ default: m(() => [
267
268
  n(c, {
268
269
  label: "add",
269
270
  content: e.$t("message.btn.add")
@@ -289,16 +290,16 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
289
290
  }, 8, ["modelValue"])
290
291
  ]),
291
292
  _: 1
292
- }, 8, ["title"])) : m("", !0),
293
- e.record.menuType * 1 ? m("", !0) : (r(), u(a, {
293
+ }, 8, ["title"])) : p("", !0),
294
+ e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
294
295
  key: 10,
295
296
  title: e.$t("message.icon"),
296
297
  span: "24"
297
298
  }, {
298
- default: i(({ data: l }) => [
299
- n(A, {
300
- modelValue: l.icon,
301
- "onUpdate:modelValue": (s) => l.icon = s
299
+ default: m(({ data: r }) => [
300
+ n(_, {
301
+ modelValue: r.icon,
302
+ "onUpdate:modelValue": (d) => r.icon = d
302
303
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
303
304
  ]),
304
305
  _: 1
@@ -306,22 +307,22 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
306
307
  ]),
307
308
  _: 1
308
309
  }, 8, ["data", "loading"]),
309
- n(z),
310
+ n(S),
310
311
  n(j, {
311
312
  type: "flex",
312
313
  justify: "end",
313
314
  style: { "padding-right": "22px" }
314
315
  }, {
315
- default: i(() => [
316
- n(q, {
316
+ default: m(() => [
317
+ n(U, {
317
318
  content: "cancel",
318
319
  status: "warning",
319
- onTap: h
320
+ onTap: k
320
321
  }),
321
- n(q, {
322
+ n(U, {
322
323
  content: "confirm",
323
324
  status: "primary",
324
- onTap: B
325
+ onTap: A
325
326
  })
326
327
  ]),
327
328
  _: 1