| | |
| | | } |
| | | }, |
| | | changeSel (opt) { |
| | | this.$nextTick(() => { |
| | | console.log('=================changeSel',opt,this.form.detailList) |
| | | var item = this.form.detailList[opt] |
| | | this.form.detailList[opt].regionCode = null |
| | | this.form.detailList[opt].regionName = null |
| | | this.form.detailList[opt].carmeraList = [] |
| | | // this.form.detailList[opt].deviceId = null |
| | | // this.form.detailList[opt].deviceName = null |
| | | if (item.regionId) { |
| | | var reg = this.getSelectedObject(item.regionId) |
| | | if (reg) { |
| | | this.form.detailList[opt].regionCode = reg.indexCode |
| | | this.form.detailList[opt].regionName = reg.name |
| | | this.form.detailList[opt].carmeraList = reg.carmeraList |
| | | } |
| | | console.log('=================changeSel',opt,this.form.detailList) |
| | | var item = this.form.detailList[opt] |
| | | this.form.detailList[opt].regionCode = null |
| | | this.form.detailList[opt].regionName = null |
| | | this.form.detailList[opt].carmeraList = [] |
| | | if (item.regionId) { |
| | | var reg = this.getSelectedObject(item.regionId) |
| | | if (reg) { |
| | | this.form.detailList[opt].regionCode = reg.indexCode |
| | | this.form.detailList[opt].regionName = reg.name |
| | | this.form.detailList[opt].carmeraList = reg.carmeraList |
| | | } |
| | | } |
| | | this.$nextTick(() => { |
| | | console.log('=================changeSel1' , this.form.detailList[opt].carmeraList,this.form.detailList[opt].deviceId) |
| | | if(this.notInCarmeraList( this.form.detailList[opt].carmeraList,this.form.detailList[opt].deviceId) ){ |
| | | this.form.detailList[opt].deviceId = null |