Commit 4cc3d73b authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改字段名

parent 53dd8b9f
...@@ -86,11 +86,11 @@ const createSchema = (showExplain = true): ISchema => ({ ...@@ -86,11 +86,11 @@ const createSchema = (showExplain = true): ISchema => ({
], ],
}, },
...(showExplain ? { ...(showExplain ? {
replayTime: { replyTime: {
type: 'string', type: 'string',
title: '商家时间', title: '商家时间',
}, },
replayContent: { replyContent: {
type: 'string', type: 'string',
title: '商家解释', title: '商家解释',
}, },
......
...@@ -84,7 +84,7 @@ export interface RecordItem { ...@@ -84,7 +84,7 @@ export interface RecordItem {
/** /**
* 是否已解释,被评价方回复 0-否 1-是 * 是否已解释,被评价方回复 0-否 1-是
*/ */
replayStatus?: number, replyStatus?: number,
}; };
export interface RecordRes { export interface RecordRes {
...@@ -372,7 +372,7 @@ export default class RecordList extends React.Component<RecordListProps, RecordL ...@@ -372,7 +372,7 @@ export default class RecordList extends React.Component<RecordListProps, RecordL
{editable && ( {editable && (
<Button type="link" onClick={() => this.handleEdit(item)}>编辑</Button> <Button type="link" onClick={() => this.handleEdit(item)}>编辑</Button>
)} )}
{explicable && item.replayStatus === 0 && ( {explicable && item.replyStatus === 0 && (
<Button type="link" onClick={() => this.handleExplain(item)}>解释</Button> <Button type="link" onClick={() => this.handleExplain(item)}>解释</Button>
)} )}
<Button type="link" onClick={() => this.handleCheck(item)}>查看</Button> <Button type="link" onClick={() => this.handleCheck(item)}>查看</Button>
......
...@@ -228,7 +228,7 @@ const Analysis: React.FC<AnalysisProps> = ({ ...@@ -228,7 +228,7 @@ const Analysis: React.FC<AnalysisProps> = ({
created: item.dealTime as string, created: item.dealTime as string,
target: item.memberName, target: item.memberName,
orderId: item.orderId, orderId: item.orderId,
replayStatus: item.replayStatus, replyStatus: item.replyStatus,
}; };
}), }),
totalCount, totalCount,
......
...@@ -32,8 +32,8 @@ interface Unevaluated { ...@@ -32,8 +32,8 @@ interface Unevaluated {
comment: string; comment: string;
picture: FileData[]; picture: FileData[];
smile: number; smile: number;
replayContent: string, replyContent: string,
replayTime: string, replyTime: string,
}; };
interface OrderInfo { interface OrderInfo {
...@@ -71,8 +71,8 @@ const ReceivedDetail: React.FC = () => { ...@@ -71,8 +71,8 @@ const ReceivedDetail: React.FC = () => {
comment: res.data.comment, comment: res.data.comment,
picture: res.data.pics ? res.data.pics.map(item => normalizeFiledata(item)) : [], picture: res.data.pics ? res.data.pics.map(item => normalizeFiledata(item)) : [],
smile: res.data.star, smile: res.data.star,
replayContent: res.data.replayContent, replyContent: res.data.replyContent,
replayTime: res.data.replayTime, replyTime: res.data.replyTime,
}); });
setOrderInfo({ setOrderInfo({
orderNo: res.data.orderNo, orderNo: res.data.orderNo,
......
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