소스 검색

记录表报告单切换

duy 2 년 전
부모
커밋
47e5e9f7fa
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/views/tentative/detect/test-form.vue

+ 4 - 1
src/views/tentative/detect/test-form.vue

@@ -923,7 +923,8 @@ const tableFormSaveClick = async () => {
 }
 
 const setAllListData = (curform) => {
-     curform.forEach((item)=>{
+    if(curform){
+        curform.forEach((item)=>{
         let pkeyId = item.pkeyId;
         item.oper = false
         
@@ -945,6 +946,8 @@ const setAllListData = (curform) => {
 
         alllistData.value.push(item) //加入新数据
     })
+    }
+     
 
 }