From ea20ca083f7e5a5d2ed7521f3a75209d4516f6c7 Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: Fri, 01 Apr 2022 16:09:33 +0800
Subject: [PATCH] 自查清单
---
src/views/safetyproduction/checklistself.vue | 23 +++++++++++++++++------
1 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/src/views/safetyproduction/checklistself.vue b/src/views/safetyproduction/checklistself.vue
index ecde465..3f9a1df 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,10 +123,16 @@
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) {
- console.log(res.data);
this.list = res.data.result.records;
this.recordTotal = res.data.result.total;
this.pageSize = res.data.result.size;
@@ -129,7 +141,6 @@
});
},
handleClick(val) {
- console.log(val)
if(val.status==-1){
this.$router.push({
path:"/new",
@@ -193,4 +204,4 @@
background-color: #034ea2;
border: 1px solid #034ea2;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.2