Element ui的radio单选框监听form表单的字段变化
<el-table-column align="center" label="是否存在">
<template slot-scope="scope">
<el-radio-group v-model="scope.row.isexist" @change="isExist">
<el-radio label="1">是</el-radio>
<el-radio label="0">否</el-radio>
</el-radio-group>
</template>
</el-table-column>
form表单
form: {
//要监听的字段
evaluate:''
},
methods: {
isExist(val){
var evaluate=[]
for(let i=0; i<this.datacontent.length; i++){
evaluate.push(this.datacontent[i].isexist)
}
if (evaluate.indexOf('1')==-1) {
this.form.evaluate=''
} else {
this.form.evaluate='2'
}
},