@utogether/udp-core 1.0.1-beta.9 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/plugins.ts +37 -39
- package/dist/{403-BOzKHdlm.js → 403-B1rIjAAu.js} +6 -6
- package/dist/{404-uwgt4Nll.js → 404-mBqc2y4t.js} +4 -4
- package/dist/{500-4HBf6V9m.js → 500-BoI45Zdh.js} +2 -2
- package/dist/{AuthorityInfo-DvbIh1vT.js → AuthorityInfo-B08NBIIn.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-BlCPvwXU.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js} +3 -3
- package/dist/{Company-D7Q9BFmr.js → Company-JGGyWEWH.js} +3 -3
- package/dist/{CompanyPanel-C0-PJlrt.js → CompanyPanel-BQ_cCmDx.js} +7 -7
- package/dist/{Department-h2hlXACv.js → Department-z2iO6hwM.js} +10 -10
- package/dist/{DepartmentPanel-B6hDEQpG.js → DepartmentPanel-BtQe7zwU.js} +108 -78
- package/dist/{DesignPanel-cS58-1v9.js → DesignPanel-7mhtVWas.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-LdvLC8VU.js → DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js} +6 -6
- package/dist/{DictView-T3TmpBa8.js → DictView-CjchV2Yk.js} +15 -16
- package/dist/InvOrganization-Pn1O_XP0.js +74 -0
- package/dist/{Org-CnCBDGKF.js → Org-BqytV_vi.js} +1 -1
- package/dist/{Preview-BaktKXB1.js → Preview-CLpUUMay.js} +2 -2
- package/dist/{ReportDefine-5Rb0PO9A.js → ReportDefine-Cz1KtEUF.js} +1 -1
- package/dist/{ReportDesign-DYdkVREA.js → ReportDesign-BaORYud4.js} +13 -13
- package/dist/{ReportQuery-BwhzIXMt.js → ReportQuery-CPCPXiXz.js} +1 -1
- package/dist/{ReportQueryFrom-PHtWwlOe.js → ReportQueryFrom-C_AcrfkJ.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-BE5yZNPM.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Bm67ejay.js} +1 -1
- package/dist/{ReportTemplate-DaadVXIi.js → ReportTemplate-CFiNMz79.js} +11 -11
- package/dist/{Role-Dtg3nAmG.js → Role-B-XDoJd5.js} +3 -3
- package/dist/{RoleAssign-DEGtLssH.js → RoleAssign-BolW8YVs.js} +8 -8
- package/dist/{RolePanel-DpUzfE_o.js → RolePanel-2kfs5tw9.js} +1 -1
- package/dist/{RolePanel-CT7BTPmy.js → RolePanel-HilSuYns.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Xyo0YEI0.js → RolePanel.vue_vue_type_script_setup_true_lang-CE4gApUY.js} +7 -7
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Dg2A6DJu.js → RolePanel.vue_vue_type_script_setup_true_lang-DPzgfAyV.js} +13 -13
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CyutzDZS.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js} +4 -4
- package/dist/{Staff-_NlAGkrh.js → Staff-BTk3whFC.js} +3 -3
- package/dist/{StaffInfo-DVgUvVgd.js → StaffInfo-d3AuSzlA.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-C8hmlFgX.js → StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js} +5 -5
- package/dist/{StaffPanel-DKNZE3IE.js → StaffPanel-DV-D4jjz.js} +1 -1
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js +135 -0
- package/dist/{SysUser-kQUf7XKz.js → SysUser-BnjYytws.js} +2 -2
- package/dist/{SysUserPanel-C191uX3U.js → SysUserPanel-CBoyD-Qi.js} +1 -1
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js +341 -0
- package/dist/{SystemMenu-DwuSvHnj.js → SystemMenu-kYB_ZaUt.js} +36 -36
- package/dist/{UserInfo-DIsInFld.js → UserInfo-4dx97VBL.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CnvGdbej.js → UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js} +10 -10
- package/dist/{childView-3Bs2UBEw.js → childView-CHPNfTEb.js} +1 -1
- package/dist/{childView-BawyULD7.js → childView-CKA_JgVZ.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-YpWF-p2F.js → childView.vue_vue_type_style_index_0_lang-Bym2fQRd.js} +7 -7
- package/dist/childView.vue_vue_type_style_index_0_lang-W7bCtXeu.js +177 -0
- package/dist/{code-rule-DVaYcn8S.js → code-rule-CbxuZg0-.js} +40 -38
- package/dist/core.es.js +18 -12
- package/dist/{cron-task-xuzP-BpE.js → cron-task-nTOpqQYf.js} +7 -7
- package/dist/flow-task-B07st2aD.js +10 -0
- package/dist/{frameView-Cudt06qS.js → frameView-Z1tPUyCh.js} +1 -1
- package/dist/index-C3q8HoJM.js +4650 -0
- package/dist/{layoutView-BlFTV2jX.js → layoutView--MGA9zUB.js} +1766 -1760
- package/dist/{log-in-e7D5Ss1P.js → log-in-CSYJDA6m.js} +36 -29
- package/dist/log-out-DiwGCg7p.js +130 -0
- package/dist/login-C6Y0ajDp.js +251 -0
- package/dist/{login-log-kqKzKTto.js → login-log-C0V-_l3F.js} +5 -3
- package/dist/{lov-view-B2HaxyMs.js → lov-view-Cmv7wZZ9.js} +6 -6
- package/dist/{menuInfo-BxCTJ1VW.js → menuInfo-UeutJpOa.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CLOPNeUW.js → menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js} +118 -98
- package/dist/{pda-app-DPsAFNiw.js → pda-app-B6w99SJo.js} +10 -10
- package/dist/{resource-Dibb7t8u.js → resource-BybJvUv0.js} +4 -4
- package/dist/{su-welcome-DejR0KkM.js → su-welcome-C1bmxHoY.js} +119 -121
- package/dist/sys-config-BnmIDnCj.js +370 -0
- package/dist/udp-core.css +1 -9
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/index.ts +49 -40
- package/package.json +18 -18
- package/src/App.vue +65 -65
- package/src/api/http.ts +1 -4
- package/src/api/index.ts +4 -2
- package/src/api/user.ts +2 -2
- package/src/components/SuCharts/src/UserInfo.vue +78 -78
- package/src/components/SuScrollTree/ScrollPanel.vue +1 -6
- package/src/components/udp/content/index.vue +88 -0
- package/src/components/udp/{form.vue → form/form.vue} +13 -16
- package/src/components/udp/{grid.vue → grid/index.vue} +56 -27
- package/src/components/udp/index.ts +4 -9
- package/src/components/udp/ut-stamp-badge/index.vue +271 -0
- package/src/components/udp/utils.ts +66 -105
- package/src/layout/components/lay-navbar/index.vue +8 -6
- package/src/layout/components/lay-panel/index.vue +150 -150
- package/src/layout/components/lay-search/index.vue +25 -25
- package/src/layout/components/lay-select-org/index.vue +4 -9
- package/src/layout/components/lay-setting/index.vue +503 -510
- package/src/layout/components/lay-sidebar/horizontal.vue +8 -6
- package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -98
- package/src/layout/components/lay-tag/index.vue +24 -51
- package/src/layout/hooks/useDataThemeChange.ts +1 -1
- package/src/layout/hooks/useNav.ts +176 -173
- package/src/layout/hooks/useTag.ts +227 -233
- package/src/layout/types.ts +93 -92
- package/src/main.ts +115 -119
- package/src/plugins/i18n/en.ts +302 -302
- package/src/plugins/i18n/module/u-workflow.ts +1 -1
- package/src/plugins/i18n/zh.ts +21 -6
- package/src/plugins/vxe-table/index.ts +116 -53
- package/src/plugins/vxe-table/render.tsx +945 -956
- package/src/router/index.ts +17 -17
- package/src/router/modules/flow.ts +35 -0
- package/src/router/modules/home.ts +32 -32
- package/src/router/modules/remaining.ts +58 -58
- package/src/router/utils.ts +420 -377
- package/src/store/modules/app.ts +2 -4
- package/src/store/modules/epTheme.ts +48 -49
- package/src/store/modules/multiTags.ts +15 -14
- package/src/store/modules/permission.ts +25 -15
- package/src/store/modules/system.ts +1 -3
- package/src/style/button.scss +85 -85
- package/src/style/login.css +1 -1
- package/src/style/vxetable.scss +61 -2
- package/src/utils/dataFormat/index.ts +223 -223
- package/src/utils/index.ts +3 -1
- package/src/utils/lifecycle.ts +39 -20
- package/src/utils/propTypes.ts +1 -6
- package/src/utils/storage/index.ts +2 -2
- package/src/utils/udp/http/index.ts +24 -11
- package/src/utils/udp/http/types.d.ts +3 -10
- package/src/views/login/login-view.vue +4 -18
- package/src/views/organization/company/CompanyPanel.vue +259 -259
- package/src/views/organization/department/Department.vue +58 -58
- package/src/views/organization/department/DepartmentPanel.vue +303 -283
- package/src/views/organization/inv-org/InvOrganization.vue +22 -7
- package/src/views/organization/staff/StaffInfo.vue +127 -133
- package/src/views/organization/staff/StaffPanel.vue +162 -145
- package/src/views/system/cron/cron-task.vue +2 -12
- package/src/views/system/menu/SystemMenu.vue +185 -183
- package/src/views/system/menu/menuInfo.vue +384 -363
- package/src/views/system/role/UserInfo.vue +195 -195
- package/src/views/system/role-assign/RoleAssign.vue +57 -57
- package/src/views/system/role-assign/RolePanel.vue +139 -139
- package/src/views/system/sys/sys-config.vue +69 -20
- package/src/views/system/sysUser/SysUserPanel.vue +97 -28
- package/src/views/uapp/pda/pda-app.vue +208 -208
- package/src/views/udev/coderule/code-rule.vue +132 -121
- package/src/views/udev/dict/DictView.vue +2 -2
- package/src/views/udev/dict/childView.vue +183 -222
- package/src/views/udev/lov/childView.vue +1 -7
- package/src/views/udev/lov/lov-view.vue +91 -91
- package/src/views/uhome/components/menu-favorite.vue +314 -331
- package/src/views/uhome/su-welcome.vue +319 -339
- package/src/views/ulogin/login.vue +325 -321
- package/src/views/upms/interface/log-in.vue +100 -106
- package/src/views/upms/interface/log-out.vue +104 -107
- package/src/views/upms/user/login-log.vue +54 -60
- package/src/views/urpt/design/DesignPanel.vue +507 -507
- package/src/views/urpt/design/Preview.vue +1 -0
- package/src/views/urpt/design/ReportDesign.vue +2 -4
- package/src/views/utask/flow-task.vue +18 -0
- package/types/global.d.ts +231 -236
- package/dist/InvOrganization-BVuOhzbt.js +0 -66
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-BOOO6Cek.js +0 -111
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-SwNbAEvW.js +0 -294
- package/dist/childView.vue_vue_type_style_index_0_lang-DWIFCX3X.js +0 -187
- package/dist/index-CKnq5xIa.js +0 -2623
- package/dist/log-out--RRncZhN.js +0 -120
- package/dist/login-CpKykfdf.js +0 -253
- package/dist/sys-config-DiySRWns.js +0 -277
- package/dist/utogether-Dct_14Zk.js +0 -182
- package/src/components/udp/count-down.vue +0 -536
- package/src/components/udp/flip-down/FlipCard/flip-card.vue +0 -251
- package/src/components/udp/flip-down/FlipCard/interfaces.ts +0 -4
- package/src/components/udp/flip-down/FlipClock/flip-clock.vue +0 -113
- package/src/components/udp/form-upload.vue +0 -482
- package/src/components/udp/lov.vue +0 -388
- package/src/components/udp/modal-form.vue +0 -189
- package/src/components/udp/modal-grid.vue +0 -288
- package/src/components/udp/upload.vue +0 -423
- package/src/utils/udp/useRender.ts +0 -431
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { defineComponent as J, ref as y, onMounted as K, resolveComponent as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import
|
|
4
|
-
import { dbstorage as le, delay as ae, warnMessage as ie, successMessage as ce, lunarCalendar as re, cookies as
|
|
5
|
-
import {
|
|
6
|
-
import { clone as
|
|
7
|
-
import
|
|
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 = {
|
|
1
|
+
import { defineComponent as J, ref as y, onMounted as K, resolveComponent as p, createBlock as N, openBlock as a, withCtx as i, createElementVNode as e, createVNode as c, createCommentVNode as O, unref as B, normalizeStyle as Q, toDisplayString as f, createElementBlock as v, Fragment as k, renderList as C, nextTick as X, computed as Z, resolveDirective as ee, createTextVNode as Y, withDirectives as te, normalizeClass as se } from "vue";
|
|
2
|
+
import { useRouter as oe } from "vue-router";
|
|
3
|
+
import ne from "dayjs";
|
|
4
|
+
import { dbstorage as le, delay as ae, warnMessage as ie, successMessage as ce, lunarCalendar as re, cookies as de } from "@utogether/utils";
|
|
5
|
+
import { y as W, i as ue, p as me, _ as fe } from "./index-C3q8HoJM.js";
|
|
6
|
+
import { clone as pe, max as _e } from "xe-utils";
|
|
7
|
+
import ve from "vuedraggable";
|
|
8
|
+
const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye = { class: "h-24 w-24 flex justify-center items-center flex-col relative drag-item ut-menu-top-item" }, be = { class: "w-[90%] text-xs mt-2 text-ellipsis overflow-hidden whitespace-nowrap text-center" }, we = ["onClick"], ke = {
|
|
9
|
+
class: "p-3 pb-14",
|
|
10
|
+
style: { "padding-bottom": "54px" }
|
|
11
|
+
}, Ce = { class: "flex items-center" }, Ne = { class: "ml-1 font-bold text-base" }, $e = { class: "pl-3 py-2" }, Ie = { class: "flex items-center" }, Ve = { class: "ml-1 font-bold text-sm" }, Me = { class: "pl-3 py-2" }, Se = { class: "flex items-center" }, Ue = { class: "ml-1 font-bold text-sm" }, je = { class: "py-2" }, De = { class: "flex justify-end" }, Ee = "/upfm/v1/menuFavority", Le = /* @__PURE__ */ J({
|
|
9
12
|
__name: "menu-favorite",
|
|
10
13
|
props: {
|
|
11
14
|
dataSource: { default: () => [] },
|
|
@@ -13,61 +16,60 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
13
16
|
userName: { default: "" }
|
|
14
17
|
},
|
|
15
18
|
emits: ["close", "success"],
|
|
16
|
-
setup(
|
|
17
|
-
const j =
|
|
18
|
-
$.value = await le.getItem(`U-${j.userName}-ROUTES`), $.value = $.value.filter((
|
|
19
|
-
}, R = (
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
const t = (
|
|
23
|
-
r.value[
|
|
24
|
-
}, V = (
|
|
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
|
+
}, R = (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) => {
|
|
25
28
|
const s = [], t = [];
|
|
26
|
-
return
|
|
27
|
-
["5", "100"].includes(
|
|
29
|
+
return o.children.forEach((n) => {
|
|
30
|
+
["5", "100"].includes(n.menuCategory) ? s.push(n) : t.push(n);
|
|
28
31
|
}), { folder: s, menus: t };
|
|
29
32
|
}, A = () => {
|
|
30
|
-
j.dataSource.forEach((
|
|
31
|
-
r.value[
|
|
33
|
+
j.dataSource.forEach((o) => {
|
|
34
|
+
r.value[o.parentId] ? r.value[o.parentId].push(o.menuId) : r.value[o.parentId] = [o.menuId];
|
|
32
35
|
});
|
|
33
|
-
},
|
|
34
|
-
debugger;
|
|
36
|
+
}, D = (o, s) => {
|
|
35
37
|
if (s.checked) {
|
|
36
|
-
if (
|
|
38
|
+
if (d.value.length === 16)
|
|
37
39
|
return X(() => {
|
|
38
|
-
r.value[
|
|
40
|
+
r.value[o.id].splice(r.value[o.id].length - 1, 1);
|
|
39
41
|
}), ie("最多只能选择16个常用功能");
|
|
40
|
-
const t =
|
|
41
|
-
t && (t.seqNo = H() + 10, t.menuId = t.id,
|
|
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));
|
|
42
44
|
} else {
|
|
43
|
-
let t =
|
|
44
|
-
t !== -1 &&
|
|
45
|
+
let t = d.value.findIndex((n) => n.menuId === s.label);
|
|
46
|
+
t !== -1 && d.value.splice(t, 1), t = r.value[o.id].findIndex((n) => n === s.label), t !== -1 && r.value[o.id].splice(t, 1);
|
|
45
47
|
}
|
|
46
48
|
}, F = () => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
d.value.forEach((o, s) => {
|
|
50
|
+
o.seqNo = (s + 1) * 10;
|
|
49
51
|
});
|
|
50
52
|
}, H = () => {
|
|
51
|
-
var
|
|
52
|
-
return ((
|
|
53
|
+
var o;
|
|
54
|
+
return ((o = _e(d.value, (s) => s.seqNo)) == null ? void 0 : o.seqNo) || 0;
|
|
53
55
|
}, T = () => {
|
|
54
|
-
const
|
|
56
|
+
const o = d.value.map((s) => ({
|
|
55
57
|
userName: j.userName,
|
|
56
58
|
menuId: s.menuId,
|
|
57
59
|
seqNo: s.seqNo
|
|
58
60
|
}));
|
|
59
|
-
I.value = !0,
|
|
60
|
-
ce(),
|
|
61
|
+
I.value = !0, W().post(Ee, o).then(() => {
|
|
62
|
+
ce(), E(), z("success");
|
|
61
63
|
}).finally(() => {
|
|
62
64
|
I.value = !1;
|
|
63
65
|
});
|
|
64
|
-
},
|
|
66
|
+
}, E = () => {
|
|
65
67
|
b.value = !1, z("close");
|
|
66
|
-
},
|
|
68
|
+
}, q = (o) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][o % 5], z = h;
|
|
67
69
|
return K(() => {
|
|
68
|
-
|
|
69
|
-
}), (
|
|
70
|
-
const t =
|
|
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");
|
|
71
73
|
return a(), N(U, {
|
|
72
74
|
modelValue: b.value,
|
|
73
75
|
"onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
|
|
@@ -77,24 +79,24 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
77
79
|
title: "常用菜单设置(拖动可改变菜单顺序)",
|
|
78
80
|
"class-name": "u-favorite-modal",
|
|
79
81
|
"show-footer": "",
|
|
80
|
-
onClose:
|
|
82
|
+
onClose: E
|
|
81
83
|
}, {
|
|
82
84
|
default: i(() => [
|
|
83
85
|
e("div", ge, [
|
|
84
|
-
c(
|
|
86
|
+
c(_, {
|
|
85
87
|
heigth: "100",
|
|
86
88
|
class: "w-full border-b border-slate-300"
|
|
87
89
|
}, {
|
|
88
90
|
default: i(() => [
|
|
89
91
|
e("div", he, [
|
|
90
|
-
|
|
92
|
+
d.value.length ? O("", !0) : (a(), N(t, {
|
|
91
93
|
key: 0,
|
|
92
94
|
"image-size": 50,
|
|
93
95
|
description: "",
|
|
94
96
|
class: "p-0"
|
|
95
97
|
})),
|
|
96
|
-
c(B(
|
|
97
|
-
list:
|
|
98
|
+
c(B(ve), {
|
|
99
|
+
list: d.value,
|
|
98
100
|
handle: ".drag-item",
|
|
99
101
|
animation: "300",
|
|
100
102
|
"item-key": "id",
|
|
@@ -106,17 +108,17 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
106
108
|
e("div", ye, [
|
|
107
109
|
e("div", {
|
|
108
110
|
class: "rounded-full w-10 h-10 flex items-center justify-center",
|
|
109
|
-
style: Q({ backgroundColor:
|
|
111
|
+
style: Q({ backgroundColor: q(l) })
|
|
110
112
|
}, [
|
|
111
|
-
c(
|
|
112
|
-
icon: m.icon || `ri:${
|
|
113
|
+
c(n, {
|
|
114
|
+
icon: m.icon || `ri:${o.icons[l]}-line`,
|
|
113
115
|
class: "text-2xl text-white"
|
|
114
116
|
}, null, 8, ["icon"])
|
|
115
117
|
], 4),
|
|
116
118
|
e("span", be, f(m.menuName), 1),
|
|
117
119
|
e("i", {
|
|
118
120
|
class: "ri-indeterminate-circle-line right-3 top-2 text-base hidden ut-menu-del",
|
|
119
|
-
onClick: (
|
|
121
|
+
onClick: (u) => R(m, l)
|
|
120
122
|
}, null, 8, we)
|
|
121
123
|
])
|
|
122
124
|
])
|
|
@@ -127,10 +129,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
127
129
|
]),
|
|
128
130
|
_: 1
|
|
129
131
|
}),
|
|
130
|
-
c(
|
|
132
|
+
c(_, { class: "u-favorite-menu--contain" }, {
|
|
131
133
|
default: i(() => [
|
|
132
134
|
e("div", ke, [
|
|
133
|
-
(a(!0),
|
|
135
|
+
(a(!0), v(k, null, C($.value, (m) => (a(), v("div", {
|
|
134
136
|
key: m.id,
|
|
135
137
|
class: "grandparent-node"
|
|
136
138
|
}, [
|
|
@@ -142,10 +144,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
142
144
|
c(S, {
|
|
143
145
|
modelValue: r.value[m.id],
|
|
144
146
|
"onUpdate:modelValue": (l) => r.value[m.id] = l,
|
|
145
|
-
onChange: (l) =>
|
|
147
|
+
onChange: (l) => D(m, l)
|
|
146
148
|
}, {
|
|
147
149
|
default: i(() => [
|
|
148
|
-
(a(!0),
|
|
150
|
+
(a(!0), v(k, null, C(V(m).menus, (l) => (a(), N(M, {
|
|
149
151
|
key: l.id,
|
|
150
152
|
label: l.id,
|
|
151
153
|
content: l.menuName
|
|
@@ -154,7 +156,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
154
156
|
_: 2
|
|
155
157
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
156
158
|
]),
|
|
157
|
-
(a(!0),
|
|
159
|
+
(a(!0), v(k, null, C(V(m).folder, (l) => (a(), v("div", {
|
|
158
160
|
key: l.id,
|
|
159
161
|
class: "parent-node pl-3"
|
|
160
162
|
}, [
|
|
@@ -165,35 +167,35 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
165
167
|
e("div", Me, [
|
|
166
168
|
c(S, {
|
|
167
169
|
modelValue: r.value[l.id],
|
|
168
|
-
"onUpdate:modelValue": (
|
|
169
|
-
onChange: (
|
|
170
|
+
"onUpdate:modelValue": (u) => r.value[l.id] = u,
|
|
171
|
+
onChange: (u) => D(l, u)
|
|
170
172
|
}, {
|
|
171
173
|
default: i(() => [
|
|
172
|
-
(a(!0),
|
|
173
|
-
key:
|
|
174
|
-
label:
|
|
175
|
-
content:
|
|
174
|
+
(a(!0), v(k, null, C(V(l).menus, (u) => (a(), N(M, {
|
|
175
|
+
key: u.id,
|
|
176
|
+
label: u.id,
|
|
177
|
+
content: u.menuName
|
|
176
178
|
}, null, 8, ["label", "content"]))), 128))
|
|
177
179
|
]),
|
|
178
180
|
_: 2
|
|
179
181
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
180
182
|
]),
|
|
181
|
-
(a(!0),
|
|
182
|
-
key:
|
|
183
|
+
(a(!0), v(k, null, C(V(l).folder, (u) => (a(), v("div", {
|
|
184
|
+
key: u.id,
|
|
183
185
|
class: "child-node pl-3"
|
|
184
186
|
}, [
|
|
185
187
|
e("div", Se, [
|
|
186
188
|
s[3] || (s[3] = e("div", { class: "w-2 h-4 bg-red-400" }, null, -1)),
|
|
187
|
-
e("div", Ue, f(
|
|
189
|
+
e("div", Ue, f(u.menuName), 1)
|
|
188
190
|
]),
|
|
189
191
|
e("div", je, [
|
|
190
192
|
c(S, {
|
|
191
|
-
modelValue: r.value[
|
|
192
|
-
"onUpdate:modelValue": (x) => r.value[
|
|
193
|
-
onChange: (x) =>
|
|
193
|
+
modelValue: r.value[u.id],
|
|
194
|
+
"onUpdate:modelValue": (x) => r.value[u.id] = x,
|
|
195
|
+
onChange: (x) => D(l, x)
|
|
194
196
|
}, {
|
|
195
197
|
default: i(() => [
|
|
196
|
-
(a(!0),
|
|
198
|
+
(a(!0), v(k, null, C(V(u).menus, (x) => (a(), N(M, {
|
|
197
199
|
key: x.id,
|
|
198
200
|
label: x.id,
|
|
199
201
|
content: x.menuName
|
|
@@ -212,11 +214,11 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
212
214
|
])
|
|
213
215
|
]),
|
|
214
216
|
footer: i(() => [
|
|
215
|
-
e("div",
|
|
217
|
+
e("div", De, [
|
|
216
218
|
c(w, {
|
|
217
219
|
content: "cancel",
|
|
218
220
|
status: "warning",
|
|
219
|
-
onTap:
|
|
221
|
+
onTap: E
|
|
220
222
|
}),
|
|
221
223
|
c(w, {
|
|
222
224
|
content: "confirm",
|
|
@@ -228,53 +230,49 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
228
230
|
}, 8, ["modelValue", "loading"]);
|
|
229
231
|
};
|
|
230
232
|
}
|
|
231
|
-
}),
|
|
232
|
-
name: "
|
|
233
|
+
}), qe = { class: "ut-home m-3" }, ze = { class: "h-32 mb-4 p-4 flex justify-between items-center bg-white home-page" }, Re = { class: "flex flex-row items-center flex-[2]" }, Ae = { class: "ml-4 text-xs flex-[2]" }, Fe = { class: "flex justify-center items-center" }, He = { class: "py-2 text-gray-500 flex" }, Te = { class: "w-2/3" }, Oe = { class: "text-gray-500 flex" }, Be = { class: "w-2/3" }, We = { class: "flex flex-col" }, Ge = { class: "text-4xl" }, Pe = { class: "mt-1 ml-3" }, Ye = { class: "default:bg-white dark:bg-black" }, Je = ["onClick"], Ke = { class: "h-20 flex justify-center items-center flex-col" }, Qe = { class: "text-xs mt-2" }, Xe = { class: "p-3" }, Ze = { class: "p-0 w-full h-full" }, et = { class: "flex" }, tt = { class: "ml-3" }, st = { class: "text-blue-600 mr-3" }, ot = { class: "text-gray-400 text-sm" }, nt = { class: "p-1" }, lt = /* @__PURE__ */ J({
|
|
234
|
+
name: "UdpWelcome",
|
|
233
235
|
__name: "su-welcome",
|
|
234
|
-
setup(
|
|
235
|
-
const h =
|
|
236
|
+
setup(G) {
|
|
237
|
+
const h = ue(), j = oe(), d = y([]), $ = y([]), b = y(!1), I = y(!1), r = Z(() => {
|
|
236
238
|
var s;
|
|
237
239
|
return (s = h.getUserInfo.name) == null ? void 0 : s.slice(0, 1);
|
|
238
|
-
}),
|
|
239
|
-
var t,
|
|
240
|
-
return h.isAdminRole ? "系统管理员" : (
|
|
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(",");
|
|
241
243
|
}, R = () => {
|
|
242
244
|
var t;
|
|
243
|
-
return h.isAdminRole ? "【系统管理员】拥有所有组织" :
|
|
245
|
+
return h.isAdminRole ? "【系统管理员】拥有所有组织" : L() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((n) => n.orgName).join(",");
|
|
244
246
|
}, V = () => {
|
|
245
|
-
const s = Number(
|
|
247
|
+
const s = Number(ne().format("HH"));
|
|
246
248
|
return s < 12 ? "上午好" : s < 18 ? "下午好" : "晚上好";
|
|
247
249
|
}, A = () => {
|
|
248
|
-
const s = /* @__PURE__ */ new Date(), t = re.solar2lunar(
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
s.getDate()
|
|
252
|
-
), { gzYear: o, IMonthCn: v, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
|
|
253
|
-
return `${S}月${w}日 ${o}${v}${M} ${U}`;
|
|
254
|
-
}, q = () => {
|
|
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 = () => {
|
|
255
253
|
const s = "/upfm/v1/menuFavority";
|
|
256
254
|
I.value = !0;
|
|
257
|
-
const t = { pageSize: 20, pageNum: 1, userName:
|
|
258
|
-
|
|
259
|
-
|
|
255
|
+
const t = { pageSize: 20, pageNum: 1, userName: de.get(me) };
|
|
256
|
+
W().get(s, t).then((n) => {
|
|
257
|
+
d.value = (n == null ? void 0 : n.list) || [];
|
|
260
258
|
}).finally(() => {
|
|
261
259
|
I.value = !1;
|
|
262
260
|
});
|
|
263
261
|
}, F = (s) => {
|
|
264
262
|
j.push(s.menuPath);
|
|
265
263
|
}, H = () => {
|
|
266
|
-
var
|
|
267
|
-
const s = "/upfm/v1/userMonitor", t = { pageSize: 8, pageNum: 1, employeeName: (
|
|
268
|
-
|
|
269
|
-
$.value = (
|
|
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) || [];
|
|
270
268
|
});
|
|
271
269
|
}, T = () => {
|
|
272
270
|
b.value = !0;
|
|
273
271
|
};
|
|
274
272
|
K(() => {
|
|
275
|
-
|
|
273
|
+
D(), H();
|
|
276
274
|
});
|
|
277
|
-
const
|
|
275
|
+
const E = (s) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][s % 5], q = [
|
|
278
276
|
"community",
|
|
279
277
|
"shield-star",
|
|
280
278
|
"group",
|
|
@@ -317,7 +315,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
317
315
|
10: { 1: "假", 2: "假", 3: "假", 4: "假", 5: "假", 6: "假", 7: "假", 12: "班" }
|
|
318
316
|
}
|
|
319
317
|
}
|
|
320
|
-
],
|
|
318
|
+
], o = [
|
|
321
319
|
{ name: "元旦", date: "2024-01-01" },
|
|
322
320
|
{ name: "春节", date: "2024-02-10" },
|
|
323
321
|
{ name: "清明节", date: "2024-04-04" },
|
|
@@ -328,12 +326,12 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
328
326
|
];
|
|
329
327
|
return (s, t) => {
|
|
330
328
|
var x;
|
|
331
|
-
const
|
|
332
|
-
return a(),
|
|
329
|
+
const n = p("el-avatar"), _ = p("ut-flip-down"), M = p("el-empty"), S = p("iconify-icon-offline"), w = p("el-card"), U = p("el-col"), m = p("ut-calendar"), l = p("el-row"), u = ee("spinning");
|
|
330
|
+
return a(), v("div", qe, [
|
|
333
331
|
e("div", ze, [
|
|
334
332
|
e("div", Re, [
|
|
335
333
|
e("div", null, [
|
|
336
|
-
c(
|
|
334
|
+
c(n, {
|
|
337
335
|
size: "large",
|
|
338
336
|
class: "text-4xl font-bold bg-[var(--el-color-primary)]"
|
|
339
337
|
}, {
|
|
@@ -353,7 +351,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
353
351
|
]),
|
|
354
352
|
e("div", He, [
|
|
355
353
|
t[2] || (t[2] = e("span", { class: "inline-block" }, " 所属角色: ", -1)),
|
|
356
|
-
e("div", Te, f(
|
|
354
|
+
e("div", Te, f(L()), 1)
|
|
357
355
|
]),
|
|
358
356
|
e("div", Oe, [
|
|
359
357
|
t[3] || (t[3] = e("span", { class: "inline-block" }, " 所属组织: ", -1)),
|
|
@@ -361,14 +359,14 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
361
359
|
])
|
|
362
360
|
])
|
|
363
361
|
]),
|
|
364
|
-
e("div",
|
|
365
|
-
e("span",
|
|
366
|
-
c(
|
|
362
|
+
e("div", We, [
|
|
363
|
+
e("span", Ge, [
|
|
364
|
+
c(_, {
|
|
367
365
|
"show-days": !1,
|
|
368
366
|
"show-labels": !1
|
|
369
367
|
})
|
|
370
368
|
]),
|
|
371
|
-
e("div",
|
|
369
|
+
e("div", Pe, f(A()), 1)
|
|
372
370
|
])
|
|
373
371
|
]),
|
|
374
372
|
c(l, {
|
|
@@ -397,16 +395,16 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
397
395
|
]),
|
|
398
396
|
default: i(() => [
|
|
399
397
|
e("div", Ye, [
|
|
400
|
-
|
|
398
|
+
d.value.length ? O("", !0) : (a(), N(M, {
|
|
401
399
|
key: 0,
|
|
402
400
|
"image-size": 100,
|
|
403
401
|
description: "快来添加常用菜单吧!",
|
|
404
402
|
class: "p-0 pb-3"
|
|
405
403
|
})),
|
|
406
404
|
e("ul", {
|
|
407
|
-
class: se(["p-0 w-full h-full grid grid-rows-1 grid-cols-8 u-dashed-menu", { "grid-rows-2":
|
|
405
|
+
class: se(["p-0 w-full h-full grid grid-rows-1 grid-cols-8 u-dashed-menu", { "grid-rows-2": d.value.length > 8 }])
|
|
408
406
|
}, [
|
|
409
|
-
(a(!0),
|
|
407
|
+
(a(!0), v(k, null, C(d.value, (g, P) => (a(), v("li", {
|
|
410
408
|
key: g.id,
|
|
411
409
|
class: "text-center list-none bg-white",
|
|
412
410
|
onClick: (at) => F(g)
|
|
@@ -414,10 +412,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
414
412
|
e("div", Ke, [
|
|
415
413
|
e("div", {
|
|
416
414
|
class: "rounded-full w-10 h-10 flex items-center justify-center",
|
|
417
|
-
style: Q({ backgroundColor:
|
|
415
|
+
style: Q({ backgroundColor: E(P) })
|
|
418
416
|
}, [
|
|
419
417
|
c(S, {
|
|
420
|
-
icon: g.icon || `ri:${
|
|
418
|
+
icon: g.icon || `ri:${q[P]}-line`,
|
|
421
419
|
class: "text-2xl text-white"
|
|
422
420
|
}, null, 8, ["icon"])
|
|
423
421
|
], 4),
|
|
@@ -433,7 +431,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
433
431
|
]),
|
|
434
432
|
_: 1
|
|
435
433
|
})), [
|
|
436
|
-
[
|
|
434
|
+
[u, I.value]
|
|
437
435
|
]),
|
|
438
436
|
c(U, {
|
|
439
437
|
xl: 16,
|
|
@@ -450,13 +448,13 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
450
448
|
default: i(() => [
|
|
451
449
|
e("div", Xe, [
|
|
452
450
|
e("ul", Ze, [
|
|
453
|
-
(a(!0),
|
|
451
|
+
(a(!0), v(k, null, C($.value, (g) => (a(), v("li", {
|
|
454
452
|
key: g.id,
|
|
455
453
|
class: "w-full list-none p-2 border-b border-gray-200"
|
|
456
454
|
}, [
|
|
457
455
|
e("div", et, [
|
|
458
456
|
e("div", null, [
|
|
459
|
-
c(
|
|
457
|
+
c(n, { class: "text-base" }, {
|
|
460
458
|
default: i(() => [
|
|
461
459
|
Y(f(r.value), 1)
|
|
462
460
|
]),
|
|
@@ -468,7 +466,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
468
466
|
e("span", st, f(g.browser), 1),
|
|
469
467
|
e("span", null, f(g.browserVersion || g.platformVersion), 1)
|
|
470
468
|
]),
|
|
471
|
-
e("div",
|
|
469
|
+
e("div", ot, f(g.loginTime), 1)
|
|
472
470
|
])
|
|
473
471
|
])
|
|
474
472
|
]))), 128))
|
|
@@ -494,10 +492,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
494
492
|
], -1)
|
|
495
493
|
])),
|
|
496
494
|
default: i(() => [
|
|
497
|
-
e("div",
|
|
495
|
+
e("div", nt, [
|
|
498
496
|
c(m, {
|
|
499
497
|
holidays: z,
|
|
500
|
-
"statutory-holiday":
|
|
498
|
+
"statutory-holiday": o
|
|
501
499
|
})
|
|
502
500
|
])
|
|
503
501
|
]),
|
|
@@ -509,18 +507,18 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
509
507
|
]),
|
|
510
508
|
_: 1
|
|
511
509
|
}),
|
|
512
|
-
b.value ? (a(), N(
|
|
510
|
+
b.value ? (a(), N(Le, {
|
|
513
511
|
key: 0,
|
|
514
|
-
"data-source":
|
|
512
|
+
"data-source": d.value,
|
|
515
513
|
"user-name": B(h).getUserInfo.userName,
|
|
516
|
-
icons:
|
|
514
|
+
icons: q,
|
|
517
515
|
onClose: t[0] || (t[0] = (g) => b.value = !1),
|
|
518
|
-
onSuccess:
|
|
516
|
+
onSuccess: D
|
|
519
517
|
}, null, 8, ["data-source", "user-name"])) : O("", !0)
|
|
520
518
|
]);
|
|
521
519
|
};
|
|
522
520
|
}
|
|
523
|
-
}),
|
|
521
|
+
}), pt = /* @__PURE__ */ fe(lt, [["__scopeId", "data-v-e82b305d"]]);
|
|
524
522
|
export {
|
|
525
|
-
|
|
523
|
+
pt as default
|
|
526
524
|
};
|