Commit 712039e6 authored by wuting's avatar wuting

feat: 合同按钮权限

parent d5f58b56
...@@ -247,14 +247,8 @@ const Add = () => { ...@@ -247,14 +247,8 @@ const Add = () => {
title={renderTitle()} title={renderTitle()}
schema={addSchema} schema={addSchema}
extraRight={[ extraRight={[
<AuthButton
btnCode={ isEditable && (
id
? 'increaseRequisition.bianji'
: 'increaseRequisition.xingzheng'
}
>
{isEditable && (
<Button <Button
key="1" key="1"
onClick={() => formActions.submit()} onClick={() => formActions.submit()}
...@@ -267,8 +261,7 @@ const Add = () => { ...@@ -267,8 +261,7 @@ const Add = () => {
defaultMessage: '保存', defaultMessage: '保存',
})} })}
</Button> </Button>
)} )
</AuthButton>,
]} ]}
/> />
<FormDetailWrapper> <FormDetailWrapper>
......
...@@ -84,7 +84,7 @@ const ContractManagementRules = () => { ...@@ -84,7 +84,7 @@ const ContractManagementRules = () => {
} }
return ( return (
<Space> <Space>
<AuthButton btnCode='material.rules.toEdit'> <AuthButton btnCode='contractManage.edit'>
<Link to={`/memberCenter/systemSetting/processManagement/contractManagement/edit?id=${record.processId}`}> <Link to={`/memberCenter/systemSetting/processManagement/contractManagement/edit?id=${record.processId}`}>
修改 修改
</Link> </Link>
...@@ -92,7 +92,7 @@ const ContractManagementRules = () => { ...@@ -92,7 +92,7 @@ const ContractManagementRules = () => {
{ {
record.status !== 1 && ( record.status !== 1 && (
<AuthButton btnCode="material.rules.remove"> <AuthButton btnCode="contractManage.remove">
<Popconfirm <Popconfirm
title="确认删除?" title="确认删除?"
onConfirm={() => handleDelete(record)} onConfirm={() => handleDelete(record)}
...@@ -113,7 +113,7 @@ const ContractManagementRules = () => { ...@@ -113,7 +113,7 @@ const ContractManagementRules = () => {
const controllerBtns = () => { const controllerBtns = () => {
return ( return (
<Space> <Space>
<AuthButton btnCode='material.rules.add'> <AuthButton btnCode='contractManage.add'>
<Link to={CREATE_URL}> <Link to={CREATE_URL}>
<Button <Button
type="primary" type="primary"
......
...@@ -225,14 +225,8 @@ const Add = () => { ...@@ -225,14 +225,8 @@ const Add = () => {
title={renderTitle()} title={renderTitle()}
schema={addSchema} schema={addSchema}
extraRight={[ extraRight={[
<AuthButton
btnCode={ isEditable && (
id
? 'increaseRequisition.bianji'
: 'increaseRequisition.xingzheng'
}
>
{isEditable && (
<Button <Button
key="1" key="1"
onClick={() => formActions.submit()} onClick={() => formActions.submit()}
...@@ -245,8 +239,7 @@ const Add = () => { ...@@ -245,8 +239,7 @@ const Add = () => {
defaultMessage: '保存', defaultMessage: '保存',
})} })}
</Button> </Button>
)} )
</AuthButton>,
]} ]}
/> />
<FormDetailWrapper> <FormDetailWrapper>
......
...@@ -78,7 +78,7 @@ const ContractTogetherRules = () => { ...@@ -78,7 +78,7 @@ const ContractTogetherRules = () => {
} }
return ( return (
<Space> <Space>
<AuthButton btnCode='material.rules.toEdit'> <AuthButton btnCode='contractTogether.edit'>
<Link to={`/memberCenter/systemSetting/processManagement/contractTogether/edit?id=${record.processId}`}> <Link to={`/memberCenter/systemSetting/processManagement/contractTogether/edit?id=${record.processId}`}>
修改 修改
</Link> </Link>
...@@ -86,7 +86,7 @@ const ContractTogetherRules = () => { ...@@ -86,7 +86,7 @@ const ContractTogetherRules = () => {
{ {
record.status !== 1 && ( record.status !== 1 && (
<AuthButton btnCode="material.rules.remove"> <AuthButton btnCode="contractTogether.remove">
<Popconfirm <Popconfirm
title="确认删除?" title="确认删除?"
onConfirm={() => handleDelete(record)} onConfirm={() => handleDelete(record)}
...@@ -107,7 +107,7 @@ const ContractTogetherRules = () => { ...@@ -107,7 +107,7 @@ const ContractTogetherRules = () => {
const controllerBtns = () => { const controllerBtns = () => {
return ( return (
<Space> <Space>
<AuthButton btnCode='material.rules.add'> <AuthButton btnCode='contractTogether.add'>
<Link to={CREATE_URL}> <Link to={CREATE_URL}>
<Button <Button
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