修改组件查看模式的状态
This commit is contained in:
@ -615,7 +615,10 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
|
||||
const filterColumns = (col: any) => {
|
||||
if (isDetail) {
|
||||
return false;
|
||||
// 如果是详情,过滤掉操作列
|
||||
if (col.key === 'level1Action') {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (getUserRole() != 'admin') {
|
||||
if (
|
||||
@ -633,7 +636,9 @@ const EvaluateTemplateTable: React.FC<EvaluateTemplateTableProps> = ({
|
||||
};
|
||||
const filterColumnsSecond = (col: any) => {
|
||||
if (isDetail) {
|
||||
return false;
|
||||
if (col.key === 'level2Action') {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (getUserRole() != 'admin') {
|
||||
if (
|
||||
|
Reference in New Issue
Block a user