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.
|
|
|
<template>
|
|
|
|
<div class='topolog'>
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import request from '@/utils/request'
|
|
|
|
import { Message } from "element-ui";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'InDevelopment',
|
|
|
|
components: {
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
list: [],
|
|
|
|
selIndex: 0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
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)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.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;
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|