|
@@ -356,7 +356,9 @@ export default {
|
|
|
checked: true,
|
|
|
fixed: 'right',
|
|
|
width: '200px',
|
|
|
- sorter: (a, b) => new Date(a.startTime) - new Date(b.startTime)
|
|
|
+ sorter: (a, b) => {
|
|
|
+ return new Date(a.startTime) - new Date(b.startTime)
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
{
|
|
@@ -406,14 +408,11 @@ export default {
|
|
|
periodTypeMap: {},
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
|
+ console.log(parameter)
|
|
|
parameter = {
|
|
|
...parameter,
|
|
|
...this.queryParam,
|
|
|
- record: this.status === 3 ? 1 : null,
|
|
|
- dataScope: this.status === 3 ? {
|
|
|
- sortBy: 'desc',
|
|
|
- sortName: 'actual_start_time'
|
|
|
- } : {}
|
|
|
+ record: this.status === 3 ? 1 : null
|
|
|
}
|
|
|
return getCheckJobPage(Object.assign(parameter, this.queryParam))
|
|
|
.then(res => {
|
|
@@ -470,6 +469,9 @@ export default {
|
|
|
this.optionAlertShow = false
|
|
|
}
|
|
|
},
|
|
|
+ tableChange (pagination, filters, sorter) {
|
|
|
+ console.log(pagination, filters, sorter)
|
|
|
+ },
|
|
|
batchDelete (id) {
|
|
|
let ids = []
|
|
|
if (this.BaseTool.String.isBlank(id)) {
|