From 4a800a8fc83c6bd1f86a8e847b079a51a7532c09 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 20 七月 2022 15:05:58 +0800 Subject: [PATCH] 修复国标配置的bug --- 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