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