html
<template>
<el-form-item label="状态" prop="type" :label-width="formLabelWidth">
<el-radio-group v-model="form.type" class="ml-4">
<el-radio label="1">上架</el-radio>
<el-radio label="2">下架</el-radio>
</el-radio-group>
</el-form-item>
</template>
当前的type为int 需要转换为字符串
form.type = data.type.toString();
效果: