Commit 646d43b3 authored by 卢均锐's avatar 卢均锐

fix: 业务对账相关查看按钮权限

parent 47340565
...@@ -47,7 +47,7 @@ const ReadyAdd: React.FC = () => { ...@@ -47,7 +47,7 @@ const ReadyAdd: React.FC = () => {
key: 'reconciliationNo', key: 'reconciliationNo',
dataIndex: 'reconciliationNo', dataIndex: 'reconciliationNo',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
AuthUrl('businessReconciliationReadyAdd.see') && <Link to={`readyAdd/preview?id=${record.reconciliationId}&no=${text}`}>{text}</Link> AuthUrl('businessReconciliationReadyAdd.see') ? <Link to={`readyAdd/preview?id=${record.reconciliationId}&no=${text}`}>{text}</Link> : <Button type='link' style={{padding: 0}}>{text}</Button>
) )
}, { }, {
title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }), title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }),
......
...@@ -49,7 +49,7 @@ const Search: React.FC = () => { ...@@ -49,7 +49,7 @@ const Search: React.FC = () => {
key: 'reconciliationNo', key: 'reconciliationNo',
dataIndex: 'reconciliationNo', dataIndex: 'reconciliationNo',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
AuthUrl('businessReconciliationSearch.see') &&<Link to={`search/preview?id=${record.reconciliationId}&no=${text}`}>{text}</Link> AuthUrl('businessReconciliationSearch.see') ? <Link to={`search/preview?id=${record.reconciliationId}&no=${text}`}>{text}</Link> : <Button type='link' style={{padding: 0}}>{text}</Button>
) )
}, { }, {
title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }), title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }),
......
import React, { useRef } from 'react' import React, { useRef } from 'react'
import { Card, Typography, Space } from 'antd' import { Card, Typography, Space,Button } from 'antd'
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import StandardTable from '@/components/StandardTable'; import StandardTable from '@/components/StandardTable';
import { PageHeaderWrapper } from '@ant-design/pro-layout' import { PageHeaderWrapper } from '@ant-design/pro-layout'
...@@ -44,7 +44,7 @@ const ReadyConfirm: React.FC = () => { ...@@ -44,7 +44,7 @@ const ReadyConfirm: React.FC = () => {
key: 'reconciliationNo', key: 'reconciliationNo',
dataIndex: 'reconciliationNo', dataIndex: 'reconciliationNo',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
AuthUrl('businessReconciliationCollaborationReadyConfirm.see') && <Link to={`readyConfirm/preview?id=${record.reconciliationId}&no=${text}`}>{text}</Link> AuthUrl('businessReconciliationCollaborationReadyConfirm.see') ? <Link to={`readyConfirm/preview?id=${record.reconciliationId}&no=${text}`}>{text}</Link> : <Button type='link' style={{padding: 0}}>{text}</Button>
) )
}, { }, {
title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }), title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }),
......
import React, { useRef } from 'react' import React, { useRef } from 'react'
import { Card, Typography, Space } from 'antd' import { Card, Typography, Space,Button } from 'antd'
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import StandardTable from '@/components/StandardTable'; import StandardTable from '@/components/StandardTable';
import { PageHeaderWrapper } from '@ant-design/pro-layout' import { PageHeaderWrapper } from '@ant-design/pro-layout'
...@@ -44,7 +44,7 @@ const ReadyPay: React.FC = () => { ...@@ -44,7 +44,7 @@ const ReadyPay: React.FC = () => {
key: 'reconciliationNo', key: 'reconciliationNo',
dataIndex: 'reconciliationNo', dataIndex: 'reconciliationNo',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
AuthUrl('businessReconciliationCollaborationReadyPay.see') && <Link to={`readyPay/preview?id=${record.reconciliationId}&no=${text}`}>{text}</Link> AuthUrl('businessReconciliationCollaborationReadyPay.see') ? <Link to={`readyPay/preview?id=${record.reconciliationId}&no=${text}`}>{text}</Link> : <Button type='link' style={{padding: 0}}>{text}</Button>
) )
}, { }, {
title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }), title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }),
......
...@@ -50,7 +50,7 @@ const Search: React.FC = () => { ...@@ -50,7 +50,7 @@ const Search: React.FC = () => {
key: 'reconciliationNo', key: 'reconciliationNo',
dataIndex: 'reconciliationNo', dataIndex: 'reconciliationNo',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
AuthUrl('businessReconciliationCollaborationSearch.see') && <Link to={`search/preview?id=${record.reconciliationId}&no=${text}`}>{text}</Link> AuthUrl('businessReconciliationCollaborationSearch.see') ? <Link to={`search/preview?id=${record.reconciliationId}&no=${text}`}>{text}</Link> : <Button type='link' style={{padding: 0}}>{text}</Button>
) )
}, { }, {
title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }), title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }),
......
...@@ -43,7 +43,7 @@ const Admin: React.FC = () => { ...@@ -43,7 +43,7 @@ const Admin: React.FC = () => {
key: 'applyNo', key: 'applyNo',
dataIndex: 'applyNo', dataIndex: 'applyNo',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
AuthUrl('businessRequestFundsAdmin.see') && <Link to={`search/preview?id=${record.id}&no=${text}`}>{text}</Link> AuthUrl('businessRequestFundsAdmin.see') ? <Link to={`search/preview?id=${record.id}&no=${text}`}>{text}</Link> : <Button type='link' style={{padding: 0}}>{text}</Button>
) )
}, { }, {
title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }), title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }),
......
import React, { useRef } from 'react' import React, { useRef } from 'react'
import { Card, Typography, Space } from 'antd' import { Card, Typography, Space,Button } from 'antd'
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import StandardTable from '@/components/StandardTable'; import StandardTable from '@/components/StandardTable';
import { PageHeaderWrapper } from '@ant-design/pro-layout' import { PageHeaderWrapper } from '@ant-design/pro-layout'
...@@ -45,7 +45,7 @@ const Search: React.FC = () => { ...@@ -45,7 +45,7 @@ const Search: React.FC = () => {
key: 'applyNo', key: 'applyNo',
dataIndex: 'applyNo', dataIndex: 'applyNo',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
AuthUrl('businessRequestFundsSearch.see') && <Link to={`search/preview?id=${record.id}&no=${text}`}>{text}</Link> AuthUrl('businessRequestFundsSearch.see') ? <Link to={`search/preview?id=${record.id}&no=${text}`}>{text}</Link> : <Button type='link' style={{padding: 0}}>{text}</Button>
) )
}, { }, {
title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }), title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }),
......
import React, { useRef } from 'react' import React, { useRef } from 'react'
import { Card, Typography, Space } from 'antd' import { Card, Typography, Space,Button } from 'antd'
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import StandardTable from '@/components/StandardTable'; import StandardTable from '@/components/StandardTable';
import { PageHeaderWrapper } from '@ant-design/pro-layout' import { PageHeaderWrapper } from '@ant-design/pro-layout'
...@@ -44,7 +44,7 @@ const Search: React.FC = () => { ...@@ -44,7 +44,7 @@ const Search: React.FC = () => {
key: 'applyNo', key: 'applyNo',
dataIndex: 'applyNo', dataIndex: 'applyNo',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
AuthUrl('businessRequestFundsCollaborationSearch.see') && <Link to={`search/preview?id=${record.id}&no=${text}`}>{text}</Link> AuthUrl('businessRequestFundsCollaborationSearch.see') ? <Link to={`search/preview?id=${record.id}&no=${text}`}>{text}</Link> : <Button type='link' style={{padding: 0}}>{text}</Button>
) )
}, { }, {
title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }), title: intl.formatMessage({ id: 'balance.danjuzhaiyao' }),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment