refactor DetailFramework and service/ticketsInfo

This commit is contained in:
Dawn_Ocean
2024-03-14 10:42:30 +08:00
parent b1c0e5d8b1
commit c070b356fe
5 changed files with 172 additions and 118 deletions
+14 -1
View File
@@ -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>
);
}
+8
View File
@@ -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';