canRecall加固: PENDING+非接收人+父任务负责人匹配→显示撤回转交
This commit is contained in:
@ -143,7 +143,14 @@ export default {
|
|||||||
},
|
},
|
||||||
lockedTask() { return this.focusTasks.find(t => t.id === this.lockedTaskId) || null; },
|
lockedTask() { return this.focusTasks.find(t => t.id === this.lockedTaskId) || null; },
|
||||||
isAssignee() { if (!this.lockedTask) return false; return this.lockedTask.assignee_id == this.currentUserId || this.lockedTask.assignee_id == this.currentUsername; },
|
isAssignee() { if (!this.lockedTask) return false; return this.lockedTask.assignee_id == this.currentUserId || this.lockedTask.assignee_id == this.currentUsername; },
|
||||||
canRecall() { if (!this.lockedTask || !this.lockedTask.parent_task_id) return false; const parent = this.taskMap[this.lockedTask.parent_task_id]; return parent && (parent.assignee_id == this.currentUserId || parent.assignee_id == this.currentUsername); },
|
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;
|
||||||
|
},
|
||||||
branchLabelsMap() {
|
branchLabelsMap() {
|
||||||
const map = {};
|
const map = {};
|
||||||
if (!this.product || !this.product.task_tree) return map;
|
if (!this.product || !this.product.task_tree) return map;
|
||||||
|
|||||||
Reference in New Issue
Block a user