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
linweijiong
jinfa-platform
Commits
4cfd3adc
Commit
4cfd3adc
authored
Nov 10, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 品牌操作显示异常
parent
dea2e0f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
index.tsx
src/pages/trademark/index.tsx
+11
-7
No files found.
src/pages/trademark/index.tsx
View file @
4cfd3adc
...
...
@@ -93,6 +93,7 @@ const Trademark: React.FC<{}> = () => {
title
:
'操作'
,
dataIndex
:
'option'
,
render
:
(
text
:
any
,
record
:
any
)
=>
{
// 1待提交审核 2待审核 3审核不通过 4审核通过
return
(
(
record
.
status
!==
2
)
?
<>
{
...
...
@@ -100,11 +101,9 @@ const Trademark: React.FC<{}> = () => {
<
Button
type=
'link'
onClick=
{
()
=>
handleApplyCheck
(
record
)
}
>
提交审核
</
Button
>
<
Dropdown
overlay=
{
<
Menu
>
{
record
.
isEnable
&&
<
Menu
.
Item
>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/commodityAbility/trademark/edit?id=${record.id}`
)
}
>
修改
</
Button
>
</
Menu
.
Item
>
}
<
Menu
.
Item
>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/commodityAbility/trademark/edit?id=${record.id}`
)
}
>
修改
</
Button
>
</
Menu
.
Item
>
<
Menu
.
Item
>
<
Button
onClick=
{
()
=>
handelDelete
(
record
)
}
type=
'link'
>
删除
</
Button
>
</
Menu
.
Item
>
...
...
@@ -115,11 +114,16 @@ const Trademark: React.FC<{}> = () => {
</
a
>
</
Dropdown
>
</>
:
// 3 / 4
<>
{
record
.
isEnable
&&
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/commodityAbility/trademark/add?id=${record.id}`
)
}
>
修改
</
Button
>
record
.
isEnable
&&
<>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/commodityAbility/trademark/add?id=${record.id}`
)
}
>
修改
</
Button
>
</>
}
{
record
.
status
===
3
&&
<
Button
onClick=
{
()
=>
handelDelete
(
record
)
}
type=
'link'
>
删除
</
Button
>
}
<
Button
onClick=
{
()
=>
handelDelete
(
record
)
}
type=
'link'
>
删除
</
Button
>
</>
}
</>
:
''
...
...
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