From ae2d855c89ca722ac7309fdf1aa6ceed370e3b95 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期一, 11 十月 2021 20:22:30 +0800 Subject: [PATCH] 监控ui --- src/pages/panoramicView/components/RelateCamera.vue | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/pages/panoramicView/components/RelateCamera.vue b/src/pages/panoramicView/components/RelateCamera.vue index 8933b5a..9ea7cce 100644 --- a/src/pages/panoramicView/components/RelateCamera.vue +++ b/src/pages/panoramicView/components/RelateCamera.vue @@ -32,7 +32,7 @@ </div> <div class="bottom"> <span @click.stop="editGroup(group)">缂栬緫鍒嗙粍</span> - <el-popconfirm title="纭畾鍒犻櫎璇ュ垎缁勫悧?" @onConfirm="removeGroup(group)"> + <el-popconfirm title="纭畾鍒犻櫎璇ュ垎缁勫悧?" @confirm="removeGroup(group)"> <el-button slot="reference" type="text">鍒犻櫎鍒嗙粍</el-button> </el-popconfirm> </div> @@ -83,7 +83,7 @@ <div class="right"> <el-button type="text" @click="saveRelativePolygon(item)">淇濆瓨</el-button> - <el-popconfirm title="纭畾鍒犻櫎璇ラ厤缃悧?" @onConfirm="delRelation(item)" v-if="item.id"> + <el-popconfirm title="纭畾鍒犻櫎璇ラ厤缃悧?" @confirm="delRelation(item)" v-if="item.id"> <el-button class="btn-del" slot="reference" type="text" icon="el-icon-delete"></el-button> </el-popconfirm> <el-button @@ -188,7 +188,7 @@ if (res.success) { this.$notify({ type: 'success', - message: res.data + message: res.msg }); _this.findRelationByGroup(); } @@ -349,7 +349,15 @@ removeGroup(group) { let _this = this; delCameraGroup(group.id).then(res => { - _this.getAllGroups() + if (res.success) { + this.$notify.success(res.msg) + _this.getAllGroups() + }else{ + this.$notify.error("鍒犻櫎澶辫触") + + } + }).catch((err) => { + this.$notify.error("鍒犻櫎澶辫触") }) }, checkCurrentGroup(group) { -- Gitblit v1.8.0