Commit adfc6efb authored by XieZhiXiong's avatar XieZhiXiong

chore: 补充拜访人名称字段

parent 6c107f3a
......@@ -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, visitor, visitDate, 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)) : [],
});
......
......@@ -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, visitor, visitDate, 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)) : [],
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment