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
b5857171
Commit
b5857171
authored
Apr 07, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 放开删除操作
parent
adfc6efb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
index.tsx
src/pages/member/memberVisitManage/index.tsx
+19
-19
No files found.
src/pages/member/memberVisitManage/index.tsx
View file @
b5857171
...
...
@@ -10,7 +10,7 @@ import { createFormActions } from '@formily/antd';
import
moment
from
'moment'
;
import
{
GetMemberVisitListResponseDetail
,
// ge
tMemberVisitDelete,
pos
tMemberVisitDelete
,
getMemberVisitList
,
getMemberVisitVisitTypeItems
,
}
from
'@/services/MemberV2Api'
;
...
...
@@ -44,24 +44,24 @@ const MemberVisitManageIndex: React.FC<{}> = props => {
};
const
handleDeleteMemberVisitRecord
=
(
record
:
GetMemberVisitListRequestResponse
)
=>
{
//
if (record.id === deleteLoadingKey) {
//
return;
//
}
//
const msg = message.loading({
//
content: '正在删除,请稍候...',
//
duration: 0,
//
});
//
setDeleteLoadingKey(record.id);
// ge
tMemberVisitDelete({
// id: `${record.id}`
,
//
}).then((res) => {
//
if (res.code === 1000) {
//
polymericRef.current?.reload();
//
}
//
}).finally(() => {
//
msg();
//
setDeleteLoadingKey(0);
//
});
if
(
record
.
id
===
deleteLoadingKey
)
{
return
;
}
const
msg
=
message
.
loading
({
content
:
'正在删除,请稍候...'
,
duration
:
0
,
});
setDeleteLoadingKey
(
record
.
id
);
pos
tMemberVisitDelete
({
id
:
record
.
id
,
}).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
polymericRef
.
current
?.
reload
();
}
}).
finally
(()
=>
{
msg
();
setDeleteLoadingKey
(
0
);
});
};
const
columns
:
ColumnType
<
GetMemberVisitListRequestResponse
>
[]
=
[
...
...
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