@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,11 +1,14 @@
1
- import { defineComponent as J, ref as y, onMounted as K, resolveComponent as _, createBlock as N, openBlock as a, withCtx as i, createElementVNode as e, createVNode as c, createCommentVNode as O, unref as B, normalizeStyle as Q, toDisplayString as f, createElementBlock as p, Fragment as k, renderList as C, nextTick as X, computed as Z, resolveDirective as ee, createTextVNode as Y, withDirectives as te, normalizeClass as se } from "vue";
2
- import { useRouter as ne } from "vue-router";
3
- import oe from "dayjs";
4
- import { dbstorage as le, delay as ae, warnMessage as ie, successMessage as ce, lunarCalendar as re, cookies as ue } from "@utogether/utils";
5
- import { q as G, e as de, n as me, _ as fe } from "./index-CKnq5xIa.js";
6
- import { clone as _e, max as ve } from "xe-utils";
7
- import pe from "vuedraggable";
8
- const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye = { class: "h-24 w-24 flex justify-center items-center flex-col relative drag-item ut-menu-top-item" }, be = { class: "w-[90%] text-xs mt-2 text-ellipsis overflow-hidden whitespace-nowrap text-center" }, we = ["onClick"], ke = { class: "p-3" }, Ce = { class: "flex items-center" }, Ne = { class: "ml-1 font-bold text-base" }, $e = { class: "pl-3 py-2" }, Ie = { class: "flex items-center" }, Ve = { class: "ml-1 font-bold text-sm" }, Me = { class: "pl-3 py-2" }, Se = { class: "flex items-center" }, Ue = { class: "ml-1 font-bold text-sm" }, je = { class: "py-2" }, qe = { class: "flex justify-end" }, De = "/upfm/v1/menuFavority", Ee = /* @__PURE__ */ J({
1
+ import { defineComponent as J, ref as y, onMounted as K, resolveComponent as p, createBlock as N, openBlock as a, withCtx as i, createElementVNode as e, createVNode as c, createCommentVNode as O, unref as B, normalizeStyle as Q, toDisplayString as f, createElementBlock as v, Fragment as k, renderList as C, nextTick as X, computed as Z, resolveDirective as ee, createTextVNode as Y, withDirectives as te, normalizeClass as se } from "vue";
2
+ import { useRouter as oe } from "vue-router";
3
+ import ne from "dayjs";
4
+ import { dbstorage as le, delay as ae, warnMessage as ie, successMessage as ce, lunarCalendar as re, cookies as de } from "@utogether/utils";
5
+ import { y as W, i as ue, p as me, _ as fe } from "./index-C3q8HoJM.js";
6
+ import { clone as pe, max as _e } from "xe-utils";
7
+ import ve from "vuedraggable";
8
+ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye = { class: "h-24 w-24 flex justify-center items-center flex-col relative drag-item ut-menu-top-item" }, be = { class: "w-[90%] text-xs mt-2 text-ellipsis overflow-hidden whitespace-nowrap text-center" }, we = ["onClick"], ke = {
9
+ class: "p-3 pb-14",
10
+ style: { "padding-bottom": "54px" }
11
+ }, Ce = { class: "flex items-center" }, Ne = { class: "ml-1 font-bold text-base" }, $e = { class: "pl-3 py-2" }, Ie = { class: "flex items-center" }, Ve = { class: "ml-1 font-bold text-sm" }, Me = { class: "pl-3 py-2" }, Se = { class: "flex items-center" }, Ue = { class: "ml-1 font-bold text-sm" }, je = { class: "py-2" }, De = { class: "flex justify-end" }, Ee = "/upfm/v1/menuFavority", Le = /* @__PURE__ */ J({
9
12
  __name: "menu-favorite",
10
13
  props: {
11
14
  dataSource: { default: () => [] },
@@ -13,61 +16,60 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
13
16
  userName: { default: "" }
14
17
  },
15
18
  emits: ["close", "success"],
16
- setup(P, { emit: h }) {
17
- const j = P, u = y([]), $ = y([]), b = y(!1), I = y(!1), r = y({}), E = async () => {
18
- $.value = await le.getItem(`U-${j.userName}-ROUTES`), $.value = $.value.filter((n) => n.menuCode !== "SysHome"), await ae(64), A();
19
- }, R = (n, s) => {
20
- var o;
21
- u.value.splice(s, 1);
22
- const t = (o = r.value[n.parentId]) == null ? void 0 : o.findIndex((v) => v === n.menuId);
23
- r.value[n.parentId].splice(t, 1);
24
- }, V = (n) => {
19
+ setup(G, { emit: h }) {
20
+ const j = G, d = y([]), $ = y([]), b = y(!1), I = y(!1), r = y({}), L = async () => {
21
+ $.value = await le.getItem(`U-${j.userName}-ROUTES`), $.value = $.value.filter((o) => o.menuCode !== "SysHome"), await ae(64), A();
22
+ }, R = (o, s) => {
23
+ var n;
24
+ d.value.splice(s, 1);
25
+ const t = (n = r.value[o.parentId]) == null ? void 0 : n.findIndex((_) => _ === o.menuId);
26
+ r.value[o.parentId].splice(t, 1);
27
+ }, V = (o) => {
25
28
  const s = [], t = [];
26
- return n.children.forEach((o) => {
27
- ["5", "100"].includes(o.menuCategory) ? s.push(o) : t.push(o);
29
+ return o.children.forEach((n) => {
30
+ ["5", "100"].includes(n.menuCategory) ? s.push(n) : t.push(n);
28
31
  }), { folder: s, menus: t };
29
32
  }, A = () => {
30
- j.dataSource.forEach((n) => {
31
- r.value[n.parentId] ? r.value[n.parentId].push(n.menuId) : r.value[n.parentId] = [n.menuId];
33
+ j.dataSource.forEach((o) => {
34
+ r.value[o.parentId] ? r.value[o.parentId].push(o.menuId) : r.value[o.parentId] = [o.menuId];
32
35
  });
33
- }, q = (n, s) => {
34
- debugger;
36
+ }, D = (o, s) => {
35
37
  if (s.checked) {
36
- if (u.value.length === 16)
38
+ if (d.value.length === 16)
37
39
  return X(() => {
38
- r.value[n.id].splice(r.value[n.id].length - 1, 1);
40
+ r.value[o.id].splice(r.value[o.id].length - 1, 1);
39
41
  }), ie("最多只能选择16个常用功能");
40
- const t = n.children.find((o) => o.id === s.label);
41
- t && (t.seqNo = H() + 10, t.menuId = t.id, u.value.push(t));
42
+ const t = o.children.find((n) => n.id === s.label);
43
+ t && (t.seqNo = H() + 10, t.menuId = t.id, d.value.push(t));
42
44
  } else {
43
- let t = u.value.findIndex((o) => o.menuId === s.label);
44
- t !== -1 && u.value.splice(t, 1), t = r.value[n.id].findIndex((o) => o === s.label), t !== -1 && r.value[n.id].splice(t, 1);
45
+ let t = d.value.findIndex((n) => n.menuId === s.label);
46
+ t !== -1 && d.value.splice(t, 1), t = r.value[o.id].findIndex((n) => n === s.label), t !== -1 && r.value[o.id].splice(t, 1);
45
47
  }
46
48
  }, F = () => {
47
- u.value.forEach((n, s) => {
48
- n.seqNo = (s + 1) * 10;
49
+ d.value.forEach((o, s) => {
50
+ o.seqNo = (s + 1) * 10;
49
51
  });
50
52
  }, H = () => {
51
- var n;
52
- return ((n = ve(u.value, (s) => s.seqNo)) == null ? void 0 : n.seqNo) || 0;
53
+ var o;
54
+ return ((o = _e(d.value, (s) => s.seqNo)) == null ? void 0 : o.seqNo) || 0;
53
55
  }, T = () => {
54
- const n = u.value.map((s) => ({
56
+ const o = d.value.map((s) => ({
55
57
  userName: j.userName,
56
58
  menuId: s.menuId,
57
59
  seqNo: s.seqNo
58
60
  }));
59
- I.value = !0, G().post(De, n).then(() => {
60
- ce(), D(), z("success");
61
+ I.value = !0, W().post(Ee, o).then(() => {
62
+ ce(), E(), z("success");
61
63
  }).finally(() => {
62
64
  I.value = !1;
63
65
  });
64
- }, D = () => {
66
+ }, E = () => {
65
67
  b.value = !1, z("close");
66
- }, L = (n) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][n % 5], z = h;
68
+ }, q = (o) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][o % 5], z = h;
67
69
  return K(() => {
68
- u.value = _e(j.dataSource, !0), b.value = !0, E();
69
- }), (n, s) => {
70
- const t = _("el-empty"), o = _("iconify-icon-offline"), v = _("el-scrollbar"), M = _("vxe-checkbox"), S = _("vxe-checkbox-group"), w = _("ut-button"), U = _("vxe-modal");
70
+ d.value = pe(j.dataSource, !0), b.value = !0, L();
71
+ }), (o, s) => {
72
+ const t = p("el-empty"), n = p("iconify-icon-offline"), _ = p("el-scrollbar"), M = p("vxe-checkbox"), S = p("vxe-checkbox-group"), w = p("ut-button"), U = p("vxe-modal");
71
73
  return a(), N(U, {
72
74
  modelValue: b.value,
73
75
  "onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
@@ -77,24 +79,24 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
77
79
  title: "常用菜单设置(拖动可改变菜单顺序)",
78
80
  "class-name": "u-favorite-modal",
79
81
  "show-footer": "",
80
- onClose: D
82
+ onClose: E
81
83
  }, {
82
84
  default: i(() => [
83
85
  e("div", ge, [
84
- c(v, {
86
+ c(_, {
85
87
  heigth: "100",
86
88
  class: "w-full border-b border-slate-300"
87
89
  }, {
88
90
  default: i(() => [
89
91
  e("div", he, [
90
- u.value.length ? O("", !0) : (a(), N(t, {
92
+ d.value.length ? O("", !0) : (a(), N(t, {
91
93
  key: 0,
92
94
  "image-size": 50,
93
95
  description: "",
94
96
  class: "p-0"
95
97
  })),
96
- c(B(pe), {
97
- list: u.value,
98
+ c(B(ve), {
99
+ list: d.value,
98
100
  handle: ".drag-item",
99
101
  animation: "300",
100
102
  "item-key": "id",
@@ -106,17 +108,17 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
106
108
  e("div", ye, [
107
109
  e("div", {
108
110
  class: "rounded-full w-10 h-10 flex items-center justify-center",
109
- style: Q({ backgroundColor: L(l) })
111
+ style: Q({ backgroundColor: q(l) })
110
112
  }, [
111
- c(o, {
112
- icon: m.icon || `ri:${n.icons[l]}-line`,
113
+ c(n, {
114
+ icon: m.icon || `ri:${o.icons[l]}-line`,
113
115
  class: "text-2xl text-white"
114
116
  }, null, 8, ["icon"])
115
117
  ], 4),
116
118
  e("span", be, f(m.menuName), 1),
117
119
  e("i", {
118
120
  class: "ri-indeterminate-circle-line right-3 top-2 text-base hidden ut-menu-del",
119
- onClick: (d) => R(m, l)
121
+ onClick: (u) => R(m, l)
120
122
  }, null, 8, we)
121
123
  ])
122
124
  ])
@@ -127,10 +129,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
127
129
  ]),
128
130
  _: 1
129
131
  }),
130
- c(v, { class: "u-favorite-menu--contain" }, {
132
+ c(_, { class: "u-favorite-menu--contain" }, {
131
133
  default: i(() => [
132
134
  e("div", ke, [
133
- (a(!0), p(k, null, C($.value, (m) => (a(), p("div", {
135
+ (a(!0), v(k, null, C($.value, (m) => (a(), v("div", {
134
136
  key: m.id,
135
137
  class: "grandparent-node"
136
138
  }, [
@@ -142,10 +144,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
142
144
  c(S, {
143
145
  modelValue: r.value[m.id],
144
146
  "onUpdate:modelValue": (l) => r.value[m.id] = l,
145
- onChange: (l) => q(m, l)
147
+ onChange: (l) => D(m, l)
146
148
  }, {
147
149
  default: i(() => [
148
- (a(!0), p(k, null, C(V(m).menus, (l) => (a(), N(M, {
150
+ (a(!0), v(k, null, C(V(m).menus, (l) => (a(), N(M, {
149
151
  key: l.id,
150
152
  label: l.id,
151
153
  content: l.menuName
@@ -154,7 +156,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
154
156
  _: 2
155
157
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
156
158
  ]),
157
- (a(!0), p(k, null, C(V(m).folder, (l) => (a(), p("div", {
159
+ (a(!0), v(k, null, C(V(m).folder, (l) => (a(), v("div", {
158
160
  key: l.id,
159
161
  class: "parent-node pl-3"
160
162
  }, [
@@ -165,35 +167,35 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
165
167
  e("div", Me, [
166
168
  c(S, {
167
169
  modelValue: r.value[l.id],
168
- "onUpdate:modelValue": (d) => r.value[l.id] = d,
169
- onChange: (d) => q(l, d)
170
+ "onUpdate:modelValue": (u) => r.value[l.id] = u,
171
+ onChange: (u) => D(l, u)
170
172
  }, {
171
173
  default: i(() => [
172
- (a(!0), p(k, null, C(V(l).menus, (d) => (a(), N(M, {
173
- key: d.id,
174
- label: d.id,
175
- content: d.menuName
174
+ (a(!0), v(k, null, C(V(l).menus, (u) => (a(), N(M, {
175
+ key: u.id,
176
+ label: u.id,
177
+ content: u.menuName
176
178
  }, null, 8, ["label", "content"]))), 128))
177
179
  ]),
178
180
  _: 2
179
181
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
180
182
  ]),
181
- (a(!0), p(k, null, C(V(l).folder, (d) => (a(), p("div", {
182
- key: d.id,
183
+ (a(!0), v(k, null, C(V(l).folder, (u) => (a(), v("div", {
184
+ key: u.id,
183
185
  class: "child-node pl-3"
184
186
  }, [
185
187
  e("div", Se, [
186
188
  s[3] || (s[3] = e("div", { class: "w-2 h-4 bg-red-400" }, null, -1)),
187
- e("div", Ue, f(d.menuName), 1)
189
+ e("div", Ue, f(u.menuName), 1)
188
190
  ]),
189
191
  e("div", je, [
190
192
  c(S, {
191
- modelValue: r.value[d.id],
192
- "onUpdate:modelValue": (x) => r.value[d.id] = x,
193
- onChange: (x) => q(l, x)
193
+ modelValue: r.value[u.id],
194
+ "onUpdate:modelValue": (x) => r.value[u.id] = x,
195
+ onChange: (x) => D(l, x)
194
196
  }, {
195
197
  default: i(() => [
196
- (a(!0), p(k, null, C(V(d).menus, (x) => (a(), N(M, {
198
+ (a(!0), v(k, null, C(V(u).menus, (x) => (a(), N(M, {
197
199
  key: x.id,
198
200
  label: x.id,
199
201
  content: x.menuName
@@ -212,11 +214,11 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
212
214
  ])
213
215
  ]),
214
216
  footer: i(() => [
215
- e("div", qe, [
217
+ e("div", De, [
216
218
  c(w, {
217
219
  content: "cancel",
218
220
  status: "warning",
219
- onTap: D
221
+ onTap: E
220
222
  }),
221
223
  c(w, {
222
224
  content: "confirm",
@@ -228,53 +230,49 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
228
230
  }, 8, ["modelValue", "loading"]);
229
231
  };
230
232
  }
231
- }), Le = { class: "ut-home m-3" }, ze = { class: "h-32 mb-4 p-4 flex justify-between items-center bg-white home-page" }, Re = { class: "flex flex-row items-center flex-[2]" }, Ae = { class: "ml-4 text-xs flex-[2]" }, Fe = { class: "flex justify-center items-center" }, He = { class: "py-2 text-gray-500 flex" }, Te = { class: "w-2/3" }, Oe = { class: "text-gray-500 flex" }, Be = { class: "w-2/3" }, Ge = { class: "flex flex-col" }, Pe = { class: "text-4xl" }, We = { class: "mt-1 ml-3" }, Ye = { class: "default:bg-white dark:bg-black" }, Je = ["onClick"], Ke = { class: "h-20 flex justify-center items-center flex-col" }, Qe = { class: "text-xs mt-2" }, Xe = { class: "p-3" }, Ze = { class: "p-0 w-full h-full" }, et = { class: "flex" }, tt = { class: "ml-3" }, st = { class: "text-blue-600 mr-3" }, nt = { class: "text-gray-400 text-sm" }, ot = { class: "p-1" }, lt = /* @__PURE__ */ J({
232
- name: "SuHome",
233
+ }), qe = { class: "ut-home m-3" }, ze = { class: "h-32 mb-4 p-4 flex justify-between items-center bg-white home-page" }, Re = { class: "flex flex-row items-center flex-[2]" }, Ae = { class: "ml-4 text-xs flex-[2]" }, Fe = { class: "flex justify-center items-center" }, He = { class: "py-2 text-gray-500 flex" }, Te = { class: "w-2/3" }, Oe = { class: "text-gray-500 flex" }, Be = { class: "w-2/3" }, We = { class: "flex flex-col" }, Ge = { class: "text-4xl" }, Pe = { class: "mt-1 ml-3" }, Ye = { class: "default:bg-white dark:bg-black" }, Je = ["onClick"], Ke = { class: "h-20 flex justify-center items-center flex-col" }, Qe = { class: "text-xs mt-2" }, Xe = { class: "p-3" }, Ze = { class: "p-0 w-full h-full" }, et = { class: "flex" }, tt = { class: "ml-3" }, st = { class: "text-blue-600 mr-3" }, ot = { class: "text-gray-400 text-sm" }, nt = { class: "p-1" }, lt = /* @__PURE__ */ J({
234
+ name: "UdpWelcome",
233
235
  __name: "su-welcome",
234
- setup(P) {
235
- const h = de(), j = ne(), u = y([]), $ = y([]), b = y(!1), I = y(!1), r = Z(() => {
236
+ setup(G) {
237
+ const h = ue(), j = oe(), d = y([]), $ = y([]), b = y(!1), I = y(!1), r = Z(() => {
236
238
  var s;
237
239
  return (s = h.getUserInfo.name) == null ? void 0 : s.slice(0, 1);
238
- }), E = () => {
239
- var t, o;
240
- return h.isAdminRole ? "系统管理员" : (o = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : o.map((v) => v.roleName).join(",");
240
+ }), L = () => {
241
+ var t, n;
242
+ return h.isAdminRole ? "系统管理员" : (n = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : n.map((_) => _.roleName).join(",");
241
243
  }, R = () => {
242
244
  var t;
243
- return h.isAdminRole ? "【系统管理员】拥有所有组织" : E() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((o) => o.orgName).join(",");
245
+ return h.isAdminRole ? "【系统管理员】拥有所有组织" : L() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((n) => n.orgName).join(",");
244
246
  }, V = () => {
245
- const s = Number(oe().format("HH"));
247
+ const s = Number(ne().format("HH"));
246
248
  return s < 12 ? "上午好" : s < 18 ? "下午好" : "晚上好";
247
249
  }, A = () => {
248
- const s = /* @__PURE__ */ new Date(), t = re.solar2lunar(
249
- s.getFullYear(),
250
- s.getMonth() + 1,
251
- s.getDate()
252
- ), { gzYear: o, IMonthCn: v, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
253
- return `${S}月${w}日 ${o}${v}${M} ${U}`;
254
- }, q = () => {
250
+ const s = /* @__PURE__ */ new Date(), t = re.solar2lunar(s.getFullYear(), s.getMonth() + 1, s.getDate()), { gzYear: n, IMonthCn: _, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
251
+ return `${S}月${w}日 ${n}${_}${M} ${U}`;
252
+ }, D = () => {
255
253
  const s = "/upfm/v1/menuFavority";
256
254
  I.value = !0;
257
- const t = { pageSize: 20, pageNum: 1, userName: ue.get(me) };
258
- G().get(s, t).then((o) => {
259
- u.value = (o == null ? void 0 : o.list) || [];
255
+ const t = { pageSize: 20, pageNum: 1, userName: de.get(me) };
256
+ W().get(s, t).then((n) => {
257
+ d.value = (n == null ? void 0 : n.list) || [];
260
258
  }).finally(() => {
261
259
  I.value = !1;
262
260
  });
263
261
  }, F = (s) => {
264
262
  j.push(s.menuPath);
265
263
  }, H = () => {
266
- var o;
267
- const s = "/upfm/v1/userMonitor", t = { pageSize: 8, pageNum: 1, employeeName: (o = h.getUserInfo) == null ? void 0 : o.name };
268
- G().get(s, t).then((v) => {
269
- $.value = (v == null ? void 0 : v.list) || [];
264
+ var n;
265
+ const s = "/upfm/v1/userMonitor", t = { pageSize: 8, pageNum: 1, employeeName: (n = h.getUserInfo) == null ? void 0 : n.name };
266
+ W().get(s, t).then((_) => {
267
+ $.value = (_ == null ? void 0 : _.list) || [];
270
268
  });
271
269
  }, T = () => {
272
270
  b.value = !0;
273
271
  };
274
272
  K(() => {
275
- q(), H();
273
+ D(), H();
276
274
  });
277
- const D = (s) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][s % 5], L = [
275
+ const E = (s) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][s % 5], q = [
278
276
  "community",
279
277
  "shield-star",
280
278
  "group",
@@ -317,7 +315,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
317
315
  10: { 1: "假", 2: "假", 3: "假", 4: "假", 5: "假", 6: "假", 7: "假", 12: "班" }
318
316
  }
319
317
  }
320
- ], n = [
318
+ ], o = [
321
319
  { name: "元旦", date: "2024-01-01" },
322
320
  { name: "春节", date: "2024-02-10" },
323
321
  { name: "清明节", date: "2024-04-04" },
@@ -328,12 +326,12 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
328
326
  ];
329
327
  return (s, t) => {
330
328
  var x;
331
- const o = _("el-avatar"), v = _("ut-flip-down"), M = _("el-empty"), S = _("iconify-icon-offline"), w = _("el-card"), U = _("el-col"), m = _("ut-calendar"), l = _("el-row"), d = ee("spinning");
332
- return a(), p("div", Le, [
329
+ const n = p("el-avatar"), _ = p("ut-flip-down"), M = p("el-empty"), S = p("iconify-icon-offline"), w = p("el-card"), U = p("el-col"), m = p("ut-calendar"), l = p("el-row"), u = ee("spinning");
330
+ return a(), v("div", qe, [
333
331
  e("div", ze, [
334
332
  e("div", Re, [
335
333
  e("div", null, [
336
- c(o, {
334
+ c(n, {
337
335
  size: "large",
338
336
  class: "text-4xl font-bold bg-[var(--el-color-primary)]"
339
337
  }, {
@@ -353,7 +351,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
353
351
  ]),
354
352
  e("div", He, [
355
353
  t[2] || (t[2] = e("span", { class: "inline-block" }, " 所属角色: ", -1)),
356
- e("div", Te, f(E()), 1)
354
+ e("div", Te, f(L()), 1)
357
355
  ]),
358
356
  e("div", Oe, [
359
357
  t[3] || (t[3] = e("span", { class: "inline-block" }, " 所属组织: ", -1)),
@@ -361,14 +359,14 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
361
359
  ])
362
360
  ])
363
361
  ]),
364
- e("div", Ge, [
365
- e("span", Pe, [
366
- c(v, {
362
+ e("div", We, [
363
+ e("span", Ge, [
364
+ c(_, {
367
365
  "show-days": !1,
368
366
  "show-labels": !1
369
367
  })
370
368
  ]),
371
- e("div", We, f(A()), 1)
369
+ e("div", Pe, f(A()), 1)
372
370
  ])
373
371
  ]),
374
372
  c(l, {
@@ -397,16 +395,16 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
397
395
  ]),
398
396
  default: i(() => [
399
397
  e("div", Ye, [
400
- u.value.length ? O("", !0) : (a(), N(M, {
398
+ d.value.length ? O("", !0) : (a(), N(M, {
401
399
  key: 0,
402
400
  "image-size": 100,
403
401
  description: "快来添加常用菜单吧!",
404
402
  class: "p-0 pb-3"
405
403
  })),
406
404
  e("ul", {
407
- class: se(["p-0 w-full h-full grid grid-rows-1 grid-cols-8 u-dashed-menu", { "grid-rows-2": u.value.length > 8 }])
405
+ class: se(["p-0 w-full h-full grid grid-rows-1 grid-cols-8 u-dashed-menu", { "grid-rows-2": d.value.length > 8 }])
408
406
  }, [
409
- (a(!0), p(k, null, C(u.value, (g, W) => (a(), p("li", {
407
+ (a(!0), v(k, null, C(d.value, (g, P) => (a(), v("li", {
410
408
  key: g.id,
411
409
  class: "text-center list-none bg-white",
412
410
  onClick: (at) => F(g)
@@ -414,10 +412,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
414
412
  e("div", Ke, [
415
413
  e("div", {
416
414
  class: "rounded-full w-10 h-10 flex items-center justify-center",
417
- style: Q({ backgroundColor: D(W) })
415
+ style: Q({ backgroundColor: E(P) })
418
416
  }, [
419
417
  c(S, {
420
- icon: g.icon || `ri:${L[W]}-line`,
418
+ icon: g.icon || `ri:${q[P]}-line`,
421
419
  class: "text-2xl text-white"
422
420
  }, null, 8, ["icon"])
423
421
  ], 4),
@@ -433,7 +431,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
433
431
  ]),
434
432
  _: 1
435
433
  })), [
436
- [d, I.value]
434
+ [u, I.value]
437
435
  ]),
438
436
  c(U, {
439
437
  xl: 16,
@@ -450,13 +448,13 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
450
448
  default: i(() => [
451
449
  e("div", Xe, [
452
450
  e("ul", Ze, [
453
- (a(!0), p(k, null, C($.value, (g) => (a(), p("li", {
451
+ (a(!0), v(k, null, C($.value, (g) => (a(), v("li", {
454
452
  key: g.id,
455
453
  class: "w-full list-none p-2 border-b border-gray-200"
456
454
  }, [
457
455
  e("div", et, [
458
456
  e("div", null, [
459
- c(o, { class: "text-base" }, {
457
+ c(n, { class: "text-base" }, {
460
458
  default: i(() => [
461
459
  Y(f(r.value), 1)
462
460
  ]),
@@ -468,7 +466,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
468
466
  e("span", st, f(g.browser), 1),
469
467
  e("span", null, f(g.browserVersion || g.platformVersion), 1)
470
468
  ]),
471
- e("div", nt, f(g.loginTime), 1)
469
+ e("div", ot, f(g.loginTime), 1)
472
470
  ])
473
471
  ])
474
472
  ]))), 128))
@@ -494,10 +492,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
494
492
  ], -1)
495
493
  ])),
496
494
  default: i(() => [
497
- e("div", ot, [
495
+ e("div", nt, [
498
496
  c(m, {
499
497
  holidays: z,
500
- "statutory-holiday": n
498
+ "statutory-holiday": o
501
499
  })
502
500
  ])
503
501
  ]),
@@ -509,18 +507,18 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
509
507
  ]),
510
508
  _: 1
511
509
  }),
512
- b.value ? (a(), N(Ee, {
510
+ b.value ? (a(), N(Le, {
513
511
  key: 0,
514
- "data-source": u.value,
512
+ "data-source": d.value,
515
513
  "user-name": B(h).getUserInfo.userName,
516
- icons: L,
514
+ icons: q,
517
515
  onClose: t[0] || (t[0] = (g) => b.value = !1),
518
- onSuccess: q
516
+ onSuccess: D
519
517
  }, null, 8, ["data-source", "user-name"])) : O("", !0)
520
518
  ]);
521
519
  };
522
520
  }
523
- }), _t = /* @__PURE__ */ fe(lt, [["__scopeId", "data-v-5b8ab4a4"]]);
521
+ }), pt = /* @__PURE__ */ fe(lt, [["__scopeId", "data-v-e82b305d"]]);
524
522
  export {
525
- _t as default
523
+ pt as default
526
524
  };