fix: dutyinfo display in mainpage
parent
54d9dc45b4
commit
96dc81bd82
|
|
@ -92,13 +92,13 @@ export class DutyInfo extends Component {
|
|||
{
|
||||
title:
|
||||
data.currentDuty == '0'
|
||||
? pt.get().mainPage.normal.reason
|
||||
? od.reason(pt.get().common.offDutyReason)
|
||||
: od.reason(data.offDutyReason as string),
|
||||
},
|
||||
{
|
||||
title:
|
||||
data.currentDuty == '0'
|
||||
? pt.get().mainPage.normal.recoverTime
|
||||
? od.recoverTime(pt.get().common.dutyRecoverTime)
|
||||
: od.recoverTime(data.dutyRecoverTime as string),
|
||||
},
|
||||
]}
|
||||
|
|
|
|||
|
|
@ -20,14 +20,14 @@ export function getMemberDutyInfo(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,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ export function getTicketList(that: TicketListPage) {
|
|||
token: wechatUser.getToken(),
|
||||
pageId: that.state.currentPage,
|
||||
count: that.state.pageSize,
|
||||
querytype: 0,
|
||||
queryType: 0,
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
|
|
@ -67,7 +67,7 @@ export function searchTicketList(that: TicketListPage) {
|
|||
pageId: that.state.currentPage,
|
||||
count: that.state.pageSize,
|
||||
value: that.state.search,
|
||||
querytype: 0,
|
||||
queryType: 0,
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue