修改对外报告管理数据上传问题
This commit is contained in:
@@ -96,7 +96,7 @@
|
||||
@change="onChange"
|
||||
format="YYYY-MM-DD"
|
||||
:getCalendarContainer="(trigger) => trigger.parentNode"
|
||||
v-model="queryParams.createTime"
|
||||
v-model="queryParams.time"
|
||||
:disabled="false"/>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -721,8 +721,8 @@ export default {
|
||||
//搜索
|
||||
searchQuery(item) {
|
||||
this.pageNo = 1
|
||||
if(this.queryParams.createTime){
|
||||
this.queryParams.createTime = this.queryParams.createTime.join(',')
|
||||
if(this.queryParams.time){
|
||||
this.queryParams.time = this.queryParams.time.join(',')
|
||||
}
|
||||
this.loadData(item)
|
||||
},
|
||||
@@ -792,12 +792,12 @@ export default {
|
||||
this.parameter.menu_id = this.menuId
|
||||
},
|
||||
onChange(value,dateString){
|
||||
if (this.queryParams.createTime && this.queryParams.createTime.length > 0) {
|
||||
if (this.queryParams.time && this.queryParams.time.length > 0) {
|
||||
let dateOne = moment(dateString[0]).format('YYYY-MM-DD')
|
||||
let dateTwo = moment(dateString[1]).format('YYYY-MM-DD')
|
||||
this.queryParams.createTime = [dateOne, dateTwo]
|
||||
this.queryParams.time = [dateOne, dateTwo]
|
||||
} else {
|
||||
this.queryParams.createTime = []
|
||||
this.queryParams.time = []
|
||||
// this.queryParamOne[item + '_name'] = []
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user