<el-radio-group
v-model="attenceId"
>
<el-radio
v-for="item in factoryList"
:label="item.attenceId"
:key="item.attenceId"
>{{item.attenceName}}</el-radio>
</el-radio-group>
让v-model的值等于你获取的列表第一项
this.attenceId =this.factoryList[0].attenceId这句要加在动态获取了列表之后
findDataLists() {
let that = this;
let params = {
organizationId: that.optionsId,
actionState: "1"
};
queryList(params).then(res => {
that.factoryList = res.data.data || [];
that.attenceId = that.factoryList[0].attenceId;
});
},