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