<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 默认选中
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- 当服务器返回的值为number的时候,label需要改成这样的 :label = "1"例: 当服务器返回的值为s...
- 想要让radio默认被选中,在React中不是加checked,而是加defaultChecked;代码如下: 效果: