lrf402788946 4 years ago
parent
commit
6253f5a34c
2 changed files with 3 additions and 2 deletions
  1. 1 1
      src/components/list/tabs.vue
  2. 2 1
      src/views/market/list/achieve.vue

+ 1 - 1
src/components/list/tabs.vue

@@ -27,7 +27,7 @@ export default {
   created() {},
   methods: {
     change(data) {
-      this.$emit('tabsChange', data);
+      this.$emit('toSearch', data);
     },
   },
   computed: {

+ 2 - 1
src/views/market/list/achieve.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="achieve">
-    <list-page :displayList="firDroplist" :dropList="dropList" v-bind="$attrs" :total="total" v-if="!id" @toSearch="search">
+    <list-page :displayList="firDroplist" :dropList="dropList" v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" @toChangeTab="search">
       <component :is="model" :list="list"></component>
     </list-page>
     <template v-else>
@@ -45,6 +45,7 @@ export default {
     ...code({ codeQuery: 'query' }),
     // 查询相关
     async search({ skip = 0, limit = 5, ...info } = {}) {
+      console.log('in function:');
       // TODO: 查询
       let res = await this.query({ skip, limit, status: '2', type: '1', ...info });
       if (this.$checkRes(res)) {