Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
712039e6
Commit
712039e6
authored
May 07, 2022
by
wuting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 合同按钮权限
parent
d5f58b56
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
26 deletions
+12
-26
add.tsx
src/pages/transaction/contractManagementRules/add.tsx
+3
-10
index.tsx
src/pages/transaction/contractManagementRules/index.tsx
+3
-3
add.tsx
src/pages/transaction/contractTogetherRules/add.tsx
+3
-10
index.tsx
src/pages/transaction/contractTogetherRules/index.tsx
+3
-3
No files found.
src/pages/transaction/contractManagementRules/add.tsx
View file @
712039e6
...
@@ -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
>
...
...
src/pages/transaction/contractManagementRules/index.tsx
View file @
712039e6
...
@@ -84,7 +84,7 @@ const ContractManagementRules = () => {
...
@@ -84,7 +84,7 @@ const ContractManagementRules = () => {
}
}
return
(
return
(
<
Space
>
<
Space
>
<
AuthButton
btnCode=
'
material.rules.toE
dit'
>
<
AuthButton
btnCode=
'
contractManage.e
dit'
>
<
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"
...
...
src/pages/transaction/contractTogetherRules/add.tsx
View file @
712039e6
...
@@ -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
>
...
...
src/pages/transaction/contractTogetherRules/index.tsx
View file @
712039e6
...
@@ -78,7 +78,7 @@ const ContractTogetherRules = () => {
...
@@ -78,7 +78,7 @@ const ContractTogetherRules = () => {
}
}
return
(
return
(
<
Space
>
<
Space
>
<
AuthButton
btnCode=
'
material.rules.toE
dit'
>
<
AuthButton
btnCode=
'
contractTogether.e
dit'
>
<
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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment