소스 검색

回传以及切换小程序优化

pansl 1 년 전
부모
커밋
261f5bb8ff
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 1
      src/views/payBack/juliangAccount/tabs/logList/index.vue
  2. 2 1
      src/views/promotion/promotionList/index.vue

+ 2 - 1
src/views/payBack/juliangAccount/tabs/logList/index.vue

@@ -192,7 +192,8 @@ const initAdNameOtion = (params?: object) => {
 }
 
 const resetQuery = () => {
-  reset()
+  query.value = Object.assign({ page: query.value.page, limit: query.value.limit, miniprogram_id: query.value.miniprogram_id });
+  search()
 }
 const openType = (type: string, data: object) => {
   current.value = data;

+ 2 - 1
src/views/promotion/promotionList/index.vue

@@ -242,7 +242,8 @@ const deletePromotion = (row: object) => {
 }
 
 const resetQuery = () => {
-  reset()
+  query.value = Object.assign({ page: query.value.page, limit: query.value.limit, miniprogram_id: query.value.miniprogram_id, is_config: query.value.is_config });
+  search()
 }
 const openType = (type: string, data: object) => {
   current.value = data;