fix askleave locale & layout
parent
6325147e81
commit
d7cdf46026
|
|
@ -22,10 +22,7 @@ export default class AskLeavePage extends Component {
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
isDisable: false,
|
isDisable: false,
|
||||||
showModal: false,
|
showModal: false,
|
||||||
range: [
|
range: [pt.get().askLeave.shift.week, pt.get().askLeave.shift.shift],
|
||||||
['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
|
|
||||||
['第一班', '第二班', '第三班'],
|
|
||||||
],
|
|
||||||
shift: [0, 0],
|
shift: [0, 0],
|
||||||
reason: '',
|
reason: '',
|
||||||
substitute: '',
|
substitute: '',
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,8 @@ export default class TitleCard extends React.Component {
|
||||||
<View
|
<View
|
||||||
className={
|
className={
|
||||||
wechatUser.getAccess()
|
wechatUser.getAccess()
|
||||||
? 'page-title at-col-6'
|
? 'at-col page-title at-col-1 at-col--auto'
|
||||||
: 'page-title at-col-10'
|
: 'at-col page-title at-col-10 at-col--wrap'
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<View className='at-article__h1' style={{ fontWeight: 'bold' }}>
|
<View className='at-article__h1' style={{ fontWeight: 'bold' }}>
|
||||||
|
|
@ -44,7 +44,7 @@ export default class TitleCard extends React.Component {
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
{wechatUser.getAccess() ? (
|
{wechatUser.getAccess() ? (
|
||||||
<View className='at-col at-col-3'>
|
<View className='at-col at-col-1 at-col--auto'>
|
||||||
<AtButton type='secondary' onClick={this.onAskLeave}>
|
<AtButton type='secondary' onClick={this.onAskLeave}>
|
||||||
{pt.get().mainPage.askLeave}
|
{pt.get().mainPage.askLeave}
|
||||||
</AtButton>
|
</AtButton>
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ export const mainPageEnUs: MainPageText = {
|
||||||
recoverTime: 'Tomorrow 13:30',
|
recoverTime: 'Tomorrow 13:30',
|
||||||
reason: 'Normal shift',
|
reason: 'Normal shift',
|
||||||
},
|
},
|
||||||
askLeave: 'Ask for leave',
|
askLeave: 'Absence',
|
||||||
conclusion: 'Submit Duty Conclusion',
|
conclusion: 'Submit Duty Conclusion',
|
||||||
titleLine: {
|
titleLine: {
|
||||||
main: 'Hi! This is EVA.',
|
main: 'Hi! This is EVA.',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue