guanqb
2023-03-02 b54be5cf8000e99eae85fbfabf60629dbed914a6
名称为空提示
1 files modified
57 ■■■■■ changed files
src/views/activity/index.vue 57 ●●●●● patch | view | raw | blame | history
src/views/activity/index.vue
@@ -1187,11 +1187,12 @@
                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)
@@ -1205,11 +1206,12 @@
                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)
@@ -1236,11 +1238,12 @@
                if (res.data.success) {
                    this.$message({
                        message: '添加成功',
                        type: 'warning'
                        type: 'success'
                    })
                } else {
                    this.$message({
                        message: '添加失败'
                        message: '添加失败',
                        type: 'error'
                    })
                }
                this.getSecurityPoliceList(params.securityId, this.policeSwitch)
@@ -1737,7 +1740,7 @@
                    if (this.policeType == '') {
                        this.$message({
                            message: '请选择警车',
                            type: 'error'
                            type: 'warning'
                        })
                    } else {
                        this.policeChooseCarVisible = false
@@ -1749,7 +1752,7 @@
                    if (this.searchPoliceTreeId == '') {
                        this.$message({
                            message: '请选择警员',
                            type: 'error'
                            type: 'warning'
                        })
                    } else {
                        this.policeChooseVisible = false
@@ -1833,11 +1836,12 @@
                if (res.data.success) {
                    this.$message({
                        message: '保存成功',
                        type: 'warning'
                        type: 'success'
                    })
                } else {
                    this.$message({
                        message: '保存失败'
                        message: '保存失败',
                        type: 'error'
                    })
                }
                this.getSecurityPlotList(params.securityId, this.arrowBtnSwitch)
@@ -1928,8 +1932,15 @@
        // 保存标绘修改
        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) {
@@ -1937,11 +1948,12 @@
                if (res.data.success) {
                    this.$message({
                        message: '修改成功',
                        type: 'warning'
                        type: 'success'
                    })
                } else {
                    this.$message({
                        message: '修改失败'
                        message: '修改失败',
                        type: 'error'
                    })
                }
                this.getSecurityPlotList(this.showingSecurityId, this.arrowBtnSwitch)
@@ -2349,7 +2361,7 @@
                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 })
@@ -2381,11 +2393,12 @@
                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)
@@ -2398,11 +2411,12 @@
                if (res.data.success) {
                    this.$message({
                        message: '删除成功',
                        type: 'warning'
                        type: 'success'
                    })
                } else {
                    this.$message({
                        message: '删除失败'
                        message: '删除失败',
                        type: 'error'
                    })
                }
                this.getSecurityPoliceList(this.showingSecurityId, this.policeSwitch)
@@ -2432,11 +2446,12 @@
                if (res.data.success) {
                    this.$message({
                        message: '删除成功',
                        type: 'warning'
                        type: 'success'
                    })
                } else {
                    this.$message({
                        message: '删除失败'
                        message: '删除失败',
                        type: 'error'
                    })
                }
                this.getSecurityPlotList(this.showingSecurityId, this.arrowBtnSwitch)