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