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
adfc6efb
Commit
adfc6efb
authored
Apr 07, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 补充拜访人名称字段
parent
6c107f3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
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/memberVisitDetails.tsx
View file @
adfc6efb
...
...
@@ -21,11 +21,11 @@ const MemberVisitDetails: React.FC<{}> = (props) => {
id
:
id
,
}).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
const
{
memberId
,
visitorId
,
visitDate
,
visitAttachments
,
...
rest
}
=
res
.
data
;
const
{
memberId
,
visitorId
,
visit
or
,
visit
Date
,
visitAttachments
,
...
rest
}
=
res
.
data
;
setMemberLevelDetails
({
...
rest
,
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'
),
files
:
visitAttachments
?
visitAttachments
.
map
((
item
)
=>
normalizeFiledata
(
item
.
url
))
:
[],
});
...
...
src/pages/member/memberVisitManage/modifyMemberVisit.tsx
View file @
adfc6efb
...
...
@@ -22,11 +22,11 @@ const ModifyMemberVisit: React.FC<{}> = (props) => {
id
:
id
,
}).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
const
{
memberId
,
visitorId
,
visitDate
,
visitAttachments
,
...
rest
}
=
res
.
data
;
const
{
memberId
,
visitorId
,
visit
or
,
visit
Date
,
visitAttachments
,
...
rest
}
=
res
.
data
;
setMemberLevelDetails
({
...
rest
,
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'
),
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