fix(public):修复风险审批历史页面的展示问题- 当没有审批意见时,在文本域中显示 '-'- 移除了多余的重复代码-优化了审批意见文本域的逻辑处理

This commit is contained in:
陈昱达
2025-08-22 17:50:01 +08:00
parent 248ad13793
commit e883d0ea5c

View File

@@ -1201,10 +1201,13 @@
) {
examSelect.value = '不通过'
}
// examSelect.value =detailJson.content.content.approveInfo.approveResult
examTextarea.value =
detailJson.content.content.approveInfo.approveOpinion
// 如果没有
if (!detailJson.content.content.approveInfo.approveOpinion) {
examTextarea.value = '-'
}
// examSelect.value =detailJson.content.content.approveInfo.approveResult
// 根据是否有审批意见来控制修改审批意见按钮的状态
if (modifyExamButton) {
@@ -1217,7 +1220,7 @@
} else {
modifyExamButton.disabled = true
modifyExamButton.style.opacity = '0.5'
examTextarea.value = '-'
// examTextarea.value = '-'
modifyExamButton.style.cursor = 'not-allowed'
}
}