|
|
@ -132,38 +132,43 @@ export function useTable( |
|
|
|
pageNo: 1, |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 2147483647 |
|
|
|
pageSize: 2147483647 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Promise.all([ |
|
|
|
Promise.all([ |
|
|
|
queryTaskListInTaskGroupQueueById(params), |
|
|
|
queryTaskListInTaskGroupQueueById(params), |
|
|
|
queryTaskGroupListPaging(taskGroupSearchParams) |
|
|
|
queryTaskGroupListPaging(taskGroupSearchParams) |
|
|
|
]).then((values: any[]) => { |
|
|
|
]).then( |
|
|
|
const taskGroupList = values[1].totalList |
|
|
|
(values: any[]) => { |
|
|
|
variables.totalPage = values[0].totalPage |
|
|
|
const taskGroupList = values[1].totalList |
|
|
|
variables.tableData = values[0].totalList.map( |
|
|
|
variables.totalPage = values[0].totalPage |
|
|
|
(item: any, unused: number) => { |
|
|
|
variables.tableData = values[0].totalList.map( |
|
|
|
let taskGroupName = '' |
|
|
|
(item: any, unused: number) => { |
|
|
|
if (taskGroupList) { |
|
|
|
let taskGroupName = '' |
|
|
|
const taskGroup = _.find(taskGroupList, { id: item.groupId }) |
|
|
|
if (taskGroupList) { |
|
|
|
if (taskGroup) { |
|
|
|
const taskGroup = _.find(taskGroupList, { id: item.groupId }) |
|
|
|
taskGroupName = taskGroup.name |
|
|
|
if (taskGroup) { |
|
|
|
|
|
|
|
taskGroupName = taskGroup.name |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
item.taskGroupName = taskGroupName |
|
|
|
item.taskGroupName = taskGroupName |
|
|
|
item.createTime = format( |
|
|
|
item.createTime = format( |
|
|
|
parseTime(item.createTime), |
|
|
|
parseTime(item.createTime), |
|
|
|
'yyyy-MM-dd HH:mm:ss' |
|
|
|
'yyyy-MM-dd HH:mm:ss' |
|
|
|
) |
|
|
|
) |
|
|
|
item.updateTime = format( |
|
|
|
item.updateTime = format( |
|
|
|
parseTime(item.updateTime), |
|
|
|
parseTime(item.updateTime), |
|
|
|
'yyyy-MM-dd HH:mm:ss' |
|
|
|
'yyyy-MM-dd HH:mm:ss' |
|
|
|
) |
|
|
|
) |
|
|
|
return { |
|
|
|
return { |
|
|
|
...item |
|
|
|
...item |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
|
) |
|
|
|
}, |
|
|
|
variables.loadingRef = false |
|
|
|
() => {} |
|
|
|
}) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
variables.loadingRef = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return { getTableData, variables, columns } |
|
|
|
return { getTableData, variables, columns } |
|
|
|