element table radio data is not echoed

The element ui table contains radio, and the radio sets the default selected item according to the data returned by the backend

 

<template slot-scope="scope">
<el-radio-group v-model="scope.row.locate"><el-radio class="radio”label-大号侧'>大号侧</el-rdio><el-radio class="radio”label='小号侧'>小号侧</eladio></elradio-group>
</template>

 

Existing problem: the radio data is not echoed

Solution:

1. Add quotation marks in front of the label

2. The value behind the label must be consistent with the value returned by the background

 

 

Guess you like

Origin blog.csdn.net/qq_37299479/article/details/130684447
Recommended