fix: add space in my continuing tickets; dutyinfo data process
parent
5cc3387008
commit
590db1f3fd
|
|
@ -194,29 +194,30 @@ export default class RepairPage extends Component<{}, RepairPageState> {
|
|||
{pt.get().repairPage.currentTicket.hint}
|
||||
</View>
|
||||
{this.state.currentTicketsIdName.map((pair, idx) => (
|
||||
<AtCard
|
||||
key={idx}
|
||||
title={pair.values().next().value} //pair.keys().next().value == ticket['device'] + ' ' + ticket['deviceModel']
|
||||
extra={pt.get().repairPage.currentTicket.extra}
|
||||
onClick={() => {
|
||||
Taro.navigateTo({
|
||||
url:
|
||||
'/pages/TicketDetail/TicketDetail?id=' +
|
||||
pair.keys().next().value,
|
||||
});
|
||||
}}
|
||||
note={
|
||||
pt.get().tips.tipsText[
|
||||
randomInt(0, pt.get().tips.tipsText.length - 1)
|
||||
]
|
||||
}
|
||||
>
|
||||
<DetailFramework
|
||||
id={pair.keys().next().value} //pair.keys().next().value == id
|
||||
isInfoShow={isInfoShow}
|
||||
middleButton={middleButton}
|
||||
/>
|
||||
</AtCard>
|
||||
<View key={idx} style={{ marginBottom: '20rpx' }}>
|
||||
<AtCard
|
||||
title={pair.values().next().value} //pair.keys().next().value == ticket['device'] + ' ' + ticket['deviceModel']
|
||||
extra={pt.get().repairPage.currentTicket.extra}
|
||||
onClick={() => {
|
||||
Taro.navigateTo({
|
||||
url:
|
||||
'/pages/TicketDetail/TicketDetail?id=' +
|
||||
pair.keys().next().value,
|
||||
});
|
||||
}}
|
||||
note={
|
||||
pt.get().tips.tipsText[
|
||||
randomInt(0, pt.get().tips.tipsText.length - 1)
|
||||
]
|
||||
}
|
||||
>
|
||||
<DetailFramework
|
||||
id={pair.keys().next().value} //pair.keys().next().value == id
|
||||
isInfoShow={isInfoShow}
|
||||
middleButton={middleButton}
|
||||
/>
|
||||
</AtCard>
|
||||
</View>
|
||||
))}
|
||||
</View>
|
||||
) : (
|
||||
|
|
|
|||
|
|
@ -28,14 +28,14 @@ export function getDutyInfo(that: MainPage) {
|
|||
if (!data.isInDuty) {
|
||||
that.setState({
|
||||
dutyData: {
|
||||
...that.state.dutyData,
|
||||
...data,
|
||||
offDutyReason: pt.get().common.offDutyReason,
|
||||
},
|
||||
});
|
||||
if (data.currentDuty === '0') {
|
||||
that.setState({
|
||||
dutyData: {
|
||||
...that.state.dutyData,
|
||||
...data,
|
||||
place: pt.get().common.place,
|
||||
offDutyReason: pt.get().common.offDutyReason,
|
||||
dutyRecoverTime: pt.get().common.dutyRecoverTime,
|
||||
|
|
@ -45,7 +45,7 @@ export function getDutyInfo(that: MainPage) {
|
|||
} else {
|
||||
that.setState({
|
||||
dutyData: {
|
||||
...that.state.dutyData,
|
||||
...data,
|
||||
place: pt.get().common.place,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue