bug修复

This commit is contained in:
hongchao 2024-12-31 17:05:06 +08:00
parent 63630742cb
commit 34ebf96d6e
2 changed files with 16 additions and 11 deletions

View File

@ -252,10 +252,11 @@ export default {
this.deviceTypeList = []
this.queryParams.startTime=''
this.queryParams.endTime=''
this.queryParams.typeId = ''
this.handleQuery();
},
//-change
//-change
deviceTypeChange(val) {
console.log('2222222222',val)
if (val.length > 0) {

View File

@ -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">
@ -655,7 +656,9 @@
pageNum: 1,
pageSize: 10,
keyWord:undefined,
status: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.queryParams.keyWord = null;
this.time=[]
await this.handleQuery();
},
/** 搜索按钮操作 */
handleQuery() {
async handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},