fix: comment type

mgy
Dawn_Ocean 2024-05-09 17:39:41 +08:00
parent 206eb49893
commit 54d9dc45b4
3 changed files with 9 additions and 3 deletions

View File

@ -31,12 +31,15 @@ export default class NoteCard extends Component<NoteCardProps, {}> {
message = createMessage;
break;
case 1:
message = note.content;
pic = note.pic;
message = pt.get().ticketDetail.comment.picked;
break;
case 2:
message = prefix + modifyMessage.get(note.content as StatusStr) || '';
break;
case 3:
message = note.content;
pic = note.pic;
break;
}
const showPicDetail = (url: string) => {

View File

@ -16,7 +16,7 @@ export class TicketNote {
avatar: string;
id: number;
op: string;
type: 0 | 1 | 2;
type: 0 | 1 | 2 | 3;
content: string;
createdTime: moment.Moment;
pic: string[];

View File

@ -33,6 +33,7 @@ export interface TicketDetailText {
comment: {
title: string;
placeholder: string;
picked: string;
createTicketMessage: string;
statusModifyPrefix: string;
uploadPic: {
@ -79,6 +80,7 @@ export const ticketDetailZhCn: TicketDetailText = {
},
comment: {
title: '添加评论',
picked: '认领了维修',
placeholder: '可以在这里交流机器情况、维修进度、提出问题~',
createTicketMessage: '创建了维修',
statusModifyPrefix: '将维修状态改为:',
@ -134,6 +136,7 @@ export const ticketDetailEnUs: TicketDetailText = {
},
comment: {
title: 'Add comment',
picked: 'Picked this ticket',
placeholder:
'You can exchange information the device, the progress of repairs, and ask questions here.',
createTicketMessage: 'Created ticket',