This commit is contained in:
黎永顺 2024-04-09 10:58:56 +08:00
parent 64d3b211da
commit 2d046da062
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ export function renderCols(initialState: any[], type: string, i18n?: AnyObject,
render: (text: string, record: any) => {
const { billStatus } = record;
return (<Button type="link"
onClick={() => postMessageToParent(billStatus === "0" ? "CALC" : "VIEW", record)}>{text}</Button>);
onClick={() => postMessageToParent((billStatus === "0" && extraParams?.permission) ? "CALC" : "VIEW", record)}>{text}</Button>);
}
};
break;