fix: Host Sweep页面调整subnet接口
This commit is contained in:
@@ -23,10 +23,11 @@
|
|||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.id">
|
:value="item.id">
|
||||||
<div class="subnet-item">
|
<!-- <div class="subnet-item">
|
||||||
<div class="subnet-item-left" :title="item.name">{{item.name}}</div>
|
<div class="subnet-item-left" :title="item.name">{{item.name}}</div>
|
||||||
<div class="subnet-item-right">{{item.addr}}/{{item.mask}}</div>
|
<div class="subnet-item-right">{{item.addr}}/{{item.mask}}</div>
|
||||||
</div>
|
</div> -->
|
||||||
|
{{item.addr}}
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
@@ -252,7 +253,7 @@ export default {
|
|||||||
closeRightBox (refresh) {
|
closeRightBox (refresh) {
|
||||||
this.rightBox.show = false
|
this.rightBox.show = false
|
||||||
if (refresh) {
|
if (refresh) {
|
||||||
const findItem = this.tableData.find(item=> item.ip === this.object.manageIp)
|
const findItem = this.tableData.find(item => item.ip === this.object.manageIp)
|
||||||
findItem.imported = 1
|
findItem.imported = 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -314,7 +315,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getIpamData () {
|
getIpamData () {
|
||||||
this.$get('ipam/subnet', { pageSize: -1, type: 4 }).then(response => {
|
this.$get('/dc/subnet', { pageSize: -1 }).then(response => {
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.ipamData = response.data.list
|
this.ipamData = response.data.list
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user