@utogether/udp-core 1.0.1-beta.2 → 1.0.1-beta.21

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 (159) hide show
  1. package/build/plugins.ts +8 -1
  2. package/dist/{403-BBQoJwTM.js → 403-B_l9Q9w_.js} +1 -1
  3. package/dist/{404-BbJPSIWM.js → 404-33KZO3Vz.js} +1 -1
  4. package/dist/{500-BtFL9R4M.js → 500-oI74ZkQH.js} +1 -1
  5. package/dist/{AuthorityInfo-DhiwCeLN.js → AuthorityInfo-CNoxrmPS.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-CO01EWKQ.js +100 -0
  7. package/dist/{Company-CGqmslx-.js → Company-DOCRUvUs.js} +3 -3
  8. package/dist/{CompanyPanel-hlDsxD-6.js → CompanyPanel-Do2JlJ3U.js} +26 -26
  9. package/dist/{Department-BZyJtacc.js → Department-BAlx8Am2.js} +3 -3
  10. package/dist/{DepartmentPanel-D-a_EBFt.js → DepartmentPanel-BvQUkRaM.js} +25 -25
  11. package/dist/{DesignPanel-Bl4luWDV.js → DesignPanel-BMr-c76z.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js → DesignPanel.vue_vue_type_style_index_0_lang-COERxrYp.js} +28 -30
  13. package/dist/DictView-DkG5lo6m.js +109 -0
  14. package/dist/InvOrganization-D_PuTpPt.js +74 -0
  15. package/dist/Org-CtVfZAjI.js +39 -0
  16. package/dist/{Preview-pHD84xqI.js → Preview-Cuj_akRk.js} +2 -2
  17. package/dist/{ReportDefine-DnnCNQWS.js → ReportDefine-CM2aNEVp.js} +1 -1
  18. package/dist/{ReportDesign-BnI_Q4pg.js → ReportDesign-B1y79NKM.js} +43 -43
  19. package/dist/{ReportQuery-Dby2MmtM.js → ReportQuery-CZEfKCWP.js} +1 -1
  20. package/dist/{ReportQueryFrom-Blm1N8P1.js → ReportQueryFrom-C_cUB8bs.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DBqJnvTQ.js} +1 -1
  22. package/dist/{ReportTemplate-D65RXRY_.js → ReportTemplate-BprAuCb1.js} +28 -28
  23. package/dist/{Role-eFZoTpXc.js → Role-CAaLVGNy.js} +6 -6
  24. package/dist/{RoleAssign-D9-Y3UNz.js → RoleAssign-DuFp2Ty7.js} +9 -9
  25. package/dist/{RolePanel-DlFw6HSf.js → RolePanel-BRStoO0e.js} +1 -1
  26. package/dist/{RolePanel-CoUOc3sX.js → RolePanel-FnyN7LiS.js} +1 -1
  27. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CNIA7zdk.js +132 -0
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js → RolePanel.vue_vue_type_script_setup_true_lang-CS7drFhn.js} +44 -38
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js → ScrollPanel.vue_vue_type_style_index_0_lang-CEnqhlSE.js} +23 -23
  30. package/dist/{Staff-DFBLCsAd.js → Staff-D493jHwR.js} +3 -3
  31. package/dist/{StaffInfo-d2CK0oBA.js → StaffInfo-suU_pcyD.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js → StaffInfo.vue_vue_type_script_setup_true_lang-DV16a2Nz.js} +16 -16
  33. package/dist/{StaffPanel-D6aWLKN3.js → StaffPanel-BbYWu-xZ.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js → StaffPanel.vue_vue_type_script_setup_true_lang-CfRIanr5.js} +2 -2
  35. package/dist/{SysUser-BdZvYxQH.js → SysUser-YXOsIVpJ.js} +2 -2
  36. package/dist/{SysUserPanel-BIVa6LLr.js → SysUserPanel-C1tQzih_.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BfT40pDr.js +298 -0
  38. package/dist/{SystemMenu-C-5VKlHK.js → SystemMenu-DzKl8RAz.js} +33 -33
  39. package/dist/{UserInfo-DqXCRZts.js → UserInfo-CYeYQNq8.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js → UserInfo.vue_vue_type_style_index_0_lang-DYVdi2Ck.js} +41 -39
  41. package/dist/{childView-B2lSsqS3.js → childView-BNYdfnMx.js} +1 -1
  42. package/dist/{childView-DRUNqgjI.js → childView-C6rHVrT6.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js → childView.vue_vue_type_style_index_0_lang-6o00J0a7.js} +1 -1
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-oGriyFTv.js → childView.vue_vue_type_style_index_0_lang-O_zWFjYY.js} +43 -43
  45. package/dist/{code-rule-DZC9T6cl.js → code-rule-MxcRbYZR.js} +13 -15
  46. package/dist/core.es.js +18 -10
  47. package/dist/{cron-task-BJwPeA5F.js → cron-task-B0yfTtm6.js} +11 -11
  48. package/dist/{frameView-C6wkvok-.js → frameView-DtHY5dLd.js} +1 -1
  49. package/dist/img/l_img.svg +1 -1
  50. package/dist/img/minicolors.png +0 -0
  51. package/dist/img/v_img.svg +1 -1
  52. package/dist/index-BWtOrjW2.js +4603 -0
  53. package/dist/{layoutView-CeJBpZb_.js → layoutView-D0Q7EG0u.js} +1564 -1559
  54. package/dist/{log-in-e7D5Ss1P.js → log-in-CpGqc33f.js} +5 -4
  55. package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
  56. package/dist/login-CuO8YgN1.js +249 -0
  57. package/dist/{login-log-CvVnyGi3.js → login-log-BNRXLeMi.js} +4 -3
  58. package/dist/{lov-view-DRF-99U4.js → lov-view-DcRVGqsD.js} +5 -5
  59. package/dist/{menuInfo-3Sjvs9nM.js → menuInfo-ccOqhCC8.js} +1 -1
  60. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js → menuInfo.vue_vue_type_style_index_0_lang-DTBPgTe_.js} +34 -32
  61. package/dist/{pda-app-B9tn7jdv.js → pda-app-D7n4oxyn.js} +202 -188
  62. package/dist/{resource-BqnxbQNe.js → resource-_h2OtsKS.js} +18 -18
  63. package/dist/{su-welcome-VwifUK_O.js → su-welcome-Co6e4akE.js} +118 -120
  64. package/dist/sys-config-C6Es9vZl.js +355 -0
  65. package/dist/udp-core.css +1 -9
  66. package/dist/utogether-MlnyYtNS.js +4 -0
  67. package/index.ts +17 -5
  68. package/package.json +1 -1
  69. package/src/App.vue +2 -7
  70. package/src/api/http.ts +1 -4
  71. package/src/api/index.ts +5 -3
  72. package/src/api/user.ts +2 -2
  73. package/src/components/SuCharts/src/UserInfo.vue +3 -3
  74. package/src/components/SuScrollTree/ScrollPanel.vue +170 -175
  75. package/src/components/udp/form/form.vue +109 -0
  76. package/src/components/udp/grid/index.vue +509 -0
  77. package/src/components/udp/index.ts +4 -4
  78. package/src/components/udp/utils.ts +405 -40
  79. package/src/directives/permission/index.ts +1 -1
  80. package/src/layout/components/lay-navbar/index.vue +9 -7
  81. package/src/layout/components/lay-panel/index.vue +3 -3
  82. package/src/layout/components/lay-search/index.vue +1 -1
  83. package/src/layout/components/lay-select-org/index.vue +4 -9
  84. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  85. package/src/layout/components/lay-sidebar/horizontal.vue +4 -5
  86. package/src/layout/components/lay-sidebar/mixNav.vue +6 -4
  87. package/src/layout/components/lay-sidebar/sidebar-logo.vue +94 -98
  88. package/src/layout/components/lay-tag/index.vue +596 -625
  89. package/src/layout/hooks/useTag.ts +223 -233
  90. package/src/layout/layoutView.vue +215 -215
  91. package/src/layout/types.ts +3 -2
  92. package/src/main.ts +39 -31
  93. package/src/plugins/i18n/en.ts +26 -13
  94. package/src/plugins/i18n/zh.ts +35 -16
  95. package/src/plugins/vxe-table/index.ts +65 -2
  96. package/src/plugins/vxe-table/render.tsx +945 -817
  97. package/src/router/index.ts +186 -183
  98. package/src/router/modules/remaining.ts +1 -26
  99. package/src/router/utils.ts +393 -377
  100. package/src/store/modules/app.ts +1 -3
  101. package/src/store/modules/multiTags.ts +110 -109
  102. package/src/store/modules/permission.ts +113 -103
  103. package/src/store/modules/system.ts +1 -3
  104. package/src/style/button.scss +10 -3
  105. package/src/style/login.css +1 -1
  106. package/src/style/tailwind.css +1 -68
  107. package/src/style/vxetable.scss +348 -256
  108. package/src/utils/authority/index.ts +1 -1
  109. package/src/utils/index.ts +3 -1
  110. package/src/utils/propTypes.ts +1 -6
  111. package/src/views/login/login-view.vue +6 -20
  112. package/src/views/organization/company/CompanyPanel.vue +2 -2
  113. package/src/views/organization/department/DepartmentPanel.vue +269 -283
  114. package/src/views/organization/inv-org/InvOrganization.vue +23 -9
  115. package/src/views/organization/org/Org.vue +9 -5
  116. package/src/views/system/menu/SystemMenu.vue +183 -197
  117. package/src/views/system/menu/menuInfo.vue +8 -18
  118. package/src/views/system/role/AuthorityInfo.vue +19 -15
  119. package/src/views/system/role/Role.vue +1 -5
  120. package/src/views/system/role/RolePanel.vue +11 -2
  121. package/src/views/system/role/UserInfo.vue +11 -9
  122. package/src/views/system/role-assign/RoleAssign.vue +2 -2
  123. package/src/views/system/role-assign/RolePanel.vue +12 -9
  124. package/src/views/system/sys/sys-config.vue +66 -21
  125. package/src/views/system/sysUser/SysUserPanel.vue +44 -43
  126. package/src/views/uapp/pda/pda-app.vue +48 -16
  127. package/src/views/udev/coderule/code-rule.vue +120 -121
  128. package/src/views/udev/dict/DictView.vue +16 -4
  129. package/src/views/udev/dict/childView.vue +8 -8
  130. package/src/views/ufile/aggregation/File.vue +5 -5
  131. package/src/views/ufile/file/water-mark.vue +14 -14
  132. package/src/views/uhome/components/menu-favorite.vue +314 -331
  133. package/src/views/uhome/su-welcome.vue +3 -3
  134. package/src/views/ulogin/login.vue +19 -12
  135. package/src/views/upms/interface/log-in.vue +100 -106
  136. package/src/views/upms/interface/log-out.vue +2 -8
  137. package/src/views/upms/user/login-log.vue +54 -60
  138. package/src/views/urpt/design/DesignPanel.vue +16 -35
  139. package/src/views/urpt/design/Preview.vue +1 -0
  140. package/src/views/urpt/design/ReportDesign.vue +17 -23
  141. package/src/views/urpt/static-resource/resource.vue +3 -3
  142. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  143. package/types/global.d.ts +4 -9
  144. package/vite.config.ts +6 -2
  145. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js +0 -102
  146. package/dist/DictView-B4a7Hs1X.js +0 -95
  147. package/dist/InvOrganization-q4T3y8dQ.js +0 -260
  148. package/dist/Org-BTGTrAVz.js +0 -35
  149. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js +0 -126
  150. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js +0 -288
  151. package/dist/index-DZc3qRTx.js +0 -2650
  152. package/dist/login-BOxwzwdB.js +0 -252
  153. package/dist/sys-config-C0-gSBFO.js +0 -277
  154. package/dist/utogether-Di1byIum.js +0 -182
  155. package/src/components/udp/form-upload.vue +0 -183
  156. package/src/components/udp/modal-form.vue +0 -180
  157. package/src/utils/http/index.ts +0 -297
  158. package/src/utils/http/types.d.ts +0 -46
  159. package/src/utils/udp/useRender.ts +0 -420
@@ -1,7 +1,7 @@
1
- import { defineComponent as w, ref as o, resolveComponent as l, createElementBlock as k, openBlock as u, createVNode as r, createBlock as x, createCommentVNode as b, Fragment as U } from "vue";
2
- import { successMessage as B } from "@utogether/utils";
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 B } from "vue";
2
+ import { successMessage as U } from "@utogether/utils";
3
3
  import { useClipboard as N } from "@vueuse/core";
4
- import { x as y } from "./index-DZc3qRTx.js";
4
+ import { B as y } from "./index-BWtOrjW2.js";
5
5
  const q = {
6
6
  name: "StaticResource"
7
7
  }, V = /* @__PURE__ */ w({
@@ -15,15 +15,15 @@ const q = {
15
15
  align: "center"
16
16
  }, {
17
17
  field: "templateCode",
18
- title: "message.file.resourceCode",
18
+ title: "message.urpt.resourceCode",
19
19
  width: 140
20
20
  }, {
21
21
  field: "templateName",
22
- title: "message.file.resourceName",
22
+ title: "message.urpt.resourceName",
23
23
  width: 150
24
24
  }, {
25
25
  field: "templateUrl",
26
- title: "message.file.resourceUrl",
26
+ title: "message.urpt.resourceUrl",
27
27
  miWidth: 200
28
28
  }, {
29
29
  field: "operate",
@@ -32,20 +32,20 @@ const q = {
32
32
  slots: {
33
33
  default: ({
34
34
  row: e
35
- }) => [r(U, null, [r(l("ut-button"), {
35
+ }) => [l(B, null, [l(r("ut-button"), {
36
36
  content: "download",
37
37
  icon: "ri-download-line",
38
38
  status: "success",
39
39
  onTap: () => g(e)
40
40
  }, null)])]
41
41
  }
42
- }], f = {
42
+ }], p = {
43
43
  toolbarButtonClick({
44
44
  code: e
45
45
  }) {
46
46
  e === "add" && _();
47
47
  }
48
- }, p = [{
48
+ }, f = [{
49
49
  field: "templateCode",
50
50
  required: !0
51
51
  }, {
@@ -63,32 +63,32 @@ const q = {
63
63
  }], t = o(!1), _ = (e) => {
64
64
  a.value = {}, t.value = !0;
65
65
  }, g = (e) => {
66
- m(d + "/ufil/" + e.templateUrl), B("复制成功,快试试右键粘贴吧");
66
+ m(d + "/ufil/" + e.templateUrl), U("复制成功,快试试右键粘贴吧");
67
67
  }, h = () => {
68
68
  s.value.refreshData();
69
69
  };
70
- return (e, i) => {
71
- const v = l("ut-grid"), C = l("ut-modal-form");
72
- return u(), k("div", null, [r(v, {
70
+ return (e, u) => {
71
+ const v = r("ut-grid"), C = r("ut-modal-form");
72
+ return i(), k("div", null, [l(v, {
73
73
  ref_key: "xgrid",
74
74
  ref: s,
75
75
  columns: c,
76
76
  url: n,
77
77
  editable: !1,
78
78
  mode: "form",
79
- events: f
80
- }, null, 512), t.value ? (u(), x(C, {
79
+ events: p
80
+ }, null, 512), t.value ? (i(), b(C, {
81
81
  key: 0,
82
82
  record: a.value,
83
- items: p,
83
+ items: f,
84
84
  width: 300,
85
85
  height: 340,
86
86
  "data-status": "add",
87
87
  title: "静态资源新增",
88
88
  url: n,
89
- onClose: i[0] || (i[0] = (R) => t.value = !1),
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
  });
@@ -1,11 +1,11 @@
1
- import { defineComponent as J, ref as y, onMounted as K, resolveComponent as _, createBlock as N, openBlock as a, withCtx as c, createElementVNode as e, createVNode as i, 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";
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 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
2
  import { useRouter as oe } from "vue-router";
3
3
  import ne from "dayjs";
4
- import { dbstorage as le, delay as ae, warnMessage as ce, successMessage as ie, lunarCalendar as re, cookies as ue } from "@utogether/utils";
5
- import { q as G, e as de, n as me, _ as fe } from "./index-DZc3qRTx.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({
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 { w as G, i as de, p as me, _ as fe } from "./index-BWtOrjW2.js";
6
+ import { clone as _e, max as pe } 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 = { 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" }, De = { class: "flex justify-end" }, Ee = "/upfm/v1/menuFavority", Le = /* @__PURE__ */ J({
9
9
  __name: "menu-favorite",
10
10
  props: {
11
11
  dataSource: { default: () => [] },
@@ -14,13 +14,13 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
14
14
  },
15
15
  emits: ["close", "success"],
16
16
  setup(P, { emit: h }) {
17
- const j = P, r = y([]), $ = y([]), b = y(!1), I = y(!1), u = y({}), E = async () => {
17
+ const j = P, u = y([]), $ = y([]), b = y(!1), I = y(!1), r = y({}), L = async () => {
18
18
  $.value = await le.getItem(`U-${j.userName}-ROUTES`), $.value = $.value.filter((o) => o.menuCode !== "SysHome"), await ae(64), A();
19
19
  }, R = (o, s) => {
20
20
  var n;
21
- r.value.splice(s, 1);
22
- const t = (n = u.value[o.parentId]) == null ? void 0 : n.findIndex((v) => v === o.menuId);
23
- u.value[o.parentId].splice(t, 1);
21
+ u.value.splice(s, 1);
22
+ const t = (n = r.value[o.parentId]) == null ? void 0 : n.findIndex((p) => p === o.menuId);
23
+ r.value[o.parentId].splice(t, 1);
24
24
  }, V = (o) => {
25
25
  const s = [], t = [];
26
26
  return o.children.forEach((n) => {
@@ -28,47 +28,45 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
28
28
  }), { folder: s, menus: t };
29
29
  }, A = () => {
30
30
  j.dataSource.forEach((o) => {
31
- u.value[o.parentId] ? u.value[o.parentId].push(o.menuId) : u.value[o.parentId] = [o.menuId];
31
+ r.value[o.parentId] ? r.value[o.parentId].push(o.menuId) : r.value[o.parentId] = [o.menuId];
32
32
  });
33
- }, q = (o, s) => {
34
- debugger;
33
+ }, D = (o, s) => {
35
34
  if (s.checked) {
36
- if (r.value.length === 16)
35
+ if (u.value.length === 16)
37
36
  return X(() => {
38
- u.value[o.id].splice(u.value[o.id].length - 1, 1);
39
- }), ce("最多只能选择16个常用功能");
37
+ r.value[o.id].splice(r.value[o.id].length - 1, 1);
38
+ }), ie("最多只能选择16个常用功能");
40
39
  const t = o.children.find((n) => n.id === s.label);
41
- t && (t.seqNo = H() + 10, t.menuId = t.id, r.value.push(t));
40
+ t && (t.seqNo = H() + 10, t.menuId = t.id, u.value.push(t));
42
41
  } else {
43
- let t = r.value.findIndex((n) => n.menuId === s.label);
44
- t !== -1 && r.value.splice(t, 1), t = u.value[o.id].findIndex((n) => n === s.label), t !== -1 && u.value[o.id].splice(t, 1);
42
+ let t = u.value.findIndex((n) => n.menuId === s.label);
43
+ t !== -1 && u.value.splice(t, 1), t = r.value[o.id].findIndex((n) => n === s.label), t !== -1 && r.value[o.id].splice(t, 1);
45
44
  }
46
45
  }, F = () => {
47
- r.value.forEach((o, s) => {
46
+ u.value.forEach((o, s) => {
48
47
  o.seqNo = (s + 1) * 10;
49
48
  });
50
49
  }, H = () => {
51
50
  var o;
52
- return ((o = ve(r.value, (s) => s.seqNo)) == null ? void 0 : o.seqNo) || 0;
51
+ return ((o = pe(u.value, (s) => s.seqNo)) == null ? void 0 : o.seqNo) || 0;
53
52
  }, T = () => {
54
- console.log(r);
55
- const o = r.value.map((s) => ({
53
+ const o = u.value.map((s) => ({
56
54
  userName: j.userName,
57
55
  menuId: s.menuId,
58
56
  seqNo: s.seqNo
59
57
  }));
60
- console.log(o), I.value = !0, G().post(De, o).then(() => {
61
- ie(), D(), z("success");
58
+ I.value = !0, G().post(Ee, o).then(() => {
59
+ ce(), E(), z("success");
62
60
  }).finally(() => {
63
61
  I.value = !1;
64
62
  });
65
- }, D = () => {
63
+ }, E = () => {
66
64
  b.value = !1, z("close");
67
- }, L = (o) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][o % 5], z = h;
65
+ }, q = (o) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][o % 5], z = h;
68
66
  return K(() => {
69
- r.value = _e(j.dataSource, !0), b.value = !0, E();
67
+ u.value = _e(j.dataSource, !0), b.value = !0, L();
70
68
  }), (o, s) => {
71
- const t = _("el-empty"), n = _("iconify-icon-offline"), v = _("el-scrollbar"), M = _("vxe-checkbox"), S = _("vxe-checkbox-group"), w = _("ut-button"), U = _("vxe-modal");
69
+ const t = _("el-empty"), n = _("iconify-icon-offline"), p = _("el-scrollbar"), M = _("vxe-checkbox"), S = _("vxe-checkbox-group"), w = _("ut-button"), U = _("vxe-modal");
72
70
  return a(), N(U, {
73
71
  modelValue: b.value,
74
72
  "onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
@@ -78,38 +76,38 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
78
76
  title: "常用菜单设置(拖动可改变菜单顺序)",
79
77
  "class-name": "u-favorite-modal",
80
78
  "show-footer": "",
81
- onClose: D
79
+ onClose: E
82
80
  }, {
83
- default: c(() => [
81
+ default: i(() => [
84
82
  e("div", ge, [
85
- i(v, {
83
+ c(p, {
86
84
  heigth: "100",
87
85
  class: "w-full border-b border-slate-300"
88
86
  }, {
89
- default: c(() => [
87
+ default: i(() => [
90
88
  e("div", he, [
91
- r.value.length ? O("", !0) : (a(), N(t, {
89
+ u.value.length ? O("", !0) : (a(), N(t, {
92
90
  key: 0,
93
91
  "image-size": 50,
94
92
  description: "",
95
93
  class: "p-0"
96
94
  })),
97
- i(B(pe), {
98
- list: r.value,
95
+ c(B(ve), {
96
+ list: u.value,
99
97
  handle: ".drag-item",
100
98
  animation: "300",
101
99
  "item-key": "id",
102
100
  class: "flex",
103
101
  onEnd: F
104
102
  }, {
105
- item: c(({ element: m, index: l }) => [
103
+ item: i(({ element: m, index: l }) => [
106
104
  e("div", xe, [
107
105
  e("div", ye, [
108
106
  e("div", {
109
107
  class: "rounded-full w-10 h-10 flex items-center justify-center",
110
- style: Q({ backgroundColor: L(l) })
108
+ style: Q({ backgroundColor: q(l) })
111
109
  }, [
112
- i(n, {
110
+ c(n, {
113
111
  icon: m.icon || `ri:${o.icons[l]}-line`,
114
112
  class: "text-2xl text-white"
115
113
  }, null, 8, ["icon"])
@@ -128,10 +126,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
128
126
  ]),
129
127
  _: 1
130
128
  }),
131
- i(v, { class: "u-favorite-menu--contain" }, {
132
- default: c(() => [
129
+ c(p, { class: "u-favorite-menu--contain" }, {
130
+ default: i(() => [
133
131
  e("div", ke, [
134
- (a(!0), p(k, null, C($.value, (m) => (a(), p("div", {
132
+ (a(!0), v(k, null, C($.value, (m) => (a(), v("div", {
135
133
  key: m.id,
136
134
  class: "grandparent-node"
137
135
  }, [
@@ -140,13 +138,13 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
140
138
  e("div", Ne, f(m.menuName), 1)
141
139
  ]),
142
140
  e("div", $e, [
143
- i(S, {
144
- modelValue: u.value[m.id],
145
- "onUpdate:modelValue": (l) => u.value[m.id] = l,
146
- onChange: (l) => q(m, l)
141
+ c(S, {
142
+ modelValue: r.value[m.id],
143
+ "onUpdate:modelValue": (l) => r.value[m.id] = l,
144
+ onChange: (l) => D(m, l)
147
145
  }, {
148
- default: c(() => [
149
- (a(!0), p(k, null, C(V(m).menus, (l) => (a(), N(M, {
146
+ default: i(() => [
147
+ (a(!0), v(k, null, C(V(m).menus, (l) => (a(), N(M, {
150
148
  key: l.id,
151
149
  label: l.id,
152
150
  content: l.menuName
@@ -155,7 +153,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
155
153
  _: 2
156
154
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
157
155
  ]),
158
- (a(!0), p(k, null, C(V(m).folder, (l) => (a(), p("div", {
156
+ (a(!0), v(k, null, C(V(m).folder, (l) => (a(), v("div", {
159
157
  key: l.id,
160
158
  class: "parent-node pl-3"
161
159
  }, [
@@ -164,13 +162,13 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
164
162
  e("div", Ve, f(l.menuName), 1)
165
163
  ]),
166
164
  e("div", Me, [
167
- i(S, {
168
- modelValue: u.value[l.id],
169
- "onUpdate:modelValue": (d) => u.value[l.id] = d,
170
- onChange: (d) => q(l, d)
165
+ c(S, {
166
+ modelValue: r.value[l.id],
167
+ "onUpdate:modelValue": (d) => r.value[l.id] = d,
168
+ onChange: (d) => D(l, d)
171
169
  }, {
172
- default: c(() => [
173
- (a(!0), p(k, null, C(V(l).menus, (d) => (a(), N(M, {
170
+ default: i(() => [
171
+ (a(!0), v(k, null, C(V(l).menus, (d) => (a(), N(M, {
174
172
  key: d.id,
175
173
  label: d.id,
176
174
  content: d.menuName
@@ -179,7 +177,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
179
177
  _: 2
180
178
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
181
179
  ]),
182
- (a(!0), p(k, null, C(V(l).folder, (d) => (a(), p("div", {
180
+ (a(!0), v(k, null, C(V(l).folder, (d) => (a(), v("div", {
183
181
  key: d.id,
184
182
  class: "child-node pl-3"
185
183
  }, [
@@ -188,13 +186,13 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
188
186
  e("div", Ue, f(d.menuName), 1)
189
187
  ]),
190
188
  e("div", je, [
191
- i(S, {
192
- modelValue: u.value[d.id],
193
- "onUpdate:modelValue": (x) => u.value[d.id] = x,
194
- onChange: (x) => q(l, x)
189
+ c(S, {
190
+ modelValue: r.value[d.id],
191
+ "onUpdate:modelValue": (x) => r.value[d.id] = x,
192
+ onChange: (x) => D(l, x)
195
193
  }, {
196
- default: c(() => [
197
- (a(!0), p(k, null, C(V(d).menus, (x) => (a(), N(M, {
194
+ default: i(() => [
195
+ (a(!0), v(k, null, C(V(d).menus, (x) => (a(), N(M, {
198
196
  key: x.id,
199
197
  label: x.id,
200
198
  content: x.menuName
@@ -212,14 +210,14 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
212
210
  })
213
211
  ])
214
212
  ]),
215
- footer: c(() => [
216
- e("div", qe, [
217
- i(w, {
213
+ footer: i(() => [
214
+ e("div", De, [
215
+ c(w, {
218
216
  content: "cancel",
219
217
  status: "warning",
220
- onTap: D
218
+ onTap: E
221
219
  }),
222
- i(w, {
220
+ c(w, {
223
221
  content: "confirm",
224
222
  onTap: T
225
223
  })
@@ -229,19 +227,19 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
229
227
  }, 8, ["modelValue", "loading"]);
230
228
  };
231
229
  }
232
- }), 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" }, ot = { class: "text-gray-400 text-sm" }, nt = { class: "p-1" }, lt = /* @__PURE__ */ J({
230
+ }), 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" }, 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" }, ot = { class: "text-gray-400 text-sm" }, nt = { class: "p-1" }, lt = /* @__PURE__ */ J({
233
231
  name: "SuHome",
234
232
  __name: "su-welcome",
235
233
  setup(P) {
236
- const h = de(), j = oe(), r = y([]), $ = y([]), b = y(!1), I = y(!1), u = Z(() => {
234
+ const h = de(), j = oe(), u = y([]), $ = y([]), b = y(!1), I = y(!1), r = Z(() => {
237
235
  var s;
238
236
  return (s = h.getUserInfo.name) == null ? void 0 : s.slice(0, 1);
239
- }), E = () => {
237
+ }), L = () => {
240
238
  var t, n;
241
- return h.isAdminRole ? "系统管理员" : (n = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : n.map((v) => v.roleName).join(",");
239
+ return h.isAdminRole ? "系统管理员" : (n = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : n.map((p) => p.roleName).join(",");
242
240
  }, R = () => {
243
241
  var t;
244
- return h.isAdminRole ? "【系统管理员】拥有所有组织" : E() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((n) => n.orgName).join(",");
242
+ return h.isAdminRole ? "【系统管理员】拥有所有组织" : L() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((n) => n.orgName).join(",");
245
243
  }, V = () => {
246
244
  const s = Number(ne().format("HH"));
247
245
  return s < 12 ? "上午好" : s < 18 ? "下午好" : "晚上好";
@@ -250,14 +248,14 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
250
248
  s.getFullYear(),
251
249
  s.getMonth() + 1,
252
250
  s.getDate()
253
- ), { gzYear: n, IMonthCn: v, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
254
- return `${S}月${w}日 ${n}${v}${M} ${U}`;
255
- }, q = () => {
251
+ ), { gzYear: n, IMonthCn: p, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
252
+ return `${S}月${w}日 ${n}${p}${M} ${U}`;
253
+ }, D = () => {
256
254
  const s = "/upfm/v1/menuFavority";
257
255
  I.value = !0;
258
256
  const t = { pageSize: 20, pageNum: 1, userName: ue.get(me) };
259
257
  G().get(s, t).then((n) => {
260
- r.value = (n == null ? void 0 : n.list) || [];
258
+ u.value = (n == null ? void 0 : n.list) || [];
261
259
  }).finally(() => {
262
260
  I.value = !1;
263
261
  });
@@ -265,17 +263,17 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
265
263
  j.push(s.menuPath);
266
264
  }, H = () => {
267
265
  var n;
268
- const s = "/upms/v1/userMonitor", t = { pageSize: 8, pageNum: 1, employeeName: (n = h.getUserInfo) == null ? void 0 : n.name };
269
- G().get(s, t).then((v) => {
270
- $.value = (v == null ? void 0 : v.list) || [];
266
+ const s = "/upfm/v1/userMonitor", t = { pageSize: 8, pageNum: 1, employeeName: (n = h.getUserInfo) == null ? void 0 : n.name };
267
+ G().get(s, t).then((p) => {
268
+ $.value = (p == null ? void 0 : p.list) || [];
271
269
  });
272
270
  }, T = () => {
273
271
  b.value = !0;
274
272
  };
275
273
  K(() => {
276
- q(), H();
274
+ D(), H();
277
275
  });
278
- const D = (s) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][s % 5], L = [
276
+ const E = (s) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][s % 5], q = [
279
277
  "community",
280
278
  "shield-star",
281
279
  "group",
@@ -329,17 +327,17 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
329
327
  ];
330
328
  return (s, t) => {
331
329
  var x;
332
- const n = _("el-avatar"), v = _("ut-countdown"), M = _("el-empty"), S = _("iconify-icon-offline"), w = _("el-card"), U = _("el-col"), m = _("ut-calendar"), l = _("el-row"), d = ee("spinning");
333
- return a(), p("div", Le, [
330
+ const n = _("el-avatar"), p = _("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");
331
+ return a(), v("div", qe, [
334
332
  e("div", ze, [
335
333
  e("div", Re, [
336
334
  e("div", null, [
337
- i(n, {
335
+ c(n, {
338
336
  size: "large",
339
337
  class: "text-4xl font-bold bg-[var(--el-color-primary)]"
340
338
  }, {
341
- default: c(() => [
342
- Y(f(u.value), 1)
339
+ default: i(() => [
340
+ Y(f(r.value), 1)
343
341
  ]),
344
342
  _: 1
345
343
  })
@@ -354,7 +352,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
354
352
  ]),
355
353
  e("div", He, [
356
354
  t[2] || (t[2] = e("span", { class: "inline-block" }, " 所属角色: ", -1)),
357
- e("div", Te, f(E()), 1)
355
+ e("div", Te, f(L()), 1)
358
356
  ]),
359
357
  e("div", Oe, [
360
358
  t[3] || (t[3] = e("span", { class: "inline-block" }, " 所属组织: ", -1)),
@@ -364,7 +362,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
364
362
  ]),
365
363
  e("div", Ge, [
366
364
  e("span", Pe, [
367
- i(v, {
365
+ c(p, {
368
366
  "show-days": !1,
369
367
  "show-labels": !1
370
368
  })
@@ -372,19 +370,19 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
372
370
  e("div", We, f(A()), 1)
373
371
  ])
374
372
  ]),
375
- i(l, {
373
+ c(l, {
376
374
  class: "m-2",
377
375
  gutter: 10
378
376
  }, {
379
- default: c(() => [
377
+ default: i(() => [
380
378
  te((a(), N(U, {
381
379
  lg: 24,
382
380
  md: 24,
383
381
  class: ""
384
382
  }, {
385
- default: c(() => [
386
- i(w, { class: "mb-2" }, {
387
- header: c(() => [
383
+ default: i(() => [
384
+ c(w, { class: "mb-2" }, {
385
+ header: i(() => [
388
386
  e("div", { class: "flex items-center justify-between dark:bg-black" }, [
389
387
  t[5] || (t[5] = e("span", { class: "font-bold" }, "常用菜单", -1)),
390
388
  e("span", {
@@ -396,18 +394,18 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
396
394
  ]))
397
395
  ])
398
396
  ]),
399
- default: c(() => [
397
+ default: i(() => [
400
398
  e("div", Ye, [
401
- r.value.length ? O("", !0) : (a(), N(M, {
399
+ u.value.length ? O("", !0) : (a(), N(M, {
402
400
  key: 0,
403
401
  "image-size": 100,
404
402
  description: "快来添加常用菜单吧!",
405
403
  class: "p-0 pb-3"
406
404
  })),
407
405
  e("ul", {
408
- class: se(["p-0 w-full h-full grid grid-rows-1 grid-cols-8 u-dashed-menu", { "grid-rows-2": r.value.length > 8 }])
406
+ 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 }])
409
407
  }, [
410
- (a(!0), p(k, null, C(r.value, (g, W) => (a(), p("li", {
408
+ (a(!0), v(k, null, C(u.value, (g, W) => (a(), v("li", {
411
409
  key: g.id,
412
410
  class: "text-center list-none bg-white",
413
411
  onClick: (at) => F(g)
@@ -415,10 +413,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
415
413
  e("div", Ke, [
416
414
  e("div", {
417
415
  class: "rounded-full w-10 h-10 flex items-center justify-center",
418
- style: Q({ backgroundColor: D(W) })
416
+ style: Q({ backgroundColor: E(W) })
419
417
  }, [
420
- i(S, {
421
- icon: g.icon || `ri:${L[W]}-line`,
418
+ c(S, {
419
+ icon: g.icon || `ri:${q[W]}-line`,
422
420
  class: "text-2xl text-white"
423
421
  }, null, 8, ["icon"])
424
422
  ], 4),
@@ -436,30 +434,30 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
436
434
  })), [
437
435
  [d, I.value]
438
436
  ]),
439
- i(U, {
437
+ c(U, {
440
438
  xl: 16,
441
439
  lg: 12,
442
440
  md: 24
443
441
  }, {
444
- default: c(() => [
445
- i(w, { class: "mb-2" }, {
446
- header: c(() => t[7] || (t[7] = [
442
+ default: i(() => [
443
+ c(w, { class: "mb-2" }, {
444
+ header: i(() => t[7] || (t[7] = [
447
445
  e("div", { class: "font-bold" }, [
448
446
  e("span", null, "个人动态")
449
447
  ], -1)
450
448
  ])),
451
- default: c(() => [
449
+ default: i(() => [
452
450
  e("div", Xe, [
453
451
  e("ul", Ze, [
454
- (a(!0), p(k, null, C($.value, (g) => (a(), p("li", {
452
+ (a(!0), v(k, null, C($.value, (g) => (a(), v("li", {
455
453
  key: g.id,
456
454
  class: "w-full list-none p-2 border-b border-gray-200"
457
455
  }, [
458
456
  e("div", et, [
459
457
  e("div", null, [
460
- i(n, { class: "text-base" }, {
461
- default: c(() => [
462
- Y(f(u.value), 1)
458
+ c(n, { class: "text-base" }, {
459
+ default: i(() => [
460
+ Y(f(r.value), 1)
463
461
  ]),
464
462
  _: 1
465
463
  })
@@ -481,22 +479,22 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
481
479
  ]),
482
480
  _: 1
483
481
  }),
484
- i(U, {
482
+ c(U, {
485
483
  xl: 8,
486
484
  lg: 12,
487
485
  md: 24,
488
486
  class: ""
489
487
  }, {
490
- default: c(() => [
491
- i(w, { class: "mb-2" }, {
492
- header: c(() => t[8] || (t[8] = [
488
+ default: i(() => [
489
+ c(w, { class: "mb-2" }, {
490
+ header: i(() => t[8] || (t[8] = [
493
491
  e("div", { class: "font-bold" }, [
494
492
  e("span", null, "日历")
495
493
  ], -1)
496
494
  ])),
497
- default: c(() => [
495
+ default: i(() => [
498
496
  e("div", nt, [
499
- i(m, {
497
+ c(m, {
500
498
  holidays: z,
501
499
  "statutory-holiday": o
502
500
  })
@@ -510,18 +508,18 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
510
508
  ]),
511
509
  _: 1
512
510
  }),
513
- b.value ? (a(), N(Ee, {
511
+ b.value ? (a(), N(Le, {
514
512
  key: 0,
515
- "data-source": r.value,
513
+ "data-source": u.value,
516
514
  "user-name": B(h).getUserInfo.userName,
517
- icons: L,
515
+ icons: q,
518
516
  onClose: t[0] || (t[0] = (g) => b.value = !1),
519
- onSuccess: q
517
+ onSuccess: D
520
518
  }, null, 8, ["data-source", "user-name"])) : O("", !0)
521
519
  ]);
522
520
  };
523
521
  }
524
- }), _t = /* @__PURE__ */ fe(lt, [["__scopeId", "data-v-4f622fd8"]]);
522
+ }), _t = /* @__PURE__ */ fe(lt, [["__scopeId", "data-v-5b8ab4a4"]]);
525
523
  export {
526
524
  _t as default
527
525
  };