@ -40,7 +40,7 @@
< div class = "arrow" > < / div >
< / div >
< div v-for ="(item, index) in topo" v-if="index < 5" class="switch" >
< div : class = "'line ' + (item.netWorkStatus ? '' : 'liner')" > < / div >
< div : class = "'line ' + (item.netWorkStatus ? '' : 'liner')" style = "height: 70px;margin-top: -10px;" > < / div >
< div
: class = "'arrowdown ' + (item.netWorkStatus ? '' : 'arrowr')"
> < / div >
@ -54,11 +54,6 @@
> < / div >
< img v -if = " item.netWorkStatus " src = "./switch1.png" / >
< img v -else src = "./switch0.png" / >
<!-- < div
: class = "
'c-name c-namesw ' + ( item . netWorkStatus ? '' : 'c-namer' )
"
> < / div > -- >
< div : class = "'c-desc ' + (item.netWorkStatus ? '' : 'c-descr')" >
< div > 桩号 : { { item . stakeMark } } < / div >
< div > IP : { { item . switchIp } } < / div >
@ -78,7 +73,7 @@
< / div >
< div class = "c" style = "margin-top: -5px" >
< div v-for ="(item, index) in topo" v-if="index >= 5" class="switch" >
< div : class = "'line ' + (item.netWorkStatus ? '' : 'liner')" > < / div >
< div : class = "'line ' + (item.netWorkStatus ? '' : 'liner')" style = "height: 70px;margin-top: -10px;" > < / div >
< div
: class = "'arrowdown ' + (item.netWorkStatus ? '' : 'arrowr')"
> < / div >
@ -168,7 +163,7 @@
v - for = "(idv, idvx) in itm.dcDeviceList"
class = "device-item"
>
< img src = "./t10.png " / >
< img :src ="require(`./t${itm.netWorkStatus}${idv.childType||'1-1'}.svg`) " / >
< el -tooltip
class = "item"
effect = "dark"
@ -221,12 +216,6 @@ export default {
} ,
mounted ( ) {
this . bind ( ) ;
request ( {
url : "/type/list" ,
method : "get" ,
} ) . then ( ( res ) => {
console . log ( res ) ;
} ) ;
} ,
methods : {
bind ( ) {
@ -261,7 +250,6 @@ export default {
let cards = [ ] ;
let topo = [ ] ;
const list = this . map . children [ e - 1 ] . children ;
const list1 = list . filter ( ( x ) => x . ringNetWork === 1 ) ;
if ( list1 ) {
cards . push ( {