<el-select v-model="newForm.xid" @change="getline">
<el-option
v-for="item in linedata"
:key="item.xid"
:label="item.xdName"
:value="{value:item.xid,label:item.xdName}"
></el-option>
</el-select>
newForm: {
xid: "",
},
linedata: [],
// 线段change事件
getline(rows) {
console.log(rows);
},
来自 https://blog.csdn.net/macangyewangs/article/details/106624202