diff --git a/pc4mobx/hrmSalary/pages/declare/generateDeclarationDetail.js b/pc4mobx/hrmSalary/pages/declare/generateDeclarationDetail.js index 91a1a88f..928f715b 100644 --- a/pc4mobx/hrmSalary/pages/declare/generateDeclarationDetail.js +++ b/pc4mobx/hrmSalary/pages/declare/generateDeclarationDetail.js @@ -73,9 +73,9 @@ export default class GenerateDeclarationDetail extends React.Component { render() { const { loading, pageInfo, columns, dataSource } = this.state; - const { taxAgentStore: { showOperateBtn } } = this.props; - const buttons = showOperateBtn ? [] : []; + const { taxAgentStore: { PageAndOptAuth } } = this.props; + const buttons = !!PageAndOptAuth.opts.length ? [] : []; const pagination = { ...pageInfo, showTotal: (total) => `共 ${total} 条`,