html
```pythonimport tensorflow as tfprint(tf.version)```
```
<el-select v-model="mainbrand" filterable multiple @change="changeselect" clearable placeholder="请选择">
<el-option v-for="item in brandoption" :key="item.id" :label="item.name" :value="item.id"> </el-option>
</el-select>
```
js
回显
var arr = []
arr = res.data.brandCodes.split(';')
arr = arr.map(Number)
this.mainbrand = arr
console.log(this.mainbrand)
同时得到id和name
changeselect(val) {
console.log(val)
let arr= []
```
this.brandoption.forEach(item => {
for (let i = 0; i < val.length; i++) {
if (item.id == val[i]) {
arr.push(item.name)
}
}
})
},
//val 为id们 arr为name们
//this.brandoption 下拉框数据
```