fix:修改 查询机柜的参数

This commit is contained in:
zhangyu
2021-05-27 14:09:02 +08:00
parent 7e0083d0df
commit 4fca3c43db
7 changed files with 27 additions and 8 deletions

View File

@@ -118,7 +118,7 @@ export default {
if (this.cabinetInfos.has(cabinetKey) && this.cabinetInfos.get(cabinetKey) && this.cabinetInfos.get(cabinetKey).length > 0) {
this.showCabinetInfos = this.cabinetInfos.get(cabinetKey)
} else {
this.$get('dc/cabinet?pageSize=-1&dcId=' + dc.id).then(response => {
this.$get('dc/cabinet?pageSize=-1&dcIds=' + dc.id).then(response => {
if (response.code == 200) {
this.cabinetInfos.set(cabinetKey, response.data.list)
this.showCabinetInfos = response.data.list

View File

@@ -72,7 +72,7 @@ export default {
this.prevent_opt.save = true
this.$refs.cabinetForm.validate(valid => {
if (valid) {
this.editCabinet.dcId = this.currentDc.id
this.editCabinet.dcIds = this.currentDc.id
if (this.editCabinet.id) {
this.$put('/dc/cabinet', this.editCabinet).then(res => {
this.prevent_opt.save = false