|
|
|
@ -3,7 +3,8 @@ |
|
|
|
|
|
|
|
<!-- 服务器列表 可循环 --> |
|
|
|
<div class="ds_list" v-for="(item,index) in sysdata" :key="index"> |
|
|
|
<span class="dstit">{{index+1}} 服务器概况</span> |
|
|
|
<span class="dstit">{{index+1}} {{ sclist[index] }} 服务器概况</span> |
|
|
|
|
|
|
|
<div class="dsinfo"> |
|
|
|
<a href="" class="dsbtn green">文件同步</a> |
|
|
|
<a href="" class="dsbtn green">代码对比</a> |
|
|
|
@ -83,6 +84,7 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
sysdata:[], // 服务器系统信息 |
|
|
|
sclist:[], |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -107,6 +109,8 @@ export default { |
|
|
|
// |
|
|
|
mutSys(){ |
|
|
|
let chost=['http://127.0.0.1:9099','http://192.168.66.92:9099','http://192.168.66.16:9098'] |
|
|
|
//服务器列表 |
|
|
|
this.sclist = chost |
|
|
|
// |
|
|
|
for(let i=0;i<chost.length;i++){ |
|
|
|
this.getSysinfo(chost[i]) |
|
|
|
|