html
<el-table-column align="left" label="姓名" show-overflow-tooltip :key="tableKey">
<template slot-scope="scope">
<el-select placeholder="请选择" :disabled="!saveButton" v-model="scope.row.firemans" @change="changeFiremans" filterable multiple :key="scope.$index" style="width: 100%">
<el-option v-for="item in getPostMember(scope.row)" :key="item.memberUuid" :label="item.memberName" :value="item.memberUuid">
</el-option>
</el-select>
</template>
</el-table-column>
需要在el-table-column上添加:key="tableKey"
tableKey
javascript
data () {
return {
tableKey: Math.random()
}
}
el-select添加change事件修改tableKey
javascript
changeFiremans() {
this.tableKey = Math.random()
}