代码提交

This commit is contained in:
luoshiwen 2023-02-11 18:33:39 +08:00
commit bd7259b9f7
1 changed files with 71 additions and 11 deletions

View File

@ -204,6 +204,11 @@
</div>
</div>
<div class="middleBottom">
<div class="menuBtn" :class="{'menuBtn1' : menuAc == index}" v-for="(item,index) in menu" :key="index" @click="handelBtn(index)">
<img :src="item.icon"/>
</div>
</div>
<div class="middleBottomIcon">
</div>
</div>
@ -364,6 +369,17 @@ export default {
name: '柜台状态',
num: '在线'
}
],
menu:[
{
icon: require("@/assets/images/zongti.png")
},
{
icon: require("@/assets/images/zhihui.png")
},
{
icon: require("@/assets/images/shebei.png")
}
]
};
},
@ -374,8 +390,27 @@ export default {
this.drawHallChart();
this.drawFlowChart();
this.handelBtn(0)
},
methods: {
//
handelBtn(index){
this.menuAc = index
if (index == 0) {
this.menu[0].icon = require("@/assets/images/zongtiAc.png")
this.menu[1].icon = require("@/assets/images/zhihui.png")
this.menu[2].icon = require("@/assets/images/shebei.png")
}else if (index == 1) {
this.menu[0].icon = require("@/assets/images/zongti.png")
this.menu[1].icon = require("@/assets/images/zhihuiAc.png")
this.menu[2].icon = require("@/assets/images/shebei.png")
}else if (index == 2) {
this.menu[0].icon = require("@/assets/images/zongti.png")
this.menu[1].icon = require("@/assets/images/zhihui.png")
this.menu[2].icon = require("@/assets/images/shebeiAc.png")
}
},
drawHallChart() {
let myChart = this.$echarts.getInstanceByDom(this.$refs.hallChart);
if (myChart == null) {
@ -1573,7 +1608,6 @@ export default {
width: 20.6%;
top: 0;
height: 100%;
/* background-color: aqua; */
}
.middle-content {
@ -1581,10 +1615,36 @@ export default {
width: calc(100% - 41.2%);
top: 0;
height: 100%;
border: 1px solid red;
position: relative;
.middleBottom {}
display: flex;
justify-content: center;
.middleBottom{
width: 52%;
height: 10%;
display: flex;
align-items: center;
justify-content: space-evenly;
position: absolute;
bottom: -26px;
z-index: 999;
.menuBtn{
width:142px;
height:52px
}
.menuBtn1{
width:188px;
height:74px
}
}
.middleBottomIcon{
z-index: 100;
width: 1115px;
height: 57px;
background: url('../assets/images/menubottom.png') no-repeat;
background-size: 100% 100%;
position: absolute;
bottom: -37px;
}
}
/* 内容板块背景 */