Ver código fonte

记录表报告单切换

duy 2 anos atrás
pai
commit
47e5e9f7fa
1 arquivos alterados com 4 adições e 1 exclusões
  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) //加入新数据
     })
+    }
+     
 
 }