添加一级需求部门配置的调试日志

This commit is contained in:
Your Name 2026-01-20 13:12:47 +08:00
parent 66d554775e
commit 7781b0acd0
2 changed files with 7 additions and 2 deletions

Binary file not shown.

View File

@ -678,7 +678,9 @@ const shouldShowTaskDetail = computed(() => {
// 如果是一级需求部门用户
if (isPrimaryDeptUser.value) {
// 根据系统配置决定是否显示任务明细
return primaryDeptConfig.value.canFillDetail
const result = primaryDeptConfig.value.canFillDetail
console.log('[任务明细显示] 一级需求部门用户, canFillDetail:', result, 'shouldShow:', result)
return result
}
// 其他部门用户始终显示
return true
@ -2175,9 +2177,12 @@ const loadReleaseTypeConfig = async () => {
}
// 加载一级需求部门配置
const configValue = res.data['task.primary_dept_can_fill_detail']
console.log('[一级需求部门配置] 原始值:', configValue, '类型:', typeof configValue)
primaryDeptConfig.value = {
canFillDetail: res.data['task.primary_dept_can_fill_detail'] === 'true'
canFillDetail: configValue === 'true'
}
console.log('[一级需求部门配置] canFillDetail:', primaryDeptConfig.value.canFillDetail)
}
// 加载工作时间配置
try {