<div class="keyword-item" v-for="(item,index) in keywordArr" :key="index">
<div class="d1">{{ item.name }}</div>
<div class="d2">
<el-dropdown @command="(command) => updateStatus(index, command)">
<span class="el-dropdown-link">
{{ item.status }}<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="精准否定">精准否定</el-dropdown-item>
<el-dropdown-item command="短语否定">短语否定</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
<div class="d3">删除</div>
</div>
updateStatus(index, command) {
this.keywordArr[index].status = command;
},
06-13
2885