济菏高速业务端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
1.4 KiB

1 year ago
<template>
<div class='topolog'>
1 year ago
<div class="list">
<div v-for="(item,index) in list" class="listItem keep-ratio">
{{ item.switchName }}
</div>
</div>
<div class="card">
<div class="title">
<view class="t-left">{{ list[selIndex].switchName }}</view>
</div>
</div>
1 year ago
</div>
</template>
<script>
1 year ago
import request from '@/utils/request'
import { Message } from "element-ui";
1 year ago
export default {
name: 'InDevelopment',
components: {
},
1 year ago
data() {
return {
list: [],
selIndex: 0
}
},
1 year ago
mounted() {
1 year ago
this.bind()
},
methods:{
bind(){
request({
url: '/business/switch/list',
method: 'get'
}).then(result=>{
if (result.code != 200) return Message.error(result?.msg);
this.list = result.data
console.log(this.list)
})
}
1 year ago
}
}
</script>
<style lang='scss' scoped>
.topolog {
width: 100%;
height: 100%;
position: relative;
z-index: 6;
color: white;
display: flex;
justify-content: center;
align-items: center;
p {
font-size: 200px;
}
}
1 year ago
.list{
width: 20vw;
height: 100%;
color: white;
margin: 0px 20px;
.listItem{
background-image: url(../topology/left-bg.png);
background-repeat: no-repeat;
background-size: 100% 100%;
height: 44px;
width: 100%;
text-align: center;
line-height: 44px;
margin-top: 20px;
}
}
.card{
flex: 1;
}
1 year ago
</style>