NEZ-1690 feat : IPAM IP 二级列表详情页面开饭

This commit is contained in:
@changcode
2022-03-18 16:23:41 +08:00
parent 94896f455f
commit 61972c0472
3 changed files with 38 additions and 9 deletions

View File

@@ -215,6 +215,8 @@ export default {
url = '/dc/cancelImport'
} else if (this.importUrl.indexOf('/ipam/subnet') > -1) {
url = '/ipam/subnet/cancelImport'
} else if (this.importUrl.indexOf('/ipam/ip') > -1) {
url = '/ipam/ip/cancelImport'
}
this.$delete(url + '?seq=' + this.importResult.seq).then(response => {
if (response.code == 200) {
@@ -310,6 +312,8 @@ export default {
url = '/dc/template'
} else if (this.importUrl.indexOf('/ipam/subnet') > -1) {
url = '/ipam/subnet/template'
} else if (this.importUrl.indexOf('/ipam/ip') > -1) {
url = ' /ipam/ip/template'
}
if (!url) {
console.error('no interface support')