Explorar o código

fix 档案推送 bug

ylong hai 8 meses
pai
achega
995a6083ea

+ 1 - 2
src/components/CommonPage/CommonTable.vue

@@ -30,7 +30,6 @@
   import { EleMessage } from 'ele-admin-plus/es';
   import { useDictData } from '@/utils/use-dict-data';
   import { download, toFormData, checkDownloadRes } from '@/utils/common';
-  import { method } from 'lodash-es';
 
   const slotArray = useSlots();
 
@@ -75,7 +74,7 @@
 
   /** 搜索 */
   const reload = (where) => {
-    tableRef.value?.reload?.({ where, page: 1 });
+    tableRef.value?.reload?.({ where, pageNum: 1 });
   };
 
   /** 批量操作 */

+ 10 - 2
src/views/data/productPush/components/page-search.vue

@@ -75,7 +75,11 @@
             initKeys.createTimeStart = value ? value[0] : '';
             initKeys.createTimeEnd = value ? value[1] : '';
             initKeys.createTimeRange = value || [];
-            searchRef.value?.setData(initKeys);
+            searchRef.value?.setData({
+              createTimeStart: initKeys.createTimeStart,
+              createTimeEnd: initKeys.createTimeEnd,
+              createTimeRange: initKeys.createTimeRange
+            });
           }
         }
       },
@@ -92,7 +96,11 @@
             initKeys.pushTimeStart = value ? value[0] : '';
             initKeys.pushTimeEnd = value ? value[1] : '';
             initKeys.pushTimeRange = value || [];
-            searchRef.value?.setData(initKeys);
+            searchRef.value?.setData({
+              pushTimeStart: initKeys.pushTimeStart,
+              pushTimeEnd: initKeys.pushTimeEnd,
+              pushTimeRange: initKeys.pushTimeRange
+            });
           }
         }
       }

+ 2 - 2
src/views/data/productPush/index.vue

@@ -141,7 +141,7 @@
 
     // 刷新表格
     function reload(where) {
-        pageRef.value?.reload({ page: 1, ...where });
+        pageRef.value?.reload({ ...where });
     }
 
     // 导出excel
@@ -154,7 +154,7 @@
         pageRef.value.messageBoxConfirm({
             message: '确认删除选中的商品档案?',
             fetch: () => {
-                return request.post('/bookpush/pusherp/remove', { id: row.id });
+                return request.post('/bookpush/pusherp/remove?id=' + row.id);
             }
         });
     }