zhangzengfei
2022-07-20 4a800a8fc83c6bd1f86a8e847b079a51a7532c09
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) {