对外报告管理 搜索传参修改

This commit is contained in:
zyx.net
2022-07-28 11:07:25 +08:00
parent 6f8f0c7e56
commit e6a99db73e
+8 -5
View File
@@ -82,7 +82,7 @@
<span>{{$t('uploadedBy')}}</span>
</div>
<a-input class="box-input" style='width: 264px' :placeholder="$t('PleaseEnter')+$t('uploadedBy')"
v-model="queryParams.uploadedBy"></a-input>
v-model="queryParams.updateBy"></a-input>
</div>
</a-col>
<a-col :md="6" :sm="8">
@@ -96,7 +96,7 @@
@change="onChange"
format="YYYY-MM-DD"
:getCalendarContainer="(trigger) => trigger.parentNode"
v-model="queryParams.uploadTime"
v-model="queryParams.updateTime"
:disabled="false"/>
</div>
</a-col>
@@ -714,6 +714,9 @@ export default {
//搜索
searchQuery(item) {
this.pageNo = 1
if(this.queryParams.updateTime){
this.queryParams.updateTime = this.queryParams.updateTime.join(',')
}
this.loadData(item)
},
//清空
@@ -799,12 +802,12 @@ export default {
downloadFile('split/sarFileSplitItems/exportSplitInfoZip', name, query, this.selectClear)
},
onChange(value,dateString){
if (this.queryParams.uploadTime && this.queryParams.uploadTime.length > 0) {
if (this.queryParams.updateTime && this.queryParams.updateTime.length > 0) {
let dateOne = moment(dateString[0]).format('YYYY-MM-DD')
let dateTwo = moment(dateString[1]).format('YYYY-MM-DD')
this.queryParams.uploadTime = [dateOne, dateTwo]
this.queryParams.updateTime = [dateOne, dateTwo]
} else {
this.queryParams.uploadTime = []
this.queryParams.updateTime = []
// this.queryParamOne[item + '_name'] = []
}
},