fix(approve): 修复审批流程中的用户ID获取问题

优化审批流程中用户ID的获取方式,确保在加载待办列表时使用正确的用户ID。同时添加调试日志和调整toast显示时长。
This commit is contained in:
砂糖
2026-04-14 13:36:52 +08:00
parent d8bc6525d2
commit bb6f7aed51
3 changed files with 25 additions and 17 deletions

View File

@@ -59,7 +59,10 @@
return this.bizTypeComponentMap[this.bizType] || '';
},
canApprove() {
return this.currentTask && this.currentTask.status === 'pending' && (this.currentTask?.assigneeUserName === this.$store.getters.storeOaName || this.currentTask?.assigneeUserId === this.$store.getters.storeOaId)
console.log(this.currentTask, this.$store.getters.storeOaName, this.$store.getters.storeOaId)
return this.currentTask && this.currentTask.status === 'pending' &&
(this.currentTask?.assigneeUserName === this.$store.getters.storeOaName
|| this.currentTask?.assigneeUserId === this.$store.getters.storeOaId)
},
},
watch: {