From 0b25ddd8815f90a3f16c7900c624823298c7c0b0 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Fri, 08 Sep 2023 15:44:17 +0800
Subject: [PATCH] 修改
---
src/views/main/index.vue | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/views/main/index.vue b/src/views/main/index.vue
index 1956d99..3fcfa1a 100644
--- a/src/views/main/index.vue
+++ b/src/views/main/index.vue
@@ -98,13 +98,13 @@
<pagination
v-show="total>0"
:total="total"
- :page.sync="queryParams.pageIndex"
+ :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<form-dialog ref="formDialog"></form-dialog>
<el-dialog title="新增信息" :visible.sync="addForm" width="75%" append-to-body>
- <form-fill ref="formFill"></form-fill>
+ <form-fill ref="formFill" @closeDialog="closeAdd()"></form-fill>
</el-dialog>
</div>
</template>
@@ -128,7 +128,7 @@
expertTypes: [],
expertList: [],
queryParams: {
- pageIndex: 1,
+ pageNum: 1,
pageSize: 10,
bigClassify: null,
smallClassify: null,
@@ -205,7 +205,7 @@
return null;
},
handleQuery() {
- this.queryParams.pageIndex = 1
+ this.queryParams.pageNum = 1
if(this.classiFy.length>0){
this.queryParams.bigClassify = this.classiFy[0]
this.queryParams.smallClassify = this.classiFy[1]
@@ -247,6 +247,10 @@
this.$refs.formFill.changeSource(2)
},1000)
},
+ closeAdd(){
+ this.addForm = false
+ this.getList()
+ },
/** 修改按钮操作 */
handleUpdate(row) {
getInfo(row.expertId).then((res)=>{
--
Gitblit v1.9.2