fix(approve): 修复审批流程中的用户ID获取问题
优化审批流程中用户ID的获取方式,确保在加载待办列表时使用正确的用户ID。同时添加调试日志和调整toast显示时长。
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user