Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
project
jinfa-admin
Commits
2163c70c
Commit
2163c70c
authored
Dec 28, 2020
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加删除结算策略
parent
63cee027
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
index.tsx
...leSettingManage/platformSettlementStrategy/list/index.tsx
+14
-2
No files found.
src/pages/ruleSettingManage/platformSettlementStrategy/list/index.tsx
View file @
2163c70c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
*/
*/
import
React
,
{
useRef
}
from
'react'
;
import
React
,
{
useRef
}
from
'react'
;
import
{
Card
,
Button
}
from
'antd'
;
import
{
Card
,
Button
,
Space
}
from
'antd'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
{
StandardTable
}
from
'god'
;
import
{
StandardTable
}
from
'god'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
...
@@ -75,12 +75,24 @@ const MemberSettle: React.FC<{}> = () => {
...
@@ -75,12 +75,24 @@ const MemberSettle: React.FC<{}> = () => {
return
null
return
null
}
}
return
(
return
(
<
Link
to=
{
`/ruleSettingManager/platformSettlementStrategy/edit?id=${record.id}`
}
>
修改
</
Link
>
<
Space
>
<
Link
to=
{
`/ruleSettingManager/platformSettlementStrategy/edit?id=${record.id}`
}
>
修改
</
Link
>
<
Button
type=
"link"
onClick=
{
()
=>
handleRemove
({
id
:
record
.
id
})
}
>
删除
</
Button
>
</
Space
>
)
)
}
}
},
},
]
]
const
handleRemove
=
(
params
)
=>
{
PublicApi
.
postSettleAccountsPlatformConfigDeletePlatformSettlementStrategy
(
params
)
.
then
(({
data
,
code
})
=>
{
if
(
code
===
1000
)
{
formActions
.
submit
();
}
})
}
const
goToCreate
=
()
=>
{
const
goToCreate
=
()
=>
{
history
.
push
(
'/ruleSettingManager/platformSettlementStrategy/add'
);
history
.
push
(
'/ruleSettingManager/platformSettlementStrategy/add'
);
}
}
...
...
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