shj
2022-03-31 af4fcb7aad76ec88a33ffb57a18356db441535d7
src/views/safetyproduction/new.vue
@@ -15,7 +15,7 @@
          ></el-tree>
        </div>
      </div>
      <div class="box-right" v-if="list == '' ? false : true">
      <div class="box-right" v-if="lists == '' ? false : true">
        <div class="btns">
          <el-button type="primary" class="btn" @click="open(0)"
            >添加</el-button
@@ -224,7 +224,6 @@
      safetySelfInspectionInfo({ id: id }).then((res) => {
        if (res.data.code == 200) {
          this.form = res.data.result;
          console.log(res.data.result);
          this.list = res.data.result;
          var trees = [];
          for (var i = 0; i < this.list.itemList.length; i++) {
@@ -244,11 +243,9 @@
              cser.push(capB)
              }
              arr[i].id=cser
            console.log('tag', capB)
            arr[i].child = this.checkSameData(arr[i].child);
          }
          this.lists = arr;
          console.log(this.lists);
        }
      });
    },