il8n,css
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
title="管理员认证"
|
||||
:title="$t('Administratorauthentication')"
|
||||
:visible.sync="dialogVisible"
|
||||
width="50%"
|
||||
:before-close="handleClose">
|
||||
<p class="tip">暂未登录</p>
|
||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" label-width="1.1rem" size="mini">
|
||||
<el-form-item label="管理员密码" prop="password">
|
||||
<el-input placeholder="请输入管理员密码" v-model="dataForm.password" show-password @focus="show" data-layout="normal"></el-input>
|
||||
<p class="tip">{{$t('Notloggedinyet')}}</p>
|
||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" :label-width="$i18n.locale === 'en-us' ? '' : '1.1rem'" size="mini">
|
||||
<el-form-item :label="$t('Administratorpassword')" prop="password">
|
||||
<el-input :placeholder="$t('Pleasepassword')" v-model="dataForm.password" show-password @focus="show" data-layout="normal"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-row type="flex" justify="space-around" style="margin-top: .3rem">
|
||||
<el-col :span="7"><button class="button_control button_control_disabled" @click="exitUser"><p>退出账户</p></button></el-col>
|
||||
<el-col :span="7"><button class="button_control" @click="dataFormSubmit"><p>登录</p></button></el-col>
|
||||
<el-col :span="7"><button class="button_control button_control_disabled" @click="exitUser"><p>{{ $t('Logout') }}</p></button></el-col>
|
||||
<el-col :span="7"><button class="button_control" @click="dataFormSubmit"><p>{{$t('Login')}}</p></button></el-col>
|
||||
</el-row>
|
||||
<vue-touch-keyboard id="keyboard" :options="options" v-if="visible" :layout="layout" :cancel="hide" :accept="accept" :input="input" :next="next" />
|
||||
</el-dialog>
|
||||
@@ -28,7 +28,7 @@ export default {
|
||||
},
|
||||
dataRule: {
|
||||
password: [
|
||||
{ required: true, message: '密码不能为空', trigger: 'blur' }
|
||||
{ required: true, message: this.$t('Passwordnotempty'), trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
visible: false,
|
||||
|
||||
Reference in New Issue
Block a user