@utogether/udp-core 2.0.0-beta.26 → 2.0.0-beta.27
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-gdcH0-Bo.js +65 -0
- package/dist/404-Se2SF97M.js +65 -0
- package/dist/500-B6j9AqLo.js +67 -0
- package/dist/AuthorityInfo-CQ8ydZvr.js +4 -0
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js +100 -0
- package/dist/AuthorityPanel-lVnZ5bce.js +4 -0
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-nsfhDlvV.js +113 -0
- package/dist/Company-BzSVBSC4.js +25 -0
- package/dist/CompanyPanel-DBjZB4aJ.js +204 -0
- package/dist/DataSet-iBHzs75s.js +147 -0
- package/dist/Department-BkgseHo8.js +25 -0
- package/dist/DepartmentPanel-Sen93_2M.js +249 -0
- package/dist/DesignPanel-pqDcwaFC.js +4 -0
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js +1013 -0
- package/dist/DictView-CJLG4LlE.js +110 -0
- package/dist/InvOrganization-D0Jq1IAa.js +74 -0
- package/dist/Org-CO_1WT39.js +39 -0
- package/dist/Preview-DLI4Bwel.js +48 -0
- package/dist/ReportDefine-Cw46OnJ_.js +10 -0
- package/dist/ReportDesign-D4sHTXT7.js +165 -0
- package/dist/ReportQuery-DtOCvQSN.js +74 -0
- package/dist/ReportQueryFrom-QjL-ETPq.js +4 -0
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js +177 -0
- package/dist/ReportTemplate-BxAgc_Aj.js +161 -0
- package/dist/Role-Df77BBD-.js +25 -0
- package/dist/RoleAssign-BrunouML.js +26 -0
- package/dist/RolePanel-DSVwqhiD.js +4 -0
- package/dist/RolePanel-HLA7XBlN.js +4 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js +132 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js +152 -0
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js +99 -0
- package/dist/Staff-BeL1xcRf.js +26 -0
- package/dist/StaffInfo-CIfnltyX.js +4 -0
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js +107 -0
- package/dist/StaffPanel-BV2CHWac.js +4 -0
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js +153 -0
- package/dist/SysUser-DPfNvthk.js +15 -0
- package/dist/SysUserPanel-CoLKYlQE.js +4 -0
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js +353 -0
- package/dist/SystemMenu-sdj1dRDA.js +156 -0
- package/dist/UserInfo-CTX4hhFl.js +4 -0
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js +160 -0
- package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
- package/dist/childView-BDmWwJO5.js +4 -0
- package/dist/childView-Dx3ACtHa.js +4 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js +183 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js +143 -0
- package/dist/code-rule-cvN4gYC_.js +148 -0
- package/dist/core.es.js +24 -6
- package/dist/cron-task-B0TkxFdp.js +135 -0
- package/dist/flow-task-PoDnE_kE.js +10 -0
- package/dist/frameView-5cy5BSgS.js +43 -0
- package/dist/img/minicolors.png +0 -0
- package/dist/index-C5WRTwvI.js +3006 -0
- package/dist/layout-home-DrARg-3o.js +232 -0
- package/dist/layoutView-25v_ngk5.js +3191 -0
- package/dist/log-in-Bmz5Uhbt.js +116 -0
- package/dist/log-out-B-8m3oNj.js +130 -0
- package/dist/login-Cmp2RvvW.js +217 -0
- package/dist/login-log-CVvRgZSu.js +70 -0
- package/dist/lov-view-BATtzw2X.js +99 -0
- package/dist/menuInfo-BIvrE7nm.js +4 -0
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js +360 -0
- package/dist/pda-app-CzHVyeEa.js +707 -0
- package/dist/redirect-DTz8GSnv.js +15 -0
- package/dist/resource-Y5lGB38n.js +97 -0
- package/dist/su-welcome-CXA6OzBw.js +878 -0
- package/dist/sys-config-CqO03LeC.js +385 -0
- package/dist/udp-core.css +1 -2
- package/dist/useNav-C-rCgubt.js +84 -0
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/dist/wecom-push-B75FLee5.js +70 -0
- package/index.ts +3 -2
- package/package.json +1 -1
- package/src/App.vue +79 -78
- package/src/api/index.ts +1 -1
- package/src/components/SuQrcode/src/index.tsx +231 -236
- package/src/layout/components/lay-panel/index.vue +2 -6
- package/src/layout/components/lay-search/components/SearchModal.vue +7 -3
- package/src/main.ts +25 -23
- package/src/router/index.ts +156 -187
- package/src/store/modules/system.ts +7 -0
- package/src/style/vxetable.scss +372 -364
- package/src/utils/authority/index.ts +46 -29
- package/src/utils/udp/http/index.ts +115 -64
- package/src/utils/udp/http/types.d.ts +15 -14
- package/src/views/login/login-view.vue +4 -21
- package/src/views/organization/department/DepartmentPanel.vue +3 -4
- package/src/views/system/sys/sys-config.vue +344 -344
- package/src/views/uhome/components/home-todo.vue +179 -178
- package/src/views/ulogin/login.vue +5 -9
- package/tsconfig.json +2 -3
- package/types/global.d.ts +234 -234
- package/vite.config.ts +2 -1
- package/dist/403-D6Wb3JJh.js +0 -72
- package/dist/404-B_HNbPNV.js +0 -72
- package/dist/500-BMemTTy1.js +0 -77
- package/dist/AuthorityInfo-6wHxwiFM.js +0 -91
- package/dist/AuthorityPanel-OqF_DvXA.js +0 -98
- package/dist/Company-BLXSfow0.js +0 -21
- package/dist/CompanyPanel-B4kRZ5Cg.js +0 -199
- package/dist/DataSet-CuGZcKC-.js +0 -141
- package/dist/Department-oFhsa7cd.js +0 -21
- package/dist/DepartmentPanel-B1UGpu-r.js +0 -242
- package/dist/DepartmentPanel-BL58AdoT.js +0 -2
- package/dist/DesignPanel-DmkFVw1N.js +0 -1196
- package/dist/DictView-CC5yMzOq.js +0 -100
- package/dist/File-WJXjGYxr.js +0 -89
- package/dist/InvOrganization-BwMmD8Ua.js +0 -76
- package/dist/Org-HgnOWubi.js +0 -76
- package/dist/Preview-CAzWxLmP.js +0 -45
- package/dist/ReIcon-DecitXmg.js +0 -413
- package/dist/ReportDefine-BgLM-Rjk.js +0 -10
- package/dist/ReportDesign-DwchGG2P.js +0 -158
- package/dist/ReportQuery-D5jaRJEn.js +0 -101
- package/dist/ReportQueryFrom-CNlmtYey.js +0 -198
- package/dist/ReportTemplate-CNcTmccs.js +0 -162
- package/dist/Role-Be8WfdCA.js +0 -21
- package/dist/RoleAssign-CtehGAUf.js +0 -22
- package/dist/RolePanel-CAwITg_q.js +0 -131
- package/dist/RolePanel-SN0FGFZ7.js +0 -176
- package/dist/ScrollPanel-DW30pGz1.js +0 -88
- package/dist/Staff-V2YsNKcj.js +0 -22
- package/dist/StaffInfo-CKRPW0r4.js +0 -149
- package/dist/StaffPanel-BxcgMg7u.js +0 -143
- package/dist/SysUser-Dxyj5w5m.js +0 -12
- package/dist/SysUserPanel-DI6CWcZo.js +0 -365
- package/dist/SystemMenu-BBHREM8T.js +0 -154
- package/dist/UserInfo-BMVQ0xwE.js +0 -194
- package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
- package/dist/api-BFNxcxSN.js +0 -30
- package/dist/authority-BJFEUdrh.js +0 -20
- package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
- package/dist/childView-BBjPEraB.js +0 -184
- package/dist/childView-DNqG2UVm.js +0 -181
- package/dist/code-rule-QFrhqFrW.js +0 -151
- package/dist/contant-Q77dU_V3.js +0 -4
- package/dist/cron-task-BpUDKEAU.js +0 -131
- package/dist/flow-task-DAc2NrDU.js +0 -11
- package/dist/frameView-Di0zJZUR.js +0 -39
- package/dist/layout-home-BVp7vYLR.js +0 -239
- package/dist/layoutView-B6Mx2ERA.js +0 -2662
- package/dist/log-in-BrNB0mLz.js +0 -117
- package/dist/log-out-dYfqvzy6.js +0 -111
- package/dist/login-D_Hjy3Jd.js +0 -231
- package/dist/login-log-CJak-ANA.js +0 -79
- package/dist/lov-view-DM5Nm5tW.js +0 -95
- package/dist/menuInfo-BlOY1KZW.js +0 -346
- package/dist/mitt-CQgI7DYU.js +0 -27
- package/dist/pda-app-CA7YI37u.js +0 -589
- package/dist/redirect-N0k4tImU.js +0 -16
- package/dist/resource-CfQTHFcs.js +0 -94
- package/dist/su-welcome-DVD3S_du.js +0 -799
- package/dist/sys-config-Ddb3vBpK.js +0 -316
- package/dist/system-Cm3lyBas.js +0 -1528
- package/dist/udp-core-DaQd5CF1.js +0 -2028
- package/dist/useDataThemeChange-DJ4K3VGp.js +0 -226
- package/dist/useNav-BhOJIdrJ.js +0 -106
- package/dist/utogether-l7JXs4Lv.js +0 -4
- package/dist/water-mark-WDQZ9YqB.js +0 -119
- package/dist/wecom-push-kWkAVRCj.js +0 -77
|
@@ -1,799 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./system-Cm3lyBas.js";
|
|
2
|
-
import { n as t } from "./udp-core-DaQd5CF1.js";
|
|
3
|
-
import { r as n, s as r } from "./api-BFNxcxSN.js";
|
|
4
|
-
import { n as i, o as a, r as o } from "./contant-Q77dU_V3.js";
|
|
5
|
-
import { t as s } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
6
|
-
import { t as c } from "./await-to-js.es5-DkWYmPXW.js";
|
|
7
|
-
import { t as l } from "./useNav-BhOJIdrJ.js";
|
|
8
|
-
import * as u from "vue";
|
|
9
|
-
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineAsyncComponent as y, defineComponent as b, nextTick as x, normalizeClass as S, normalizeStyle as C, onBeforeMount as w, onMounted as T, openBlock as E, ref as D, renderList as O, resolveComponent as k, resolveDirective as A, toDisplayString as j, unref as M, withCtx as N, withDirectives as P } from "vue";
|
|
10
|
-
import * as F from "@utogether/utils";
|
|
11
|
-
import { cookies as I, dbstorage as L, delay as R, getDictChildren as z, lunarCalendar as ee, storageLocal as te, successMessage as B, warnMessage as V } from "@utogether/utils";
|
|
12
|
-
import H, { clone as U, isEmpty as W, max as G } from "xe-utils";
|
|
13
|
-
import K from "vxe-pc-ui";
|
|
14
|
-
import * as ne from "vue-router";
|
|
15
|
-
import { useRouter as q } from "vue-router";
|
|
16
|
-
import J from "crypto-js";
|
|
17
|
-
import Y from "dayjs";
|
|
18
|
-
import X from "vuedraggable";
|
|
19
|
-
import { loadModule as Z } from "vue3-sfc-loader";
|
|
20
|
-
import * as re from "echarts";
|
|
21
|
-
//#region src/views/uhome/components/menu-favorite.vue?vue&type=script&setup=true&lang.ts
|
|
22
|
-
var ie = { class: "" }, ae = { class: "w-full h-24" }, oe = { class: "" }, se = { class: "h-24 w-24 flex justify-center items-center flex-col relative drag-item ut-menu-top-item" }, ce = { class: "w-[90%] text-xs mt-2 text-ellipsis overflow-hidden whitespace-nowrap text-center" }, le = ["onClick"], ue = {
|
|
23
|
-
class: "p-3 pb-14",
|
|
24
|
-
style: { "padding-bottom": "54px" }
|
|
25
|
-
}, de = { class: "flex items-center" }, fe = { class: "ml-1 font-bold text-base" }, pe = { class: "pl-3 py-2" }, me = { class: "flex items-center" }, he = { class: "ml-1 font-bold text-sm" }, ge = { class: "pl-3 py-2" }, _e = { class: "flex items-center" }, ve = { class: "ml-1 font-bold text-sm" }, ye = { class: "py-2" }, be = { class: "flex justify-end" }, xe = "/upfm/v1/menuFavority", Se = /* @__PURE__ */ b({
|
|
26
|
-
__name: "menu-favorite",
|
|
27
|
-
props: {
|
|
28
|
-
dataSource: { default: () => [] },
|
|
29
|
-
icons: { default: () => [] },
|
|
30
|
-
userName: { default: "" }
|
|
31
|
-
},
|
|
32
|
-
emits: ["close", "success"],
|
|
33
|
-
setup(e, { emit: t }) {
|
|
34
|
-
let r = e, i = D([]), a = D([]), o = D(!1), s = D(!1), c = D({}), l = async () => {
|
|
35
|
-
a.value = await L.getItem(`U-${r.userName}-ROUTES`), a.value = a.value.filter((e) => e.menuCode !== "SysHome"), await R(64), _();
|
|
36
|
-
}, u = (e, t) => {
|
|
37
|
-
i.value.splice(t, 1);
|
|
38
|
-
let n = c.value[e.parentId]?.findIndex((t) => t === e.menuId);
|
|
39
|
-
c.value[e.parentId].splice(n, 1);
|
|
40
|
-
}, f = (e) => {
|
|
41
|
-
let t = [], n = [];
|
|
42
|
-
return e.children.forEach((e) => {
|
|
43
|
-
["5", "100"].includes(e.menuCategory) ? t.push(e) : n.push(e);
|
|
44
|
-
}), {
|
|
45
|
-
folder: t,
|
|
46
|
-
menus: n
|
|
47
|
-
};
|
|
48
|
-
}, _ = () => {
|
|
49
|
-
r.dataSource.forEach((e) => {
|
|
50
|
-
c.value[e.parentId] ? c.value[e.parentId].push(e.menuId) : c.value[e.parentId] = [e.menuId];
|
|
51
|
-
});
|
|
52
|
-
}, y = (e, t) => {
|
|
53
|
-
if (t.checked) {
|
|
54
|
-
if (i.value.length === 16) return x(() => {
|
|
55
|
-
c.value[e.id].splice(c.value[e.id].length - 1, 1);
|
|
56
|
-
}), V("最多只能选择16个常用功能");
|
|
57
|
-
let n = e.children.find((e) => e.id === t.label);
|
|
58
|
-
n && (n.seqNo = S() + 10, n.menuId = n.id, i.value.push(n));
|
|
59
|
-
} else {
|
|
60
|
-
let n = i.value.findIndex((e) => e.menuId === t.label);
|
|
61
|
-
n !== -1 && i.value.splice(n, 1), n = c.value[e.id].findIndex((e) => e === t.label), n !== -1 && c.value[e.id].splice(n, 1);
|
|
62
|
-
}
|
|
63
|
-
}, b = () => {
|
|
64
|
-
i.value.forEach((e, t) => {
|
|
65
|
-
e.seqNo = (t + 1) * 10;
|
|
66
|
-
});
|
|
67
|
-
}, S = () => G(i.value, (e) => e.seqNo)?.seqNo || 0, w = () => {
|
|
68
|
-
let e = i.value.map((e, t) => ({
|
|
69
|
-
userName: r.userName,
|
|
70
|
-
menuId: e.menuId,
|
|
71
|
-
seqNo: 10 * (t + 1)
|
|
72
|
-
}));
|
|
73
|
-
s.value = !0, n().post(xe, e).then(() => {
|
|
74
|
-
B(), A(), F("success");
|
|
75
|
-
}).finally(() => {
|
|
76
|
-
s.value = !1;
|
|
77
|
-
});
|
|
78
|
-
}, A = () => {
|
|
79
|
-
o.value = !1, F("close");
|
|
80
|
-
}, P = (e) => [
|
|
81
|
-
"#409eff",
|
|
82
|
-
"#67c23a",
|
|
83
|
-
"#13c2c2",
|
|
84
|
-
"#e85f33",
|
|
85
|
-
"orange"
|
|
86
|
-
][e % 5], F = t;
|
|
87
|
-
return T(() => {
|
|
88
|
-
i.value = U(r.dataSource, !0), o.value = !0, l();
|
|
89
|
-
}), (t, n) => {
|
|
90
|
-
let r = k("el-empty"), l = k("iconify-icon-offline"), _ = k("el-scrollbar"), x = k("vxe-checkbox"), S = k("vxe-checkbox-group"), T = k("ut-button"), D = k("vxe-modal");
|
|
91
|
-
return E(), p(D, {
|
|
92
|
-
modelValue: o.value,
|
|
93
|
-
"onUpdate:modelValue": n[0] ||= (e) => o.value = e,
|
|
94
|
-
loading: s.value,
|
|
95
|
-
width: "75%",
|
|
96
|
-
height: "80%",
|
|
97
|
-
title: "常用菜单设置(拖动可改变菜单顺序)",
|
|
98
|
-
"class-name": "u-favorite-modal",
|
|
99
|
-
"show-footer": "",
|
|
100
|
-
onClose: A
|
|
101
|
-
}, {
|
|
102
|
-
default: N(() => [g("div", ie, [v(_, {
|
|
103
|
-
heigth: "100",
|
|
104
|
-
class: "w-full border-b border-slate-300"
|
|
105
|
-
}, {
|
|
106
|
-
default: N(() => [g("div", ae, [i.value.length ? m("", !0) : (E(), p(r, {
|
|
107
|
-
key: 0,
|
|
108
|
-
"image-size": 50,
|
|
109
|
-
description: "",
|
|
110
|
-
class: "p-0"
|
|
111
|
-
})), v(M(X), {
|
|
112
|
-
list: i.value,
|
|
113
|
-
handle: ".drag-item",
|
|
114
|
-
animation: "300",
|
|
115
|
-
"item-key": "id",
|
|
116
|
-
class: "flex",
|
|
117
|
-
onEnd: b
|
|
118
|
-
}, {
|
|
119
|
-
item: N(({ element: t, index: n }) => [g("div", oe, [g("div", se, [
|
|
120
|
-
g("div", {
|
|
121
|
-
class: "rounded-full w-10 h-10 flex items-center justify-center",
|
|
122
|
-
style: C({ backgroundColor: P(n) })
|
|
123
|
-
}, [v(l, {
|
|
124
|
-
icon: t.icon || `ri:${e.icons[n]}-line`,
|
|
125
|
-
class: "text-2xl text-white"
|
|
126
|
-
}, null, 8, ["icon"])], 4),
|
|
127
|
-
g("span", ce, j(t.menuName), 1),
|
|
128
|
-
g("i", {
|
|
129
|
-
class: "ri-indeterminate-circle-line right-3 top-2 text-base hidden ut-menu-del",
|
|
130
|
-
onClick: (e) => u(t, n)
|
|
131
|
-
}, null, 8, le)
|
|
132
|
-
])])]),
|
|
133
|
-
_: 1
|
|
134
|
-
}, 8, ["list"])])]),
|
|
135
|
-
_: 1
|
|
136
|
-
}), v(_, { class: "u-favorite-menu--contain" }, {
|
|
137
|
-
default: N(() => [g("div", ue, [(E(!0), h(d, null, O(a.value, (e) => (E(), h("div", {
|
|
138
|
-
key: e.id,
|
|
139
|
-
class: "grandparent-node"
|
|
140
|
-
}, [
|
|
141
|
-
g("div", de, [n[1] ||= g("div", { class: "w-2 h-4 bg-green-400" }, null, -1), g("div", fe, j(e.menuName), 1)]),
|
|
142
|
-
g("div", pe, [v(S, {
|
|
143
|
-
modelValue: c.value[e.id],
|
|
144
|
-
"onUpdate:modelValue": (t) => c.value[e.id] = t,
|
|
145
|
-
onChange: (t) => y(e, t)
|
|
146
|
-
}, {
|
|
147
|
-
default: N(() => [(E(!0), h(d, null, O(f(e).menus, (e) => (E(), p(x, {
|
|
148
|
-
key: e.id,
|
|
149
|
-
label: e.id,
|
|
150
|
-
content: e.menuName
|
|
151
|
-
}, null, 8, ["label", "content"]))), 128))]),
|
|
152
|
-
_: 2
|
|
153
|
-
}, 1032, [
|
|
154
|
-
"modelValue",
|
|
155
|
-
"onUpdate:modelValue",
|
|
156
|
-
"onChange"
|
|
157
|
-
])]),
|
|
158
|
-
(E(!0), h(d, null, O(f(e).folder, (e) => (E(), h("div", {
|
|
159
|
-
key: e.id,
|
|
160
|
-
class: "parent-node pl-3"
|
|
161
|
-
}, [
|
|
162
|
-
g("div", me, [n[2] ||= g("div", { class: "w-2 h-4 bg-blue-400" }, null, -1), g("div", he, j(e.menuName), 1)]),
|
|
163
|
-
g("div", ge, [v(S, {
|
|
164
|
-
modelValue: c.value[e.id],
|
|
165
|
-
"onUpdate:modelValue": (t) => c.value[e.id] = t,
|
|
166
|
-
onChange: (t) => y(e, t)
|
|
167
|
-
}, {
|
|
168
|
-
default: N(() => [(E(!0), h(d, null, O(f(e).menus, (e) => (E(), p(x, {
|
|
169
|
-
key: e.id,
|
|
170
|
-
label: e.id,
|
|
171
|
-
content: e.menuName
|
|
172
|
-
}, null, 8, ["label", "content"]))), 128))]),
|
|
173
|
-
_: 2
|
|
174
|
-
}, 1032, [
|
|
175
|
-
"modelValue",
|
|
176
|
-
"onUpdate:modelValue",
|
|
177
|
-
"onChange"
|
|
178
|
-
])]),
|
|
179
|
-
(E(!0), h(d, null, O(f(e).folder, (t) => (E(), h("div", {
|
|
180
|
-
key: t.id,
|
|
181
|
-
class: "child-node pl-3"
|
|
182
|
-
}, [g("div", _e, [n[3] ||= g("div", { class: "w-2 h-4 bg-red-400" }, null, -1), g("div", ve, j(t.menuName), 1)]), g("div", ye, [v(S, {
|
|
183
|
-
modelValue: c.value[t.id],
|
|
184
|
-
"onUpdate:modelValue": (e) => c.value[t.id] = e,
|
|
185
|
-
onChange: (t) => y(e, t)
|
|
186
|
-
}, {
|
|
187
|
-
default: N(() => [(E(!0), h(d, null, O(f(t).menus, (e) => (E(), p(x, {
|
|
188
|
-
key: e.id,
|
|
189
|
-
label: e.id,
|
|
190
|
-
content: e.menuName
|
|
191
|
-
}, null, 8, ["label", "content"]))), 128))]),
|
|
192
|
-
_: 2
|
|
193
|
-
}, 1032, [
|
|
194
|
-
"modelValue",
|
|
195
|
-
"onUpdate:modelValue",
|
|
196
|
-
"onChange"
|
|
197
|
-
])])]))), 128))
|
|
198
|
-
]))), 128))
|
|
199
|
-
]))), 128))])]),
|
|
200
|
-
_: 1
|
|
201
|
-
})])]),
|
|
202
|
-
footer: N(() => [g("div", be, [v(T, {
|
|
203
|
-
content: "cancel",
|
|
204
|
-
status: "warning",
|
|
205
|
-
onTap: A
|
|
206
|
-
}), v(T, {
|
|
207
|
-
content: "confirm",
|
|
208
|
-
onTap: w
|
|
209
|
-
})])]),
|
|
210
|
-
_: 1
|
|
211
|
-
}, 8, ["modelValue", "loading"]);
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
}), Ce = { class: "default:bg-white dark:bg-black" }, we = ["onClick"], Te = { class: "h-20 flex justify-center items-center flex-col" }, Ee = { class: "text-xs mt-2" }, De = /* @__PURE__ */ b({
|
|
215
|
-
__name: "common-menu",
|
|
216
|
-
setup(t) {
|
|
217
|
-
let r = q(), i = e(), a = D([]), s = D(!1), c = D(!1), l = () => {
|
|
218
|
-
c.value = !0;
|
|
219
|
-
let e = {
|
|
220
|
-
pageSize: 20,
|
|
221
|
-
pageNum: 1,
|
|
222
|
-
userName: I.get(o)
|
|
223
|
-
};
|
|
224
|
-
n().get("/upfm/v1/menuFavority", e).then((e) => {
|
|
225
|
-
a.value = e?.list || [];
|
|
226
|
-
}).finally(() => {
|
|
227
|
-
c.value = !1;
|
|
228
|
-
});
|
|
229
|
-
}, u = () => {
|
|
230
|
-
s.value = !0;
|
|
231
|
-
}, f = (e) => {
|
|
232
|
-
r.push(e.menuPath);
|
|
233
|
-
}, _ = (e) => [
|
|
234
|
-
"#409eff",
|
|
235
|
-
"#67c23a",
|
|
236
|
-
"#13c2c2",
|
|
237
|
-
"#e85f33",
|
|
238
|
-
"orange"
|
|
239
|
-
][e % 5], y = [
|
|
240
|
-
"community",
|
|
241
|
-
"shield-star",
|
|
242
|
-
"group",
|
|
243
|
-
"settings",
|
|
244
|
-
"star",
|
|
245
|
-
"train",
|
|
246
|
-
"send-plane",
|
|
247
|
-
"rocket",
|
|
248
|
-
"device",
|
|
249
|
-
"compass",
|
|
250
|
-
"map-pin",
|
|
251
|
-
"keynote",
|
|
252
|
-
"article",
|
|
253
|
-
"tv",
|
|
254
|
-
"database-2",
|
|
255
|
-
"calendar"
|
|
256
|
-
];
|
|
257
|
-
return T(() => {
|
|
258
|
-
l();
|
|
259
|
-
}), (e, t) => {
|
|
260
|
-
let n = k("el-empty"), r = k("iconify-icon-offline"), o = k("el-card"), b = A("spinning");
|
|
261
|
-
return P((E(), h("div", null, [v(o, { class: "mb-2" }, {
|
|
262
|
-
header: N(() => [g("div", { class: "flex items-center justify-between dark:bg-black" }, [t[2] ||= g("span", { class: "font-bold" }, "常用菜单", -1), g("span", {
|
|
263
|
-
class: "text-xs text-gray-400 cursor-pointer",
|
|
264
|
-
onClick: u
|
|
265
|
-
}, [...t[1] ||= [g("span", null, "更多", -1), g("i", { class: "vxe-icon-arrow-right" }, null, -1)]])])]),
|
|
266
|
-
default: N(() => [g("div", Ce, [a.value.length ? m("", !0) : (E(), p(n, {
|
|
267
|
-
key: 0,
|
|
268
|
-
"image-size": 100,
|
|
269
|
-
description: "快来添加常用菜单吧!",
|
|
270
|
-
class: "p-0 pb-3"
|
|
271
|
-
})), g("ul", { class: S(["p-0 w-full h-full grid grid-rows-1 grid-cols-8 u-dashed-menu", { "grid-rows-2": a.value.length > 8 }]) }, [(E(!0), h(d, null, O(a.value, (e, t) => (E(), h("li", {
|
|
272
|
-
key: e.id,
|
|
273
|
-
class: "text-center list-none bg-white",
|
|
274
|
-
onClick: (t) => f(e)
|
|
275
|
-
}, [g("div", Te, [g("div", {
|
|
276
|
-
class: "rounded-full w-10 h-10 flex items-center justify-center",
|
|
277
|
-
style: C({ backgroundColor: _(t) })
|
|
278
|
-
}, [v(r, {
|
|
279
|
-
icon: e.icon || `ri:${y[t]}-line`,
|
|
280
|
-
class: "text-2xl text-white"
|
|
281
|
-
}, null, 8, ["icon"])], 4), g("span", Ee, j(e.menuName), 1)])], 8, we))), 128))], 2)]), t[3] ||= g("div", null, null, -1)]),
|
|
282
|
-
_: 1
|
|
283
|
-
}), s.value ? (E(), p(Se, {
|
|
284
|
-
key: 0,
|
|
285
|
-
"data-source": a.value,
|
|
286
|
-
"user-name": M(i).getUserInfo.userName,
|
|
287
|
-
icons: y,
|
|
288
|
-
onClose: t[0] ||= (e) => s.value = !1,
|
|
289
|
-
onSuccess: l
|
|
290
|
-
}, null, 8, ["data-source", "user-name"])) : m("", !0)])), [[b, c.value]]);
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
}), Oe = { class: "flex items-center w-full pl-2 pr-3 pt-1" }, ke = { class: "pl-1" }, Ae = { class: "flex items-center w-full pl-2 pr-3 pt-1" }, je = { class: "pl-1" }, Me = "/uwfl/activiti", Ne = /* @__PURE__ */ b({
|
|
294
|
-
__name: "home-todo",
|
|
295
|
-
setup(e) {
|
|
296
|
-
let t = q(), r = D(null), i = D(null), a = D("todo"), s = D(!1), l = D(!1), u = D(""), f = D(null), p = D(null), m = D({
|
|
297
|
-
todo: [],
|
|
298
|
-
finish: [],
|
|
299
|
-
todoPage: {},
|
|
300
|
-
finishPage: {}
|
|
301
|
-
}), y = {
|
|
302
|
-
pageNum: 1,
|
|
303
|
-
pageSize: 20
|
|
304
|
-
}, b = [
|
|
305
|
-
{ field: "taskId" },
|
|
306
|
-
{ field: "taskName" },
|
|
307
|
-
{ field: "taskTitle" },
|
|
308
|
-
{ field: "createDate" },
|
|
309
|
-
{
|
|
310
|
-
field: "createBy",
|
|
311
|
-
title: "message.creator"
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
field: "operate",
|
|
315
|
-
width: 90,
|
|
316
|
-
fixed: "right",
|
|
317
|
-
slots: { default: ({ row: e }) => [v(d, null, [v(k("ut-button"), {
|
|
318
|
-
visible: a.value === "todo",
|
|
319
|
-
content: "todoTask",
|
|
320
|
-
icon: "ri-send-plane-line",
|
|
321
|
-
onTap: () => j(e, "edit")
|
|
322
|
-
}, null), v(k("ut-button"), {
|
|
323
|
-
visible: a.value === "finish",
|
|
324
|
-
content: "look",
|
|
325
|
-
status: "info",
|
|
326
|
-
onTap: () => j(e)
|
|
327
|
-
}, null)])] }
|
|
328
|
-
}
|
|
329
|
-
], S = { pageChange({ pageSize: e, currentPage: t }) {
|
|
330
|
-
m.value[`${a.value}Page`] = {
|
|
331
|
-
pageNum: t,
|
|
332
|
-
pageSize: e
|
|
333
|
-
}, O(a.value, f.value);
|
|
334
|
-
} }, C = () => {
|
|
335
|
-
m.value[`${a.value}Page`] = y, O(a.value, f.value);
|
|
336
|
-
}, w = () => {
|
|
337
|
-
f.value = null, C();
|
|
338
|
-
}, O = async (e, t) => {
|
|
339
|
-
let s = e === "todo" ? "/listTasksToBeHandle" : "/listHandledTask", l = {
|
|
340
|
-
...m.value[`${a.value}Page`],
|
|
341
|
-
searchField: t,
|
|
342
|
-
userName: I.get(o)
|
|
343
|
-
}, [u, d] = await c(n().post(Me + s, l));
|
|
344
|
-
if (u) return;
|
|
345
|
-
m.value[e] = d.list, m.value[e + "Page"].total = d.total;
|
|
346
|
-
let f = e === "todo" ? r : i;
|
|
347
|
-
f.value.getInstance().loadData(d.list), f.value.setPagerConfig({ ...m.value[e + "Page"] });
|
|
348
|
-
}, A = async ({ value: e }) => {
|
|
349
|
-
let t = e === "todo" ? r : i, n = b.find((e) => e.field === "operate");
|
|
350
|
-
n.width = e === "todo" ? 160 : 80, await x(), t.value.getInstance().reloadColumn(b);
|
|
351
|
-
let o = m.value[`${a.value}Page`];
|
|
352
|
-
m.value[`${a.value}Page`] = W(o) ? o : y, O(a.value, f.value);
|
|
353
|
-
}, j = (e, n = "detail") => {
|
|
354
|
-
let r = Object.assign({
|
|
355
|
-
dataStatus: n,
|
|
356
|
-
workflowCode: e.sourceKey,
|
|
357
|
-
businessKey: e.sourceId,
|
|
358
|
-
processInstanceId: e.processInstId
|
|
359
|
-
}, e);
|
|
360
|
-
sessionStorage.setItem("kPROCESSKEY", JSON.stringify(r)), t.push({ name: "FlowApproval" });
|
|
361
|
-
};
|
|
362
|
-
return T(() => {
|
|
363
|
-
m.value[`${a.value}Page`] = y, O("todo", null);
|
|
364
|
-
}), (e, t) => {
|
|
365
|
-
let n = k("vxe-input"), o = k("ut-button"), c = k("ut-grid"), d = k("vxe-tab-pane"), y = k("vxe-tabs"), x = k("vxe-image"), T = k("vxe-modal");
|
|
366
|
-
return E(), h("div", null, [v(y, {
|
|
367
|
-
modelValue: a.value,
|
|
368
|
-
"onUpdate:modelValue": t[2] ||= (e) => a.value = e,
|
|
369
|
-
type: "border-card",
|
|
370
|
-
onTabChange: A
|
|
371
|
-
}, {
|
|
372
|
-
default: N(() => [v(d, {
|
|
373
|
-
name: "todo",
|
|
374
|
-
title: e.$t("message.t_todoFlow")
|
|
375
|
-
}, {
|
|
376
|
-
default: N(() => [g("div", Oe, [v(n, {
|
|
377
|
-
modelValue: f.value,
|
|
378
|
-
"onUpdate:modelValue": t[0] ||= (e) => f.value = e,
|
|
379
|
-
class: "flex-1 w-full",
|
|
380
|
-
placeholder: "请输入任务编码或名称或标题查询"
|
|
381
|
-
}, null, 8, ["modelValue"]), g("div", ke, [v(o, {
|
|
382
|
-
content: "search",
|
|
383
|
-
icon: "ri-search-line",
|
|
384
|
-
onTap: C
|
|
385
|
-
}), v(o, {
|
|
386
|
-
content: "reset",
|
|
387
|
-
status: "info",
|
|
388
|
-
icon: "ri-cycle-line",
|
|
389
|
-
onTap: w
|
|
390
|
-
})])]), v(c, {
|
|
391
|
-
ref_key: "xgrid",
|
|
392
|
-
ref: r,
|
|
393
|
-
columns: b,
|
|
394
|
-
data: m.value.todo,
|
|
395
|
-
events: S,
|
|
396
|
-
editable: !1,
|
|
397
|
-
"need-export": !1,
|
|
398
|
-
"proxy-config": { enabled: !1 },
|
|
399
|
-
"toolbar-config": { enabled: !1 },
|
|
400
|
-
height: "360"
|
|
401
|
-
}, null, 8, ["data"])]),
|
|
402
|
-
_: 1
|
|
403
|
-
}, 8, ["title"]), v(d, {
|
|
404
|
-
name: "finish",
|
|
405
|
-
lazy: "",
|
|
406
|
-
title: e.$t("message.t_finishFlow")
|
|
407
|
-
}, {
|
|
408
|
-
default: N(() => [
|
|
409
|
-
g("div", Ae, [v(n, {
|
|
410
|
-
modelValue: f.value,
|
|
411
|
-
"onUpdate:modelValue": t[1] ||= (e) => f.value = e,
|
|
412
|
-
class: "flex-1 w-full",
|
|
413
|
-
placeholder: "请输入任务编码或名称或标题查询"
|
|
414
|
-
}, null, 8, ["modelValue"]), g("div", je, [v(o, {
|
|
415
|
-
content: "search",
|
|
416
|
-
icon: "ri-search-line",
|
|
417
|
-
onTap: C
|
|
418
|
-
}), v(o, {
|
|
419
|
-
content: "reset",
|
|
420
|
-
status: "info",
|
|
421
|
-
icon: "ri-cycle-line",
|
|
422
|
-
onTap: w
|
|
423
|
-
})])]),
|
|
424
|
-
v(c, {
|
|
425
|
-
ref_key: "ygrid",
|
|
426
|
-
ref: i,
|
|
427
|
-
columns: b,
|
|
428
|
-
data: m.value.finish,
|
|
429
|
-
events: S,
|
|
430
|
-
editable: !1,
|
|
431
|
-
"need-export": !1,
|
|
432
|
-
"proxy-config": { enabled: !1 },
|
|
433
|
-
"toolbar-config": { enabled: !1 },
|
|
434
|
-
height: "360"
|
|
435
|
-
}, null, 8, ["data"]),
|
|
436
|
-
t[4] ||= _(" /> ", -1)
|
|
437
|
-
]),
|
|
438
|
-
_: 1
|
|
439
|
-
}, 8, ["title"])]),
|
|
440
|
-
_: 1
|
|
441
|
-
}, 8, ["modelValue"]), v(T, {
|
|
442
|
-
modelValue: s.value,
|
|
443
|
-
"onUpdate:modelValue": t[3] ||= (e) => s.value = e,
|
|
444
|
-
loading: l.value,
|
|
445
|
-
title: p.value,
|
|
446
|
-
height: "360"
|
|
447
|
-
}, {
|
|
448
|
-
default: N(() => [v(x, {
|
|
449
|
-
src: u.value,
|
|
450
|
-
height: 520,
|
|
451
|
-
width: "75%"
|
|
452
|
-
}, null, 8, ["src"])]),
|
|
453
|
-
_: 1
|
|
454
|
-
}, 8, [
|
|
455
|
-
"modelValue",
|
|
456
|
-
"loading",
|
|
457
|
-
"title"
|
|
458
|
-
])]);
|
|
459
|
-
};
|
|
460
|
-
}
|
|
461
|
-
}), Pe = /* @__PURE__ */ b({
|
|
462
|
-
__name: "dynamic-component",
|
|
463
|
-
props: { data: { default: () => ({}) } },
|
|
464
|
-
setup(e) {
|
|
465
|
-
let n = e, i = r().VITE_ROUTER_HISTORY, a = {
|
|
466
|
-
compileOptions: {
|
|
467
|
-
mode: "module",
|
|
468
|
-
hoistStatic: !0
|
|
469
|
-
},
|
|
470
|
-
moduleCache: {
|
|
471
|
-
vue: u,
|
|
472
|
-
"vue-router": ne,
|
|
473
|
-
"await-to-js": c,
|
|
474
|
-
"@utogether/utils": F,
|
|
475
|
-
"@utogether/udp-core": t,
|
|
476
|
-
"xe-utils": H,
|
|
477
|
-
dayjs: Y,
|
|
478
|
-
echarts: re,
|
|
479
|
-
"vxe-pc-ui": K
|
|
480
|
-
},
|
|
481
|
-
async getFile(e) {
|
|
482
|
-
return await (await fetch(e)).text();
|
|
483
|
-
},
|
|
484
|
-
addStyle(e) {
|
|
485
|
-
let t = Object.assign(document.createElement("style"), { textContent: e }), n = document.head.getElementsByTagName("style")[0] || null;
|
|
486
|
-
document.head.insertBefore(t, n);
|
|
487
|
-
}
|
|
488
|
-
}, o = y(async () => await Z(`${window.origin}${i ? "/" + i : ""}${n.data.url}.vue`, a));
|
|
489
|
-
return (e, t) => (E(), p(M(o)));
|
|
490
|
-
}
|
|
491
|
-
}), Fe = { class: "dynamic-card w-full" }, Ie = /* @__PURE__ */ b({
|
|
492
|
-
__name: "dynamic-card",
|
|
493
|
-
props: { list: { default: () => [] } },
|
|
494
|
-
setup(e) {
|
|
495
|
-
return (t, n) => {
|
|
496
|
-
let r = k("vxe-card"), i = k("vxe-col"), a = k("vxe-row");
|
|
497
|
-
return E(), h("div", Fe, [v(a, {
|
|
498
|
-
gutter: [10, 10],
|
|
499
|
-
wrap: ""
|
|
500
|
-
}, {
|
|
501
|
-
default: N(() => [(E(!0), h(d, null, O(e.list, (e) => (E(), p(i, {
|
|
502
|
-
key: e.id,
|
|
503
|
-
span: e.span
|
|
504
|
-
}, {
|
|
505
|
-
default: N(() => [v(r, {
|
|
506
|
-
title: e.title,
|
|
507
|
-
height: e.height,
|
|
508
|
-
shadow: ""
|
|
509
|
-
}, {
|
|
510
|
-
default: N(() => [v(Pe, { data: e }, null, 8, ["data"])]),
|
|
511
|
-
_: 2
|
|
512
|
-
}, 1032, ["title", "height"])]),
|
|
513
|
-
_: 2
|
|
514
|
-
}, 1032, ["span"]))), 128))]),
|
|
515
|
-
_: 1
|
|
516
|
-
})]);
|
|
517
|
-
};
|
|
518
|
-
}
|
|
519
|
-
}), Q = {
|
|
520
|
-
name: "@utogether/udp-core",
|
|
521
|
-
private: !1,
|
|
522
|
-
version: "2.0.0-beta.26",
|
|
523
|
-
description: "",
|
|
524
|
-
type: "module",
|
|
525
|
-
main1: "index.ts",
|
|
526
|
-
main: "dist/core.es.js",
|
|
527
|
-
scripts: {
|
|
528
|
-
dev: "vite",
|
|
529
|
-
build: "vite build",
|
|
530
|
-
"preview:build": "pnpm build && vite preview",
|
|
531
|
-
report: "rimraf dist && vite build"
|
|
532
|
-
},
|
|
533
|
-
keywords: [],
|
|
534
|
-
author: "",
|
|
535
|
-
license: "ISC",
|
|
536
|
-
dependencies: { "vue3-sfc-loader": "^0.9.5" }
|
|
537
|
-
}, Le = { class: "ut-home m-3" }, Re = {
|
|
538
|
-
key: 0,
|
|
539
|
-
class: "h-32 mb-4 p-4 flex justify-between items-center bg-white home-page"
|
|
540
|
-
}, ze = { class: "flex flex-row items-center flex-[2]" }, Be = { class: "ml-4 text-xs flex-[2]" }, Ve = { class: "flex justify-center items-center" }, $ = { class: "py-2 text-gray-500 flex" }, He = { class: "w-2/3" }, Ue = {
|
|
541
|
-
key: 0,
|
|
542
|
-
class: "text-gray-500 flex"
|
|
543
|
-
}, We = { class: "w-2/3" }, Ge = { class: "flex flex-col" }, Ke = { class: "text-4xl" }, qe = { class: "mt-1 ml-3" }, Je = { class: "p-3" }, Ye = { class: "p-0 w-full h-full" }, Xe = { class: "flex" }, Ze = { class: "ml-3" }, Qe = { class: "text-blue-600 mr-3" }, $e = { class: "text-gray-400 text-sm" }, et = { class: "p-1" }, tt = /* @__PURE__ */ s(/* @__PURE__ */ b({
|
|
544
|
-
name: "UdpWelcome",
|
|
545
|
-
__name: "su-welcome",
|
|
546
|
-
setup(t) {
|
|
547
|
-
let r = e(), o = D([]), s = D([]), u = D(!1), y = D({}), b = D({
|
|
548
|
-
UserProfile: !1,
|
|
549
|
-
ToDo: !1,
|
|
550
|
-
FavorityMenu: !1,
|
|
551
|
-
Calendar: !1,
|
|
552
|
-
LoginInfo: !1
|
|
553
|
-
}), x = f(() => r.getUserInfo.name?.slice(0, 1)), { passwordItems: S, logout: C } = l(), A = D(Q.version.substring(0, 1) === "2"), P = null, F = () => r.isAdminRole ? "系统管理员" : r.getUserInfo?.sysRoles?.map((e) => e.roleName).join(","), L = () => r.isAdminRole ? "【系统管理员】拥有所有组织" : r.getOrglist?.map((e) => e.orgName).join(","), R = () => {
|
|
554
|
-
let e = Number(Y().format("HH"));
|
|
555
|
-
return e < 12 ? "上午好" : e < 18 ? "下午好" : "晚上好";
|
|
556
|
-
}, B = () => {
|
|
557
|
-
let e = /* @__PURE__ */ new Date(), { gzYear: t, IMonthCn: n, IDayCn: r, cMonth: i, cDay: a, ncWeek: o } = ee.solar2lunar(e.getFullYear(), e.getMonth() + 1, e.getDate());
|
|
558
|
-
return `${i}月${a}日 ${t}${n}${r} ${o}`;
|
|
559
|
-
}, V = () => {
|
|
560
|
-
let e = {
|
|
561
|
-
pageSize: 8,
|
|
562
|
-
pageNum: 1,
|
|
563
|
-
employeeName: r.getUserInfo?.name
|
|
564
|
-
};
|
|
565
|
-
n().get("/upfm/v1/userMonitor", e).then((e) => {
|
|
566
|
-
o.value = e?.list || [];
|
|
567
|
-
});
|
|
568
|
-
}, H = async () => {
|
|
569
|
-
let [e, t] = await c(n().get("/upfm/sysHomeConfig", {
|
|
570
|
-
pageSize: 1e3,
|
|
571
|
-
pageNum: 1,
|
|
572
|
-
enabled: "1",
|
|
573
|
-
isRoleFilter: "Y"
|
|
574
|
-
}));
|
|
575
|
-
e || t?.list.forEach((e) => {
|
|
576
|
-
e.type === "custom" ? s.value.push(e) : b.value[e.code] = !!e.code;
|
|
577
|
-
});
|
|
578
|
-
}, U = async () => {
|
|
579
|
-
let e = J.AES.decrypt(I.get(a), i).toString(J.enc.Utf8), t = z("SU.DEFAULT_PASSWORD")?.find((e) => e.dictCode === "default");
|
|
580
|
-
t && t.dictName === e ? (y.value = {
|
|
581
|
-
id: r.getUserInfo.id,
|
|
582
|
-
oldUserPwd: e
|
|
583
|
-
}, u.value = !0, window.clearInterval(P)) : t && t.dictName !== e && window.clearInterval(P);
|
|
584
|
-
};
|
|
585
|
-
w(() => {
|
|
586
|
-
if (te.getItem("kSysConfig").initialPasswordModification === "Y") {
|
|
587
|
-
let e = J.AES.decrypt(I.get(a), i).toString(J.enc.Utf8), t = z("SU.DEFAULT_PASSWORD")?.find((e) => e.dictCode === "default");
|
|
588
|
-
(!t || t?.dictName === e) && (P = setInterval(() => {
|
|
589
|
-
U();
|
|
590
|
-
}, 1e3));
|
|
591
|
-
}
|
|
592
|
-
}), T(() => {
|
|
593
|
-
V(), Q.version.substring(0, 1) === "2" ? H() : b.value = {
|
|
594
|
-
UserProfile: !1,
|
|
595
|
-
ToDo: !1,
|
|
596
|
-
FavorityMenu: !1,
|
|
597
|
-
Calendar: !1,
|
|
598
|
-
LoginInfo: !0
|
|
599
|
-
};
|
|
600
|
-
});
|
|
601
|
-
let W = [{ 2023: { 12: {
|
|
602
|
-
30: "班",
|
|
603
|
-
31: "班"
|
|
604
|
-
} } }, { 2024: {
|
|
605
|
-
1: { 1: "假" },
|
|
606
|
-
2: {
|
|
607
|
-
4: "班",
|
|
608
|
-
10: "假",
|
|
609
|
-
11: "假",
|
|
610
|
-
12: "假",
|
|
611
|
-
13: "假",
|
|
612
|
-
14: "假",
|
|
613
|
-
15: "假",
|
|
614
|
-
16: "假",
|
|
615
|
-
17: "假",
|
|
616
|
-
18: "班"
|
|
617
|
-
},
|
|
618
|
-
4: {
|
|
619
|
-
4: "假",
|
|
620
|
-
5: "假",
|
|
621
|
-
6: "假",
|
|
622
|
-
7: "班",
|
|
623
|
-
28: "班"
|
|
624
|
-
},
|
|
625
|
-
5: {
|
|
626
|
-
1: "假",
|
|
627
|
-
2: "假",
|
|
628
|
-
3: "假",
|
|
629
|
-
4: "假",
|
|
630
|
-
5: "假",
|
|
631
|
-
11: "班"
|
|
632
|
-
},
|
|
633
|
-
6: {
|
|
634
|
-
8: "假",
|
|
635
|
-
9: "假",
|
|
636
|
-
10: "假"
|
|
637
|
-
},
|
|
638
|
-
9: {
|
|
639
|
-
15: "假",
|
|
640
|
-
16: "假",
|
|
641
|
-
17: "假",
|
|
642
|
-
14: "班",
|
|
643
|
-
29: "班"
|
|
644
|
-
},
|
|
645
|
-
10: {
|
|
646
|
-
1: "假",
|
|
647
|
-
2: "假",
|
|
648
|
-
3: "假",
|
|
649
|
-
4: "假",
|
|
650
|
-
5: "假",
|
|
651
|
-
6: "假",
|
|
652
|
-
7: "假",
|
|
653
|
-
12: "班"
|
|
654
|
-
}
|
|
655
|
-
} }], G = [
|
|
656
|
-
{
|
|
657
|
-
name: "元旦",
|
|
658
|
-
date: "2024-01-01"
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
name: "春节",
|
|
662
|
-
date: "2024-02-10"
|
|
663
|
-
},
|
|
664
|
-
{
|
|
665
|
-
name: "清明节",
|
|
666
|
-
date: "2024-04-04"
|
|
667
|
-
},
|
|
668
|
-
{
|
|
669
|
-
name: "劳动节",
|
|
670
|
-
date: "2024-05-01"
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
name: "端午节",
|
|
674
|
-
date: "2024-06-10"
|
|
675
|
-
},
|
|
676
|
-
{
|
|
677
|
-
name: "中秋节",
|
|
678
|
-
date: "2024-09-17"
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
name: "国庆节",
|
|
682
|
-
date: "2024-10-01"
|
|
683
|
-
}
|
|
684
|
-
];
|
|
685
|
-
return (e, t) => {
|
|
686
|
-
let n = k("el-avatar"), i = k("ut-flip-down"), a = k("el-row"), c = k("el-col"), l = k("el-card"), f = k("ut-calendar"), w = k("ut-modal-form");
|
|
687
|
-
return E(), h("div", Le, [
|
|
688
|
-
b.value.UserProfile ? (E(), h("div", Re, [g("div", ze, [g("div", null, [v(n, {
|
|
689
|
-
size: "large",
|
|
690
|
-
class: "text-4xl font-bold bg-[var(--el-color-primary)]"
|
|
691
|
-
}, {
|
|
692
|
-
default: N(() => [_(j(x.value), 1)]),
|
|
693
|
-
_: 1
|
|
694
|
-
})]), g("div", Be, [
|
|
695
|
-
g("div", Ve, [g("span", null, j(R()) + ", " + j(M(r).getUserInfo?.name || "") + ",欢迎回来! ", 1), t[2] ||= g("div", {
|
|
696
|
-
class: "flex flex-[2] justify-center items-center font-bold",
|
|
697
|
-
style: { color: "var(--el-color-primary)" }
|
|
698
|
-
}, " 星光不问赶路人,岁月不负有心人,以梦为马,不负韶华! ", -1)]),
|
|
699
|
-
g("div", $, [t[3] ||= g("span", { class: "inline-block" }, " 所属角色: ", -1), g("div", He, j(F()), 1)]),
|
|
700
|
-
F() === "系统管理员" ? m("", !0) : (E(), h("div", Ue, [t[4] ||= g("span", { class: "inline-block" }, " 所属组织: ", -1), g("div", We, j(L()), 1)]))
|
|
701
|
-
])]), g("div", Ge, [g("span", Ke, [v(i, {
|
|
702
|
-
"show-days": !1,
|
|
703
|
-
"show-labels": !1
|
|
704
|
-
})]), g("div", qe, j(B()), 1)])])) : m("", !0),
|
|
705
|
-
A.value ? (E(), p(a, { key: 1 }, {
|
|
706
|
-
default: N(() => [v(Ie, { list: s.value }, null, 8, ["list"])]),
|
|
707
|
-
_: 1
|
|
708
|
-
})) : m("", !0),
|
|
709
|
-
v(a, {
|
|
710
|
-
class: "m-2",
|
|
711
|
-
gutter: 10
|
|
712
|
-
}, {
|
|
713
|
-
default: N(() => [
|
|
714
|
-
b.value.FavorityMenu ? (E(), p(c, {
|
|
715
|
-
key: 0,
|
|
716
|
-
lg: 24,
|
|
717
|
-
md: 24,
|
|
718
|
-
class: ""
|
|
719
|
-
}, {
|
|
720
|
-
default: N(() => [v(De)]),
|
|
721
|
-
_: 1
|
|
722
|
-
})) : m("", !0),
|
|
723
|
-
b.value.ToDo ? (E(), p(c, {
|
|
724
|
-
key: 1,
|
|
725
|
-
lg: 24,
|
|
726
|
-
md: 24,
|
|
727
|
-
class: ""
|
|
728
|
-
}, {
|
|
729
|
-
default: N(() => [v(l, null, {
|
|
730
|
-
header: N(() => [...t[5] ||= [g("div", { class: "font-bold" }, [g("span", null, "流程审批")], -1)]]),
|
|
731
|
-
default: N(() => [g("div", null, [v(Ne)])]),
|
|
732
|
-
_: 1
|
|
733
|
-
})]),
|
|
734
|
-
_: 1
|
|
735
|
-
})) : m("", !0),
|
|
736
|
-
b.value.LoginInfo ? (E(), p(c, {
|
|
737
|
-
key: 2,
|
|
738
|
-
xl: 16,
|
|
739
|
-
lg: 12,
|
|
740
|
-
md: 24
|
|
741
|
-
}, {
|
|
742
|
-
default: N(() => [v(l, { class: "mb-2" }, {
|
|
743
|
-
header: N(() => [...t[6] ||= [g("div", { class: "font-bold" }, [g("span", null, "个人动态")], -1)]]),
|
|
744
|
-
default: N(() => [g("div", Je, [g("ul", Ye, [(E(!0), h(d, null, O(o.value, (e) => (E(), h("li", {
|
|
745
|
-
key: e.id,
|
|
746
|
-
class: "w-full list-none p-2 border-b border-gray-200"
|
|
747
|
-
}, [g("div", Xe, [g("div", null, [v(n, { class: "text-base" }, {
|
|
748
|
-
default: N(() => [_(j(x.value), 1)]),
|
|
749
|
-
_: 1
|
|
750
|
-
})]), g("div", Ze, [g("div", null, [g("span", Qe, j(e.browser), 1), g("span", null, j(e.browserVersion || e.platformVersion), 1)]), g("div", $e, j(e.loginTime), 1)])])]))), 128))])])]),
|
|
751
|
-
_: 1
|
|
752
|
-
})]),
|
|
753
|
-
_: 1
|
|
754
|
-
})) : m("", !0),
|
|
755
|
-
b.value.Calendar ? (E(), p(c, {
|
|
756
|
-
key: 3,
|
|
757
|
-
xl: 8,
|
|
758
|
-
lg: 12,
|
|
759
|
-
md: 24,
|
|
760
|
-
class: ""
|
|
761
|
-
}, {
|
|
762
|
-
default: N(() => [v(l, { class: "mb-2" }, {
|
|
763
|
-
header: N(() => [...t[7] ||= [g("div", { class: "font-bold" }, [g("span", null, "日历")], -1)]]),
|
|
764
|
-
default: N(() => [g("div", et, [v(f, {
|
|
765
|
-
holidays: W,
|
|
766
|
-
"statutory-holiday": G
|
|
767
|
-
})])]),
|
|
768
|
-
_: 1
|
|
769
|
-
})]),
|
|
770
|
-
_: 1
|
|
771
|
-
})) : m("", !0)
|
|
772
|
-
]),
|
|
773
|
-
_: 1
|
|
774
|
-
}),
|
|
775
|
-
u.value ? (E(), p(w, {
|
|
776
|
-
key: 2,
|
|
777
|
-
record: y.value,
|
|
778
|
-
items: M(S)(),
|
|
779
|
-
width: 360,
|
|
780
|
-
height: 250,
|
|
781
|
-
"modal-options": { showClose: !1 },
|
|
782
|
-
"show-cancle-button": !1,
|
|
783
|
-
"data-status": "update",
|
|
784
|
-
title: e.$t("message.udp.passwordReset"),
|
|
785
|
-
url: "/uums/user/updatePwd",
|
|
786
|
-
method: "put",
|
|
787
|
-
onClose: t[0] ||= (e) => u.value = !1,
|
|
788
|
-
onConfirm: t[1] ||= (e) => M(C)()
|
|
789
|
-
}, null, 8, [
|
|
790
|
-
"record",
|
|
791
|
-
"items",
|
|
792
|
-
"title"
|
|
793
|
-
])) : m("", !0)
|
|
794
|
-
]);
|
|
795
|
-
};
|
|
796
|
-
}
|
|
797
|
-
}), [["__scopeId", "data-v-aa57aaaf"]]);
|
|
798
|
-
//#endregion
|
|
799
|
-
export { tt as default };
|