Forráskód Böngészése

检索时分页页数有问题

zhuliu 1 éve
szülő
commit
22e362b240

+ 5 - 1
src/views/analyse/report/create/index.vue

@@ -27,7 +27,7 @@
           <el-input v-model="queryParams.name" placeholder="请输入模板名称" size="small"></el-input>
         </el-form-item>
         <el-form-item>
-          <el-button type="" size="small" @click="getTemplateList">查询</el-button>
+          <el-button type="" size="small" @click="getTemplateList1">查询</el-button>
         </el-form-item>
       </el-form>
       <el-table ref="multipleTable" border :data="templateList" header-row-class-name="custom-table-header" v-loading="loading2">
@@ -247,6 +247,10 @@ export default {
         this.showList = true
       })
     },
+    getTemplateList1(){
+      this.queryParams.current = 1
+      this.getTemplateList()
+    },
     async getTemplateList() {
       try {
         const response = await this.$api.getNewTemplateList(this.queryParams)

+ 5 - 1
src/views/analyse/report/record/index.vue

@@ -11,7 +11,7 @@
               <el-input v-model="queryParams.createBy" size="small" placeholder="请输入创建人"></el-input>
             </el-form-item>
             <el-form-item>
-              <el-button type="" size="small" @click="getList">查询</el-button>
+              <el-button type="" size="small" @click="init">查询</el-button>
             </el-form-item>
           </el-form>
         </el-header>
@@ -86,6 +86,10 @@ export default {
     this.getList()
   },
   methods: {
+    init(){
+      this.queryParams.page = 1;
+      this.getList();
+    },
     handleCurrentChange(val) {
       this.queryParams.page = val;
       this.getList();

+ 5 - 1
src/views/client/index.vue

@@ -14,7 +14,7 @@
             <el-input v-model="queryParams.name" size="small" placeholder="请输入用户名"></el-input>
           </el-form-item>
           <el-form-item>
-            <el-button type="" size="small" @click="getList">查询</el-button>
+            <el-button type="" size="small" @click="init">查询</el-button>
             <el-button type="primary" size="small" @click="handleAdd()" v-if="!choseClient">新增</el-button>
           </el-form-item>
         </el-form>
@@ -153,6 +153,10 @@ export default {
     this.getAllTenantList()
   },
   methods: {
+    init(){
+      this.queryParams.current = 1
+      this.getList()
+    },
     //检索
     search() {
 

+ 5 - 1
src/views/components/dialog/ClientTable.vue

@@ -11,7 +11,7 @@
             ></el-input>
           </el-form-item>
           <el-form-item>
-            <el-button type="" size="small" @click="getList">查询</el-button>
+            <el-button type="" size="small" @click="init">查询</el-button>
             <el-button type="primary" size="small" @click="submit"
               >保存</el-button
             >
@@ -125,6 +125,10 @@ export default {
   computed: {},
 
   methods: {
+    init(){
+      this.queryParams.current = 1
+      this.getList()
+    },
 	//跟新选择框
 	updateCheck(){
 		this.showCheck = false;

+ 5 - 1
src/views/project/patentCollection/components/drawer/MergeInventor.vue

@@ -12,7 +12,7 @@
                 <el-input v-model="queryParams.name" size="small" placeholder="请输入名称"></el-input>
               </el-form-item>
               <el-form-item>
-                <el-button type="primary" size="small" @click="getList">查询</el-button>
+                <el-button type="primary" size="small" @click="init">查询</el-button>
               </el-form-item>
             </el-form>
             <!-- 后端没有根据检索式检索 -->
@@ -93,6 +93,10 @@ export default {
   mounted() {
   },
   methods: {
+    init(){
+      this.queryParams.pageNum = 1
+      this.getList()
+    },
     // 子组件传来的消息
     close2() {
       this.getList()

+ 5 - 1
src/views/project/patentDetails/components/patentMessage/PatentFamily.vue

@@ -14,7 +14,7 @@
             <el-input v-model="queryParams2.patentNo" size="small" placeholder="请输入专利号"></el-input>
           </el-form-item>
           <el-form-item>
-            <el-button type="" size="small" @click="getList">查询</el-button>
+            <el-button type="" size="small" @click="init">查询</el-button>
           </el-form-item>
         </el-form>
       </el-header>
@@ -99,6 +99,10 @@ export default {
     this.onChange()
   },
   methods: {
+    init(){
+      this.queryParams2.pageNum =1
+      this.getList()
+    },
     getList() {
       this.loading = true
       let params = {