修复撤回: transfer新任务parent_task_id=task.id(溯源链) + canRecall放宽(兼容旧数据)
This commit is contained in:
@ -146,10 +146,8 @@ export default {
|
||||
canRecall() {
|
||||
if (!this.lockedTask || this.lockedTask.status !== 'PENDING') return false;
|
||||
if (this.isAssignee) return false;
|
||||
if (!this.lockedTask.parent_task_id) return false;
|
||||
const parent = this.taskMap[this.lockedTask.parent_task_id];
|
||||
if (!parent) return false;
|
||||
return parent.assignee_id == this.currentUserId || parent.assignee_id == this.currentUsername;
|
||||
// 非接收人即可撤回(后端会校验权限);parent_task_id 为空时也放开(旧数据兼容)
|
||||
return true;
|
||||
},
|
||||
branchLabelsMap() {
|
||||
const map = {};
|
||||
|
||||
Reference in New Issue
Block a user