add ticket detail button
This commit is contained in:
@@ -3,6 +3,7 @@ import { Component, ReactNode } from 'react';
|
||||
import { TicketNote, StatusStr } from '@/pages/TicketDetail/TicketNote';
|
||||
import pt from '@/plain-text';
|
||||
import { timeFormat } from '@/utils';
|
||||
import { AtDivider } from 'taro-ui';
|
||||
import './NoteCard.scss';
|
||||
|
||||
interface NoteCardProps {
|
||||
@@ -13,6 +14,7 @@ export default class NoteCard extends Component<NoteCardProps, {}> {
|
||||
props: Readonly<NoteCardProps> = {
|
||||
note: new TicketNote(),
|
||||
};
|
||||
|
||||
render(): ReactNode {
|
||||
var message = '';
|
||||
const note = this.props.note;
|
||||
@@ -35,10 +37,12 @@ export default class NoteCard extends Component<NoteCardProps, {}> {
|
||||
|
||||
return (
|
||||
<View>
|
||||
<View>
|
||||
{note.op} {note.createdTime.format(timeFormat)}
|
||||
<View className='at-article__h2'>{note.op}</View>
|
||||
<View className='at-article__info'>
|
||||
{note.createdTime.format(timeFormat)}
|
||||
</View>
|
||||
<View>{message}</View>
|
||||
<View className='at-article__p'>{message}</View>
|
||||
<AtDivider />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ export default class NoteList extends Component<NoteListProps, {}> {
|
||||
return (
|
||||
<View>
|
||||
{this.props.noteList.map((note, idx) => (
|
||||
<View key={idx} style={{ marginTop: 8 }}>
|
||||
<View key={idx}>
|
||||
<NoteCard note={note} />
|
||||
</View>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user