朋友们,el-select组件,怎么可以拿到下拉框选中的值呀,索引也行,我试了试网上找的方法,不行没有拿到选中的值
<el-form-item label="操作">
<el-select v-model="options.value" ref = 'mySelected' placeholder="请选择" @clear="delModularValue(scope.$index)">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
@click.native="getModularValue(value)">
</el-option>
</el-select>
</el-form-item>
options: [{
value: '1',
label: '量表'
}, {
value: '2',
label: '采集'
}, ],
getModularValue(value) {
console.log(value,77);
},
delModularValue(index) {
console.log(index,99);
this.ruleForm.list[index].goodModular = ''
},