| | |
| | | if (res.data.success) { |
| | | this.$message({ |
| | | message: '保存成功', |
| | | type: 'warning' |
| | | type: 'success' |
| | | }) |
| | | } else { |
| | | this.$message({ |
| | | message: '保存失败' |
| | | message: '保存失败', |
| | | type:'error' |
| | | }) |
| | | } |
| | | this.getSecurityCarList(this.showingSecurityId, this.policeSwitch, this.polylineBtnSwitch) |
| | |
| | | if (res.data.success) { |
| | | this.$message({ |
| | | message: '添加成功', |
| | | type: 'warning' |
| | | type: 'success' |
| | | }) |
| | | } else { |
| | | this.$message({ |
| | | message: '添加失败' |
| | | message: '添加失败', |
| | | type: 'error' |
| | | }) |
| | | } |
| | | this.getSecurityCarList(params.securityId, this.policeSwitch, this.polylineBtnSwitch) |
| | |
| | | if (res.data.success) { |
| | | this.$message({ |
| | | message: '添加成功', |
| | | type: 'warning' |
| | | type: 'success' |
| | | }) |
| | | } else { |
| | | this.$message({ |
| | | message: '添加失败' |
| | | message: '添加失败', |
| | | type: 'error' |
| | | }) |
| | | } |
| | | this.getSecurityPoliceList(params.securityId, this.policeSwitch) |
| | |
| | | if (this.policeType == '') { |
| | | this.$message({ |
| | | message: '请选择警车', |
| | | type: 'error' |
| | | type: 'warning' |
| | | }) |
| | | } else { |
| | | this.policeChooseCarVisible = false |
| | |
| | | if (this.searchPoliceTreeId == '') { |
| | | this.$message({ |
| | | message: '请选择警员', |
| | | type: 'error' |
| | | type: 'warning' |
| | | }) |
| | | } else { |
| | | this.policeChooseVisible = false |
| | |
| | | if (res.data.success) { |
| | | this.$message({ |
| | | message: '保存成功', |
| | | type: 'warning' |
| | | type: 'success' |
| | | }) |
| | | } else { |
| | | this.$message({ |
| | | message: '保存失败' |
| | | message: '保存失败', |
| | | type: 'error' |
| | | }) |
| | | } |
| | | this.getSecurityPlotList(params.securityId, this.arrowBtnSwitch) |
| | |
| | | |
| | | // 保存标绘修改 |
| | | savePlot () { |
| | | this.updateSecurityPlot({ id: this.plotOverlayData.overlay.attrParams.id, color: this.choosePlotColor ,name:this.polygonName}) |
| | | this.editPlotVisible = false |
| | | if (this.polygonName == '') { |
| | | this.$message({ |
| | | message: '请设置名称', |
| | | type: 'warning' |
| | | }) |
| | | } else { |
| | | this.updateSecurityPlot({ id: this.plotOverlayData.overlay.attrParams.id, color: this.choosePlotColor ,name:this.polygonName}) |
| | | this.editPlotVisible = false |
| | | } |
| | | }, |
| | | |
| | | updateSecurityPlot (params) { |
| | |
| | | if (res.data.success) { |
| | | this.$message({ |
| | | message: '修改成功', |
| | | type: 'warning' |
| | | type: 'success' |
| | | }) |
| | | } else { |
| | | this.$message({ |
| | | message: '修改失败' |
| | | message: '修改失败', |
| | | type: 'error' |
| | | }) |
| | | } |
| | | this.getSecurityPlotList(this.showingSecurityId, this.arrowBtnSwitch) |
| | |
| | | if (this.polygonName == '') { |
| | | this.$message({ |
| | | message: '请输入名称', |
| | | type: 'error' |
| | | type: 'warning' |
| | | }) |
| | | } else { |
| | | this.addSecurityPlot({ securityId: this.showingSecurityId, position: this.polygonPositionStr, type: 5, name: this.polygonName, color: this.choosePlotColor }) |
| | |
| | | if (res.data.success) { |
| | | this.$message({ |
| | | message: '删除成功', |
| | | type: 'warning' |
| | | type: 'success' |
| | | }) |
| | | } else { |
| | | this.$message({ |
| | | message: '删除失败' |
| | | message: '删除失败', |
| | | type: 'error' |
| | | }) |
| | | } |
| | | this.getSecurityCarList(this.showingSecurityId, this.policeSwitch, this.polylineBtnSwitch) |
| | |
| | | if (res.data.success) { |
| | | this.$message({ |
| | | message: '删除成功', |
| | | type: 'warning' |
| | | type: 'success' |
| | | }) |
| | | } else { |
| | | this.$message({ |
| | | message: '删除失败' |
| | | message: '删除失败', |
| | | type: 'error' |
| | | }) |
| | | } |
| | | this.getSecurityPoliceList(this.showingSecurityId, this.policeSwitch) |
| | |
| | | if (res.data.success) { |
| | | this.$message({ |
| | | message: '删除成功', |
| | | type: 'warning' |
| | | type: 'success' |
| | | }) |
| | | } else { |
| | | this.$message({ |
| | | message: '删除失败' |
| | | message: '删除失败', |
| | | type: 'error' |
| | | }) |
| | | } |
| | | this.getSecurityPlotList(this.showingSecurityId, this.arrowBtnSwitch) |