@utogether/udp-core 1.0.1 → 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 (239) hide show
  1. package/build/plugins.ts +13 -2
  2. package/dist/{403-JWjatlxJ.js → 403-B1rIjAAu.js} +7 -6
  3. package/dist/{404-BcdMJfPb.js → 404-mBqc2y4t.js} +14 -13
  4. package/dist/{500-bsa3F_cc.js → 500-BoI45Zdh.js} +10 -9
  5. package/dist/{AuthorityInfo-CqItgNs5.js → AuthorityInfo-B08NBIIn.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js +100 -0
  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-DVff9IA7.js → Company-JGGyWEWH.js} +3 -3
  10. package/dist/{CompanyPanel-CNrdq4XE.js → CompanyPanel-BQ_cCmDx.js} +16 -16
  11. package/dist/{Department-CqcpfL4i.js → Department-z2iO6hwM.js} +10 -10
  12. package/dist/{DepartmentPanel-Bvti4LGu.js → DepartmentPanel-BtQe7zwU.js} +108 -78
  13. package/dist/{DesignPanel-CjykspE1.js → DesignPanel-7mhtVWas.js} +1 -1
  14. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BK9EERdd.js → DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js} +24 -26
  15. package/dist/DictView-CjchV2Yk.js +109 -0
  16. package/dist/InvOrganization-Pn1O_XP0.js +74 -0
  17. package/dist/Org-BqytV_vi.js +39 -0
  18. package/dist/{Preview-Cm_7RhYU.js → Preview-CLpUUMay.js} +2 -2
  19. package/dist/{ReportDefine-CJVlQ--7.js → ReportDefine-Cz1KtEUF.js} +1 -1
  20. package/dist/{ReportDesign-B0unlrkt.js → ReportDesign-BaORYud4.js} +46 -46
  21. package/dist/{ReportQuery-BKuMCEvF.js → ReportQuery-CPCPXiXz.js} +5 -5
  22. package/dist/{ReportQueryFrom-DAngMJLU.js → ReportQueryFrom-C_AcrfkJ.js} +1 -1
  23. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CPpwmztJ.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Bm67ejay.js} +6 -5
  24. package/dist/{ReportTemplate-8YH3L8Pv.js → ReportTemplate-CFiNMz79.js} +26 -26
  25. package/dist/{Role-MxI30-0W.js → Role-B-XDoJd5.js} +6 -6
  26. package/dist/{RoleAssign-BzUY_y_y.js → RoleAssign-BolW8YVs.js} +9 -9
  27. package/dist/{RolePanel-DS_TErTn.js → RolePanel-2kfs5tw9.js} +1 -1
  28. package/dist/{RolePanel-CXdcvsR5.js → RolePanel-HilSuYns.js} +1 -1
  29. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CE4gApUY.js +132 -0
  30. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Ddl-A7Zh.js → RolePanel.vue_vue_type_script_setup_true_lang-DPzgfAyV.js} +42 -36
  31. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DnchUgIF.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js} +20 -20
  32. package/dist/{Staff-D7tXo_Gn.js → Staff-BTk3whFC.js} +3 -3
  33. package/dist/{StaffInfo-Bk8BY8PO.js → StaffInfo-d3AuSzlA.js} +1 -1
  34. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DqKwZi5f.js → StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js} +13 -13
  35. package/dist/{StaffPanel-VtpGCTIq.js → StaffPanel-DV-D4jjz.js} +1 -1
  36. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js +135 -0
  37. package/dist/{SysUser-D0Q6OvD7.js → SysUser-BnjYytws.js} +2 -2
  38. package/dist/{SysUserPanel-1_vrsANQ.js → SysUserPanel-CBoyD-Qi.js} +1 -1
  39. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js +341 -0
  40. package/dist/{SystemMenu-9PG3vESE.js → SystemMenu-kYB_ZaUt.js} +49 -47
  41. package/dist/{UserInfo-qgXUEGwi.js → UserInfo-4dx97VBL.js} +1 -1
  42. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CN0C5rVk.js → UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js} +35 -33
  43. package/dist/{childView-C7ZSA5fR.js → childView-CHPNfTEb.js} +1 -1
  44. package/dist/{childView-yV2QLwfA.js → childView-CKA_JgVZ.js} +1 -1
  45. package/dist/{childView.vue_vue_type_style_index_0_lang-DdKxPGdh.js → childView.vue_vue_type_style_index_0_lang-Bym2fQRd.js} +7 -7
  46. package/dist/childView.vue_vue_type_style_index_0_lang-W7bCtXeu.js +177 -0
  47. package/dist/{code-rule-95K1jr-u.js → code-rule-CbxuZg0-.js} +42 -41
  48. package/dist/core.es.js +19 -10
  49. package/dist/{cron-task-DGrQwOHs.js → cron-task-nTOpqQYf.js} +5 -5
  50. package/dist/flow-task-B07st2aD.js +10 -0
  51. package/dist/{frameView-7SmME93D.js → frameView-Z1tPUyCh.js} +15 -14
  52. package/dist/img/l_img.svg +1 -1
  53. package/dist/img/minicolors.png +0 -0
  54. package/dist/img/v_img.svg +1 -1
  55. package/dist/index-C3q8HoJM.js +4650 -0
  56. package/dist/{layoutView-C6WIVWGZ.js → layoutView--MGA9zUB.js} +1776 -1764
  57. package/dist/{log-in-e7D5Ss1P.js → log-in-CSYJDA6m.js} +36 -29
  58. package/dist/log-out-DiwGCg7p.js +130 -0
  59. package/dist/login-C6Y0ajDp.js +251 -0
  60. package/dist/{login-log-CvVnyGi3.js → login-log-C0V-_l3F.js} +6 -4
  61. package/dist/{lov-view-DoF5LqFQ.js → lov-view-Cmv7wZZ9.js} +9 -9
  62. package/dist/{menuInfo-CNzGQwOD.js → menuInfo-UeutJpOa.js} +1 -1
  63. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-51SYxVc_.js → menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js} +144 -121
  64. package/dist/pda-app-B6w99SJo.js +710 -0
  65. package/dist/redirect-BqegffKC.js +15 -0
  66. package/dist/{resource-gVFFMO9l.js → resource-BybJvUv0.js} +17 -17
  67. package/dist/{su-welcome-BN_s_RX_.js → su-welcome-C1bmxHoY.js} +124 -126
  68. package/dist/sys-config-BnmIDnCj.js +370 -0
  69. package/dist/udp-core.css +1 -9
  70. package/dist/utogether-MlnyYtNS.js +4 -0
  71. package/index.ts +19 -6
  72. package/package.json +18 -17
  73. package/src/App.vue +2 -7
  74. package/src/api/http.ts +1 -4
  75. package/src/api/index.ts +5 -3
  76. package/src/api/user.ts +2 -2
  77. package/src/components/SuCharts/src/UserInfo.vue +3 -3
  78. package/src/components/SuScrollTree/ScrollPanel.vue +4 -9
  79. package/src/components/udp/content/index.vue +88 -0
  80. package/src/components/udp/form/form.vue +109 -0
  81. package/src/components/udp/grid/index.vue +524 -0
  82. package/src/components/udp/index.ts +5 -4
  83. package/src/components/udp/ut-stamp-badge/index.vue +271 -0
  84. package/src/components/udp/utils.ts +408 -40
  85. package/src/directives/permission/index.ts +1 -1
  86. package/src/layout/components/lay-navbar/index.vue +9 -7
  87. package/src/layout/components/lay-panel/index.vue +3 -3
  88. package/src/layout/components/lay-search/index.vue +1 -1
  89. package/src/layout/components/lay-select-org/index.vue +4 -9
  90. package/src/layout/components/lay-setting/index.vue +503 -510
  91. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  92. package/src/layout/components/lay-sidebar/horizontal.vue +8 -6
  93. package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
  94. package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -98
  95. package/src/layout/components/lay-tag/index.vue +598 -625
  96. package/src/layout/hooks/useDataThemeChange.ts +1 -1
  97. package/src/layout/hooks/useNav.ts +176 -173
  98. package/src/layout/hooks/useTag.ts +227 -233
  99. package/src/layout/layoutView.vue +215 -215
  100. package/src/layout/types.ts +93 -92
  101. package/src/main.ts +115 -109
  102. package/src/plugins/i18n/en.ts +26 -13
  103. package/src/plugins/i18n/module/u-workflow.ts +1 -1
  104. package/src/plugins/i18n/zh.ts +363 -337
  105. package/src/plugins/vxe-table/index.ts +74 -4
  106. package/src/plugins/vxe-table/render.tsx +186 -58
  107. package/src/router/index.ts +187 -183
  108. package/src/router/modules/flow.ts +35 -0
  109. package/src/router/modules/home.ts +32 -32
  110. package/src/router/modules/remaining.ts +1 -26
  111. package/src/router/utils.ts +420 -377
  112. package/src/store/modules/app.ts +2 -4
  113. package/src/store/modules/epTheme.ts +48 -49
  114. package/src/store/modules/multiTags.ts +15 -14
  115. package/src/store/modules/permission.ts +25 -15
  116. package/src/store/modules/system.ts +1 -3
  117. package/src/style/button.scss +11 -4
  118. package/src/style/login.css +1 -1
  119. package/src/style/tailwind.css +1 -68
  120. package/src/style/vxetable.scss +103 -11
  121. package/src/utils/authority/index.ts +1 -1
  122. package/src/utils/dataFormat/index.ts +223 -223
  123. package/src/utils/index.ts +3 -1
  124. package/src/utils/lifecycle.ts +39 -20
  125. package/src/utils/propTypes.ts +1 -6
  126. package/src/utils/storage/index.ts +2 -2
  127. package/src/utils/{http → udp/http}/index.ts +27 -30
  128. package/src/utils/{http → udp/http}/types.d.ts +2 -6
  129. package/src/views/login/login-view.vue +6 -20
  130. package/src/views/organization/company/CompanyPanel.vue +2 -2
  131. package/src/views/organization/department/Department.vue +58 -58
  132. package/src/views/organization/department/DepartmentPanel.vue +303 -283
  133. package/src/views/organization/inv-org/InvOrganization.vue +23 -9
  134. package/src/views/organization/org/Org.vue +9 -5
  135. package/src/views/organization/staff/StaffInfo.vue +127 -133
  136. package/src/views/organization/staff/StaffPanel.vue +162 -145
  137. package/src/views/system/cron/cron-task.vue +2 -12
  138. package/src/views/system/menu/AuthorityPanel.vue +2 -2
  139. package/src/views/system/menu/SystemMenu.vue +14 -20
  140. package/src/views/system/menu/menuInfo.vue +39 -23
  141. package/src/views/system/role/AuthorityInfo.vue +19 -15
  142. package/src/views/system/role/Role.vue +1 -5
  143. package/src/views/system/role/RolePanel.vue +11 -2
  144. package/src/views/system/role/UserInfo.vue +11 -9
  145. package/src/views/system/role-assign/RoleAssign.vue +2 -2
  146. package/src/views/system/role-assign/RolePanel.vue +12 -9
  147. package/src/views/system/sys/sys-config.vue +70 -21
  148. package/src/views/system/sysUser/SysUserPanel.vue +347 -278
  149. package/src/views/uapp/pda/pda-app.vue +48 -16
  150. package/src/views/udev/coderule/code-rule.vue +132 -121
  151. package/src/views/udev/dict/DictView.vue +118 -106
  152. package/src/views/udev/dict/childView.vue +183 -222
  153. package/src/views/udev/lov/childView.vue +1 -7
  154. package/src/views/ufile/aggregation/File.vue +5 -5
  155. package/src/views/ufile/file/water-mark.vue +14 -14
  156. package/src/views/uhome/components/menu-favorite.vue +314 -331
  157. package/src/views/uhome/su-welcome.vue +319 -339
  158. package/src/views/ulogin/login.vue +325 -316
  159. package/src/views/upms/interface/log-in.vue +100 -106
  160. package/src/views/upms/interface/log-out.vue +104 -107
  161. package/src/views/upms/user/login-log.vue +54 -60
  162. package/src/views/urpt/design/DesignPanel.vue +16 -35
  163. package/src/views/urpt/design/Preview.vue +1 -0
  164. package/src/views/urpt/design/ReportDesign.vue +17 -23
  165. package/src/views/urpt/static-resource/resource.vue +3 -3
  166. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  167. package/src/views/utask/flow-task.vue +18 -0
  168. package/types/global.d.ts +231 -236
  169. package/vite.config.ts +13 -2
  170. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-32L40GY2.js +0 -102
  171. package/dist/DictView-q7kR9K--.js +0 -95
  172. package/dist/InvOrganization-DI45LqZV.js +0 -260
  173. package/dist/Org-CZju_ZiR.js +0 -35
  174. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DJKu6PXz.js +0 -126
  175. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-C3Ixs12y.js +0 -111
  176. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-C5XEmxsV.js +0 -288
  177. package/dist/childView.vue_vue_type_style_index_0_lang-bkmucBUL.js +0 -187
  178. package/dist/core.umd.js +0 -173
  179. package/dist/index-OswH7SsT.js +0 -9937
  180. package/dist/log-out--RRncZhN.js +0 -120
  181. package/dist/login-BhCMeCLS.js +0 -251
  182. package/dist/pda-app-nn3llDUx.js +0 -2209
  183. package/dist/redirect-CmMplDV4.js +0 -15
  184. package/dist/sys-config-DGutV-VX.js +0 -277
  185. package/dist/utogether-wFDCI28t.js +0 -182
  186. package/src/assets/images/empty.png +0 -0
  187. package/src/assets/images/logo.png +0 -0
  188. package/src/components/ReCountTo/README.md +0 -2
  189. package/src/components/ReCountTo/index.ts +0 -18
  190. package/src/components/ReCountTo/src/normal/index.tsx +0 -165
  191. package/src/components/ReCountTo/src/normal/props.ts +0 -37
  192. package/src/components/ReCountTo/src/rebound/index.tsx +0 -67
  193. package/src/components/ReCountTo/src/rebound/props.ts +0 -14
  194. package/src/components/ReCountTo/src/rebound/rebound.css +0 -77
  195. package/src/components/ReCropper/index.ts +0 -14
  196. package/src/components/ReCropper/src/index.tsx +0 -141
  197. package/src/components/ReFlicker/index.css +0 -39
  198. package/src/components/ReFlicker/index.ts +0 -50
  199. package/src/components/ReFlop/index.ts +0 -14
  200. package/src/components/ReFlop/src/Filpper.tsx +0 -99
  201. package/src/components/ReFlop/src/filpper.css +0 -184
  202. package/src/components/ReFlop/src/index.vue +0 -126
  203. package/src/components/ReFlowChart/index.ts +0 -24
  204. package/src/components/ReFlowChart/src/Control.vue +0 -139
  205. package/src/components/ReFlowChart/src/DataDialog.vue +0 -12
  206. package/src/components/ReFlowChart/src/NodePanel.vue +0 -151
  207. package/src/components/ReFlowChart/src/adpterForTurbo.ts +0 -160
  208. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +0 -49
  209. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
  210. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +0 -61
  211. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +0 -58
  212. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +0 -47
  213. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
  214. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
  215. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
  216. package/src/components/ReFlowChart/src/config.ts +0 -62
  217. package/src/components/ReSplitPane/index.css +0 -49
  218. package/src/components/ReSplitPane/index.tsx +0 -119
  219. package/src/components/ReSplitPane/resizer.css +0 -45
  220. package/src/components/ReSplitPane/resizer.tsx +0 -30
  221. package/src/components/SuCommon/card/components/Card.vue +0 -148
  222. package/src/components/SuCommon/card/components/DialogForm.vue +0 -127
  223. package/src/components/SuCommon/card/index.vue +0 -142
  224. package/src/components/SuCommon/icon-select/index.vue +0 -241
  225. package/src/components/SuCommon/table/index.vue +0 -208
  226. package/src/components/SuCommon/utils/index.ts +0 -103
  227. package/src/components/SuCommon/utils/slot.tsx +0 -50
  228. package/src/components/udp/form-upload.vue +0 -132
  229. package/src/components/udp/modal-form.vue +0 -180
  230. package/src/utils/udp/useRender.ts +0 -420
  231. package/src/views/components/contextmenu/basic.vue +0 -74
  232. package/src/views/components/contextmenu/context-menu.vue +0 -40
  233. package/src/views/components/contextmenu/menuDynamic.vue +0 -99
  234. package/src/views/components/contextmenu/menuGroup.vue +0 -71
  235. package/src/views/components/count-to/index.vue +0 -43
  236. package/src/views/components/cropping/index.vue +0 -59
  237. package/src/views/components/cropping/picture.jpeg +0 -0
  238. package/src/views/components/split-pane/index.vue +0 -82
  239. package/src/views/components/video/index.vue +0 -57
@@ -0,0 +1,15 @@
1
+ import { defineComponent as a, unref as p, createElementBlock as s, openBlock as u } from "vue";
2
+ import { useRouter as _ } from "vue-router";
3
+ const m = { name: "Redirect" }, y = /* @__PURE__ */ a({
4
+ ...m,
5
+ setup(i) {
6
+ const { currentRoute: t, replace: r } = _(), { params: o, query: n } = p(t), { path: e } = o, c = Array.isArray(e) ? e.join("/") : e;
7
+ return r({
8
+ path: "/" + c,
9
+ query: n
10
+ }), (f, l) => (u(), s("div"));
11
+ }
12
+ });
13
+ export {
14
+ y as default
15
+ };
@@ -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 b, createCommentVNode as x, Fragment as B } from "vue";
2
- import { successMessage as U } 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 U } from "vue";
2
+ import { successMessage as B } from "@utogether/utils";
3
3
  import { useClipboard as N } from "@vueuse/core";
4
- import { B as y } from "./index-OswH7SsT.js";
4
+ import { G as y } from "./index-C3q8HoJM.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(B, null, [r(l("ut-button"), {
35
+ }) => [l(U, 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,30 +63,30 @@ 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), U("复制成功,快试试右键粘贴吧");
66
+ m(d + "/ufil/" + e.templateUrl), B("复制成功,快试试右键粘贴吧");
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(), b(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
91
  }, null, 8, ["record"])) : x("", !0)]);
92
92
  };
@@ -1,10 +1,14 @@
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";
2
- import { w as G, i as oe, c as ne, p as le, _ as ae } from "./index-OswH7SsT.js";
3
- import ce from "dayjs";
4
- import { dbstorage as ie, delay as re, warnMessage as ue, successMessage as de, lunarCalendar as me, cookies as fe } from "@utogether/utils";
5
- import { clone as _e, max as ve } from "xe-utils";
6
- import pe from "vuedraggable";
7
- 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 = "/upms/v1/menuFavority", Le = /* @__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({
8
12
  __name: "menu-favorite",
9
13
  props: {
10
14
  dataSource: { default: () => [] },
@@ -12,14 +16,14 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
12
16
  userName: { default: "" }
13
17
  },
14
18
  emits: ["close", "success"],
15
- setup(P, { emit: h }) {
16
- const j = P, r = y([]), $ = y([]), b = y(!1), I = y(!1), u = y({}), L = async () => {
17
- $.value = await ie.getItem(`U-${j.userName}-ROUTES`), $.value = $.value.filter((o) => o.menuCode !== "SysHome"), await re(64), A();
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();
18
22
  }, R = (o, s) => {
19
23
  var n;
20
- r.value.splice(s, 1);
21
- const t = (n = u.value[o.parentId]) == null ? void 0 : n.findIndex((v) => v === o.menuId);
22
- u.value[o.parentId].splice(t, 1);
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);
23
27
  }, V = (o) => {
24
28
  const s = [], t = [];
25
29
  return o.children.forEach((n) => {
@@ -27,37 +31,35 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
27
31
  }), { folder: s, menus: t };
28
32
  }, A = () => {
29
33
  j.dataSource.forEach((o) => {
30
- u.value[o.parentId] ? u.value[o.parentId].push(o.menuId) : u.value[o.parentId] = [o.menuId];
34
+ r.value[o.parentId] ? r.value[o.parentId].push(o.menuId) : r.value[o.parentId] = [o.menuId];
31
35
  });
32
36
  }, D = (o, s) => {
33
- debugger;
34
37
  if (s.checked) {
35
- if (r.value.length === 16)
38
+ if (d.value.length === 16)
36
39
  return X(() => {
37
- u.value[o.id].splice(u.value[o.id].length - 1, 1);
38
- }), ue("最多只能选择16个常用功能");
40
+ r.value[o.id].splice(r.value[o.id].length - 1, 1);
41
+ }), ie("最多只能选择16个常用功能");
39
42
  const t = o.children.find((n) => n.id === s.label);
40
- t && (t.seqNo = H() + 10, t.menuId = t.id, r.value.push(t));
43
+ t && (t.seqNo = H() + 10, t.menuId = t.id, d.value.push(t));
41
44
  } else {
42
- let t = r.value.findIndex((n) => n.menuId === s.label);
43
- 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);
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);
44
47
  }
45
48
  }, F = () => {
46
- r.value.forEach((o, s) => {
49
+ d.value.forEach((o, s) => {
47
50
  o.seqNo = (s + 1) * 10;
48
51
  });
49
52
  }, H = () => {
50
53
  var o;
51
- return ((o = ve(r.value, (s) => s.seqNo)) == null ? void 0 : o.seqNo) || 0;
54
+ return ((o = _e(d.value, (s) => s.seqNo)) == null ? void 0 : o.seqNo) || 0;
52
55
  }, T = () => {
53
- console.log(r);
54
- const o = r.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
- console.log(o), I.value = !0, G().post(Ee, o).then(() => {
60
- de(), E(), 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
  });
@@ -65,9 +67,9 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
65
67
  b.value = !1, z("close");
66
68
  }, q = (o) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][o % 5], z = h;
67
69
  return K(() => {
68
- r.value = _e(j.dataSource, !0), b.value = !0, L();
70
+ d.value = pe(j.dataSource, !0), b.value = !0, L();
69
71
  }), (o, s) => {
70
- const t = _("el-empty"), n = _("iconify-icon-offline"), v = _("el-scrollbar"), M = _("vxe-checkbox"), S = _("vxe-checkbox-group"), w = _("ut-button"), U = _("vxe-modal");
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),
@@ -79,36 +81,36 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
79
81
  "show-footer": "",
80
82
  onClose: E
81
83
  }, {
82
- default: c(() => [
84
+ default: i(() => [
83
85
  e("div", ge, [
84
- i(v, {
86
+ c(_, {
85
87
  heigth: "100",
86
88
  class: "w-full border-b border-slate-300"
87
89
  }, {
88
- default: c(() => [
90
+ default: i(() => [
89
91
  e("div", he, [
90
- r.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
- i(B(pe), {
97
- list: r.value,
98
+ c(B(ve), {
99
+ list: d.value,
98
100
  handle: ".drag-item",
99
101
  animation: "300",
100
102
  "item-key": "id",
101
103
  class: "flex",
102
104
  onEnd: F
103
105
  }, {
104
- item: c(({ element: m, index: l }) => [
106
+ item: i(({ element: m, index: l }) => [
105
107
  e("div", xe, [
106
108
  e("div", ye, [
107
109
  e("div", {
108
110
  class: "rounded-full w-10 h-10 flex items-center justify-center",
109
111
  style: Q({ backgroundColor: q(l) })
110
112
  }, [
111
- i(n, {
113
+ c(n, {
112
114
  icon: m.icon || `ri:${o.icons[l]}-line`,
113
115
  class: "text-2xl text-white"
114
116
  }, null, 8, ["icon"])
@@ -116,7 +118,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
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
- i(v, { class: "u-favorite-menu--contain" }, {
131
- default: c(() => [
132
+ c(_, { class: "u-favorite-menu--contain" }, {
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
  }, [
@@ -139,13 +141,13 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
139
141
  e("div", Ne, f(m.menuName), 1)
140
142
  ]),
141
143
  e("div", $e, [
142
- i(S, {
143
- modelValue: u.value[m.id],
144
- "onUpdate:modelValue": (l) => u.value[m.id] = l,
144
+ c(S, {
145
+ modelValue: r.value[m.id],
146
+ "onUpdate:modelValue": (l) => r.value[m.id] = l,
145
147
  onChange: (l) => D(m, l)
146
148
  }, {
147
- default: c(() => [
148
- (a(!0), p(k, null, C(V(m).menus, (l) => (a(), N(M, {
149
+ default: i(() => [
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
  }, [
@@ -163,37 +165,37 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
163
165
  e("div", Ve, f(l.menuName), 1)
164
166
  ]),
165
167
  e("div", Me, [
166
- i(S, {
167
- modelValue: u.value[l.id],
168
- "onUpdate:modelValue": (d) => u.value[l.id] = d,
169
- onChange: (d) => D(l, d)
168
+ c(S, {
169
+ modelValue: r.value[l.id],
170
+ "onUpdate:modelValue": (u) => r.value[l.id] = u,
171
+ onChange: (u) => D(l, u)
170
172
  }, {
171
- default: c(() => [
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
173
+ default: i(() => [
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
- i(S, {
191
- modelValue: u.value[d.id],
192
- "onUpdate:modelValue": (x) => u.value[d.id] = x,
192
+ c(S, {
193
+ modelValue: r.value[u.id],
194
+ "onUpdate:modelValue": (x) => r.value[u.id] = x,
193
195
  onChange: (x) => D(l, x)
194
196
  }, {
195
- default: c(() => [
196
- (a(!0), p(k, null, C(V(d).menus, (x) => (a(), N(M, {
197
+ default: i(() => [
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
@@ -211,14 +213,14 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
211
213
  })
212
214
  ])
213
215
  ]),
214
- footer: c(() => [
216
+ footer: i(() => [
215
217
  e("div", De, [
216
- i(w, {
218
+ c(w, {
217
219
  content: "cancel",
218
220
  status: "warning",
219
221
  onTap: E
220
222
  }),
221
- i(w, {
223
+ c(w, {
222
224
  content: "confirm",
223
225
  onTap: T
224
226
  })
@@ -228,35 +230,31 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
228
230
  }, 8, ["modelValue", "loading"]);
229
231
  };
230
232
  }
231
- }), 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({
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 = oe(), j = ne(), r = y([]), $ = y([]), b = y(!1), I = y(!1), u = 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
240
  }), L = () => {
239
241
  var t, n;
240
- return h.isAdminRole ? "系统管理员" : (n = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : n.map((v) => v.roleName).join(",");
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
245
  return h.isAdminRole ? "【系统管理员】拥有所有组织" : L() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((n) => n.orgName).join(",");
244
246
  }, V = () => {
245
- const s = Number(ce().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 = me.solar2lunar(
249
- s.getFullYear(),
250
- s.getMonth() + 1,
251
- s.getDate()
252
- ), { gzYear: n, IMonthCn: v, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
253
- return `${S}月${w}日 ${n}${v}${M} ${U}`;
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}`;
254
252
  }, D = () => {
255
- const s = "/upms/v1/menuFavority";
253
+ const s = "/upfm/v1/menuFavority";
256
254
  I.value = !0;
257
- const t = { pageSize: 20, pageNum: 1, userName: fe.get(le) };
258
- G().get(s, t).then((n) => {
259
- r.value = (n == null ? void 0 : n.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
  });
@@ -264,9 +262,9 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
264
262
  j.push(s.menuPath);
265
263
  }, H = () => {
266
264
  var n;
267
- const s = "/upms/v1/userMonitor", t = { pageSize: 8, pageNum: 1, employeeName: (n = h.getUserInfo) == null ? void 0 : n.name };
268
- G().get(s, t).then((v) => {
269
- $.value = (v == null ? void 0 : v.list) || [];
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;
@@ -328,17 +326,17 @@ 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 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");
332
- return a(), p("div", qe, [
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
- i(n, {
334
+ c(n, {
337
335
  size: "large",
338
336
  class: "text-4xl font-bold bg-[var(--el-color-primary)]"
339
337
  }, {
340
- default: c(() => [
341
- Y(f(u.value), 1)
338
+ default: i(() => [
339
+ Y(f(r.value), 1)
342
340
  ]),
343
341
  _: 1
344
342
  })
@@ -361,29 +359,29 @@ 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
- i(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
- i(l, {
372
+ c(l, {
375
373
  class: "m-2",
376
374
  gutter: 10
377
375
  }, {
378
- default: c(() => [
376
+ default: i(() => [
379
377
  te((a(), N(U, {
380
378
  lg: 24,
381
379
  md: 24,
382
380
  class: ""
383
381
  }, {
384
- default: c(() => [
385
- i(w, { class: "mb-2" }, {
386
- header: c(() => [
382
+ default: i(() => [
383
+ c(w, { class: "mb-2" }, {
384
+ header: i(() => [
387
385
  e("div", { class: "flex items-center justify-between dark:bg-black" }, [
388
386
  t[5] || (t[5] = e("span", { class: "font-bold" }, "常用菜单", -1)),
389
387
  e("span", {
@@ -395,18 +393,18 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
395
393
  ]))
396
394
  ])
397
395
  ]),
398
- default: c(() => [
396
+ default: i(() => [
399
397
  e("div", Ye, [
400
- r.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": r.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(r.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: E(W) })
415
+ style: Q({ backgroundColor: E(P) })
418
416
  }, [
419
- i(S, {
420
- icon: g.icon || `ri:${q[W]}-line`,
417
+ c(S, {
418
+ icon: g.icon || `ri:${q[P]}-line`,
421
419
  class: "text-2xl text-white"
422
420
  }, null, 8, ["icon"])
423
421
  ], 4),
@@ -433,32 +431,32 @@ 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
- i(U, {
436
+ c(U, {
439
437
  xl: 16,
440
438
  lg: 12,
441
439
  md: 24
442
440
  }, {
443
- default: c(() => [
444
- i(w, { class: "mb-2" }, {
445
- header: c(() => t[7] || (t[7] = [
441
+ default: i(() => [
442
+ c(w, { class: "mb-2" }, {
443
+ header: i(() => t[7] || (t[7] = [
446
444
  e("div", { class: "font-bold" }, [
447
445
  e("span", null, "个人动态")
448
446
  ], -1)
449
447
  ])),
450
- default: c(() => [
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
- i(n, { class: "text-base" }, {
460
- default: c(() => [
461
- Y(f(u.value), 1)
457
+ c(n, { class: "text-base" }, {
458
+ default: i(() => [
459
+ Y(f(r.value), 1)
462
460
  ]),
463
461
  _: 1
464
462
  })
@@ -480,22 +478,22 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
480
478
  ]),
481
479
  _: 1
482
480
  }),
483
- i(U, {
481
+ c(U, {
484
482
  xl: 8,
485
483
  lg: 12,
486
484
  md: 24,
487
485
  class: ""
488
486
  }, {
489
- default: c(() => [
490
- i(w, { class: "mb-2" }, {
491
- header: c(() => t[8] || (t[8] = [
487
+ default: i(() => [
488
+ c(w, { class: "mb-2" }, {
489
+ header: i(() => t[8] || (t[8] = [
492
490
  e("div", { class: "font-bold" }, [
493
491
  e("span", null, "日历")
494
492
  ], -1)
495
493
  ])),
496
- default: c(() => [
494
+ default: i(() => [
497
495
  e("div", nt, [
498
- i(m, {
496
+ c(m, {
499
497
  holidays: z,
500
498
  "statutory-holiday": o
501
499
  })
@@ -511,7 +509,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
511
509
  }),
512
510
  b.value ? (a(), N(Le, {
513
511
  key: 0,
514
- "data-source": r.value,
512
+ "data-source": d.value,
515
513
  "user-name": B(h).getUserInfo.userName,
516
514
  icons: q,
517
515
  onClose: t[0] || (t[0] = (g) => b.value = !1),
@@ -520,7 +518,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
520
518
  ]);
521
519
  };
522
520
  }
523
- }), ft = /* @__PURE__ */ ae(lt, [["__scopeId", "data-v-6a2c1a83"]]);
521
+ }), pt = /* @__PURE__ */ fe(lt, [["__scopeId", "data-v-e82b305d"]]);
524
522
  export {
525
- ft as default
523
+ pt as default
526
524
  };