|
@@ -110,13 +110,17 @@ export default {
|
|
|
psgeSize: this.pages.pageSize,
|
|
|
curIndex: this.pages.curIndex
|
|
|
}
|
|
|
- const res = await getSubTaskList(param)
|
|
|
- if (res.code === 200) {
|
|
|
- this.total = res.total
|
|
|
+ try {
|
|
|
+ const res = await getSubTaskList(param)
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.total = res.total
|
|
|
+ this.loading = false
|
|
|
+ this.all_task = res.data.map(item => {
|
|
|
+ return { ...item, participants: item.participants.split(',') }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ } catch (error) {
|
|
|
this.loading = false
|
|
|
- this.all_task = res.data.map(item => {
|
|
|
- return { ...item, participants: item.participants.split(',') }
|
|
|
- })
|
|
|
}
|
|
|
},
|
|
|
async getTaskStatus() { // 获取任务状态列表
|