hanbaoshan
2020-12-21 d7c6e0d1ec18f391243f77eb62bcb111378cb40f
修复清空关联设备分组默认选中第一个添加执行条件
1个文件已修改
22 ■■■■ 已修改文件
src/pages/labelMark/components/RightSide.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/labelMark/components/RightSide.vue
@@ -219,7 +219,7 @@
                show-icon
                v-if="groupList.length==0"
              ></el-alert>
              <div class="flex-box">
              <div class="flex-box" v-if="groupList.length!==0">
                <div
                  class="group-card"
                  :class="{'checked':group.checked}"
@@ -253,7 +253,7 @@
              </div>
            </div>
            <!-- <div class="part" v-if="groupList.length"> -->
            <div class="part" v-if="Object.keys(curGroup)">
            <div class="part" v-if="groupList.length!==0 && Object.keys(curGroup)">
              <div class="title">绘制区域(用于算法分析)</div>
              <div class="relative-partment" v-if="curGroup.cameras&&curGroup.cameras.length">
                <div class="area-wrap" v-for="i in 2" :key="'sc'+i">
@@ -437,12 +437,12 @@
      },
      deep: true
    },
    'TreeDataPool.selectedNodes': {
      handler (n, o) {
    // 'TreeDataPool.selectedNodes': {
    //   handler (n, o) {
      },
      deep: true
    },
    //   },
    //   deep: true
    // },
    isEdit (n, o) {
      if (n) {
        this.$refs['editBoard'].addEventListener('click', this.bindListen);
@@ -572,9 +572,12 @@
      for(var i = 0; i< groups.length; i++){
        groups[i].cameras = await _this.findPolygonByIds(groups[i].cameras)
      }
      this.groupList = groups
      this.groupList = groups;
      debugger
      //选中第一个
      this.checkCurrentGroup(_this.groupList[0]);
      this.groupList.length && this.checkCurrentGroup(_this.groupList[0]);
    },
    addRelation () {
@@ -674,7 +677,6 @@
        groupName: '',
        cameras: []
      }
    },
    changeTab () {
      if (this.actPage == '1') {