@utogether/udp-core 1.0.1 → 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 +13 -2
- package/dist/{403-JWjatlxJ.js → 403-B1rIjAAu.js} +7 -6
- package/dist/{404-BcdMJfPb.js → 404-mBqc2y4t.js} +14 -13
- package/dist/{500-bsa3F_cc.js → 500-BoI45Zdh.js} +10 -9
- package/dist/{AuthorityInfo-CqItgNs5.js → AuthorityInfo-B08NBIIn.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js +100 -0
- package/dist/{AuthorityPanel-BaLMwMgW.js → AuthorityPanel-BeBNiwqc.js} +1 -1
- package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js → AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js} +6 -6
- package/dist/{Company-DVff9IA7.js → Company-JGGyWEWH.js} +3 -3
- package/dist/{CompanyPanel-CNrdq4XE.js → CompanyPanel-BQ_cCmDx.js} +16 -16
- package/dist/{Department-CqcpfL4i.js → Department-z2iO6hwM.js} +10 -10
- package/dist/{DepartmentPanel-Bvti4LGu.js → DepartmentPanel-BtQe7zwU.js} +108 -78
- package/dist/{DesignPanel-CjykspE1.js → DesignPanel-7mhtVWas.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BK9EERdd.js → DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js} +24 -26
- package/dist/DictView-CjchV2Yk.js +109 -0
- package/dist/InvOrganization-Pn1O_XP0.js +74 -0
- package/dist/Org-BqytV_vi.js +39 -0
- package/dist/{Preview-Cm_7RhYU.js → Preview-CLpUUMay.js} +2 -2
- package/dist/{ReportDefine-CJVlQ--7.js → ReportDefine-Cz1KtEUF.js} +1 -1
- package/dist/{ReportDesign-B0unlrkt.js → ReportDesign-BaORYud4.js} +46 -46
- package/dist/{ReportQuery-BKuMCEvF.js → ReportQuery-CPCPXiXz.js} +5 -5
- package/dist/{ReportQueryFrom-DAngMJLU.js → ReportQueryFrom-C_AcrfkJ.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CPpwmztJ.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Bm67ejay.js} +6 -5
- package/dist/{ReportTemplate-8YH3L8Pv.js → ReportTemplate-CFiNMz79.js} +26 -26
- package/dist/{Role-MxI30-0W.js → Role-B-XDoJd5.js} +6 -6
- package/dist/{RoleAssign-BzUY_y_y.js → RoleAssign-BolW8YVs.js} +9 -9
- package/dist/{RolePanel-DS_TErTn.js → RolePanel-2kfs5tw9.js} +1 -1
- package/dist/{RolePanel-CXdcvsR5.js → RolePanel-HilSuYns.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CE4gApUY.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Ddl-A7Zh.js → RolePanel.vue_vue_type_script_setup_true_lang-DPzgfAyV.js} +42 -36
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DnchUgIF.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js} +20 -20
- package/dist/{Staff-D7tXo_Gn.js → Staff-BTk3whFC.js} +3 -3
- package/dist/{StaffInfo-Bk8BY8PO.js → StaffInfo-d3AuSzlA.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DqKwZi5f.js → StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js} +13 -13
- package/dist/{StaffPanel-VtpGCTIq.js → StaffPanel-DV-D4jjz.js} +1 -1
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js +135 -0
- package/dist/{SysUser-D0Q6OvD7.js → SysUser-BnjYytws.js} +2 -2
- package/dist/{SysUserPanel-1_vrsANQ.js → SysUserPanel-CBoyD-Qi.js} +1 -1
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js +341 -0
- package/dist/{SystemMenu-9PG3vESE.js → SystemMenu-kYB_ZaUt.js} +49 -47
- package/dist/{UserInfo-qgXUEGwi.js → UserInfo-4dx97VBL.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CN0C5rVk.js → UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js} +35 -33
- package/dist/{childView-C7ZSA5fR.js → childView-CHPNfTEb.js} +1 -1
- package/dist/{childView-yV2QLwfA.js → childView-CKA_JgVZ.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-DdKxPGdh.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-95K1jr-u.js → code-rule-CbxuZg0-.js} +42 -41
- package/dist/core.es.js +19 -10
- package/dist/{cron-task-DGrQwOHs.js → cron-task-nTOpqQYf.js} +5 -5
- package/dist/flow-task-B07st2aD.js +10 -0
- package/dist/{frameView-7SmME93D.js → frameView-Z1tPUyCh.js} +15 -14
- package/dist/img/l_img.svg +1 -1
- package/dist/img/minicolors.png +0 -0
- package/dist/img/v_img.svg +1 -1
- package/dist/index-C3q8HoJM.js +4650 -0
- package/dist/{layoutView-C6WIVWGZ.js → layoutView--MGA9zUB.js} +1776 -1764
- 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-CvVnyGi3.js → login-log-C0V-_l3F.js} +6 -4
- package/dist/{lov-view-DoF5LqFQ.js → lov-view-Cmv7wZZ9.js} +9 -9
- package/dist/{menuInfo-CNzGQwOD.js → menuInfo-UeutJpOa.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-51SYxVc_.js → menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js} +144 -121
- package/dist/pda-app-B6w99SJo.js +710 -0
- package/dist/redirect-BqegffKC.js +15 -0
- package/dist/{resource-gVFFMO9l.js → resource-BybJvUv0.js} +17 -17
- package/dist/{su-welcome-BN_s_RX_.js → su-welcome-C1bmxHoY.js} +124 -126
- 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 +19 -6
- package/package.json +18 -17
- package/src/App.vue +2 -7
- package/src/api/http.ts +1 -4
- package/src/api/index.ts +5 -3
- package/src/api/user.ts +2 -2
- package/src/components/SuCharts/src/UserInfo.vue +3 -3
- package/src/components/SuScrollTree/ScrollPanel.vue +4 -9
- package/src/components/udp/content/index.vue +88 -0
- package/src/components/udp/form/form.vue +109 -0
- package/src/components/udp/grid/index.vue +524 -0
- package/src/components/udp/index.ts +5 -4
- package/src/components/udp/ut-stamp-badge/index.vue +271 -0
- package/src/components/udp/utils.ts +408 -40
- package/src/directives/permission/index.ts +1 -1
- package/src/layout/components/lay-navbar/index.vue +9 -7
- package/src/layout/components/lay-panel/index.vue +3 -3
- package/src/layout/components/lay-search/index.vue +1 -1
- 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/breadCrumb.vue +1 -1
- 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 +598 -625
- 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/layoutView.vue +215 -215
- package/src/layout/types.ts +93 -92
- package/src/main.ts +115 -109
- package/src/plugins/i18n/en.ts +26 -13
- package/src/plugins/i18n/module/u-workflow.ts +1 -1
- package/src/plugins/i18n/zh.ts +363 -337
- package/src/plugins/vxe-table/index.ts +74 -4
- package/src/plugins/vxe-table/render.tsx +186 -58
- package/src/router/index.ts +187 -183
- package/src/router/modules/flow.ts +35 -0
- package/src/router/modules/home.ts +32 -32
- package/src/router/modules/remaining.ts +1 -26
- 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 +11 -4
- package/src/style/login.css +1 -1
- package/src/style/tailwind.css +1 -68
- package/src/style/vxetable.scss +103 -11
- package/src/utils/authority/index.ts +1 -1
- 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/{http → udp/http}/index.ts +27 -30
- package/src/utils/{http → udp/http}/types.d.ts +2 -6
- package/src/views/login/login-view.vue +6 -20
- package/src/views/organization/company/CompanyPanel.vue +2 -2
- 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 +23 -9
- package/src/views/organization/org/Org.vue +9 -5
- 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/AuthorityPanel.vue +2 -2
- package/src/views/system/menu/SystemMenu.vue +14 -20
- package/src/views/system/menu/menuInfo.vue +39 -23
- package/src/views/system/role/AuthorityInfo.vue +19 -15
- package/src/views/system/role/Role.vue +1 -5
- package/src/views/system/role/RolePanel.vue +11 -2
- package/src/views/system/role/UserInfo.vue +11 -9
- package/src/views/system/role-assign/RoleAssign.vue +2 -2
- package/src/views/system/role-assign/RolePanel.vue +12 -9
- package/src/views/system/sys/sys-config.vue +70 -21
- package/src/views/system/sysUser/SysUserPanel.vue +347 -278
- package/src/views/uapp/pda/pda-app.vue +48 -16
- package/src/views/udev/coderule/code-rule.vue +132 -121
- package/src/views/udev/dict/DictView.vue +118 -106
- package/src/views/udev/dict/childView.vue +183 -222
- package/src/views/udev/lov/childView.vue +1 -7
- package/src/views/ufile/aggregation/File.vue +5 -5
- package/src/views/ufile/file/water-mark.vue +14 -14
- 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 -316
- 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 +16 -35
- package/src/views/urpt/design/Preview.vue +1 -0
- package/src/views/urpt/design/ReportDesign.vue +17 -23
- package/src/views/urpt/static-resource/resource.vue +3 -3
- package/src/views/urpt/template/ReportTemplate.vue +7 -7
- package/src/views/utask/flow-task.vue +18 -0
- package/types/global.d.ts +231 -236
- package/vite.config.ts +13 -2
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-32L40GY2.js +0 -102
- package/dist/DictView-q7kR9K--.js +0 -95
- package/dist/InvOrganization-DI45LqZV.js +0 -260
- package/dist/Org-CZju_ZiR.js +0 -35
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DJKu6PXz.js +0 -126
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-C3Ixs12y.js +0 -111
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-C5XEmxsV.js +0 -288
- package/dist/childView.vue_vue_type_style_index_0_lang-bkmucBUL.js +0 -187
- package/dist/core.umd.js +0 -173
- package/dist/index-OswH7SsT.js +0 -9937
- package/dist/log-out--RRncZhN.js +0 -120
- package/dist/login-BhCMeCLS.js +0 -251
- package/dist/pda-app-nn3llDUx.js +0 -2209
- package/dist/redirect-CmMplDV4.js +0 -15
- package/dist/sys-config-DGutV-VX.js +0 -277
- package/dist/utogether-wFDCI28t.js +0 -182
- package/src/assets/images/empty.png +0 -0
- package/src/assets/images/logo.png +0 -0
- package/src/components/ReCountTo/README.md +0 -2
- package/src/components/ReCountTo/index.ts +0 -18
- package/src/components/ReCountTo/src/normal/index.tsx +0 -165
- package/src/components/ReCountTo/src/normal/props.ts +0 -37
- package/src/components/ReCountTo/src/rebound/index.tsx +0 -67
- package/src/components/ReCountTo/src/rebound/props.ts +0 -14
- package/src/components/ReCountTo/src/rebound/rebound.css +0 -77
- package/src/components/ReCropper/index.ts +0 -14
- package/src/components/ReCropper/src/index.tsx +0 -141
- package/src/components/ReFlicker/index.css +0 -39
- package/src/components/ReFlicker/index.ts +0 -50
- package/src/components/ReFlop/index.ts +0 -14
- package/src/components/ReFlop/src/Filpper.tsx +0 -99
- package/src/components/ReFlop/src/filpper.css +0 -184
- package/src/components/ReFlop/src/index.vue +0 -126
- package/src/components/ReFlowChart/index.ts +0 -24
- package/src/components/ReFlowChart/src/Control.vue +0 -139
- package/src/components/ReFlowChart/src/DataDialog.vue +0 -12
- package/src/components/ReFlowChart/src/NodePanel.vue +0 -151
- package/src/components/ReFlowChart/src/adpterForTurbo.ts +0 -160
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +0 -49
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +0 -61
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +0 -58
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +0 -47
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
- package/src/components/ReFlowChart/src/config.ts +0 -62
- package/src/components/ReSplitPane/index.css +0 -49
- package/src/components/ReSplitPane/index.tsx +0 -119
- package/src/components/ReSplitPane/resizer.css +0 -45
- package/src/components/ReSplitPane/resizer.tsx +0 -30
- package/src/components/SuCommon/card/components/Card.vue +0 -148
- package/src/components/SuCommon/card/components/DialogForm.vue +0 -127
- package/src/components/SuCommon/card/index.vue +0 -142
- package/src/components/SuCommon/icon-select/index.vue +0 -241
- package/src/components/SuCommon/table/index.vue +0 -208
- package/src/components/SuCommon/utils/index.ts +0 -103
- package/src/components/SuCommon/utils/slot.tsx +0 -50
- package/src/components/udp/form-upload.vue +0 -132
- package/src/components/udp/modal-form.vue +0 -180
- package/src/utils/udp/useRender.ts +0 -420
- package/src/views/components/contextmenu/basic.vue +0 -74
- package/src/views/components/contextmenu/context-menu.vue +0 -40
- package/src/views/components/contextmenu/menuDynamic.vue +0 -99
- package/src/views/components/contextmenu/menuGroup.vue +0 -71
- package/src/views/components/count-to/index.vue +0 -43
- package/src/views/components/cropping/index.vue +0 -59
- package/src/views/components/cropping/picture.jpeg +0 -0
- package/src/views/components/split-pane/index.vue +0 -82
- package/src/views/components/video/index.vue +0 -57
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineComponent as a, unref as p, createElementBlock as s, openBlock as u } from "vue";
|
|
2
|
+
import { useRouter as _ } from "vue-router";
|
|
3
|
+
const m = { name: "Redirect" }, y = /* @__PURE__ */ a({
|
|
4
|
+
...m,
|
|
5
|
+
setup(i) {
|
|
6
|
+
const { currentRoute: t, replace: r } = _(), { params: o, query: n } = p(t), { path: e } = o, c = Array.isArray(e) ? e.join("/") : e;
|
|
7
|
+
return r({
|
|
8
|
+
path: "/" + c,
|
|
9
|
+
query: n
|
|
10
|
+
}), (f, l) => (u(), s("div"));
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
y as default
|
|
15
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as w, ref as o, resolveComponent as
|
|
2
|
-
import { successMessage as
|
|
1
|
+
import { defineComponent as w, ref as o, resolveComponent as r, createElementBlock as k, openBlock as i, createVNode as l, createBlock as b, createCommentVNode as x, Fragment as U } from "vue";
|
|
2
|
+
import { successMessage as B } from "@utogether/utils";
|
|
3
3
|
import { useClipboard as N } from "@vueuse/core";
|
|
4
|
-
import {
|
|
4
|
+
import { G as y } from "./index-C3q8HoJM.js";
|
|
5
5
|
const q = {
|
|
6
6
|
name: "StaticResource"
|
|
7
7
|
}, V = /* @__PURE__ */ w({
|
|
@@ -15,15 +15,15 @@ const q = {
|
|
|
15
15
|
align: "center"
|
|
16
16
|
}, {
|
|
17
17
|
field: "templateCode",
|
|
18
|
-
title: "message.
|
|
18
|
+
title: "message.urpt.resourceCode",
|
|
19
19
|
width: 140
|
|
20
20
|
}, {
|
|
21
21
|
field: "templateName",
|
|
22
|
-
title: "message.
|
|
22
|
+
title: "message.urpt.resourceName",
|
|
23
23
|
width: 150
|
|
24
24
|
}, {
|
|
25
25
|
field: "templateUrl",
|
|
26
|
-
title: "message.
|
|
26
|
+
title: "message.urpt.resourceUrl",
|
|
27
27
|
miWidth: 200
|
|
28
28
|
}, {
|
|
29
29
|
field: "operate",
|
|
@@ -32,20 +32,20 @@ const q = {
|
|
|
32
32
|
slots: {
|
|
33
33
|
default: ({
|
|
34
34
|
row: e
|
|
35
|
-
}) => [
|
|
35
|
+
}) => [l(U, null, [l(r("ut-button"), {
|
|
36
36
|
content: "download",
|
|
37
37
|
icon: "ri-download-line",
|
|
38
38
|
status: "success",
|
|
39
39
|
onTap: () => g(e)
|
|
40
40
|
}, null)])]
|
|
41
41
|
}
|
|
42
|
-
}],
|
|
42
|
+
}], p = {
|
|
43
43
|
toolbarButtonClick({
|
|
44
44
|
code: e
|
|
45
45
|
}) {
|
|
46
46
|
e === "add" && _();
|
|
47
47
|
}
|
|
48
|
-
},
|
|
48
|
+
}, f = [{
|
|
49
49
|
field: "templateCode",
|
|
50
50
|
required: !0
|
|
51
51
|
}, {
|
|
@@ -63,30 +63,30 @@ const q = {
|
|
|
63
63
|
}], t = o(!1), _ = (e) => {
|
|
64
64
|
a.value = {}, t.value = !0;
|
|
65
65
|
}, g = (e) => {
|
|
66
|
-
m(d + "/ufil/" + e.templateUrl),
|
|
66
|
+
m(d + "/ufil/" + e.templateUrl), B("复制成功,快试试右键粘贴吧");
|
|
67
67
|
}, h = () => {
|
|
68
68
|
s.value.refreshData();
|
|
69
69
|
};
|
|
70
|
-
return (e,
|
|
71
|
-
const v =
|
|
72
|
-
return
|
|
70
|
+
return (e, u) => {
|
|
71
|
+
const v = r("ut-grid"), C = r("ut-modal-form");
|
|
72
|
+
return i(), k("div", null, [l(v, {
|
|
73
73
|
ref_key: "xgrid",
|
|
74
74
|
ref: s,
|
|
75
75
|
columns: c,
|
|
76
76
|
url: n,
|
|
77
77
|
editable: !1,
|
|
78
78
|
mode: "form",
|
|
79
|
-
events:
|
|
80
|
-
}, null, 512), t.value ? (
|
|
79
|
+
events: p
|
|
80
|
+
}, null, 512), t.value ? (i(), b(C, {
|
|
81
81
|
key: 0,
|
|
82
82
|
record: a.value,
|
|
83
|
-
items:
|
|
83
|
+
items: f,
|
|
84
84
|
width: 300,
|
|
85
85
|
height: 340,
|
|
86
86
|
"data-status": "add",
|
|
87
87
|
title: "静态资源新增",
|
|
88
88
|
url: n,
|
|
89
|
-
onClose:
|
|
89
|
+
onClose: u[0] || (u[0] = (R) => t.value = !1),
|
|
90
90
|
onConfirm: h
|
|
91
91
|
}, null, 8, ["record"])) : x("", !0)]);
|
|
92
92
|
};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { defineComponent as J, ref as y, onMounted as K, resolveComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { dbstorage as
|
|
5
|
-
import {
|
|
6
|
-
import pe from "
|
|
7
|
-
|
|
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({
|
|
8
12
|
__name: "menu-favorite",
|
|
9
13
|
props: {
|
|
10
14
|
dataSource: { default: () => [] },
|
|
@@ -12,14 +16,14 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
12
16
|
userName: { default: "" }
|
|
13
17
|
},
|
|
14
18
|
emits: ["close", "success"],
|
|
15
|
-
setup(
|
|
16
|
-
const j =
|
|
17
|
-
$.value = await
|
|
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();
|
|
18
22
|
}, R = (o, s) => {
|
|
19
23
|
var n;
|
|
20
|
-
|
|
21
|
-
const t = (n =
|
|
22
|
-
|
|
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);
|
|
23
27
|
}, V = (o) => {
|
|
24
28
|
const s = [], t = [];
|
|
25
29
|
return o.children.forEach((n) => {
|
|
@@ -27,37 +31,35 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
27
31
|
}), { folder: s, menus: t };
|
|
28
32
|
}, A = () => {
|
|
29
33
|
j.dataSource.forEach((o) => {
|
|
30
|
-
|
|
34
|
+
r.value[o.parentId] ? r.value[o.parentId].push(o.menuId) : r.value[o.parentId] = [o.menuId];
|
|
31
35
|
});
|
|
32
36
|
}, D = (o, s) => {
|
|
33
|
-
debugger;
|
|
34
37
|
if (s.checked) {
|
|
35
|
-
if (
|
|
38
|
+
if (d.value.length === 16)
|
|
36
39
|
return X(() => {
|
|
37
|
-
|
|
38
|
-
}),
|
|
40
|
+
r.value[o.id].splice(r.value[o.id].length - 1, 1);
|
|
41
|
+
}), ie("最多只能选择16个常用功能");
|
|
39
42
|
const t = o.children.find((n) => n.id === s.label);
|
|
40
|
-
t && (t.seqNo = H() + 10, t.menuId = t.id,
|
|
43
|
+
t && (t.seqNo = H() + 10, t.menuId = t.id, d.value.push(t));
|
|
41
44
|
} else {
|
|
42
|
-
let t =
|
|
43
|
-
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);
|
|
44
47
|
}
|
|
45
48
|
}, F = () => {
|
|
46
|
-
|
|
49
|
+
d.value.forEach((o, s) => {
|
|
47
50
|
o.seqNo = (s + 1) * 10;
|
|
48
51
|
});
|
|
49
52
|
}, H = () => {
|
|
50
53
|
var o;
|
|
51
|
-
return ((o =
|
|
54
|
+
return ((o = _e(d.value, (s) => s.seqNo)) == null ? void 0 : o.seqNo) || 0;
|
|
52
55
|
}, T = () => {
|
|
53
|
-
|
|
54
|
-
const o = r.value.map((s) => ({
|
|
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
|
-
|
|
60
|
-
|
|
61
|
+
I.value = !0, W().post(Ee, o).then(() => {
|
|
62
|
+
ce(), E(), z("success");
|
|
61
63
|
}).finally(() => {
|
|
62
64
|
I.value = !1;
|
|
63
65
|
});
|
|
@@ -65,9 +67,9 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
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
|
-
|
|
70
|
+
d.value = pe(j.dataSource, !0), b.value = !0, L();
|
|
69
71
|
}), (o, s) => {
|
|
70
|
-
const t =
|
|
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),
|
|
@@ -79,36 +81,36 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
79
81
|
"show-footer": "",
|
|
80
82
|
onClose: E
|
|
81
83
|
}, {
|
|
82
|
-
default:
|
|
84
|
+
default: i(() => [
|
|
83
85
|
e("div", ge, [
|
|
84
|
-
|
|
86
|
+
c(_, {
|
|
85
87
|
heigth: "100",
|
|
86
88
|
class: "w-full border-b border-slate-300"
|
|
87
89
|
}, {
|
|
88
|
-
default:
|
|
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
|
-
|
|
97
|
-
list:
|
|
98
|
+
c(B(ve), {
|
|
99
|
+
list: d.value,
|
|
98
100
|
handle: ".drag-item",
|
|
99
101
|
animation: "300",
|
|
100
102
|
"item-key": "id",
|
|
101
103
|
class: "flex",
|
|
102
104
|
onEnd: F
|
|
103
105
|
}, {
|
|
104
|
-
item:
|
|
106
|
+
item: i(({ element: m, index: l }) => [
|
|
105
107
|
e("div", xe, [
|
|
106
108
|
e("div", ye, [
|
|
107
109
|
e("div", {
|
|
108
110
|
class: "rounded-full w-10 h-10 flex items-center justify-center",
|
|
109
111
|
style: Q({ backgroundColor: q(l) })
|
|
110
112
|
}, [
|
|
111
|
-
|
|
113
|
+
c(n, {
|
|
112
114
|
icon: m.icon || `ri:${o.icons[l]}-line`,
|
|
113
115
|
class: "text-2xl text-white"
|
|
114
116
|
}, null, 8, ["icon"])
|
|
@@ -116,7 +118,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
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
|
-
|
|
131
|
-
default:
|
|
132
|
+
c(_, { class: "u-favorite-menu--contain" }, {
|
|
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
|
}, [
|
|
@@ -139,13 +141,13 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
139
141
|
e("div", Ne, f(m.menuName), 1)
|
|
140
142
|
]),
|
|
141
143
|
e("div", $e, [
|
|
142
|
-
|
|
143
|
-
modelValue:
|
|
144
|
-
"onUpdate:modelValue": (l) =>
|
|
144
|
+
c(S, {
|
|
145
|
+
modelValue: r.value[m.id],
|
|
146
|
+
"onUpdate:modelValue": (l) => r.value[m.id] = l,
|
|
145
147
|
onChange: (l) => D(m, l)
|
|
146
148
|
}, {
|
|
147
|
-
default:
|
|
148
|
-
(a(!0),
|
|
149
|
+
default: i(() => [
|
|
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
|
}, [
|
|
@@ -163,37 +165,37 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
163
165
|
e("div", Ve, f(l.menuName), 1)
|
|
164
166
|
]),
|
|
165
167
|
e("div", Me, [
|
|
166
|
-
|
|
167
|
-
modelValue:
|
|
168
|
-
"onUpdate:modelValue": (
|
|
169
|
-
onChange: (
|
|
168
|
+
c(S, {
|
|
169
|
+
modelValue: r.value[l.id],
|
|
170
|
+
"onUpdate:modelValue": (u) => r.value[l.id] = u,
|
|
171
|
+
onChange: (u) => D(l, u)
|
|
170
172
|
}, {
|
|
171
|
-
default:
|
|
172
|
-
(a(!0),
|
|
173
|
-
key:
|
|
174
|
-
label:
|
|
175
|
-
content:
|
|
173
|
+
default: i(() => [
|
|
174
|
+
(a(!0), v(k, null, C(V(l).menus, (u) => (a(), N(M, {
|
|
175
|
+
key: u.id,
|
|
176
|
+
label: u.id,
|
|
177
|
+
content: u.menuName
|
|
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
|
-
|
|
191
|
-
modelValue:
|
|
192
|
-
"onUpdate:modelValue": (x) =>
|
|
192
|
+
c(S, {
|
|
193
|
+
modelValue: r.value[u.id],
|
|
194
|
+
"onUpdate:modelValue": (x) => r.value[u.id] = x,
|
|
193
195
|
onChange: (x) => D(l, x)
|
|
194
196
|
}, {
|
|
195
|
-
default:
|
|
196
|
-
(a(!0),
|
|
197
|
+
default: i(() => [
|
|
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
|
|
@@ -211,14 +213,14 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
211
213
|
})
|
|
212
214
|
])
|
|
213
215
|
]),
|
|
214
|
-
footer:
|
|
216
|
+
footer: i(() => [
|
|
215
217
|
e("div", De, [
|
|
216
|
-
|
|
218
|
+
c(w, {
|
|
217
219
|
content: "cancel",
|
|
218
220
|
status: "warning",
|
|
219
221
|
onTap: E
|
|
220
222
|
}),
|
|
221
|
-
|
|
223
|
+
c(w, {
|
|
222
224
|
content: "confirm",
|
|
223
225
|
onTap: T
|
|
224
226
|
})
|
|
@@ -228,35 +230,31 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
228
230
|
}, 8, ["modelValue", "loading"]);
|
|
229
231
|
};
|
|
230
232
|
}
|
|
231
|
-
}), 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" },
|
|
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
240
|
}), L = () => {
|
|
239
241
|
var t, n;
|
|
240
|
-
return h.isAdminRole ? "系统管理员" : (n = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : n.map((
|
|
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
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 =
|
|
249
|
-
|
|
250
|
-
s.getMonth() + 1,
|
|
251
|
-
s.getDate()
|
|
252
|
-
), { gzYear: n, IMonthCn: v, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
|
|
253
|
-
return `${S}月${w}日 ${n}${v}${M} ${U}`;
|
|
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}`;
|
|
254
252
|
}, D = () => {
|
|
255
|
-
const s = "/
|
|
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
|
});
|
|
@@ -264,9 +262,9 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
264
262
|
j.push(s.menuPath);
|
|
265
263
|
}, H = () => {
|
|
266
264
|
var n;
|
|
267
|
-
const s = "/
|
|
268
|
-
|
|
269
|
-
$.value = (
|
|
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;
|
|
@@ -328,17 +326,17 @@ 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 n =
|
|
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
|
-
|
|
334
|
+
c(n, {
|
|
337
335
|
size: "large",
|
|
338
336
|
class: "text-4xl font-bold bg-[var(--el-color-primary)]"
|
|
339
337
|
}, {
|
|
340
|
-
default:
|
|
341
|
-
Y(f(
|
|
338
|
+
default: i(() => [
|
|
339
|
+
Y(f(r.value), 1)
|
|
342
340
|
]),
|
|
343
341
|
_: 1
|
|
344
342
|
})
|
|
@@ -361,29 +359,29 @@ 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
|
-
|
|
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, {
|
|
375
373
|
class: "m-2",
|
|
376
374
|
gutter: 10
|
|
377
375
|
}, {
|
|
378
|
-
default:
|
|
376
|
+
default: i(() => [
|
|
379
377
|
te((a(), N(U, {
|
|
380
378
|
lg: 24,
|
|
381
379
|
md: 24,
|
|
382
380
|
class: ""
|
|
383
381
|
}, {
|
|
384
|
-
default:
|
|
385
|
-
|
|
386
|
-
header:
|
|
382
|
+
default: i(() => [
|
|
383
|
+
c(w, { class: "mb-2" }, {
|
|
384
|
+
header: i(() => [
|
|
387
385
|
e("div", { class: "flex items-center justify-between dark:bg-black" }, [
|
|
388
386
|
t[5] || (t[5] = e("span", { class: "font-bold" }, "常用菜单", -1)),
|
|
389
387
|
e("span", {
|
|
@@ -395,18 +393,18 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
395
393
|
]))
|
|
396
394
|
])
|
|
397
395
|
]),
|
|
398
|
-
default:
|
|
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: E(
|
|
415
|
+
style: Q({ backgroundColor: E(P) })
|
|
418
416
|
}, [
|
|
419
|
-
|
|
420
|
-
icon: g.icon || `ri:${q[
|
|
417
|
+
c(S, {
|
|
418
|
+
icon: g.icon || `ri:${q[P]}-line`,
|
|
421
419
|
class: "text-2xl text-white"
|
|
422
420
|
}, null, 8, ["icon"])
|
|
423
421
|
], 4),
|
|
@@ -433,32 +431,32 @@ 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,
|
|
440
438
|
lg: 12,
|
|
441
439
|
md: 24
|
|
442
440
|
}, {
|
|
443
|
-
default:
|
|
444
|
-
|
|
445
|
-
header:
|
|
441
|
+
default: i(() => [
|
|
442
|
+
c(w, { class: "mb-2" }, {
|
|
443
|
+
header: i(() => t[7] || (t[7] = [
|
|
446
444
|
e("div", { class: "font-bold" }, [
|
|
447
445
|
e("span", null, "个人动态")
|
|
448
446
|
], -1)
|
|
449
447
|
])),
|
|
450
|
-
default:
|
|
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
|
-
|
|
460
|
-
default:
|
|
461
|
-
Y(f(
|
|
457
|
+
c(n, { class: "text-base" }, {
|
|
458
|
+
default: i(() => [
|
|
459
|
+
Y(f(r.value), 1)
|
|
462
460
|
]),
|
|
463
461
|
_: 1
|
|
464
462
|
})
|
|
@@ -480,22 +478,22 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
480
478
|
]),
|
|
481
479
|
_: 1
|
|
482
480
|
}),
|
|
483
|
-
|
|
481
|
+
c(U, {
|
|
484
482
|
xl: 8,
|
|
485
483
|
lg: 12,
|
|
486
484
|
md: 24,
|
|
487
485
|
class: ""
|
|
488
486
|
}, {
|
|
489
|
-
default:
|
|
490
|
-
|
|
491
|
-
header:
|
|
487
|
+
default: i(() => [
|
|
488
|
+
c(w, { class: "mb-2" }, {
|
|
489
|
+
header: i(() => t[8] || (t[8] = [
|
|
492
490
|
e("div", { class: "font-bold" }, [
|
|
493
491
|
e("span", null, "日历")
|
|
494
492
|
], -1)
|
|
495
493
|
])),
|
|
496
|
-
default:
|
|
494
|
+
default: i(() => [
|
|
497
495
|
e("div", nt, [
|
|
498
|
-
|
|
496
|
+
c(m, {
|
|
499
497
|
holidays: z,
|
|
500
498
|
"statutory-holiday": o
|
|
501
499
|
})
|
|
@@ -511,7 +509,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
511
509
|
}),
|
|
512
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
514
|
icons: q,
|
|
517
515
|
onClose: t[0] || (t[0] = (g) => b.value = !1),
|
|
@@ -520,7 +518,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
|
|
|
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
|
};
|