From 911e4947ed8884475d9cb0d57f286dd71143d70f Mon Sep 17 00:00:00 2001
From: zhaofang <752743406@qq.com>
Date: Wed, 8 Jun 2022 19:39:39 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/case/ManageList.vue | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/src/views/case/ManageList.vue b/src/views/case/ManageList.vue
index 2bf648af..2898f85a 100644
--- a/src/views/case/ManageList.vue
+++ b/src/views/case/ManageList.vue
@@ -14,9 +14,9 @@
-
+
- 搜索
+ 搜索
重置
@@ -28,9 +28,9 @@
{{ scope.row.title }}
-
-
-
+
+
@@ -157,13 +157,20 @@ export default {
this.getData();
},
methods: {
+ inputOn() {
+ this.$forceUpdate();
+ },
reset() {
this.queryObj.isTop = '';
this.queryObj.keyWord = '';
+ this.queryObj.pageIndex = 1;
this.getData()
},
//获取案例列表数据
- getData() {
+ getData(num) {
+ if(num === 1) {
+ this.queryObj.pageIndex = 1;
+ }
apiCase
.isTopList(this.queryObj)
.then(res => {
@@ -186,7 +193,7 @@ export default {
},
handleSizeChange(val) {
this.queryObj.pageSize=val;
- this.getData();
+ this.getData(1);
},
handleCurrentChange(val) {
this.queryObj.pageIndex=val;