增加userHook 没用dva, 修改新增评价模板禁用指标逻辑

This commit is contained in:
linxd
2025-07-04 08:39:23 +08:00
parent bb3bea51b1
commit 359559f61b
3 changed files with 27 additions and 40 deletions

View File

@ -590,7 +590,7 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
};
const filterColumns = (col: any) => {
if ((isDetail || getUserRole() != 'admin') && ['level1Action', 'indicator_st_edit', 'base_indicator_edit', 'desc_indicator_edit', 'score_edit'].includes(col.key)) {
if ((isDetail || getUserRole() != 'admin') && ['level1Action', 'indicatorStEditST', 'baseIndicatorEditST', 'descIndicatorEditST', 'scoreEditST'].includes(col.key)) {
return false;
}
return true;