fix:修改 查询机柜的参数
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user