|
@@ -62,7 +62,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="80" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" style="color: #F56C6C;" size="small">删除</el-button>
|
|
|
+ <el-button type="text" style="color: #F56C6C;" size="small" @click="deleteRow(scope.$index)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<div slot="empty" style="padding: 20px 0">
|
|
@@ -176,6 +176,11 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 删除
|
|
|
+ deleteRow(index){
|
|
|
+ this.eventForm.tableData.splice(index,1)
|
|
|
+ },
|
|
|
+ // 批量设置
|
|
|
setMore() {
|
|
|
this.showSet = true
|
|
|
},
|