CN-60 fix:lang下拉框选择数据
This commit is contained in:
@@ -21,8 +21,17 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--lang-->
|
<!--lang-->
|
||||||
<el-form-item :label="$t('config.I18n.lang')" prop="lang">
|
<el-form-item :label="$t('config.I18n.lang')" prop="lang">
|
||||||
<el-input id="account-input-password" v-model="editObject.lang" maxlength="64" placeholder=""
|
<el-select placeholder="请选择" v-model="editObject.lang" style="width:640px;">
|
||||||
show-word-limit size="small" @blur="pinBlur" autocomplete="new-password"></el-input>
|
<el-option
|
||||||
|
v-for="item in options"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
<!-- <el-input id="account-input-password" v-model="editObject.lang" maxlength="64" placeholder=""
|
||||||
|
show-word-limit size="small" @blur="pinBlur" autocomplete="new-password"></el-input>-->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--value-->
|
<!--value-->
|
||||||
<el-form-item :label="$t('config.I18n.value')" label-width="200px" prop="pinChange">
|
<el-form-item :label="$t('config.I18n.value')" label-width="200px" prop="pinChange">
|
||||||
@@ -71,6 +80,16 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
options: [{
|
||||||
|
value: 'en',
|
||||||
|
label: 'en'
|
||||||
|
}, {
|
||||||
|
value: 'zh',
|
||||||
|
label: 'zh'
|
||||||
|
}, {
|
||||||
|
value: 'cn',
|
||||||
|
label: 'cn'
|
||||||
|
}],
|
||||||
url: 'sys/i18n',
|
url: 'sys/i18n',
|
||||||
loginName: localStorage.getItem('cn-username'),
|
loginName: localStorage.getItem('cn-username'),
|
||||||
rules: { // 表单校验规则
|
rules: { // 表单校验规则
|
||||||
|
|||||||
Reference in New Issue
Block a user