瀏覽代碼

fix: 优化307

ldong 2 周之前
父節點
當前提交
a3a6b13f73
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/views/knowledge_manage/components/importMoreFileDia.vue

+ 6 - 1
src/views/knowledge_manage/components/importMoreFileDia.vue

@@ -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
     },