|
@@ -168,8 +168,11 @@
|
|
if(this.form.deviceType == 1){
|
|
if(this.form.deviceType == 1){
|
|
this.form.buildId = parseInt(this.form.buildId);
|
|
this.form.buildId = parseInt(this.form.buildId);
|
|
this.form.floorId = parseInt(this.form.floorId);
|
|
this.form.floorId = parseInt(this.form.floorId);
|
|
- listFloorByBuildId(this.form.buildId).then(response => {
|
|
|
|
- this.$set(this,'floorList', response.data)
|
|
|
|
|
|
+ selBuildOrFloorList({type:2}).then(response => {
|
|
|
|
+ this.$set(this,'buildList', response.data)
|
|
|
|
+ selBuildOrFloorList({type:3,parentId:this.form.buildId}).then(response => {
|
|
|
|
+ this.$set(this,'floorList', response.data)
|
|
|
|
+ })
|
|
});
|
|
});
|
|
}
|
|
}
|
|
console.log("12")
|
|
console.log("12")
|
|
@@ -193,8 +196,11 @@
|
|
},
|
|
},
|
|
radioChange(){
|
|
radioChange(){
|
|
if(this.form.buildId){
|
|
if(this.form.buildId){
|
|
- listFloorByBuildId(this.form.buildId).then(response => {
|
|
|
|
- this.$set(this,'floorList', response.data)
|
|
|
|
|
|
+ selBuildOrFloorList({type:2}).then(response => {
|
|
|
|
+ this.$set(this,'buildList', response.data)
|
|
|
|
+ selBuildOrFloorList({type:3,parentId:this.form.buildId}).then(response => {
|
|
|
|
+ this.$set(this,'floorList', response.data)
|
|
|
|
+ })
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|