|
@@ -632,12 +632,21 @@
|
|
|
},
|
|
|
//弹窗确定
|
|
|
buttonSetButton(type){
|
|
|
+ let self = this;
|
|
|
if(type == 1){
|
|
|
this.dialogOpen = false;
|
|
|
}else if(type == 2){
|
|
|
this.$refs["dialogForm"].validate(valid => {
|
|
|
if (valid) {
|
|
|
if(this.dialogOpenType == 1){
|
|
|
+ for(let i=0;i<self.mapList.length;i++){
|
|
|
+ if(self.mapList[i].type == '1'){
|
|
|
+ if(self.mapList[i].subId == self.dialogForm.subId){
|
|
|
+ this.msgError(self.dialogForm.subName+'已被其他房间绑定')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
this.$set(this.mapList[this.dialogIndex],'roomType',this.dialogForm.roomType);
|
|
|
this.$set(this.mapList[this.dialogIndex],'roomNum',this.dialogForm.roomNum);
|
|
|
this.$set(this.mapList[this.dialogIndex],'roomName',this.dialogForm.roomName);
|