54163aac by zhen

更新时间清空后查询错误

1 parent 64f06602
......@@ -119,7 +119,7 @@ export default {
ruleForm: {
username: '',
userId: '',
times: ''
times: ['', '']
},
tableData: [],
pagination: null,
......@@ -135,8 +135,8 @@ export default {
} = await getResourceMonitorList({
username: this.ruleForm.username,
userId: this.ruleForm.userId,
startTime: this.ruleForm.times[0],
endTime: this.ruleForm.times[1],
startTime: this.ruleForm.times ? this.ruleForm.times[0] : '',
endTime: this.ruleForm.times ? this.ruleForm.times[1] : '',
pageNo: this.pagination.page,
row: this.pagination.size
})
......@@ -150,7 +150,7 @@ export default {
this.ruleForm = {
username: '',
userId: '',
times: ''
times: ['', '']
}
this.handleQueryOrderList()
},
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!