shj
2022-03-31 af4fcb7aad76ec88a33ffb57a18356db441535d7
自查清单
已修改7个文件
18 ■■■■■ 文件已修改
src/views/safetyproduction/checklist.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/safetyproduction/checklistself.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/safetyproduction/feature.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/safetyproduction/gojudging.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/safetyproduction/new.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/safetyproduction/review.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/safetyproduction/reviewXG.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/safetyproduction/checklist.vue
@@ -357,15 +357,12 @@
      },
    beforTree() {
      safetyInspectionItemTree().then((res) => {
        console.log(res);
        this.tree = res.data.result;
      });
    },
    safetyInspectionItemL(data) {
      // console.log(data)
      this.listQuery.filter.elementB = data.value;
      safetyInspectionItemList(this.listQuery).then((res) => {
        // console.log(res.data.result.records);
        this.list = res.data.result.records;
      });
    },
@@ -386,7 +383,6 @@
      } else {
        this.disabled = true;
        var i = this.list.findIndex((item) => item.id == id);
        console.log(id);
        this.form = this.list[i];
      }
    },
src/views/safetyproduction/checklistself.vue
@@ -120,7 +120,6 @@
    async safetySelfInspectionL() {
      var res = await safetySelfInspectionList(this.listQuery).then((res) => {
        if (res.data.code == 200) {
          console.log(res.data);
          this.list = res.data.result.records;
          this.recordTotal = res.data.result.total;
          this.pageSize = res.data.result.size;
@@ -129,7 +128,6 @@
      });
    },
    handleClick(val) {
      console.log(val)
     if(val.status==-1){
        this.$router.push({
        path:"/new",
src/views/safetyproduction/feature.vue
@@ -209,7 +209,6 @@
  methods: {
    async elementManagementL() {
      var res = await elementManagementList(this.listQuery);
      console.log(res);
      if (res.data.code == 200) {
        this.list = res.data.result.records;
         this.recordTotal = res.data.result.total
@@ -223,7 +222,6 @@
        this.$refs["form"].clearValidate();
      });
       getParentElement().then(res=>{
          // console.log('父类:',res)
          this.parent=res.data.result
        })
      if (type == "新增") {
src/views/safetyproduction/gojudging.vue
@@ -124,14 +124,12 @@
  methods: {
    safeInitem(id) {
      safetySelfInspectionInfo({ id: id }).then((res) => {
        // console.log("数据", res);
        if (res.data.code == 200) this.list = res.data.result;
        var arr = this.checkSameDataA(this.list.itemList);
        for (var i = 0; i < arr.length; i++) {
          arr[i].child = this.checkSameData(arr[i].child);
        }
        this.lists = arr;
        console.log(this.lists)
      });
    },
    checkSameDataA(resData) {
@@ -165,7 +163,6 @@
      return list;
    },
    handleClick(data) {
      console.log(data.id);
      this.$router.push({
        path: "/review",
        query: {
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);
        }
      });
    },
src/views/safetyproduction/review.vue
@@ -286,7 +286,6 @@
    handleClick(data) {
      this.dialogVisible = true;
      this.form = data;
      console.log(data);
    },
    lost() {
      this.dialogVisible = false;
src/views/safetyproduction/reviewXG.vue
@@ -251,7 +251,6 @@
    },
       safetyInspectionItemA() {
        safetyInspectionItemMod(this.form).then((res) => {
          console.log(res)
          if (res.data.code == 200) {
            this.$notify({
              type: "success",