Commit a4ba0c61 authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改字段名

parent c4fd370b
...@@ -67,7 +67,7 @@ const EvaluateOrder: React.FC = () => { ...@@ -67,7 +67,7 @@ const EvaluateOrder: React.FC = () => {
unevaluatedList, unevaluatedList,
}); });
unevaluatedList.forEach((item, index) => { unevaluatedList.forEach((item, index) => {
if (item.completeCommentStatus) { if (item.commentStatus) {
formActions.setFieldState(`comments.${index}.*`, (fieldState) => { formActions.setFieldState(`comments.${index}.*`, (fieldState) => {
fieldState.editable = false; fieldState.editable = false;
}); });
......
...@@ -29,7 +29,7 @@ export const normalizeUnevaluatedList = (arr: {[key: string]: any}[]) => { ...@@ -29,7 +29,7 @@ export const normalizeUnevaluatedList = (arr: {[key: string]: any}[]) => {
comment: undefined, // 评价 comment: undefined, // 评价
picture: [], picture: [],
smile: undefined, // 笑脸 smile: undefined, // 笑脸
completeCommentStatus: item.completeCommentStatus, commentStatus: item.commentStatus,
}; };
ret.push(atom); ret.push(atom);
}); });
......
...@@ -67,7 +67,7 @@ const EvaluateOrder: React.FC = () => { ...@@ -67,7 +67,7 @@ const EvaluateOrder: React.FC = () => {
unevaluatedList, unevaluatedList,
}); });
unevaluatedList.forEach((item, index) => { unevaluatedList.forEach((item, index) => {
if (item.completeCommentStatus) { if (item.commentStatus) {
formActions.setFieldState(`comments.${index}.*`, (fieldState) => { formActions.setFieldState(`comments.${index}.*`, (fieldState) => {
fieldState.editable = false; fieldState.editable = false;
}); });
......
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