lyfO_o
2022-04-02 f8cb4519363640a36cf5c5818f7f647ad13b507f
src/views/safetyproduction/gojudging.vue
@@ -1,7 +1,7 @@
<template>
  <div>
    <div class="box-right">
      <div v-for="(item, index) in lists" :key="index">
      <div v-for="(item, index) in lists" :key="index" style="padding:0 0 20px 0">
        <div class="title">
          A级要素:<span>{{ item.elementAName }}</span>
        </div>
@@ -40,10 +40,10 @@
                ></el-table-column>
                <el-table-column align="center" label="评审结果">
                  <template slot-scope="scope">
                    <span v-if="(scope.row.safetyInspectionItemResult = 0)"
                    <span v-if="(scope.row.safetyInspectionItemResult== 0)"
                      >是</span
                    >
                    <span v-if="(scope.row.safetyInspectionItemResult = 1)"
                    <span v-if="(scope.row.safetyInspectionItemResult == 1)"
                      >否</span
                    >
                  </template>
@@ -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: {