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