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