refactor DetailFramework and service/ticketsInfo
This commit is contained in:
@@ -43,9 +43,22 @@ export default class TicketDetail extends Component<{}, TicketDetailState> {
|
||||
</View>
|
||||
);
|
||||
|
||||
const isInfoShow = {
|
||||
device: true,
|
||||
createdTime: true,
|
||||
description: true,
|
||||
current: true,
|
||||
notelist: true,
|
||||
showAllNotes: true,
|
||||
};
|
||||
|
||||
return (
|
||||
<View>
|
||||
<DetailFramework middleButton={middleButton} id={this.state.id} />
|
||||
<DetailFramework
|
||||
middleButton={middleButton}
|
||||
id={this.state.id}
|
||||
isInfoShow={isInfoShow}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -18,4 +18,12 @@ export class TicketNote {
|
||||
createdTime: moment.Moment;
|
||||
}
|
||||
|
||||
export class ShowElements {
|
||||
device: JSX.Element;
|
||||
createdTime: JSX.Element;
|
||||
description: JSX.Element;
|
||||
current: JSX.Element;
|
||||
notelist: JSX.Element;
|
||||
}
|
||||
|
||||
export type StatusStr = '1' | '2' | '3' | '4' | '5';
|
||||
|
||||
Reference in New Issue
Block a user