diff --git a/webs/cmp-web/src/views/resource/ctstack/page/floatIp/bind.vue b/webs/cmp-web/src/views/resource/ctstack/page/floatIp/bind.vue index 77cfecd..34baf35 100644 --- a/webs/cmp-web/src/views/resource/ctstack/page/floatIp/bind.vue +++ b/webs/cmp-web/src/views/resource/ctstack/page/floatIp/bind.vue @@ -3,9 +3,9 @@ - - - + + + @@ -47,22 +47,27 @@ export default { ok() { this.$refs.data.validate(valid => { if (valid) { + let instanceId = '' let networkCardId = '' let fixedIpAddress = '', serverId let cell = null this.vmList.forEach(item => { - if (item.instanceId == this.addData.data.instanceId) { + if (item.networkcardUuid == this.addData.data.networkcardUuid) { cell = item networkCardId = item.id + instanceId = item.instanceId fixedIpAddress = item.ipAddress } }) floatIpPorts({ networkCardId, fixedIpAddress, - portUuid: cell.networkcardUuid, - ...this.addData.data + instanceId, + portUuid: this.addData.data.networkcardUuid, + id: this.addData.data.id, + regionId: this.addData.data.regionId, + vendorId: this.addData.data.vendorId }).then(data => { if (data.success) { this.$message({