@utogether/udp-core 1.0.4-beta.3 → 2.0.0-beta.1

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 (75) hide show
  1. package/dist/{403-Br5N4PKN.js → 403-CTJDBjz7.js} +1 -1
  2. package/dist/{404-Cphyvdq5.js → 404-BFYkWIkQ.js} +1 -1
  3. package/dist/{500-B-3UGX9B.js → 500-DGG3qadg.js} +1 -1
  4. package/dist/{AuthorityInfo-B-OkSW-b.js → AuthorityInfo-ozZIo1Te.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-C0YHB5FG.js → AuthorityInfo.vue_vue_type_style_index_0_lang-DujerENw.js} +1 -1
  6. package/dist/{AuthorityPanel-BzIh29KB.js → AuthorityPanel-CRlAwbaI.js} +1 -1
  7. package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-D3GN0Ybz.js → AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js} +0 -1
  8. package/dist/{Company-GuWnxwpp.js → Company-6VJtwh23.js} +3 -3
  9. package/dist/{CompanyPanel-C3fB3IiJ.js → CompanyPanel-B2P488mq.js} +1 -1
  10. package/dist/{Department-B2cHYzWw.js → Department-BnwoLEOC.js} +3 -3
  11. package/dist/{DepartmentPanel-p3Nh1l2h.js → DepartmentPanel-CRrrmxtv.js} +1 -1
  12. package/dist/{DesignPanel-DPyiLBdU.js → DesignPanel-CvbccgX2.js} +1 -1
  13. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Dom1Fjkx.js → DesignPanel.vue_vue_type_style_index_0_lang-Dz2tUszs.js} +2 -2
  14. package/dist/{DictView-o4ZaWa-_.js → DictView-Ce1LoVHh.js} +17 -16
  15. package/dist/{InvOrganization-a-Z9thJX.js → InvOrganization-BwCFZO1X.js} +1 -1
  16. package/dist/{Org-Clyb77M1.js → Org-0hzs6b0R.js} +1 -1
  17. package/dist/{Preview-D4TR9Oi6.js → Preview--DnEAhwh.js} +1 -1
  18. package/dist/{ReportDefine-BSrw2it1.js → ReportDefine-Cu983bTN.js} +1 -1
  19. package/dist/{ReportDesign-DZJia5c3.js → ReportDesign-QsWXXgvo.js} +2 -2
  20. package/dist/{ReportQuery-B7-jctXZ.js → ReportQuery-BjKIIhPu.js} +1 -1
  21. package/dist/{ReportQueryFrom-CUB0cyYW.js → ReportQueryFrom-DIjBO6Fx.js} +1 -1
  22. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-DCjYH6zz.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-0T62cUMK.js} +1 -1
  23. package/dist/{ReportTemplate-B5fV2yP8.js → ReportTemplate-2uk9tJcy.js} +1 -1
  24. package/dist/{Role-CYFOwua_.js → Role-_QP8QEaI.js} +3 -3
  25. package/dist/{RoleAssign-B1zojluk.js → RoleAssign-C2gkcmEQ.js} +3 -3
  26. package/dist/{RolePanel-Dd4pcCsa.js → RolePanel-B8FPNGaA.js} +1 -1
  27. package/dist/{RolePanel-C4OpgPKj.js → RolePanel-vnl_lXNY.js} +1 -1
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-C23dTOLA.js → RolePanel.vue_vue_type_script_setup_true_lang-BuQbYEEI.js} +1 -1
  29. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CgBOYiMe.js → RolePanel.vue_vue_type_script_setup_true_lang-bxHXrBYl.js} +3 -3
  30. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-C6lFErKj.js → ScrollPanel.vue_vue_type_style_index_0_lang-C6yZXBqB.js} +1 -1
  31. package/dist/{Staff-BKAIz1Y8.js → Staff-CHWrMIEb.js} +3 -3
  32. package/dist/{StaffInfo-BZ2pgagl.js → StaffInfo-Cpq2eayz.js} +1 -1
  33. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-YWKBlMp8.js → StaffInfo.vue_vue_type_script_setup_true_lang-BVCjF2i1.js} +1 -1
  34. package/dist/{StaffPanel-5xQ0DM6e.js → StaffPanel-D2BMXt5p.js} +1 -1
  35. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DofQGe0q.js → StaffPanel.vue_vue_type_script_setup_true_lang-B6jAGo-g.js} +2 -2
  36. package/dist/{SysUser-Dr8-NYfp.js → SysUser-om6H1BeC.js} +2 -2
  37. package/dist/{SysUserPanel-BhE8NIQY.js → SysUserPanel-CH0HPP7h.js} +1 -1
  38. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BYYN1LQO.js → SysUserPanel.vue_vue_type_script_setup_true_lang-Dpl13ee0.js} +126 -111
  39. package/dist/{SystemMenu-Bl0k_S_c.js → SystemMenu-BkG_DKxA.js} +3 -3
  40. package/dist/{UserInfo-BpeCyf8v.js → UserInfo-D9croxUe.js} +1 -1
  41. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-B0fISZLD.js → UserInfo.vue_vue_type_style_index_0_lang-DLIP8xpN.js} +1 -1
  42. package/dist/{childView-CQWyQ-Sv.js → childView-BY_Ip-l1.js} +1 -1
  43. package/dist/{childView-DUcTfYwO.js → childView-CHp_TueS.js} +1 -1
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-C8d0diQd.js → childView.vue_vue_type_style_index_0_lang-BNHbDRjt.js} +25 -22
  45. package/dist/{childView.vue_vue_type_style_index_0_lang-BPCiUGed.js → childView.vue_vue_type_style_index_0_lang-CbjGf7Z7.js} +1 -1
  46. package/dist/{code-rule-D6anPMlp.js → code-rule-Ce6yWqCq.js} +1 -1
  47. package/dist/core.es.js +1 -1
  48. package/dist/{cron-task-CX3dv9cg.js → cron-task-DziaH0rI.js} +1 -1
  49. package/dist/{frameView-CiHjp0gt.js → frameView-DNeCVQaY.js} +1 -1
  50. package/dist/{index-D1ZRyH4N.js → index-BabfUVv_.js} +63 -51
  51. package/dist/layout-home-Cis1KlEr.js +195 -0
  52. package/dist/{layoutView-BtcYxZ_W.js → layoutView-12Mlp9A2.js} +1 -1
  53. package/dist/{log-in-T4W0z5yw.js → log-in-1NGaA5OM.js} +1 -1
  54. package/dist/{log-out-CAEvQEgw.js → log-out-B8_atGcQ.js} +1 -1
  55. package/dist/{login-D7hSd_P_.js → login-5dydO6GR.js} +1 -1
  56. package/dist/{lov-view-CJsunGJ_.js → lov-view-DPvGUu3h.js} +2 -2
  57. package/dist/{menuInfo-Ce0G0xKJ.js → menuInfo-DVADYfEK.js} +1 -1
  58. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CDHg7Yu5.js → menuInfo.vue_vue_type_style_index_0_lang-DgsifDrm.js} +1 -1
  59. package/dist/{pda-app-CRLpLdHN.js → pda-app-BZXs-2BQ.js} +1 -1
  60. package/dist/{resource-Cbn8Rolz.js → resource-BZA9NFKc.js} +1 -1
  61. package/dist/su-welcome-BXe6Cdp3.js +580 -0
  62. package/dist/{sys-config-CCv0suKh.js → sys-config-DQmNjWH4.js} +1 -1
  63. package/dist/udp-core.css +1 -1
  64. package/package.json +1 -1
  65. package/src/main.ts +2 -5
  66. package/src/plugins/i18n/zh.ts +15 -3
  67. package/src/views/system/layout/layout-home.vue +199 -0
  68. package/src/views/system/menu/AuthorityPanel.vue +0 -1
  69. package/src/views/system/sysUser/SysUserPanel.vue +22 -6
  70. package/src/views/udev/dict/DictView.vue +2 -2
  71. package/src/views/udev/dict/childView.vue +1 -0
  72. package/src/views/uhome/dynamic-card.vue +32 -0
  73. package/src/views/uhome/su-welcome.vue +10 -5
  74. package/types/global.d.ts +1 -0
  75. package/dist/su-welcome-BSakSi9Z.js +0 -524
@@ -0,0 +1,580 @@
1
+ import { defineComponent as G, ref as C, onMounted as Y, resolveComponent as _, createBlock as w, openBlock as o, withCtx as c, createElementVNode as e, createVNode as r, createCommentVNode as D, unref as W, normalizeStyle as X, toDisplayString as v, createElementBlock as f, Fragment as I, renderList as V, nextTick as Z, resolveDynamicComponent as ee, defineAsyncComponent as te, computed as ne, resolveDirective as se, createTextVNode as Q, withDirectives as oe, normalizeClass as le } from "vue";
2
+ import { useRouter as ae } from "vue-router";
3
+ import ce from "dayjs";
4
+ import { dbstorage as ie, delay as re, warnMessage as ue, successMessage as de, lunarCalendar as me, cookies as _e } from "@utogether/utils";
5
+ import { y as F, i as fe, p as pe, _ as ve } from "./index-BabfUVv_.js";
6
+ import { clone as ge, max as he } from "xe-utils";
7
+ import xe from "vuedraggable";
8
+ import { t as ye } from "./await-to-js.es5-BtRbN2QH.js";
9
+ const be = { class: "" }, we = { class: "w-full h-24" }, ke = { class: "" }, Ce = { class: "h-24 w-24 flex justify-center items-center flex-col relative drag-item ut-menu-top-item" }, Ne = { class: "w-[90%] text-xs mt-2 text-ellipsis overflow-hidden whitespace-nowrap text-center" }, $e = ["onClick"], Ie = {
10
+ class: "p-3 pb-14",
11
+ style: { "padding-bottom": "54px" }
12
+ }, Ve = { class: "flex items-center" }, Se = { class: "ml-1 font-bold text-base" }, Me = { class: "pl-3 py-2" }, Ue = { class: "flex items-center" }, je = { class: "ml-1 font-bold text-sm" }, De = { class: "pl-3 py-2" }, Ee = { class: "flex items-center" }, Le = { class: "ml-1 font-bold text-sm" }, ze = { class: "py-2" }, Re = { class: "flex justify-end" }, Ae = "/upfm/v1/menuFavority", qe = /* @__PURE__ */ G({
13
+ __name: "menu-favorite",
14
+ props: {
15
+ dataSource: { default: () => [] },
16
+ icons: { default: () => [] },
17
+ userName: { default: "" }
18
+ },
19
+ emits: ["close", "success"],
20
+ setup(H, { emit: h }) {
21
+ const S = H, d = C([]), N = C([]), g = C(!1), y = C(!1), i = C({}), b = async () => {
22
+ N.value = await ie.getItem(`U-${S.userName}-ROUTES`), N.value = N.value.filter((s) => s.menuCode !== "SysHome"), await re(64), T();
23
+ }, A = (s, l) => {
24
+ var t;
25
+ d.value.splice(l, 1);
26
+ const n = (t = i.value[s.parentId]) == null ? void 0 : t.findIndex((u) => u === s.menuId);
27
+ i.value[s.parentId].splice(n, 1);
28
+ }, U = (s) => {
29
+ const l = [], n = [];
30
+ return s.children.forEach((t) => {
31
+ ["5", "100"].includes(t.menuCategory) ? l.push(t) : n.push(t);
32
+ }), { folder: l, menus: n };
33
+ }, T = () => {
34
+ S.dataSource.forEach((s) => {
35
+ i.value[s.parentId] ? i.value[s.parentId].push(s.menuId) : i.value[s.parentId] = [s.menuId];
36
+ });
37
+ }, E = (s, l) => {
38
+ if (l.checked) {
39
+ if (d.value.length === 16)
40
+ return Z(() => {
41
+ i.value[s.id].splice(i.value[s.id].length - 1, 1);
42
+ }), ue("最多只能选择16个常用功能");
43
+ const n = s.children.find((t) => t.id === l.label);
44
+ n && (n.seqNo = O() + 10, n.menuId = n.id, d.value.push(n));
45
+ } else {
46
+ let n = d.value.findIndex((t) => t.menuId === l.label);
47
+ n !== -1 && d.value.splice(n, 1), n = i.value[s.id].findIndex((t) => t === l.label), n !== -1 && i.value[s.id].splice(n, 1);
48
+ }
49
+ }, q = () => {
50
+ d.value.forEach((s, l) => {
51
+ s.seqNo = (l + 1) * 10;
52
+ });
53
+ }, O = () => {
54
+ var s;
55
+ return ((s = he(d.value, (l) => l.seqNo)) == null ? void 0 : s.seqNo) || 0;
56
+ }, B = () => {
57
+ const s = d.value.map((l, n) => ({
58
+ userName: S.userName,
59
+ menuId: l.menuId,
60
+ seqNo: 10 * (n + 1)
61
+ }));
62
+ y.value = !0, F().post(Ae, s).then(() => {
63
+ de(), L(), z("success");
64
+ }).finally(() => {
65
+ y.value = !1;
66
+ });
67
+ }, L = () => {
68
+ g.value = !1, z("close");
69
+ }, P = (s) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][s % 5], z = h;
70
+ return Y(() => {
71
+ d.value = ge(S.dataSource, !0), g.value = !0, b();
72
+ }), (s, l) => {
73
+ const n = _("el-empty"), t = _("iconify-icon-offline"), u = _("el-scrollbar"), x = _("vxe-checkbox"), M = _("vxe-checkbox-group"), j = _("ut-button"), R = _("vxe-modal");
74
+ return o(), w(R, {
75
+ modelValue: g.value,
76
+ "onUpdate:modelValue": l[0] || (l[0] = (m) => g.value = m),
77
+ loading: y.value,
78
+ width: "75%",
79
+ height: "80%",
80
+ title: "常用菜单设置(拖动可改变菜单顺序)",
81
+ "class-name": "u-favorite-modal",
82
+ "show-footer": "",
83
+ onClose: L
84
+ }, {
85
+ default: c(() => [
86
+ e("div", be, [
87
+ r(u, {
88
+ heigth: "100",
89
+ class: "w-full border-b border-slate-300"
90
+ }, {
91
+ default: c(() => [
92
+ e("div", we, [
93
+ d.value.length ? D("", !0) : (o(), w(n, {
94
+ key: 0,
95
+ "image-size": 50,
96
+ description: "",
97
+ class: "p-0"
98
+ })),
99
+ r(W(xe), {
100
+ list: d.value,
101
+ handle: ".drag-item",
102
+ animation: "300",
103
+ "item-key": "id",
104
+ class: "flex",
105
+ onEnd: q
106
+ }, {
107
+ item: c(({ element: m, index: a }) => [
108
+ e("div", ke, [
109
+ e("div", Ce, [
110
+ e("div", {
111
+ class: "rounded-full w-10 h-10 flex items-center justify-center",
112
+ style: X({ backgroundColor: P(a) })
113
+ }, [
114
+ r(t, {
115
+ icon: m.icon || `ri:${s.icons[a]}-line`,
116
+ class: "text-2xl text-white"
117
+ }, null, 8, ["icon"])
118
+ ], 4),
119
+ e("span", Ne, v(m.menuName), 1),
120
+ e("i", {
121
+ class: "ri-indeterminate-circle-line right-3 top-2 text-base hidden ut-menu-del",
122
+ onClick: (p) => A(m, a)
123
+ }, null, 8, $e)
124
+ ])
125
+ ])
126
+ ]),
127
+ _: 1
128
+ }, 8, ["list"])
129
+ ])
130
+ ]),
131
+ _: 1
132
+ }),
133
+ r(u, { class: "u-favorite-menu--contain" }, {
134
+ default: c(() => [
135
+ e("div", Ie, [
136
+ (o(!0), f(I, null, V(N.value, (m) => (o(), f("div", {
137
+ key: m.id,
138
+ class: "grandparent-node"
139
+ }, [
140
+ e("div", Ve, [
141
+ l[1] || (l[1] = e("div", { class: "w-2 h-4 bg-green-400" }, null, -1)),
142
+ e("div", Se, v(m.menuName), 1)
143
+ ]),
144
+ e("div", Me, [
145
+ r(M, {
146
+ modelValue: i.value[m.id],
147
+ "onUpdate:modelValue": (a) => i.value[m.id] = a,
148
+ onChange: (a) => E(m, a)
149
+ }, {
150
+ default: c(() => [
151
+ (o(!0), f(I, null, V(U(m).menus, (a) => (o(), w(x, {
152
+ key: a.id,
153
+ label: a.id,
154
+ content: a.menuName
155
+ }, null, 8, ["label", "content"]))), 128))
156
+ ]),
157
+ _: 2
158
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
159
+ ]),
160
+ (o(!0), f(I, null, V(U(m).folder, (a) => (o(), f("div", {
161
+ key: a.id,
162
+ class: "parent-node pl-3"
163
+ }, [
164
+ e("div", Ue, [
165
+ l[2] || (l[2] = e("div", { class: "w-2 h-4 bg-blue-400" }, null, -1)),
166
+ e("div", je, v(a.menuName), 1)
167
+ ]),
168
+ e("div", De, [
169
+ r(M, {
170
+ modelValue: i.value[a.id],
171
+ "onUpdate:modelValue": (p) => i.value[a.id] = p,
172
+ onChange: (p) => E(a, p)
173
+ }, {
174
+ default: c(() => [
175
+ (o(!0), f(I, null, V(U(a).menus, (p) => (o(), w(x, {
176
+ key: p.id,
177
+ label: p.id,
178
+ content: p.menuName
179
+ }, null, 8, ["label", "content"]))), 128))
180
+ ]),
181
+ _: 2
182
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
183
+ ]),
184
+ (o(!0), f(I, null, V(U(a).folder, (p) => (o(), f("div", {
185
+ key: p.id,
186
+ class: "child-node pl-3"
187
+ }, [
188
+ e("div", Ee, [
189
+ l[3] || (l[3] = e("div", { class: "w-2 h-4 bg-red-400" }, null, -1)),
190
+ e("div", Le, v(p.menuName), 1)
191
+ ]),
192
+ e("div", ze, [
193
+ r(M, {
194
+ modelValue: i.value[p.id],
195
+ "onUpdate:modelValue": ($) => i.value[p.id] = $,
196
+ onChange: ($) => E(a, $)
197
+ }, {
198
+ default: c(() => [
199
+ (o(!0), f(I, null, V(U(p).menus, ($) => (o(), w(x, {
200
+ key: $.id,
201
+ label: $.id,
202
+ content: $.menuName
203
+ }, null, 8, ["label", "content"]))), 128))
204
+ ]),
205
+ _: 2
206
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
207
+ ])
208
+ ]))), 128))
209
+ ]))), 128))
210
+ ]))), 128))
211
+ ])
212
+ ]),
213
+ _: 1
214
+ })
215
+ ])
216
+ ]),
217
+ footer: c(() => [
218
+ e("div", Re, [
219
+ r(j, {
220
+ content: "cancel",
221
+ status: "warning",
222
+ onTap: L
223
+ }),
224
+ r(j, {
225
+ content: "confirm",
226
+ onTap: B
227
+ })
228
+ ])
229
+ ]),
230
+ _: 1
231
+ }, 8, ["modelValue", "loading"]);
232
+ };
233
+ }
234
+ }), Fe = {
235
+ class: "dynamic-card w-full"
236
+ }, He = /* @__PURE__ */ G({
237
+ __name: "dynamic-card",
238
+ setup(H) {
239
+ const h = C([]), S = async () => {
240
+ const d = F(), [N, g] = await ye(d.get("/ucrm/sysHomeConfig", {
241
+ pageSize: 1e3,
242
+ pageNum: 1,
243
+ enabled: "1"
244
+ }));
245
+ N || g == null || g.list.forEach((y) => {
246
+ const i = {
247
+ ...y,
248
+ component: te(async () => import(`${y.url}.vue`))
249
+ };
250
+ h.value.push(i);
251
+ });
252
+ };
253
+ return Y(() => {
254
+ S();
255
+ }), (d, N) => {
256
+ const g = _("vxe-card"), y = _("vxe-col"), i = _("vxe-row");
257
+ return o(), f("div", Fe, [r(i, {
258
+ gutter: [10, 10],
259
+ wrap: ""
260
+ }, {
261
+ default: c(() => [(o(!0), f(I, null, V(h.value, (b) => (o(), w(y, {
262
+ key: b.id,
263
+ span: b.span
264
+ }, {
265
+ default: c(() => [r(g, {
266
+ title: b.title,
267
+ height: b.height,
268
+ shadow: ""
269
+ }, {
270
+ default: c(() => [(o(), w(ee(b.component)))]),
271
+ _: 2
272
+ }, 1032, ["title", "height"])]),
273
+ _: 2
274
+ }, 1032, ["span"]))), 128))]),
275
+ _: 1
276
+ })]);
277
+ };
278
+ }
279
+ }), Te = { class: "ut-home m-3" }, Oe = {
280
+ key: 0,
281
+ class: "h-32 mb-4 p-4 flex justify-between items-center bg-white home-page"
282
+ }, Be = { class: "flex flex-row items-center flex-[2]" }, Pe = { class: "ml-4 text-xs flex-[2]" }, We = { class: "flex justify-center items-center" }, Ge = { class: "py-2 text-gray-500 flex" }, Ye = { class: "w-2/3" }, Je = { class: "text-gray-500 flex" }, Ke = { class: "w-2/3" }, Qe = { class: "flex flex-col" }, Xe = { class: "text-4xl" }, Ze = { class: "mt-1 ml-3" }, et = { class: "default:bg-white dark:bg-black" }, tt = ["onClick"], nt = { class: "h-20 flex justify-center items-center flex-col" }, st = { class: "text-xs mt-2" }, ot = { class: "p-3" }, lt = { class: "p-0 w-full h-full" }, at = { class: "flex" }, ct = { class: "ml-3" }, it = { class: "text-blue-600 mr-3" }, rt = { class: "text-gray-400 text-sm" }, ut = { class: "p-1" }, dt = /* @__PURE__ */ G({
283
+ name: "UdpWelcome",
284
+ __name: "su-welcome",
285
+ setup(H) {
286
+ const h = fe(), S = ae(), d = C([]), N = C([]), g = C(!1), y = C(!1), i = ne(() => {
287
+ var n;
288
+ return (n = h.getUserInfo.name) == null ? void 0 : n.slice(0, 1);
289
+ }), b = C(+window.__UDP_VERSION__.substring(0, 1) > 1), A = () => {
290
+ var t, u;
291
+ return h.isAdminRole ? "系统管理员" : (u = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : u.map((x) => x.roleName).join(",");
292
+ }, U = () => {
293
+ var t;
294
+ return h.isAdminRole ? "【系统管理员】拥有所有组织" : A() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((u) => u.orgName).join(",");
295
+ }, T = () => {
296
+ const n = Number(ce().format("HH"));
297
+ return n < 12 ? "上午好" : n < 18 ? "下午好" : "晚上好";
298
+ }, E = () => {
299
+ const n = /* @__PURE__ */ new Date(), t = me.solar2lunar(n.getFullYear(), n.getMonth() + 1, n.getDate()), { gzYear: u, IMonthCn: x, IDayCn: M, cMonth: j, cDay: R, ncWeek: m } = t;
300
+ return `${j}月${R}日 ${u}${x}${M} ${m}`;
301
+ }, q = () => {
302
+ const n = "/upfm/v1/menuFavority";
303
+ y.value = !0;
304
+ const t = { pageSize: 20, pageNum: 1, userName: _e.get(pe) };
305
+ F().get(n, t).then((u) => {
306
+ d.value = (u == null ? void 0 : u.list) || [];
307
+ }).finally(() => {
308
+ y.value = !1;
309
+ });
310
+ }, O = (n) => {
311
+ S.push(n.menuPath);
312
+ }, B = () => {
313
+ var u;
314
+ const n = "/upfm/v1/userMonitor", t = { pageSize: 8, pageNum: 1, employeeName: (u = h.getUserInfo) == null ? void 0 : u.name };
315
+ F().get(n, t).then((x) => {
316
+ N.value = (x == null ? void 0 : x.list) || [];
317
+ });
318
+ }, L = () => {
319
+ g.value = !0;
320
+ };
321
+ Y(() => {
322
+ !b.value && q(), B();
323
+ });
324
+ const P = (n) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][n % 5], z = [
325
+ "community",
326
+ "shield-star",
327
+ "group",
328
+ "settings",
329
+ "star",
330
+ "train",
331
+ "send-plane",
332
+ "rocket",
333
+ "device",
334
+ "compass",
335
+ "map-pin",
336
+ "keynote",
337
+ "article",
338
+ "tv",
339
+ "database-2",
340
+ "calendar"
341
+ ], s = [
342
+ {
343
+ 2023: { 12: { 30: "班", 31: "班" } }
344
+ },
345
+ {
346
+ 2024: {
347
+ 1: { 1: "假" },
348
+ 2: {
349
+ 4: "班",
350
+ 10: "假",
351
+ 11: "假",
352
+ 12: "假",
353
+ 13: "假",
354
+ 14: "假",
355
+ 15: "假",
356
+ 16: "假",
357
+ 17: "假",
358
+ 18: "班"
359
+ },
360
+ 4: { 4: "假", 5: "假", 6: "假", 7: "班", 28: "班" },
361
+ 5: { 1: "假", 2: "假", 3: "假", 4: "假", 5: "假", 11: "班" },
362
+ 6: { 8: "假", 9: "假", 10: "假" },
363
+ 9: { 15: "假", 16: "假", 17: "假", 14: "班", 29: "班" },
364
+ 10: { 1: "假", 2: "假", 3: "假", 4: "假", 5: "假", 6: "假", 7: "假", 12: "班" }
365
+ }
366
+ }
367
+ ], l = [
368
+ { name: "元旦", date: "2024-01-01" },
369
+ { name: "春节", date: "2024-02-10" },
370
+ { name: "清明节", date: "2024-04-04" },
371
+ { name: "劳动节", date: "2024-05-01" },
372
+ { name: "端午节", date: "2024-06-10" },
373
+ { name: "中秋节", date: "2024-09-17" },
374
+ { name: "国庆节", date: "2024-10-01" }
375
+ ];
376
+ return (n, t) => {
377
+ var J;
378
+ const u = _("el-avatar"), x = _("ut-flip-down"), M = _("el-row"), j = _("el-empty"), R = _("iconify-icon-offline"), m = _("el-card"), a = _("el-col"), p = _("ut-calendar"), $ = se("spinning");
379
+ return o(), f("div", Te, [
380
+ b.value ? D("", !0) : (o(), f("div", Oe, [
381
+ e("div", Be, [
382
+ e("div", null, [
383
+ r(u, {
384
+ size: "large",
385
+ class: "text-4xl font-bold bg-[var(--el-color-primary)]"
386
+ }, {
387
+ default: c(() => [
388
+ Q(v(i.value), 1)
389
+ ]),
390
+ _: 1
391
+ })
392
+ ]),
393
+ e("div", Pe, [
394
+ e("div", We, [
395
+ e("span", null, v(T()) + ", " + v(((J = W(h).getUserInfo) == null ? void 0 : J.name) || "") + ",欢迎回来! ", 1),
396
+ t[1] || (t[1] = e("div", {
397
+ class: "flex flex-[2] justify-center items-center font-bold",
398
+ style: { color: "var(--el-color-primary)" }
399
+ }, " 星光不问赶路人,岁月不负有心人,以梦为马,不负韶华! ", -1))
400
+ ]),
401
+ e("div", Ge, [
402
+ t[2] || (t[2] = e("span", { class: "inline-block" }, " 所属角色: ", -1)),
403
+ e("div", Ye, v(A()), 1)
404
+ ]),
405
+ e("div", Je, [
406
+ t[3] || (t[3] = e("span", { class: "inline-block" }, " 所属组织: ", -1)),
407
+ e("div", Ke, v(U()), 1)
408
+ ])
409
+ ])
410
+ ]),
411
+ e("div", Qe, [
412
+ e("span", Xe, [
413
+ r(x, {
414
+ "show-days": !1,
415
+ "show-labels": !1
416
+ })
417
+ ]),
418
+ e("div", Ze, v(E()), 1)
419
+ ])
420
+ ])),
421
+ b.value ? (o(), w(M, { key: 1 }, {
422
+ default: c(() => [
423
+ r(He)
424
+ ]),
425
+ _: 1
426
+ })) : D("", !0),
427
+ b.value ? D("", !0) : (o(), w(M, {
428
+ key: 2,
429
+ class: "m-2",
430
+ gutter: 10
431
+ }, {
432
+ default: c(() => [
433
+ oe((o(), w(a, {
434
+ lg: 24,
435
+ md: 24,
436
+ class: ""
437
+ }, {
438
+ default: c(() => [
439
+ r(m, { class: "mb-2" }, {
440
+ header: c(() => [
441
+ e("div", { class: "flex items-center justify-between dark:bg-black" }, [
442
+ t[5] || (t[5] = e("span", { class: "font-bold" }, "常用菜单", -1)),
443
+ e("span", {
444
+ class: "text-xs text-gray-400 cursor-pointer",
445
+ onClick: L
446
+ }, t[4] || (t[4] = [
447
+ e("span", null, "更多", -1),
448
+ e("i", { class: "vxe-icon-arrow-right" }, null, -1)
449
+ ]))
450
+ ])
451
+ ]),
452
+ default: c(() => [
453
+ e("div", et, [
454
+ d.value.length ? D("", !0) : (o(), w(j, {
455
+ key: 0,
456
+ "image-size": 100,
457
+ description: "快来添加常用菜单吧!",
458
+ class: "p-0 pb-3"
459
+ })),
460
+ e("ul", {
461
+ class: le(["p-0 w-full h-full grid grid-rows-1 grid-cols-8 u-dashed-menu", { "grid-rows-2": d.value.length > 8 }])
462
+ }, [
463
+ (o(!0), f(I, null, V(d.value, (k, K) => (o(), f("li", {
464
+ key: k.id,
465
+ class: "text-center list-none bg-white",
466
+ onClick: (mt) => O(k)
467
+ }, [
468
+ e("div", nt, [
469
+ e("div", {
470
+ class: "rounded-full w-10 h-10 flex items-center justify-center",
471
+ style: X({ backgroundColor: P(K) })
472
+ }, [
473
+ r(R, {
474
+ icon: k.icon || `ri:${z[K]}-line`,
475
+ class: "text-2xl text-white"
476
+ }, null, 8, ["icon"])
477
+ ], 4),
478
+ e("span", st, v(k.menuName), 1)
479
+ ])
480
+ ], 8, tt))), 128))
481
+ ], 2)
482
+ ]),
483
+ t[6] || (t[6] = e("div", null, null, -1))
484
+ ]),
485
+ _: 1
486
+ })
487
+ ]),
488
+ _: 1
489
+ })), [
490
+ [$, y.value]
491
+ ]),
492
+ r(a, {
493
+ xl: 16,
494
+ lg: 12,
495
+ md: 24
496
+ }, {
497
+ default: c(() => [
498
+ r(m, { class: "mb-2" }, {
499
+ header: c(() => t[7] || (t[7] = [
500
+ e("div", { class: "font-bold" }, [
501
+ e("span", null, "个人动态")
502
+ ], -1)
503
+ ])),
504
+ default: c(() => [
505
+ e("div", ot, [
506
+ e("ul", lt, [
507
+ (o(!0), f(I, null, V(N.value, (k) => (o(), f("li", {
508
+ key: k.id,
509
+ class: "w-full list-none p-2 border-b border-gray-200"
510
+ }, [
511
+ e("div", at, [
512
+ e("div", null, [
513
+ r(u, { class: "text-base" }, {
514
+ default: c(() => [
515
+ Q(v(i.value), 1)
516
+ ]),
517
+ _: 1
518
+ })
519
+ ]),
520
+ e("div", ct, [
521
+ e("div", null, [
522
+ e("span", it, v(k.browser), 1),
523
+ e("span", null, v(k.browserVersion || k.platformVersion), 1)
524
+ ]),
525
+ e("div", rt, v(k.loginTime), 1)
526
+ ])
527
+ ])
528
+ ]))), 128))
529
+ ])
530
+ ])
531
+ ]),
532
+ _: 1
533
+ })
534
+ ]),
535
+ _: 1
536
+ }),
537
+ r(a, {
538
+ xl: 8,
539
+ lg: 12,
540
+ md: 24,
541
+ class: ""
542
+ }, {
543
+ default: c(() => [
544
+ r(m, { class: "mb-2" }, {
545
+ header: c(() => t[8] || (t[8] = [
546
+ e("div", { class: "font-bold" }, [
547
+ e("span", null, "日历")
548
+ ], -1)
549
+ ])),
550
+ default: c(() => [
551
+ e("div", ut, [
552
+ r(p, {
553
+ holidays: s,
554
+ "statutory-holiday": l
555
+ })
556
+ ])
557
+ ]),
558
+ _: 1
559
+ })
560
+ ]),
561
+ _: 1
562
+ })
563
+ ]),
564
+ _: 1
565
+ })),
566
+ g.value ? (o(), w(qe, {
567
+ key: 3,
568
+ "data-source": d.value,
569
+ "user-name": W(h).getUserInfo.userName,
570
+ icons: z,
571
+ onClose: t[0] || (t[0] = (k) => g.value = !1),
572
+ onSuccess: q
573
+ }, null, 8, ["data-source", "user-name"])) : D("", !0)
574
+ ]);
575
+ };
576
+ }
577
+ }), bt = /* @__PURE__ */ ve(dt, [["__scopeId", "data-v-20e01b24"]]);
578
+ export {
579
+ bt as default
580
+ };
@@ -3,7 +3,7 @@ import { useI18n as Q } from "vue-i18n";
3
3
  import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { cookies as E, successMessage as W, warnMessage as X } from "@utogether/utils";
5
5
  import { isArray as Z } from "xe-utils";
6
- import { G as ee, o as te, p as z, y as le } from "./index-D1ZRyH4N.js";
6
+ import { G as ee, o as te, p as z, y as le } from "./index-BabfUVv_.js";
7
7
  const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config" }, oe = { class: "flex w-1/2 p-3 overflow-y-auto border border-gray-300 rounded-md" }, se = { class: "flex items-center" }, ne = { class: "pl-2 text-xs" }, ie = { class: "pl-2" }, ue = { class: "pl-2" }, re = { class: "flex items-center" }, pe = { class: "pl-2 text-xs" }, de = { class: "pl-2" }, me = { class: "flex items-center" }, ce = { class: "pl-2 text-xs" }, ge = { class: "flex justify-end w-1/2 p-2" }, j = "/upfm/v1/sysConfig", Ce = /* @__PURE__ */ q({
8
8
  __name: "sys-config",
9
9
  setup(fe) {