|
@@ -164,8 +164,8 @@ export default {
|
|
tableData: [],
|
|
tableData: [],
|
|
formData: {
|
|
formData: {
|
|
dateRange: [
|
|
dateRange: [
|
|
- moment().subtract(1, 'days').valueOf(),
|
|
|
|
- moment().valueOf()
|
|
|
|
|
|
+ // moment().subtract(1, 'days').valueOf(),
|
|
|
|
+ // moment().valueOf()
|
|
],
|
|
],
|
|
},
|
|
},
|
|
pickerOptions: {
|
|
pickerOptions: {
|
|
@@ -436,15 +436,15 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
this.formData.dateRange = [
|
|
this.formData.dateRange = [
|
|
- moment().subtract(1, 'days').valueOf(),
|
|
|
|
- moment().valueOf()
|
|
|
|
|
|
+ // moment().subtract(1, 'days').valueOf(),
|
|
|
|
+ // moment().valueOf()
|
|
]
|
|
]
|
|
},
|
|
},
|
|
fetchTableData() {
|
|
fetchTableData() {
|
|
findDeviceRunRecord({
|
|
findDeviceRunRecord({
|
|
collectEntityId: this.collectEntityId,
|
|
collectEntityId: this.collectEntityId,
|
|
- startTime: this.formData.dateRange[0].valueOf(),
|
|
|
|
- endTime: this.formData.dateRange[1].valueOf(),
|
|
|
|
|
|
+ startTime: this.formData.dateRange && this.formData.dateRange.length > 0 && this.formData.dateRange[0].valueOf() || null,
|
|
|
|
+ endTime: this.formData.dateRange && this.formData.dateRange.length > 0 && this.formData.dateRange[1].valueOf() || null,
|
|
current: this.paginationOption.currentPage,
|
|
current: this.paginationOption.currentPage,
|
|
pageSize: this.paginationOption.pageSize,
|
|
pageSize: this.paginationOption.pageSize,
|
|
}).then(res => {
|
|
}).then(res => {
|