From 7f9eb61d710569dd01daf33dfe88cbc2c30947e9 Mon Sep 17 00:00:00 2001
From: songhuangfeng123 <shf18767906695@163.com>
Date: Fri, 01 Apr 2022 10:32:21 +0800
Subject: [PATCH] fix
---
src/views/safetyproduction/checklistself.vue | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/src/views/safetyproduction/checklistself.vue b/src/views/safetyproduction/checklistself.vue
index dc7b8f3..8445c00 100644
--- a/src/views/safetyproduction/checklistself.vue
+++ b/src/views/safetyproduction/checklistself.vue
@@ -12,7 +12,7 @@
<el-date-picker
v-model="listQuery.filter.inspectionStartTime"
type="date"
- format="yyyy 年 MM 月 dd 日"
+ format="yyyy 年 MM 月 dd 日"
placeholder="选择日期"
>
</el-date-picker>
@@ -23,7 +23,7 @@
<el-input v-model="listQuery.filter.inspectorName"></el-input>
</el-form-item>
</el-col>
- <el-col :span="4" style="text-align: center">
+ <el-col :span="8" style="text-align: center">
<el-button
type="primary"
icon="el-icon-search"
@@ -38,6 +38,12 @@
@click="jump()"
>新增</el-button
>
+ <el-button
+ type="primary"
+ class="btns"
+ @click="resetPage()"
+ >重置</el-button
+ >
</el-col>
</el-row>
</el-form>
@@ -105,7 +111,7 @@
status: "",
},
pageIndex: 1,
- pageSize: 5,
+ pageSize: 10,
},
list: [],
pageSize: 10,
@@ -117,6 +123,13 @@
this.safetySelfInspectionL();
},
methods: {
+ resetPage(){
+ this.listQuery.filter={}
+ this.listQuery.pageIndex=1
+ this.listQuery.pageSize=10
+ this.safetySelfInspectionL();
+ },
+
async safetySelfInspectionL() {
var res = await safetySelfInspectionList(this.listQuery).then((res) => {
if (res.data.code == 200) {
@@ -191,4 +204,4 @@
background-color: #034ea2;
border: 1px solid #034ea2;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.2