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
a8229093
Commit
a8229093
authored
Mar 07, 2022
by
xiexiuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flx:按钮权限bug修复
parent
9d103d90
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
7 deletions
+8
-7
index.tsx
src/components/AuthButton/index.tsx
+2
-1
index.tsx
...erService/exchangeManage/exchangePrAddLogistics/index.tsx
+1
-1
index.tsx
...pages/afterService/repairManage/repairPrConfirm/index.tsx
+1
-1
index.tsx
src/pages/classAndProperty/categoryAttributes/index.tsx
+1
-1
index.tsx
src/pages/contract/funds/addbill/index.tsx
+1
-1
useSelfTable.tsx
...ent/callForBids/readySendBidNotice/model/useSelfTable.tsx
+2
-2
No files found.
src/components/AuthButton/index.tsx
View file @
a8229093
...
...
@@ -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
];
...
...
src/pages/afterService/exchangeManage/exchangePrAddLogistics/index.tsx
View file @
a8229093
...
...
@@ -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.
c
heckLogistics'
menuCode=
'afterService'
>
<
Button
type=
"link"
onClick=
{
...
...
src/pages/afterService/repairManage/repairPrConfirm/index.tsx
View file @
a8229093
...
...
@@ -84,7 +84,7 @@ const RepairPrConfirm: React.FC = () => {
render
:
(
text
,
record
)
=>
(
<>
<
AuthButton
btnCode=
'repairPrConfirm.co
mmitVerif
y'
menuCode=
'afterService'
>
<
AuthButton
btnCode=
'repairPrConfirm.co
nfirmAppl
y'
menuCode=
'afterService'
>
<
Button
type=
"link"
onClick=
{
()
=>
history
.
push
(
`/memberCenter/afterService/repairManage/repairPrConfirm/verify?id=${record.applyId}`
)
}
...
...
src/pages/classAndProperty/categoryAttributes/index.tsx
View file @
a8229093
...
...
@@ -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
)
}
...
...
src/pages/contract/funds/addbill/index.tsx
View file @
a8229093
...
...
@@ -165,7 +165,7 @@ const AddbillList: React.FC<{}> = () => {
})
}
const
handleJumpAdd
=
()
=>
{
history
.
push
(
'/memberCenter/contract/funds/addbill/
A
dd'
)
history
.
push
(
'/memberCenter/contract/funds/addbill/
a
dd'
)
};
...
...
src/pages/procurement/callForBids/readySendBidNotice/model/useSelfTable.tsx
View file @
a8229093
...
...
@@ -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
>
...
...
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