| | |
| | | </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> |
| | |
| | | <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 |
| | |
| | | if (res.success) { |
| | | this.$notify({ |
| | | type: 'success', |
| | | message: res.data |
| | | message: res.msg |
| | | }); |
| | | _this.findRelationByGroup(); |
| | | } |
| | |
| | | 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) { |