@utogether/udp-core 1.0.1-beta.10 → 1.0.1-beta.11
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-Ctxjn4q8.js → 403-Dsgsr2M-.js} +1 -1
- package/dist/{404-W5yzyiZ9.js → 404-DmPHEfqM.js} +1 -1
- package/dist/{500-DXuGEOm4.js → 500-OYEgHR2a.js} +1 -1
- package/dist/{AuthorityInfo-C2tflCt8.js → AuthorityInfo-B1H1txG-.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-SVgy3HX7.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BUlmQtjQ.js} +1 -1
- package/dist/{Company-PLez5GoH.js → Company-C8ojgx93.js} +3 -3
- package/dist/{CompanyPanel-CIGaQooL.js → CompanyPanel-Dageer1t.js} +1 -1
- package/dist/{Department-B9wLsXFm.js → Department-Dr94_85I.js} +3 -3
- package/dist/{DepartmentPanel-DSM4lTaz.js → DepartmentPanel-Bc5r1HpT.js} +1 -1
- package/dist/{DesignPanel-B6a9wW_A.js → DesignPanel-CcWt1Myp.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DtHfoDQk.js → DesignPanel.vue_vue_type_style_index_0_lang-CKA6nx1l.js} +2 -2
- package/dist/{DictView-DhFbQxdJ.js → DictView-BHj6wexC.js} +1 -1
- package/dist/InvOrganization-DP3Le9g-.js +72 -0
- package/dist/{Org-DxBkYabD.js → Org-BRGHTwsw.js} +1 -1
- package/dist/{Preview-BFtRpBxw.js → Preview-CqMaUD_3.js} +1 -1
- package/dist/{ReportDefine-BIa2QryC.js → ReportDefine-PEQdTCOY.js} +1 -1
- package/dist/{ReportDesign-CnyjI-WD.js → ReportDesign-CB4bv8ba.js} +2 -2
- package/dist/{ReportQuery-BiK7yEhV.js → ReportQuery-B7t4lMK0.js} +1 -1
- package/dist/{ReportQueryFrom-C2rqdFTm.js → ReportQueryFrom-VBxUIMRJ.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Ba9HLnXQ.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-HeLA4Qs5.js} +1 -1
- package/dist/{ReportTemplate-DdkLscP3.js → ReportTemplate-DNkv7F5p.js} +1 -1
- package/dist/{Role-BrsxgK8D.js → Role-BGfTpZK4.js} +3 -3
- package/dist/{RoleAssign-DiqwJqDa.js → RoleAssign-DrKFWZzA.js} +3 -3
- package/dist/{RolePanel-Dqx5dI3f.js → RolePanel-3lvRh7aS.js} +1 -1
- package/dist/{RolePanel-BDusGyo7.js → RolePanel-BRI5QYe4.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-2Z1q_5uW.js → RolePanel.vue_vue_type_script_setup_true_lang-BXKZb7yt.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-B5lUnaMI.js → RolePanel.vue_vue_type_script_setup_true_lang-Cci_Ysty.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-vSP23fEq.js → ScrollPanel.vue_vue_type_style_index_0_lang-BmId6zzA.js} +1 -1
- package/dist/{Staff-Cwi9LQiZ.js → Staff-Dr0dq3fW.js} +3 -3
- package/dist/{StaffInfo-XjVtyaMv.js → StaffInfo-_N9g2hPa.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-wSrAuyet.js → StaffInfo.vue_vue_type_script_setup_true_lang-DiTJY2ug.js} +1 -1
- package/dist/{StaffPanel-C-wYcFdv.js → StaffPanel-mxJQiW3G.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DZNArmnC.js → StaffPanel.vue_vue_type_script_setup_true_lang-GRGn-5t6.js} +2 -2
- package/dist/{SysUser-O4tvr-Ur.js → SysUser-DgA19hZE.js} +2 -2
- package/dist/{SysUserPanel-B853docZ.js → SysUserPanel-Bc85z5_K.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-DhiYYC97.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BHDrP1Pk.js} +1 -1
- package/dist/{SystemMenu-CXR6mrXr.js → SystemMenu-Be-gFIie.js} +2 -2
- package/dist/{UserInfo-BkP8pE2a.js → UserInfo-BCYuwFmr.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D4r_umjV.js → UserInfo.vue_vue_type_style_index_0_lang-B1lgokO6.js} +1 -1
- package/dist/{childView-D0HwbgDT.js → childView-DhcBr1UA.js} +1 -1
- package/dist/{childView-TRqUkSDC.js → childView-Dk4zZoXd.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-BzISq0Jf.js → childView.vue_vue_type_style_index_0_lang-CVnLnl03.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-DQRgNsJY.js → childView.vue_vue_type_style_index_0_lang-D4GYVhOc.js} +1 -1
- package/dist/{code-rule-BV7PQWhK.js → code-rule-BSwPwuAL.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-9ZS9bi7K.js → cron-task-T1ztyra7.js} +1 -1
- package/dist/{frameView-DE83AN50.js → frameView-BDgngiBq.js} +1 -1
- package/dist/index-BSj2AtVL.js +4468 -0
- package/dist/{layoutView-D1U-c4By.js → layoutView-i7dLLBzJ.js} +1187 -1183
- package/dist/{login-sPCEiTGT.js → login-K5Ludp8x.js} +4 -5
- package/dist/{lov-view-76NcYTYl.js → lov-view-lAexiucu.js} +2 -2
- package/dist/{menuInfo-CxjfjFpm.js → menuInfo-BaN5YZPp.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-C2qahH3r.js → menuInfo.vue_vue_type_style_index_0_lang-yI4QOYxG.js} +1 -1
- package/dist/{pda-app-BUH16bLj.js → pda-app-DEtDXFvM.js} +1 -1
- package/dist/{resource-CCuHzoA6.js → resource-Bztmz7pn.js} +1 -1
- package/dist/{su-welcome-mRArONsd.js → su-welcome-Bx8nBPi9.js} +1 -1
- package/dist/sys-config-nvrtYGgi.js +290 -0
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-Dm_VBQHR.js → utogether-yPnwDAIH.js} +1 -1
- package/package.json +18 -18
- package/src/api/index.ts +31 -31
- package/src/components/udp/form.vue +2 -2
- package/src/components/udp/modal-form.vue +2 -1
- package/src/components/udp/modal-grid.vue +11 -1
- package/src/layout/components/lay-navbar/index.vue +239 -237
- package/src/layout/components/lay-search/index.vue +1 -1
- package/src/layout/components/lay-select-org/index.vue +64 -69
- package/src/layout/components/lay-sidebar/horizontal.vue +190 -191
- package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +92 -98
- package/src/layout/hooks/useNav.ts +173 -173
- package/src/main.ts +119 -119
- package/src/plugins/i18n/zh.ts +1 -0
- package/src/router/index.ts +3 -13
- package/src/store/modules/permission.ts +1 -4
- package/src/utils/udp/http/index.ts +283 -281
- package/src/views/login/login-view.vue +300 -314
- package/src/views/organization/inv-org/InvOrganization.vue +68 -53
- package/src/views/system/sys/sys-config.vue +287 -291
- package/src/views/ulogin/login.vue +1 -2
- package/dist/InvOrganization-D90AbR3b.js +0 -66
- package/dist/index-DVARtten.js +0 -2623
- package/dist/sys-config-Cvt05yF6.js +0 -277
|
@@ -16,7 +16,7 @@ function handleSearch() {
|
|
|
16
16
|
|
|
17
17
|
<template>
|
|
18
18
|
<div
|
|
19
|
-
class="search-container w-[40px] h-[48px] flex justify-center items-center cursor-pointer navbar-bg-hover"
|
|
19
|
+
class="search-container w-[40px] h-[48px] px-2 flex justify-center items-center cursor-pointer navbar-bg-hover"
|
|
20
20
|
@click="handleSearch"
|
|
21
21
|
>
|
|
22
22
|
<IconifyIconOffline icon="ri:search-line" />
|
|
@@ -1,69 +1,64 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: wei.li
|
|
3
|
-
* @Date: 2021-11-27 16:16:11
|
|
4
|
-
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-04-16 14:27:14
|
|
6
|
-
* @Description: file content
|
|
7
|
-
-->
|
|
8
|
-
|
|
9
|
-
<!-- 业务单元选择 -->
|
|
10
|
-
<template>
|
|
11
|
-
<div style="width: 240px">
|
|
12
|
-
<el-select v-model="orgId" size="small" @change="onChange">
|
|
13
|
-
<el-option
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
path: '/redirect' + fullPath,
|
|
66
|
-
query: query
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
</script>
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2021-11-27 16:16:11
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-04-16 14:27:14
|
|
6
|
+
* @Description: file content
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
<!-- 业务单元选择 -->
|
|
10
|
+
<template>
|
|
11
|
+
<div style="width: 240px">
|
|
12
|
+
<el-select v-model="orgId" size="small" @change="onChange">
|
|
13
|
+
<el-option v-for="element in orgList" :key="element.id" :label="element.orgName" :value="element.id" />
|
|
14
|
+
</el-select>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script lang="ts">
|
|
19
|
+
export default { name: 'OrgSelect' };
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<script setup lang="ts">
|
|
23
|
+
import { unref, computed } from 'vue';
|
|
24
|
+
import to from 'await-to-js';
|
|
25
|
+
import { getServiceApi } from '../../../api';
|
|
26
|
+
import { useRoute, useRouter } from 'vue-router';
|
|
27
|
+
import { cookies } from '@utogether/utils';
|
|
28
|
+
import { useSystemStoreHook } from '../../../store/modules/system';
|
|
29
|
+
import { usePermissionStoreHook } from '../../../store/modules/permission';
|
|
30
|
+
|
|
31
|
+
const route = useRoute();
|
|
32
|
+
const router = useRouter();
|
|
33
|
+
const orgList = computed(() => useSystemStoreHook().getOrglist);
|
|
34
|
+
const orgId = computed(() => useSystemStoreHook().getOrgId);
|
|
35
|
+
|
|
36
|
+
const onChange = async orgId => {
|
|
37
|
+
const [err] = await to(getServiceApi().post('/uums/org/toggle', { orgId }));
|
|
38
|
+
if (!err) {
|
|
39
|
+
useSystemStoreHook().setOrgId(orgId);
|
|
40
|
+
let organizationId;
|
|
41
|
+
const query = { pageSize: 100, pageNum: 1 };
|
|
42
|
+
const [err, data]: [Error, any] = await to(getServiceApi().get('/uums/cusOrganization', query));
|
|
43
|
+
if (!err && data.list?.length) {
|
|
44
|
+
useSystemStoreHook().setInvOrgList(data.list || []);
|
|
45
|
+
const invOrg = data.list.find(f => f.orgId === orgId);
|
|
46
|
+
organizationId = invOrg.id;
|
|
47
|
+
useSystemStoreHook().setOrganizationId(organizationId);
|
|
48
|
+
}
|
|
49
|
+
const param = { orgId, organizationId };
|
|
50
|
+
cookies.set('kCookies_param', JSON.stringify(param));
|
|
51
|
+
usePermissionStoreHook().cacheOperate({ mode: 'reset' });
|
|
52
|
+
onFresh();
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** 刷新路由 */
|
|
57
|
+
function onFresh() {
|
|
58
|
+
const { fullPath, query } = unref(route);
|
|
59
|
+
router.replace({
|
|
60
|
+
path: '/redirect' + fullPath,
|
|
61
|
+
query: query
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
</script>
|
|
@@ -1,191 +1,190 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref, nextTick } from 'vue';
|
|
3
|
-
import { storageLocal } from '@utogether/utils';
|
|
4
|
-
import { useNav } from '../../hooks/useNav';
|
|
5
|
-
import OrgSelect from '../lay-select-org/index.vue';
|
|
6
|
-
import Search from '../lay-search/index.vue';
|
|
7
|
-
// import Notice from '../lay-notice/index.vue';
|
|
8
|
-
import SidebarItem from './sidebarItem.vue';
|
|
9
|
-
import avatars from '../../../assets/images/avatars.jpg';
|
|
10
|
-
import { kSYSCONFIG } from '../../../contant';
|
|
11
|
-
import { useTranslationLang } from '../../hooks/useTranslationLang';
|
|
12
|
-
import globalization from '../../../assets/svg/globalization.svg?component';
|
|
13
|
-
|
|
14
|
-
import utogether from '../../../assets/images/utogether.png';
|
|
15
|
-
import { usePermissionStoreHook } from '../../../store/modules/permission';
|
|
16
|
-
|
|
17
|
-
const menuRef = ref();
|
|
18
|
-
const { route, locale, translationCh, translationEn } = useTranslationLang(menuRef);
|
|
19
|
-
const routeStore = usePermissionStoreHook();
|
|
20
|
-
|
|
21
|
-
const sysConfig = storageLocal.getItem(kSYSCONFIG) || {};
|
|
22
|
-
|
|
23
|
-
const logo = ref(sysConfig['logo'] || utogether);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
scrollbar.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
class="
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
:
|
|
84
|
-
:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
<!--
|
|
96
|
-
<!--
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
:
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
<
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
<el-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
:
|
|
153
|
-
:
|
|
154
|
-
:
|
|
155
|
-
:
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
.
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
</style>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref, nextTick } from 'vue';
|
|
3
|
+
import { storageLocal } from '@utogether/utils';
|
|
4
|
+
import { useNav } from '../../hooks/useNav';
|
|
5
|
+
import OrgSelect from '../lay-select-org/index.vue';
|
|
6
|
+
import Search from '../lay-search/index.vue';
|
|
7
|
+
// import Notice from '../lay-notice/index.vue';
|
|
8
|
+
import SidebarItem from './sidebarItem.vue';
|
|
9
|
+
import avatars from '../../../assets/images/avatars.jpg';
|
|
10
|
+
import { kSYSCONFIG } from '../../../contant';
|
|
11
|
+
import { useTranslationLang } from '../../hooks/useTranslationLang';
|
|
12
|
+
import globalization from '../../../assets/svg/globalization.svg?component';
|
|
13
|
+
|
|
14
|
+
import utogether from '../../../assets/images/utogether.png';
|
|
15
|
+
import { usePermissionStoreHook } from '../../../store/modules/permission';
|
|
16
|
+
|
|
17
|
+
const menuRef = ref();
|
|
18
|
+
const { route, locale, translationCh, translationEn } = useTranslationLang(menuRef);
|
|
19
|
+
const routeStore = usePermissionStoreHook();
|
|
20
|
+
|
|
21
|
+
const sysConfig = storageLocal.getItem(kSYSCONFIG) || {};
|
|
22
|
+
|
|
23
|
+
const logo = ref(sysConfig['logo'] || utogether);
|
|
24
|
+
|
|
25
|
+
const {
|
|
26
|
+
title,
|
|
27
|
+
logout,
|
|
28
|
+
backHome,
|
|
29
|
+
onPanel,
|
|
30
|
+
userInfo,
|
|
31
|
+
avatarsStyle,
|
|
32
|
+
getDropdownItemStyle,
|
|
33
|
+
getDropdownItemClass,
|
|
34
|
+
passwordItems
|
|
35
|
+
} = useNav();
|
|
36
|
+
|
|
37
|
+
const record: IRecord = {};
|
|
38
|
+
|
|
39
|
+
const refScrollbar = ref(null);
|
|
40
|
+
const showModal = ref(false);
|
|
41
|
+
|
|
42
|
+
nextTick(() => {
|
|
43
|
+
menuRef.value?.handleResize();
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @description: 重置密码
|
|
48
|
+
*/
|
|
49
|
+
const handleResetPwd = (): void => {
|
|
50
|
+
record.id = userInfo['id'];
|
|
51
|
+
showModal.value = true;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const handleScroll = e => {
|
|
55
|
+
const wheelDelta = e.wheelDelta || -e.deltaY * 40;
|
|
56
|
+
const scrollbar = refScrollbar.value;
|
|
57
|
+
// scrollbar.wrap$获取到包裹容器的element对象
|
|
58
|
+
scrollbar.setScrollLeft(scrollbar.wrapRef.scrollLeft + wheelDelta);
|
|
59
|
+
};
|
|
60
|
+
</script>
|
|
61
|
+
<script lang="ts">
|
|
62
|
+
export default { name: 'LayoutHorizontal' };
|
|
63
|
+
</script>
|
|
64
|
+
<template>
|
|
65
|
+
<div v-spinning="usePermissionStoreHook().wholeMenus.length === 0" class="horizontal-header">
|
|
66
|
+
<div class="flex flex-1 horizontal-header-left" @click="backHome">
|
|
67
|
+
<img :src="logo" class="h-full" />
|
|
68
|
+
<span class="text-xl u-project-text">{{ title }}</span>
|
|
69
|
+
</div>
|
|
70
|
+
<el-scrollbar ref="refScrollbar" class="flex-[3]" @wheel.prevent="handleScroll">
|
|
71
|
+
<template #default>
|
|
72
|
+
<el-menu
|
|
73
|
+
:default-active="route.path"
|
|
74
|
+
:ellipsis="false"
|
|
75
|
+
unique-opened
|
|
76
|
+
router
|
|
77
|
+
popper-class="udp-scrollbar"
|
|
78
|
+
class="horizontal-header-menu"
|
|
79
|
+
mode="horizontal"
|
|
80
|
+
>
|
|
81
|
+
<sidebar-item
|
|
82
|
+
v-for="route in routeStore.wholeMenus"
|
|
83
|
+
:key="route.path"
|
|
84
|
+
:item="route"
|
|
85
|
+
:base-path="route.path"
|
|
86
|
+
/>
|
|
87
|
+
</el-menu>
|
|
88
|
+
</template>
|
|
89
|
+
</el-scrollbar>
|
|
90
|
+
<div class="horizontal-header-right flex-[2]">
|
|
91
|
+
<!-- 业务单元选择 -->
|
|
92
|
+
<OrgSelect v-if="sysConfig['orgTaggle'] === 'Y'" class="udp-horizontal" />
|
|
93
|
+
<!-- 菜单搜索 -->
|
|
94
|
+
<Search />
|
|
95
|
+
<!-- 通知 -->
|
|
96
|
+
<!-- <Notice id="header-notice" /> -->
|
|
97
|
+
<!-- 国际化 -->
|
|
98
|
+
<el-dropdown id="header-translation" class="px-2" trigger="click">
|
|
99
|
+
<globalization class="navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-hidden" />
|
|
100
|
+
<template #dropdown>
|
|
101
|
+
<el-dropdown-menu class="translation">
|
|
102
|
+
<el-dropdown-item
|
|
103
|
+
:style="getDropdownItemStyle(locale, 'zh')"
|
|
104
|
+
:class="['dark:text-white!', getDropdownItemClass(locale, 'zh')]"
|
|
105
|
+
@click="translationCh"
|
|
106
|
+
>
|
|
107
|
+
<span v-show="locale === 'zh'" class="check-zh">
|
|
108
|
+
<IconifyIconOffline icon="check" />
|
|
109
|
+
</span>
|
|
110
|
+
简体中文
|
|
111
|
+
</el-dropdown-item>
|
|
112
|
+
<el-dropdown-item
|
|
113
|
+
:style="getDropdownItemStyle(locale, 'en')"
|
|
114
|
+
:class="['dark:text-white!', getDropdownItemClass(locale, 'en')]"
|
|
115
|
+
@click="translationEn"
|
|
116
|
+
>
|
|
117
|
+
<span v-show="locale === 'en'" class="check-en">
|
|
118
|
+
<IconifyIconOffline icon="check" />
|
|
119
|
+
</span>
|
|
120
|
+
English
|
|
121
|
+
</el-dropdown-item>
|
|
122
|
+
</el-dropdown-menu>
|
|
123
|
+
</template>
|
|
124
|
+
</el-dropdown>
|
|
125
|
+
<!-- 退出登录 -->
|
|
126
|
+
<el-dropdown trigger="click">
|
|
127
|
+
<span class="el-dropdown-link navbar-bg-hover">
|
|
128
|
+
<img v-if="avatars" :src="avatars" :style="avatarsStyle" />
|
|
129
|
+
<p class="dark:text-white">{{ userInfo.name }}</p>
|
|
130
|
+
</span>
|
|
131
|
+
<template #dropdown>
|
|
132
|
+
<el-dropdown-menu class="user-dropdown">
|
|
133
|
+
<el-dropdown-item @click="handleResetPwd">
|
|
134
|
+
<IconifyIconOffline icon="edit" />
|
|
135
|
+
{{ $t('message.udp.passwordReset') }}</el-dropdown-item
|
|
136
|
+
>
|
|
137
|
+
<el-divider style="margin: 3px 0 !important" />
|
|
138
|
+
<el-dropdown-item @click="logout">
|
|
139
|
+
<IconifyIconOffline icon="switch-button" />
|
|
140
|
+
{{ $t('message.udp.logout') }}
|
|
141
|
+
</el-dropdown-item>
|
|
142
|
+
</el-dropdown-menu>
|
|
143
|
+
</template>
|
|
144
|
+
</el-dropdown>
|
|
145
|
+
<span class="el-icon-setting navbar-bg-hover" @click="onPanel">
|
|
146
|
+
<IconifyIconOffline icon="ri:settings-5-fill" />
|
|
147
|
+
</span>
|
|
148
|
+
</div>
|
|
149
|
+
<ut-modal-form
|
|
150
|
+
v-if="showModal"
|
|
151
|
+
:record="record"
|
|
152
|
+
:items="passwordItems()"
|
|
153
|
+
:width="360"
|
|
154
|
+
:height="240"
|
|
155
|
+
:title="$t('message.udp.passwordReset')"
|
|
156
|
+
data-status="update"
|
|
157
|
+
url="/user/updatePwd"
|
|
158
|
+
method="put"
|
|
159
|
+
@close="showModal = false"
|
|
160
|
+
/>
|
|
161
|
+
</div>
|
|
162
|
+
</template>
|
|
163
|
+
|
|
164
|
+
<style lang="scss" scoped>
|
|
165
|
+
.translation {
|
|
166
|
+
::v-deep(.el-dropdown-menu__item) {
|
|
167
|
+
padding: 5px 40px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.check-zh {
|
|
171
|
+
position: absolute;
|
|
172
|
+
left: 20px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.check-en {
|
|
176
|
+
position: absolute;
|
|
177
|
+
left: 20px;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.logout {
|
|
182
|
+
max-width: 120px;
|
|
183
|
+
|
|
184
|
+
::v-deep(.el-dropdown-menu__item) {
|
|
185
|
+
display: inline-flex;
|
|
186
|
+
flex-wrap: wrap;
|
|
187
|
+
min-width: 100%;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
</style>
|