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