| | |
| | | chooseColor: '#1CA085', |
| | | policeIconId: {}, |
| | | lineEditVisible: false, |
| | | predefineColors: [ |
| | | '#ff4500', |
| | | '#ff8c00', |
| | | '#ffd700', |
| | | '#90ee90', |
| | | '#00ced1', |
| | | '#1e90ff', |
| | | '#c71585', |
| | | 'rgba(255, 69, 0, )', |
| | | 'rgb(255, 120, 0)', |
| | | 'hsv(51, 100, 98)', |
| | | 'hsva(120, 40, 94)', |
| | | 'hsl(181, 100%, 37%)', |
| | | 'hsla(209, 100%, 56%)', |
| | | '#c7158577' |
| | | ], |
| | | } |
| | | }, |
| | | |
| | |
| | | |
| | | // 删除巡逻路线 |
| | | deleteLine () { |
| | | this.deleteActivityCar(this.policeIconId) |
| | | this.lineEditVisible = false |
| | | this.$confirm('确定要删除吗?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning', |
| | | customClass: 'draw-delete-confirm' |
| | | }).then(() => { |
| | | this.deleteActivityCar(this.policeIconId) |
| | | }).catch(() => { }) |
| | | }, |
| | | |
| | | // 删除警车 |
| | | deleteActivityCar (id) { |
| | | deleteActivityCar(id).then(res => { |
| | | this.lineEditVisible = false |
| | | if (res.data.success) { |
| | | this.$message({ |
| | | message: '删除成功', |