lrf402788946 hace 4 años
padre
commit
a0d8d96de2

+ 3 - 2
src/views/market/list/business.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="business">
-    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search">
+    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="pageSize">
       <component :is="model" :list="list"></component>
     </list-page>
     <template v-else>
@@ -29,6 +29,7 @@ export default {
       list: [],
       total: 0,
       detail: {},
+      pageSize: 10,
     };
   },
   created() {
@@ -38,7 +39,7 @@ export default {
     ...transaction({ getTran: 'query', createTran: 'create' }),
     ...product(['query', 'fetch']),
     // 查询相关
-    async search({ skip = 0, limit = 5, ...info } = {}) {
+    async search({ skip = 0, limit = this.pageSize, ...info } = {}) {
       // TODO: 查询
       let res = await this.query({ skip, limit, status: '2', type: '2', ...info });
       if (this.$checkRes(res)) {

+ 3 - 2
src/views/market/list/expert.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="expert">
-    <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" :pageSize="pageSize">
       <component :is="model" :list="list"></component>
     </list-page>
     <template v-else>
@@ -32,6 +32,7 @@ export default {
       dropList: [],
       total: 0,
       detail: {},
+      pageSize: 8,
     };
   },
   created() {
@@ -43,7 +44,7 @@ export default {
     ...expert(['query', 'fetch']),
     ...code({ codeQuery: 'query' }),
     // 查询相关
-    async search({ skip = 0, limit = 5, ...info } = {}) {
+    async search({ skip = 0, limit = this.pageSize, ...info } = {}) {
       // TODO: 查询
       let res = await this.query({ skip, limit, ...info });
       if (this.$checkRes(res)) {

+ 3 - 2
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">
+    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="pageSize">
       <component :is="model" :list="list"></component>
     </list-page>
     <template v-else>
@@ -28,6 +28,7 @@ export default {
       list: [],
       total: 0,
       detail: {},
+      pageSize: 4,
     };
   },
   created() {
@@ -36,7 +37,7 @@ export default {
   methods: {
     ...mapRoadShow(['query', 'fetch']),
     // 查询相关
-    async search({ skip = 0, limit = 5, ...info } = {}) {
+    async search({ skip = 0, limit = this.pageSize, ...info } = {}) {
       // TODO: 查询
       let res = await this.query({ skip, limit, ...info });
       if (this.$checkRes(res)) {

+ 3 - 2
src/views/market/list/technolgy.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="technolgy">
-    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search">
+    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="pageSize">
       <component :is="model" :list="list"></component>
     </list-page>
     <template v-else>
@@ -29,6 +29,7 @@ export default {
       list: [],
       total: 0,
       detail: {},
+      pageSize: 10,
     };
   },
   created() {
@@ -38,7 +39,7 @@ export default {
     ...transaction({ getTran: 'query', createTran: 'create' }),
     ...product(['query', 'fetch']),
     // 查询相关
-    async search({ skip = 0, limit = 5, ...info } = {}) {
+    async search({ skip = 0, limit = this.pageSize, ...info } = {}) {
       // TODO: 查询
       let res = await this.query({ skip, limit, status: '2', type: '0', ...info });
       if (this.$checkRes(res)) {

+ 3 - 2
src/views/news/list/active.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="active">
-    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="10">
+    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="pageSize">
       <component :is="model" :list="list"></component>
     </list-page>
     <template v-else>
@@ -31,6 +31,7 @@ export default {
       detail: {},
       // 栏目信息
       column: {},
+      pageSize: 10,
     };
   },
   async created() {
@@ -40,7 +41,7 @@ export default {
   methods: {
     ...column({ columnQuery: 'query' }),
     ...news(['query', 'fetch']),
-    async search({ skip = 0, limit = 10, ...info } = {}) {
+    async search({ skip = 0, limit = this.pageSize, ...info } = {}) {
       // TODO: 查询
       let res = await this.query({ skip, limit, column_id: this.column.id, ...info });
       if (this.$checkRes(res)) {

+ 3 - 2
src/views/news/list/front.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="front">
-    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="10">
+    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="pageSize">
       <component :is="model" :list="list"></component>
     </list-page>
     <template v-else>
@@ -31,6 +31,7 @@ export default {
       detail: {},
       // 栏目信息
       column: {},
+      pageSize: 10,
     };
   },
   async created() {
@@ -40,7 +41,7 @@ export default {
   methods: {
     ...column({ columnQuery: 'query' }),
     ...news(['query', 'fetch']),
-    async search({ skip = 0, limit = 10, ...info } = {}) {
+    async search({ skip = 0, limit = this.pageSize, ...info } = {}) {
       // TODO: 查询
       let res = await this.query({ skip, limit, column_id: this.column.id, ...info });
       if (this.$checkRes(res)) {

+ 3 - 2
src/views/news/list/info.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="info">
-    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="10">
+    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="pageSize">
       <component :is="model" :list="list"></component>
     </list-page>
     <template v-else>
@@ -31,6 +31,7 @@ export default {
       detail: {},
       // 栏目信息
       column: {},
+      pageSize: 10,
     };
   },
   async created() {
@@ -40,7 +41,7 @@ export default {
   methods: {
     ...column({ columnQuery: 'query' }),
     ...news(['query', 'fetch']),
-    async search({ skip = 0, limit = 10, ...info } = {}) {
+    async search({ skip = 0, limit = this.pageSize, ...info } = {}) {
       // TODO: 查询
       let res = await this.query({ skip, limit, column_id: this.column.id, ...info });
       if (this.$checkRes(res)) {

+ 3 - 2
src/views/news/list/notice.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="notice">
-    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="10">
+    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="pageSize">
       <component :is="model" :list="list"></component>
     </list-page>
     <template v-else>
@@ -31,6 +31,7 @@ export default {
       detail: {},
       // 栏目信息
       column: {},
+      pageSize: 10,
     };
   },
   async created() {
@@ -40,7 +41,7 @@ export default {
   methods: {
     ...column({ columnQuery: 'query' }),
     ...news(['query', 'fetch']),
-    async search({ skip = 0, limit = 10, ...info } = {}) {
+    async search({ skip = 0, limit = this.pageSize, ...info } = {}) {
       // TODO: 查询
       let res = await this.query({ skip, limit, column_id: this.column.id, ...info });
       if (this.$checkRes(res)) {

+ 2 - 2
src/views/techolchat/list/question.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="question">
-    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="10">
+    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="pageSize">
       <component :is="model" :list="list"></component>
     </list-page>
     <template v-else>
@@ -37,7 +37,7 @@ export default {
   },
   methods: {
     ...mapQuestion(['query', 'fetch']),
-    async search({ skip = 0, limit = 10, ...info } = {}) {
+    async search({ skip = 0, limit = this.pageSize, ...info } = {}) {
       // TODO: 查询
       let res = await this.query({ skip, limit, ...info });
       if (this.$checkRes(res)) {

+ 2 - 2
src/views/techolchat/list/work.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="work">
-    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="10">
+    <list-page v-bind="$attrs" :total="total" v-if="!id" @toSearch="search" :pageSize="pageSize">
       <component :is="model" :list="list"></component>
     </list-page>
     <template v-else>
@@ -40,7 +40,7 @@ export default {
   methods: {
     ...column({ columnQuery: 'query' }),
     ...news(['query', 'fetch']),
-    async search({ skip = 0, limit = 10, ...info } = {}) {
+    async search({ skip = 0, limit = this.pageSize, ...info } = {}) {
       // TODO: 查询
       let res = await this.query({ skip, limit, column_id: this.column.id, ...info });
       if (this.$checkRes(res)) {