Sfoglia il codice sorgente

责任者回显更改

duy 2 anni fa
parent
commit
39aed4fa92
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5 5
      src/views/file/collection.vue

+ 5 - 5
src/views/file/collection.vue

@@ -410,12 +410,12 @@ const setdutyUser=async()=>{
         contractId: treecontractId.value,
     })
     if (!error && code === 200) {
-            if(contractType===1){  
-            dutyUser.value=data?.contractorUnitName||''
-            }else if(contractType===2){
-                    dutyUser.value=data?.constructionUnitName||''
-            }else if(contractType===3){
+            if(data?.contractType===1){  
+            dutyUser.value=data?.constructionUnitName||''
+            }else if(data?.ontractType===2){
                     dutyUser.value=data?.supervisionUnitName||''
+            }else if(data?.contractType===3){
+                    dutyUser.value=data?.contractorUnitName||''
             }
     }