fix: Host Sweep页面调整subnet接口

This commit is contained in:
zyh
2024-07-02 16:25:34 +08:00
parent b830be722f
commit 35c5315385

View File

@@ -23,10 +23,11 @@
:key="item.id"
:label="item.name"
: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-right">{{item.addr}}/{{item.mask}}</div>
</div>
</div> -->
{{item.addr}}
</el-option>
</el-select>
</div>
@@ -252,7 +253,7 @@ export default {
closeRightBox (refresh) {
this.rightBox.show = false
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
}
},
@@ -314,7 +315,7 @@ export default {
})
},
getIpamData () {
this.$get('ipam/subnet', { pageSize: -1, type: 4 }).then(response => {
this.$get('/dc/subnet', { pageSize: -1 }).then(response => {
if (response.code === 200) {
this.ipamData = response.data.list
}