| | |
| | | this.isEdit = true; |
| | | this.dialogFormVisible = true; |
| | | this.areaForm = row; |
| | | debugger |
| | | //回显穿梭框 |
| | | let _this = this; |
| | | _this.checkedData = []; |
| | |
| | | |
| | | }, |
| | | save () { |
| | | // this.checkedData.forEach(item=>{ |
| | | // let node = JSON.parse(item); |
| | | // this.camPolygon.cameraId = node.cameraId; |
| | | // this.camPolygon.cameraName = node.cameraName; |
| | | // this.pgn.polygonId = node.polygonId; |
| | | // this.pgn.polygonName = node.polygonName; |
| | | // this.camPolygon.pgns.push(this.pgn); |
| | | // this.areaForm.camPolygons.push(this.camPolygon); |
| | | // let _this = this; |
| | | // saveAreaInfo(this.areaForm).then(res=>{ |
| | | // if(res.code==200){ |
| | | // _this.$notify({ |
| | | // type:'success', |
| | | // message:'保存成功!' |
| | | // }); |
| | | // _this.dialogFormVisible = false; |
| | | // _this.getAllAreas(); |
| | | // } |
| | | // }) |
| | | // }); |
| | | if (this.areaForm.id === "") { |
| | | this.$notify({ |
| | | type: 'error', |
| | | message: '区域ID不能为空' |
| | | }); |
| | | |
| | | return; |
| | | } |
| | | |
| | | let tempArr = []; |
| | | let tempIdArr = []; |
| | | this.areaForm.camPolygons = []; |
| | |
| | | }) |
| | | let _this = this; |
| | | console.log(this.areaForm); |
| | | debugger |
| | | saveAreaInfo(this.areaForm).then(res => { |
| | | if (res.code == 200) { |
| | | _this.$notify({ |