|
|
@ -236,14 +236,13 @@ function changeRole(id, index) { |
|
|
const arr = []; |
|
|
const arr = []; |
|
|
remindData.value.forEach(item => { |
|
|
remindData.value.forEach(item => { |
|
|
const remind_data = JSON.parse(item.data); |
|
|
const remind_data = JSON.parse(item.data); |
|
|
if (remind_data.data.taskType === 1) { |
|
|
if (remind_data.data.taskType === 1 && remind_data.data.roleId === roleId.value) { |
|
|
arr.push(item); |
|
|
arr.push(item); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
if (arr.length > 0) { |
|
|
|
|
|
let nextLocationTaskId = ''; |
|
|
let nextLocationTaskId = ''; |
|
|
|
|
|
if (arr.length > 0) { |
|
|
for (let i = 0; i < arr.length; i++) { |
|
|
for (let i = 0; i < arr.length; i++) { |
|
|
const first_option = JSON.parse(arr[0].data); |
|
|
const first_option = JSON.parse(arr[0].data); |
|
|
const curr_option = JSON.parse(arr[i].data); |
|
|
const curr_option = JSON.parse(arr[i].data); |
|
|
@ -262,20 +261,18 @@ function changeRole(id, index) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
// store.commit('task/setTimeLineType', timeLineType.value === 1 ? 2 : 1); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
store.commit('socket/setCurrLocationTaskId', nextLocationTaskId); |
|
|
store.commit('socket/setCurrLocationTaskId', nextLocationTaskId); |
|
|
store.commit('task/clearTasks'); // 清空定期任务 |
|
|
store.commit('task/clearTasks'); // 清空定期任务 |
|
|
store.commit('task/clearRealTasks'); // 清空真实任务数据 |
|
|
store.commit('task/clearRealTasks'); // 清空真实任务数据 |
|
|
store.commit('task/setUpNextPage', 1); |
|
|
store.commit('task/setUpNextPage', 1); |
|
|
store.commit('task/setDownNextPage', 1); |
|
|
store.commit('task/setDownNextPage', 1); |
|
|
// store.commit('task/setTimeLineType', timeLineType.value === 1 ? 2 : 1); |
|
|
|
|
|
|
|
|
|
|
|
if (nextLocationTaskId) { |
|
|
const params = { pageNum: 1, taskId: nextLocationTaskId, timeNode: new Date().getTime() }; |
|
|
const params = { pageNum: 1, taskId: nextLocationTaskId }; |
|
|
|
|
|
getTasksHook.getTasks(params); |
|
|
getTasksHook.getTasks(params); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
data.clickNum = data.firstClickTime = data.secClickTime = 0; |
|
|
data.clickNum = data.firstClickTime = data.secClickTime = 0; |
|
|
} |
|
|
} |
|
|
|