// 解决不输入某个参数传数据的时候就不传的问题:
search() {
const params = {
pageNo: this.searchForm.pageNo,
pageSize: this.searchForm.pageSize
}
if (this.searchForm.status !== '') {
params.status = this.searchForm.status
}
if (this.searchForm.taskName !== '') {
params.taskName = this.searchForm.taskName
}
if (this.time !== '') {
this.searchForm.createTime = Date.parse(this.time)
params.createTime = this.searchForm.createTime
}
VideoSeriesParallelApi.getTaskList(params).then(response => {
console.log(response.data.datas)
})
}