Commit a8229093 authored by xiexiuxing's avatar xiexiuxing

flx:按钮权限bug修复

parent 9d103d90
......@@ -21,8 +21,9 @@ const AuthButton = (props: AuthButtonProps) => {
// const userBtn = require('../../../config/router.config.json')
const { auth } = getAuth()
const { pathname } = new URL(window.location.href);
const RoutesAuth = auth.filter((item: any) => item?.u === pathname)
console.log(RoutesAuth)
console.log(pathname, RoutesAuth)
const _authorityBtn = () => {
if (RoutesAuth.length > 0) {
const { b } = RoutesAuth[0];
......
......@@ -129,7 +129,7 @@ const ReturnPrAddLogistics: React.FC = () => {
)}
{record.innerStatus === EXCHANGE_INNER_STATUS_SUPPLIER_UNCONFIRMED_LOGISTICS && (
<AuthButton btnCode='exchangePrAddLogistics1.heckLogistics' menuCode='afterService'>
<AuthButton btnCode='exchangePrAddLogistics1.checkLogistics' menuCode='afterService'>
<Button
type="link"
onClick={
......
......@@ -84,7 +84,7 @@ const RepairPrConfirm: React.FC = () => {
render: (text, record) => (
<>
<AuthButton btnCode='repairPrConfirm.commitVerify' menuCode='afterService'>
<AuthButton btnCode='repairPrConfirm.confirmApply' menuCode='afterService'>
<Button
type="link"
onClick={() => history.push(`/memberCenter/afterService/repairManage/repairPrConfirm/verify?id=${record.applyId}`)}
......
......@@ -223,7 +223,7 @@ const CategoryAttributes: React.FC<{}> = () => {
render: (text: any, record: any) => {
return (
<>
<AuthButton btnCode='pendingAddProcessing.shenhe' >
<AuthButton btnCode='categoryAttributes.edit' >
<Popconfirm
title={intl.formatMessage({ id: 'classAndProperty.categoryAttributes.columns.popconfirm' })}
onConfirm={() => clickRelief(record.id)}
......
......@@ -165,7 +165,7 @@ const AddbillList: React.FC<{}> = () => {
})
}
const handleJumpAdd = () => {
history.push('/memberCenter/contract/funds/addbill/Add')
history.push('/memberCenter/contract/funds/addbill/add')
};
......
......@@ -24,7 +24,7 @@ export const useSelfTable = () => {
dataIndex: 'code',
key: 'code',
render: (text, record) => <>
<EyePreview type={AuthUrl('readySendBidNotice.see', 'procurementAbility') ? 'link' : 'button'} url={`${history.location.pathname}/detail?id=${record.id}`}>
<EyePreview type={AuthUrl('readySendBidNotice.fasongzhongbiaogong', 'procurementAbility') ? 'link' : 'button'} url={`${history.location.pathname}/detail?id=${record.id}`}>
{text}
</EyePreview>
<div>{record['projectName']}</div>
......@@ -67,7 +67,7 @@ export const useSelfTable = () => {
dataIndex: 'ctl',
key: 'ctl',
render: (text, record) =>
<AuthButton btnCode='secondCheckedBid.fasongzhongbiaogong' menuCode='procurementAbility'>
<AuthButton btnCode='readySendBidNotice.fasongzhongbiaogong' menuCode='procurementAbility'>
<Button type='link' onClick={() => handleSubmit(record)}>{intl.formatMessage({ id: 'table.purchase.fasongzhongbiaogong' })}</Button>
</AuthButton>
......
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