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
57e4b125
Commit
57e4b125
authored
Apr 07, 2022
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-v2-220418' into 'v2-220418'
fix: 修复会员拜访相关bug See merge request linkseeks-design/pro-platform!142
parents
6c107f3a
b5857171
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
23 deletions
+23
-23
index.tsx
src/pages/member/memberVisitManage/index.tsx
+19
-19
memberVisitDetails.tsx
src/pages/member/memberVisitManage/memberVisitDetails.tsx
+2
-2
modifyMemberVisit.tsx
src/pages/member/memberVisitManage/modifyMemberVisit.tsx
+2
-2
No files found.
src/pages/member/memberVisitManage/index.tsx
View file @
57e4b125
...
@@ -10,7 +10,7 @@ import { createFormActions } from '@formily/antd';
...
@@ -10,7 +10,7 @@ import { createFormActions } from '@formily/antd';
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
import
{
GetMemberVisitListResponseDetail
,
GetMemberVisitListResponseDetail
,
// ge
tMemberVisitDelete,
pos
tMemberVisitDelete
,
getMemberVisitList
,
getMemberVisitList
,
getMemberVisitVisitTypeItems
,
getMemberVisitVisitTypeItems
,
}
from
'@/services/MemberV2Api'
;
}
from
'@/services/MemberV2Api'
;
...
@@ -44,24 +44,24 @@ const MemberVisitManageIndex: React.FC<{}> = props => {
...
@@ -44,24 +44,24 @@ const MemberVisitManageIndex: React.FC<{}> = props => {
};
};
const
handleDeleteMemberVisitRecord
=
(
record
:
GetMemberVisitListRequestResponse
)
=>
{
const
handleDeleteMemberVisitRecord
=
(
record
:
GetMemberVisitListRequestResponse
)
=>
{
//
if (record.id === deleteLoadingKey) {
if
(
record
.
id
===
deleteLoadingKey
)
{
//
return;
return
;
//
}
}
//
const msg = message.loading({
const
msg
=
message
.
loading
({
//
content: '正在删除,请稍候...',
content
:
'正在删除,请稍候...'
,
//
duration: 0,
duration
:
0
,
//
});
});
//
setDeleteLoadingKey(record.id);
setDeleteLoadingKey
(
record
.
id
);
// ge
tMemberVisitDelete({
pos
tMemberVisitDelete
({
// id: `${record.id}`
,
id
:
record
.
id
,
//
}).then((res) => {
}).
then
((
res
)
=>
{
//
if (res.code === 1000) {
if
(
res
.
code
===
1000
)
{
//
polymericRef.current?.reload();
polymericRef
.
current
?.
reload
();
//
}
}
//
}).finally(() => {
}).
finally
(()
=>
{
//
msg();
msg
();
//
setDeleteLoadingKey(0);
setDeleteLoadingKey
(
0
);
//
});
});
};
};
const
columns
:
ColumnType
<
GetMemberVisitListRequestResponse
>
[]
=
[
const
columns
:
ColumnType
<
GetMemberVisitListRequestResponse
>
[]
=
[
...
...
src/pages/member/memberVisitManage/memberVisitDetails.tsx
View file @
57e4b125
...
@@ -21,11 +21,11 @@ const MemberVisitDetails: React.FC<{}> = (props) => {
...
@@ -21,11 +21,11 @@ const MemberVisitDetails: React.FC<{}> = (props) => {
id
:
id
,
id
:
id
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
const
{
memberId
,
visitorId
,
visitDate
,
visitAttachments
,
...
rest
}
=
res
.
data
;
const
{
memberId
,
visitorId
,
visit
or
,
visit
Date
,
visitAttachments
,
...
rest
}
=
res
.
data
;
setMemberLevelDetails
({
setMemberLevelDetails
({
...
rest
,
...
rest
,
subMember
:
[{
memberId
:
memberId
,
name
:
rest
.
memberName
}]
as
any
[],
subMember
:
[{
memberId
:
memberId
,
name
:
rest
.
memberName
}]
as
any
[],
visitorMember
:
[{
userId
:
visitorId
}]
as
any
[],
visitorMember
:
[{
userId
:
visitorId
,
name
:
visitor
}]
as
any
[],
visitDate
:
moment
(
visitDate
).
format
(
'YYYY-MM-DD'
),
visitDate
:
moment
(
visitDate
).
format
(
'YYYY-MM-DD'
),
files
:
visitAttachments
?
visitAttachments
.
map
((
item
)
=>
normalizeFiledata
(
item
.
url
))
:
[],
files
:
visitAttachments
?
visitAttachments
.
map
((
item
)
=>
normalizeFiledata
(
item
.
url
))
:
[],
});
});
...
...
src/pages/member/memberVisitManage/modifyMemberVisit.tsx
View file @
57e4b125
...
@@ -22,11 +22,11 @@ const ModifyMemberVisit: React.FC<{}> = (props) => {
...
@@ -22,11 +22,11 @@ const ModifyMemberVisit: React.FC<{}> = (props) => {
id
:
id
,
id
:
id
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
const
{
memberId
,
visitorId
,
visitDate
,
visitAttachments
,
...
rest
}
=
res
.
data
;
const
{
memberId
,
visitorId
,
visit
or
,
visit
Date
,
visitAttachments
,
...
rest
}
=
res
.
data
;
setMemberLevelDetails
({
setMemberLevelDetails
({
...
rest
,
...
rest
,
subMember
:
[{
memberId
:
memberId
,
name
:
rest
.
memberName
}]
as
any
[],
subMember
:
[{
memberId
:
memberId
,
name
:
rest
.
memberName
}]
as
any
[],
visitorMember
:
[{
userId
:
visitorId
}]
as
any
[],
visitorMember
:
[{
userId
:
visitorId
,
name
:
visitor
}]
as
any
[],
visitDate
:
moment
(
visitDate
).
format
(
'YYYY-MM-DD'
),
visitDate
:
moment
(
visitDate
).
format
(
'YYYY-MM-DD'
),
files
:
visitAttachments
?
visitAttachments
.
map
((
item
)
=>
normalizeFiledata
(
item
.
url
))
:
[],
files
:
visitAttachments
?
visitAttachments
.
map
((
item
)
=>
normalizeFiledata
(
item
.
url
))
:
[],
});
});
...
...
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