Commit c29c0e04 authored by wuting's avatar wuting

feat: 按钮权限更新

parent cf0a5a0e
...@@ -141,7 +141,7 @@ const contracRoute = { ...@@ -141,7 +141,7 @@ const contracRoute = {
name: '待审核合同创建(一级)', name: '待审核合同创建(一级)',
component: '@/pages/contract/manage/creatExamine', component: '@/pages/contract/manage/creatExamine',
// creatExamineOne.see 查看详情 // creatExamineOne.see 查看详情 createxamine.sutmit 审核
}, },
{ {
path: '/memberCenter/contract/manage/creatExamine/details', path: '/memberCenter/contract/manage/creatExamine/details',
...@@ -158,7 +158,7 @@ const contracRoute = { ...@@ -158,7 +158,7 @@ const contracRoute = {
}, },
{ {
path: '/memberCenter/contract/manage/secondaryCreatExamine/details', path: '/memberCenter/contract/manage/secondaryCreatExamine/details',
name: '待提交审核合同创建-详情', name: '待审核合同创建(二级)-详情',
hideInMenu: true, hideInMenu: true,
component: '@/pages/contract/manage/details', component: '@/pages/contract/manage/details',
}, },
...@@ -179,6 +179,7 @@ const contracRoute = { ...@@ -179,6 +179,7 @@ const contracRoute = {
path: '/memberCenter/contract/manage/examine', path: '/memberCenter/contract/manage/examine',
name: '待提交审核合同签订', name: '待提交审核合同签订',
component: '@/pages/contract/manage/examine', component: '@/pages/contract/manage/examine',
// 查看按钮 contractexamine.see 审核 contractexamine.sutmit
}, },
{ {
path: '/memberCenter/contract/manage/examine/details', path: '/memberCenter/contract/manage/examine/details',
......
...@@ -127,7 +127,14 @@ const Levelexamine = () => { ...@@ -127,7 +127,14 @@ const Levelexamine = () => {
align: 'left', align: 'left',
render: (text, record) => { render: (text, record) => {
return ( return (
<AuthButton btnCode='levelexamine.sutmit' > isCreatExamine ?
<AuthButton btnCode='creatExamineOne.submit' >
<div>
<span style={{ color: '#00B37A', cursor: 'pointer', marginRight: 10 }} onClick={() => history.push(`${isCreatExamine ? '/memberCenter/contract/manage/creatExamine/details' : '/memberCenter/contract/manage/secondaryCreatExamine/details'}?contractId=${record.id}&type=${ isCreatExamine ? 'CreatExamineStepOne' : 'CreatExamineStepTwo'}`)}>{intl.formatMessage({ id: 'contract.shenhe' })}</span>
</div>
</AuthButton>
:
<AuthButton btnCode='creatExamineTwo.submit' >
<div> <div>
<span style={{ color: '#00B37A', cursor: 'pointer', marginRight: 10 }} onClick={() => history.push(`${isCreatExamine ? '/memberCenter/contract/manage/creatExamine/details' : '/memberCenter/contract/manage/secondaryCreatExamine/details'}?contractId=${record.id}&type=${ isCreatExamine ? 'CreatExamineStepOne' : 'CreatExamineStepTwo'}`)}>{intl.formatMessage({ id: 'contract.shenhe' })}</span> <span style={{ color: '#00B37A', cursor: 'pointer', marginRight: 10 }} onClick={() => history.push(`${isCreatExamine ? '/memberCenter/contract/manage/creatExamine/details' : '/memberCenter/contract/manage/secondaryCreatExamine/details'}?contractId=${record.id}&type=${ isCreatExamine ? 'CreatExamineStepOne' : 'CreatExamineStepTwo'}`)}>{intl.formatMessage({ id: 'contract.shenhe' })}</span>
</div> </div>
......
...@@ -132,13 +132,13 @@ const Examine = () => { ...@@ -132,13 +132,13 @@ const Examine = () => {
return ( return (
isExamineSubmit isExamineSubmit
? ?
<AuthButton btnCode='contractexamine.sutmit' > <AuthButton btnCode='examineSubmit.submit' >
<div> <div>
<span style={{ color: '#00B37A', cursor: 'pointer', marginRight: 10 }} onClick={() => history.push(`/memberCenter/contract/manage/examineSubmit/details?contractId=${record.id}&type=${'CreatSubmitExamine'}`)}>{intl.formatMessage({ id: 'contract.shenhe' })}</span> <span style={{ color: '#00B37A', cursor: 'pointer', marginRight: 10 }} onClick={() => history.push(`/memberCenter/contract/manage/examineSubmit/details?contractId=${record.id}&type=${'CreatSubmitExamine'}`)}>{intl.formatMessage({ id: 'contract.shenhe' })}</span>
</div> </div>
</AuthButton> </AuthButton>
: :
<AuthButton btnCode='examineSubmit.sutmit' > <AuthButton btnCode='contractexamine.submit' >
<div> <div>
<span style={{ color: '#00B37A', cursor: 'pointer', marginRight: 10 }} onClick={() => history.push(`/memberCenter/contract/manage/examine/details?contractId=${record.id}&type=${'ManageSubmitExamine'}`)}>{intl.formatMessage({ id: 'contract.shenhe' })}</span> <span style={{ color: '#00B37A', cursor: 'pointer', marginRight: 10 }} onClick={() => history.push(`/memberCenter/contract/manage/examine/details?contractId=${record.id}&type=${'ManageSubmitExamine'}`)}>{intl.formatMessage({ id: 'contract.shenhe' })}</span>
</div> </div>
......
...@@ -113,7 +113,7 @@ const BiddingList = () => { ...@@ -113,7 +113,7 @@ const BiddingList = () => {
align: 'left', align: 'left',
render: (_, record) => { render: (_, record) => {
return ( return (
<AuthButton btnCode='bidding.add' > <AuthButton btnCode='purchaseRequisition.add' >
<div> <div>
<span style={{ color: '#00B37A', cursor: 'pointer', marginRight: 10 }} onClick={() => Like(record)}>{intl.formatMessage({ id: 'contract.purchase.operation.add' })}</span> <span style={{ color: '#00B37A', cursor: 'pointer', marginRight: 10 }} onClick={() => Like(record)}>{intl.formatMessage({ id: 'contract.purchase.operation.add' })}</span>
</div> </div>
...@@ -271,7 +271,7 @@ const BiddingList = () => { ...@@ -271,7 +271,7 @@ const BiddingList = () => {
}} }}
formilyChilds={{ formilyChilds={{
children: <Space> children: <Space>
<AuthButton btnCode='addList.add' > <AuthButton btnCode='purchaseRequisition.batch' >
<Button <Button
icon={<PlusCircleOutlined />} icon={<PlusCircleOutlined />}
type='primary' type='primary'
......
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