fix: ticketList service
parent
6f960d46a8
commit
3242b16e3d
|
|
@ -255,7 +255,9 @@ export default class MainPage extends Component<{}, MainPageState> {
|
||||||
className='at-article__h3'
|
className='at-article__h3'
|
||||||
style={{ marginBottom: '20rpx', fontWeight: 'bold' }}
|
style={{ marginBottom: '20rpx', fontWeight: 'bold' }}
|
||||||
>
|
>
|
||||||
{memberPage.ticketList.hint}
|
{(this.state.fixList.length === 0
|
||||||
|
? memberPage.ticketList.nohint
|
||||||
|
: '') + memberPage.ticketList.hint}
|
||||||
</View>
|
</View>
|
||||||
<AtList>{fixListRenderer}</AtList>
|
<AtList>{fixListRenderer}</AtList>
|
||||||
<AtList>
|
<AtList>
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,7 @@ export interface MemberPageText {
|
||||||
stepList: Array<{ title: string }>;
|
stepList: Array<{ title: string }>;
|
||||||
tipsList: Array<{ title: string }>;
|
tipsList: Array<{ title: string }>;
|
||||||
ticketList: {
|
ticketList: {
|
||||||
|
nohint: string;
|
||||||
hint: string;
|
hint: string;
|
||||||
title: string;
|
title: string;
|
||||||
note: string;
|
note: string;
|
||||||
|
|
@ -147,6 +148,7 @@ export const memberPageZhCn: MemberPageText = {
|
||||||
{ title: '螺丝上了吗?电源排线插了吗?' },
|
{ title: '螺丝上了吗?电源排线插了吗?' },
|
||||||
],
|
],
|
||||||
ticketList: {
|
ticketList: {
|
||||||
|
nohint: '暂无',
|
||||||
hint: '七日内未完成工单',
|
hint: '七日内未完成工单',
|
||||||
title: '预填写工单列表',
|
title: '预填写工单列表',
|
||||||
note: '在这里查看所有的预填写工单!',
|
note: '在这里查看所有的预填写工单!',
|
||||||
|
|
@ -241,6 +243,7 @@ export const memberPageEnUs: MemberPageText = {
|
||||||
{ title: 'Are the screws on? Is the power cable plugged in?' },
|
{ title: 'Are the screws on? Is the power cable plugged in?' },
|
||||||
],
|
],
|
||||||
ticketList: {
|
ticketList: {
|
||||||
|
nohint: 'N/A ',
|
||||||
hint: 'Uncompleted tickets in 7 days',
|
hint: 'Uncompleted tickets in 7 days',
|
||||||
title: 'Pre-filling ticket list',
|
title: 'Pre-filling ticket list',
|
||||||
note: 'Browse for all pre-filling tickets here!',
|
note: 'Browse for all pre-filling tickets here!',
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ export function getTicketList(that: TicketListPage) {
|
||||||
}
|
}
|
||||||
that.setState({
|
that.setState({
|
||||||
rs: former.trans(true),
|
rs: former.trans(true),
|
||||||
fixList: data.data.map(
|
fixList: data.list.map(
|
||||||
(item: {
|
(item: {
|
||||||
id: number;
|
id: number;
|
||||||
device: string;
|
device: string;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue