lrf402788946 4 years ago
parent
commit
68cff7a7f8

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

@@ -19,7 +19,7 @@ export default {
   created() {},
   methods: {
     searchData() {
-      this.$emit('toSearch', this.input && this.input === '' ? undefined : this.input);
+      this.$emit('toSearch', !this.input ? undefined : this.input);
     },
   },
   computed: {

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

@@ -47,6 +47,7 @@ export default {
     ...code({ codeQuery: 'query' }),
     // 查询相关
     async search({ skip = 0, limit = 5, ...info } = {}) {
+      console.log(info);
       let res = await this.query({ skip, limit, status: '2', type: '1', ...info });
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);

+ 1 - 1
src/views/market/list/roadshow.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="roadshow">
-    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="pageSize">
+    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="pageSize" searchModel="title">
       <component :is="model" :list="list"></component>
     </list-page>
     <template v-else>