dedsudiyu 1 gadu atpakaļ
vecāks
revīzija
186f7f0bfb

+ 8 - 6
src/views/safetyCheck/components/infoPage/infoPage.vue

@@ -282,13 +282,15 @@ import { getToken } from '@/utils/auth'
       //查询详情
       findCheckManage(){
         findCheckManage({id:this.propsInfoData.id}).then(response => {
-          if(response.data.checkHazardInfoVoList[0]){
-            response.data.checkHazardInfoVoList.forEach(function(item) {
-              item.lookType = true;
-              item.checkHazardDtoList.forEach(function(item2) {
-                item2.hazardCheckCode=item2.code
+          if(response.data.checkCategory==2){
+            if(response.data.checkHazardInfoVoList[0]){
+              response.data.checkHazardInfoVoList.forEach(function(item) {
+                item.lookType = true;
+                item.checkHazardDtoList.forEach(function(item2) {
+                  item2.hazardCheckCode=item2.code
+                })
               })
-            })
+            }
           }
           this.$set(this,'addForm',response.data);
         });