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
黄庭坚
jinfa-platform
Commits
c29c0e04
Commit
c29c0e04
authored
May 05, 2022
by
wuting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 按钮权限更新
parent
cf0a5a0e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
7 deletions
+15
-7
contracRoute.ts
config/routes/contracRoute.ts
+3
-2
index.tsx
src/pages/contract/manage/creatExamine/index.tsx
+8
-1
index.tsx
src/pages/contract/manage/examine/index.tsx
+2
-2
index.tsx
src/pages/contract/manage/purchaseRequisition/index.tsx
+2
-2
No files found.
config/routes/contracRoute.ts
View file @
c29c0e04
...
@@ -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'
,
...
...
src/pages/contract/manage/creatExamine/index.tsx
View file @
c29c0e04
...
@@ -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
>
...
...
src/pages/contract/manage/examine/index.tsx
View file @
c29c0e04
...
@@ -132,13 +132,13 @@ const Examine = () => {
...
@@ -132,13 +132,13 @@ const Examine = () => {
return
(
return
(
isExamineSubmit
isExamineSubmit
?
?
<
AuthButton
btnCode=
'
contractexamine.sut
mit'
>
<
AuthButton
btnCode=
'
examineSubmit.sub
mit'
>
<
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.sut
mit'
>
<
AuthButton
btnCode=
'
contractexamine.sub
mit'
>
<
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
>
...
...
src/pages/contract/manage/purchaseRequisition/index.tsx
View file @
c29c0e04
...
@@ -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'
...
...
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