duy 8 miesięcy temu
rodzic
commit
5c21f1fea9
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      src/views/tentative/collect/monthly.vue

+ 4 - 4
src/views/tentative/collect/monthly.vue

@@ -235,8 +235,8 @@ const betweenTimeUpdate = ({ arr, query }) => {
 //搜索
 const searchClick = () => {
     searchForm.value.current = 1
-    searchForm.value.ids = testId.value.join(',')
-    console.log(testId.value, '11111111')
+    
+    searchForm.value.ids = testId.value?.join(',')
     getTableData()
 }
 
@@ -281,13 +281,13 @@ const getTableData = async () => {
     tableLoading.value = true
     const { error, code, data } = await getMonthPage({
             ...searchForm.value,
-            ids:'1635200237830144002',
+        
             contractId:contractId.value,
         })
         tableLoading.value = false
         //判断状态
         if (!error && code === 200) {
-            let resdata = getArrValue(data['records'])
+            let resdata = getArrValue(data?.records)||[]
         let arr = []
         resdata.forEach((ele)=>{
             let obj1 = {