radio 默认选中
作者:
高磊_IT | 来源:发表于
2020-12-08 16:29 被阅读0次<el-col :span="12">
<el-form-item :label="$t('org_user_userInfoUpdate_base_info_morenyuyan') + ':'" prop="defaultLanguage">
<el-radio-group v-model="baseUserInfo.defaultLanguage" disabled>
<el-radio :label="$t('org_user_userInfoUpdate_base_info_yingwen')"></el-radio>
<el-radio :label="$t('org_user_userInfoUpdate_base_info_zhongwen')"></el-radio>
</el-radio-group>
</el-form-item>
</el-col>
async hotalBaseAttr() {
var hotelId = {
hotelId: this.hotelId,
};
const result = await hotalBaseInfo(hotelId as any);
this.data = result
? result
: (new PageResponse<HotalBaseResponse>() as any);
this.baseUserInfo = this.data.obj.hotelInfo;
this.getDefaultLanguage(this.baseUserInfo.defaultLanguage);
}
// 默认语言 选中
getDefaultLanguage(val) {
const item: any = this.languages.find((item) => item.code == val);
this.baseUserInfo.defaultLanguage = item.label;
return item.code;
}
本文标题:radio 默认选中
本文链接:https://www.haomeiwen.com/subject/uscqgktx.html
网友评论