add
BIN
public/index/CWGL.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
public/index/CWGLACT.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
public/index/GCJL.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
public/index/GCJLACT.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
public/index/SGGL.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
public/index/SGGLACT.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
public/index/XMGL.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
public/index/XMGLACT.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
public/index/XMZX.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
public/index/XMZXACT.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
public/index/XT.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
public/index/XTACT.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
public/index/ZJZX.png
Normal file
After Width: | Height: | Size: 936 B |
BIN
public/index/ZJZXACT.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 3.7 KiB |
@ -7,7 +7,8 @@
|
|||||||
</div> -->
|
</div> -->
|
||||||
<div class="mr-5 cursor-pointer flex items-center flex-col transition-all duration-300 h-28 "
|
<div class="mr-5 cursor-pointer flex items-center flex-col transition-all duration-300 h-28 "
|
||||||
@click="menuClick(item.id)" v-for="(item, index) in menuList" v-show="item.paths != 'workbench'">
|
@click="menuClick(item.id)" v-for="(item, index) in menuList" v-show="item.paths != 'workbench'">
|
||||||
<el-image class="w-[35px] h-[35px] mb-[5px]" :src="getImgById(item.id)" />
|
<el-image class="w-[35px] h-[35px] mb-[5px]"
|
||||||
|
:src="menuName == item.name ? getImgById(item.id)?.actImg : getImgById(item.id)?.img" />
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -42,14 +43,32 @@ useWatchRoute((route) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const getImgById = (id: number) => {
|
const getImgById = (id: number) => {
|
||||||
if (id == 173) return '/src/assets/images/XT.png';
|
if (id == 173) {
|
||||||
else if (id == 174) return '/src/assets/images/SGGL.png';
|
return { img: '/index/XTACT.png', actImg: "/index/XT.png" }
|
||||||
else if (id == 1046) return '/src/assets/images/ZJZX.png';
|
}
|
||||||
else if (id == 1117) return '/src/assets/images/GCJL.png';
|
else if (id == 174) {
|
||||||
else if (id == 1399) return '/src/assets/images/XMGL.png';
|
return { img: '/index/SGGLACT.png', actImg: "/index/SGGL.png" }
|
||||||
else if (id == 1436) return '/src/assets/images/XMZX.png';
|
|
||||||
else if (id == 1548) return '/src/assets/images/CWGL.png';
|
}
|
||||||
else return "/"
|
else if (id == 1046) {
|
||||||
|
return { img: '/index/ZJZXACT.png', actImg: "/index/ZJZX.png" }
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (id == 1117) {
|
||||||
|
return { img: '/index/GCJLACT.png', actImg: "/index/GCJL.png" }
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (id == 1399) {
|
||||||
|
return { img: '/index/XMGLACT.png', actImg: "/index/XMGL.png" }
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (id == 1436) {
|
||||||
|
return { img: '/index/XMZXACT.png', actImg: "/index/XMZX.png" }
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (id == 1548) {
|
||||||
|
return { img: '/index/CWGLACT.png', actImg: "/index/CWGL.png" }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|