|
@@ -40,7 +40,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-header>
|
|
</el-header>
|
|
|
<el-container>
|
|
<el-container>
|
|
|
- <el-aside width="120px" class="asides">
|
|
|
|
|
|
|
+ <el-aside width="92px" class="asides">
|
|
|
<div class="aside-con">
|
|
<div class="aside-con">
|
|
|
<router-link
|
|
<router-link
|
|
|
:to="item.path"
|
|
:to="item.path"
|
|
@@ -48,8 +48,7 @@
|
|
|
:key="index"
|
|
:key="index"
|
|
|
@click="clickPath(index)"
|
|
@click="clickPath(index)"
|
|
|
><div
|
|
><div
|
|
|
- :class="
|
|
|
|
|
- clickId == index ? 'acitve-img-style img-style' : 'img-style'
|
|
|
|
|
|
|
+ :class="$route.path==item.path ? 'acitve-img-style img-style' : 'img-style'
|
|
|
"
|
|
"
|
|
|
>
|
|
>
|
|
|
<img :src="clickId == index ? item.beimgs : item.imgs" />
|
|
<img :src="clickId == index ? item.beimgs : item.imgs" />
|
|
@@ -69,20 +68,12 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
|
|
+import { onMounted } from 'vue'
|
|
|
import { ElMessageBox } from 'element-plus'
|
|
import { ElMessageBox } from 'element-plus'
|
|
|
-import Breadcrumb from '@/components/Breadcrumb'
|
|
|
|
|
-import TopNav from '@/components/TopNav'
|
|
|
|
|
-import Hamburger from '@/components/Hamburger'
|
|
|
|
|
-import Screenfull from '@/components/Screenfull'
|
|
|
|
|
-import SizeSelect from '@/components/SizeSelect'
|
|
|
|
|
-import HeaderSearch from '@/components/HeaderSearch'
|
|
|
|
|
-import RuoYiGit from '@/components/RuoYi/Git'
|
|
|
|
|
-import RuoYiDoc from '@/components/RuoYi/Doc'
|
|
|
|
|
import useAppStore from '@/store/modules/app'
|
|
import useAppStore from '@/store/modules/app'
|
|
|
import useUserStore from '@/store/modules/user'
|
|
import useUserStore from '@/store/modules/user'
|
|
|
import useSettingsStore from '@/store/modules/settings'
|
|
import useSettingsStore from '@/store/modules/settings'
|
|
|
|
|
|
|
|
-
|
|
|
|
|
import chat from "@/assets/images/chat.png";
|
|
import chat from "@/assets/images/chat.png";
|
|
|
import bechat from "@/assets/images/bechat.png";
|
|
import bechat from "@/assets/images/bechat.png";
|
|
|
import zuijin from "@/assets/images/zuijin.png";
|
|
import zuijin from "@/assets/images/zuijin.png";
|
|
@@ -108,7 +99,9 @@ const searchText = ref('') //搜索ipt的值
|
|
|
function toggleSideBar() {
|
|
function toggleSideBar() {
|
|
|
appStore.toggleSideBar()
|
|
appStore.toggleSideBar()
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+onMounted(() => {
|
|
|
|
|
+ console.log('router',router)
|
|
|
|
|
+})
|
|
|
function handleCommand(command) {
|
|
function handleCommand(command) {
|
|
|
switch (command) {
|
|
switch (command) {
|
|
|
case "setLayout":
|
|
case "setLayout":
|
|
@@ -144,7 +137,7 @@ const emits = defineEmits(['setLayout'])
|
|
|
function setLayout() {
|
|
function setLayout() {
|
|
|
emits('setLayout');
|
|
emits('setLayout');
|
|
|
}
|
|
}
|
|
|
-const clickId = ref("0");
|
|
|
|
|
|
|
+const clickId = ref('');
|
|
|
const menuList = reactive({
|
|
const menuList = reactive({
|
|
|
data: [
|
|
data: [
|
|
|
{
|
|
{
|
|
@@ -211,14 +204,19 @@ const clickPath = (index) => {
|
|
|
.el-container {
|
|
.el-container {
|
|
|
height: 100vh;
|
|
height: 100vh;
|
|
|
}
|
|
}
|
|
|
|
|
+:deep .el-main{
|
|
|
|
|
+ --el-main-padding:8px !important;
|
|
|
|
|
+}
|
|
|
.nav {
|
|
.nav {
|
|
|
background: #06286c;
|
|
background: #06286c;
|
|
|
height: 48px;
|
|
height: 48px;
|
|
|
.nav-top {
|
|
.nav-top {
|
|
|
width: 98%;
|
|
width: 98%;
|
|
|
- margin-left: 1%;
|
|
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
|
|
+ &>div:first-child{
|
|
|
|
|
+ font-family:"Inter-SemiBold";
|
|
|
|
|
+ }
|
|
|
& > div:first-child,
|
|
& > div:first-child,
|
|
|
& > div:last-child {
|
|
& > div:last-child {
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -237,6 +235,7 @@ const clickPath = (index) => {
|
|
|
margin-right:10px;
|
|
margin-right:10px;
|
|
|
}
|
|
}
|
|
|
.avatar-wrapper {
|
|
.avatar-wrapper {
|
|
|
|
|
+ color: #fff;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
}
|
|
}
|
|
@@ -245,15 +244,19 @@ const clickPath = (index) => {
|
|
|
:deep .el-input {
|
|
:deep .el-input {
|
|
|
width: 400px;
|
|
width: 400px;
|
|
|
height: 32px;
|
|
height: 32px;
|
|
|
|
|
+ border-radius: 4px;
|
|
|
margin-top: 8px;
|
|
margin-top: 8px;
|
|
|
background: #6f85b5 !important;
|
|
background: #6f85b5 !important;
|
|
|
|
|
+ --el-input-border-color:#6F85B5
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
:deep .el-input__wrapper {
|
|
:deep .el-input__wrapper {
|
|
|
background: #1f3f7e !important;
|
|
background: #1f3f7e !important;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.asides {
|
|
.asides {
|
|
|
|
|
+ padding: 8px 10px !important;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
color: #000;
|
|
color: #000;
|
|
|
background: #fff;
|
|
background: #fff;
|
|
@@ -264,6 +267,7 @@ const clickPath = (index) => {
|
|
|
//侧边栏css
|
|
//侧边栏css
|
|
|
.acitve-img-style {
|
|
.acitve-img-style {
|
|
|
background-color: #f5f7f9;
|
|
background-color: #f5f7f9;
|
|
|
|
|
+ border-radius: 4px;
|
|
|
}
|
|
}
|
|
|
.img-style {
|
|
.img-style {
|
|
|
width: 72px;
|
|
width: 72px;
|