|
@@ -3,7 +3,6 @@ import UserPassword from '@/components/UserPassword.vue';
|
|
|
import UserPreview from '@/components/UserPreview.vue';
|
|
import UserPreview from '@/components/UserPreview.vue';
|
|
|
import type { UserModel } from '@/model/system.model';
|
|
import type { UserModel } from '@/model/system.model';
|
|
|
import { accountMethod } from '@/request/api/account.api';
|
|
import { accountMethod } from '@/request/api/account.api';
|
|
|
-import { userMethod } from '@/request/api/system.api';
|
|
|
|
|
import { useAccountStore } from '@/stores';
|
|
import { useAccountStore } from '@/stores';
|
|
|
import { LogoutOutlined } from '@ant-design/icons-vue';
|
|
import { LogoutOutlined } from '@ant-design/icons-vue';
|
|
|
import { useElementSize } from '@vueuse/core';
|
|
import { useElementSize } from '@vueuse/core';
|
|
@@ -40,13 +39,14 @@ const current = ref<string[]>([]);
|
|
|
|
|
|
|
|
|
|
|
|
|
const { loading: userLoading, send: loadUser } = useRequest(
|
|
const { loading: userLoading, send: loadUser } = useRequest(
|
|
|
- () => accountMethod(token.value),
|
|
|
|
|
|
|
+ () => accountMethod(token.value!),
|
|
|
{ immediate: false },
|
|
{ immediate: false },
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
async function openUserPreview() {
|
|
async function openUserPreview() {
|
|
|
if ( userLoading.value ) return;
|
|
if ( userLoading.value ) return;
|
|
|
const { user: model } = await loadUser();
|
|
const { user: model } = await loadUser();
|
|
|
|
|
+ if ( !model ) return;
|
|
|
VxeUI.drawer.open({
|
|
VxeUI.drawer.open({
|
|
|
title: `用户信息`,
|
|
title: `用户信息`,
|
|
|
maskClosable: true,
|
|
maskClosable: true,
|
|
@@ -117,7 +117,7 @@ function updateUserPassword(model: UserModel, index?: number) {
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
.page-container {
|
|
.page-container {
|
|
|
> header {
|
|
> header {
|
|
|
- background-color: var(--color-primary);
|
|
|
|
|
|
|
+ background-image: linear-gradient(to right, #154665, #1a82ca);
|
|
|
padding-right: 12px;
|
|
padding-right: 12px;
|
|
|
color: #fff;
|
|
color: #fff;
|
|
|
|
|
|
|
@@ -149,7 +149,7 @@ function updateUserPassword(model: UserModel, index?: number) {
|
|
|
line-height: normal;
|
|
line-height: normal;
|
|
|
|
|
|
|
|
.ant-menu-item,
|
|
.ant-menu-item,
|
|
|
- .ant-menu-submenu .ant-menu-submenu-title, {
|
|
|
|
|
|
|
+ .ant-menu-submenu .ant-menu-submenu-title {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
@@ -167,11 +167,17 @@ function updateUserPassword(model: UserModel, index?: number) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
> .ant-menu-item-selected,
|
|
> .ant-menu-item-selected,
|
|
|
- > .ant-menu-submenu-selected, {
|
|
|
|
|
- background-color: #3a5788;
|
|
|
|
|
|
|
+ > .ant-menu-submenu-selected {
|
|
|
|
|
+ background-color: #1a82ca;
|
|
|
color: #fff;
|
|
color: #fff;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .ant-menu-item:hover:not(.ant-menu-item-selected):not(.ant-menu-submenu-selected),
|
|
|
|
|
+ .ant-menu-submenu-title:hover:not(.ant-menu-item-selected):not(.ant-menu-submenu-selected) {
|
|
|
|
|
+ color: rgba(255, 255, 255, 0.75);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.ant-menu-item-selected::after {
|
|
.ant-menu-item-selected::after {
|
|
|
display: none;
|
|
display: none;
|
|
|
}
|
|
}
|