|
@@ -81,12 +81,22 @@
|
|
|
/>
|
|
|
<div class="code" @click="getCode"><img :src="'data:image/jpeg;base64,' + codeImage" alt="" /></div>
|
|
|
</el-form-item>
|
|
|
-
|
|
|
<el-checkbox v-model="isRemenberPw">记住密码</el-checkbox>
|
|
|
-
|
|
|
<div class="button-container">
|
|
|
<el-button :loading="loading" type="primary" @click.native.prevent="handleLogin">登录</el-button>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="buxuyaoinpiy">
|
|
|
+ <el-form-item label="语言切换">
|
|
|
+ <el-select v-model="yuyanvalue" placeholder="请选择">
|
|
|
+ <el-option label="中文" value="zh"></el-option>
|
|
|
+ <el-option label="俄文" value="ru"></el-option>
|
|
|
+ <el-option label="英文" value="en"></el-option>
|
|
|
+ <el-option label="日文" value="ja"></el-option>
|
|
|
+ <el-option label="阿拉伯文" value="ar"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -180,7 +190,8 @@ export default {
|
|
|
codeImage: '',
|
|
|
banner: [],
|
|
|
companyList: [],
|
|
|
- dictList: []
|
|
|
+ dictList: [],
|
|
|
+ yuyanvalue: window?.Vue_Translation_Of_Text_Type || 'zh'
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -189,6 +200,9 @@ export default {
|
|
|
this.redirect = route.query && route.query.redirect
|
|
|
},
|
|
|
immediate: true
|
|
|
+ },
|
|
|
+ yuyanvalue(newVal) {
|
|
|
+ this.$setLanguage(newVal)
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -335,6 +349,17 @@ $back: #333;
|
|
|
color: #ffffff;
|
|
|
}
|
|
|
|
|
|
+.buxuyaoinpiy {
|
|
|
+ .el-input {
|
|
|
+ input {
|
|
|
+ padding: 0 !important;
|
|
|
+ height: 40px !important;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ height: 40px !important;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
/* reset element-ui css */
|
|
|
.login-container {
|
|
|
background: url('~@/assets/login/background.png') center center;
|