|
@@ -9,7 +9,7 @@
|
|
|
<el-col :span="24" style="margin-top: 20px">
|
|
|
<div>
|
|
|
<span style="margin-right: 10px">{{$t(`项目名称查重排除文字`)}}:</span>
|
|
|
- <el-tag v-for="item in projectnameexcludefields" :key="item.index" style="margin-right: 10px">{{item}}</el-tag>
|
|
|
+ <el-tag v-for="(item,index) in projectnameexcludefields" :key="index" style="margin-right: 10px" closable @close="tagDel(item,index)">{{item}}</el-tag>
|
|
|
<el-button type="primary" size="mini" @click="setWordVisible = true">{{$t(`添加`)}}</el-button>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -307,6 +307,11 @@ export default {
|
|
|
this.projectnameexcludefields.push(this.exclude)
|
|
|
this.setWordVisible = false
|
|
|
this.exclude = ''
|
|
|
+ },
|
|
|
+ tagDel(val,index){
|
|
|
+ console.log(val,'删除')
|
|
|
+ console.log(index)
|
|
|
+ this.projectnameexcludefields.splice(index,1)
|
|
|
}
|
|
|
}
|
|
|
}
|