bug修复
This commit is contained in:
parent
63630742cb
commit
34ebf96d6e
|
|
@ -252,6 +252,7 @@ export default {
|
|||
this.deviceTypeList = []
|
||||
this.queryParams.startTime=''
|
||||
this.queryParams.endTime=''
|
||||
this.queryParams.typeId = ''
|
||||
this.handleQuery();
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="app-container app-container-content">
|
||||
<el-form :model="queryParams" ref="queryFormRef" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-row>
|
||||
<el-form-item prop="deviceName">
|
||||
<el-input
|
||||
|
|
@ -28,7 +28,8 @@
|
|||
value-format="yyyy-MM-dd"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期">
|
||||
end-placeholder="结束日期"
|
||||
>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item prop="czcompanyName">
|
||||
|
|
@ -656,6 +657,8 @@
|
|||
pageSize: 10,
|
||||
keyWord:undefined,
|
||||
status: undefined,
|
||||
lowerBound: undefined,
|
||||
upperBound: undefined,
|
||||
},
|
||||
//卡片集合
|
||||
cardList:[],
|
||||
|
|
@ -695,8 +698,8 @@
|
|||
getList() {
|
||||
this.loading = true;
|
||||
if(this.time.length>0){
|
||||
const dateStart = new Date(time[0])
|
||||
const dateEnd = new Date(time[1])
|
||||
const dateStart = new Date(this.time[0])
|
||||
const dateEnd = new Date(this.time[1])
|
||||
this.queryParams.startTime=dateStart.toLocaleDateString('en-CA')
|
||||
this.queryParams.endTime=dateEnd.toLocaleDateString('en-CA')
|
||||
}else{
|
||||
|
|
@ -768,14 +771,15 @@
|
|||
},
|
||||
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
async resetQuery() {
|
||||
await this.resetForm("queryForm");
|
||||
this.dateRange=[]
|
||||
this.queryParams.keyWord = null;
|
||||
this.handleQuery();
|
||||
this.time=[]
|
||||
await this.handleQuery();
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
async handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue