浏览代码

Merge branch 'master' of http://139.196.39.194:9021/chenc/sen-yu-new-web

huxy 6 月之前
父节点
当前提交
0c19175ca4
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      src/views/packing-list/packinglist-clothes/clothesAddDrawer.vue

+ 3 - 4
src/views/packing-list/packinglist-clothes/clothesAddDrawer.vue

@@ -268,7 +268,7 @@
               <span slot="operation" slot-scope="text, record,index">
                  <a @click="copy(record)">复制</a>
                  <a-divider type="vertical"/>
-                 <a-popconfirm title="确定删除吗?" @confirm="handleDelete(record)">
+                 <a-popconfirm title="确定删除吗?" @confirm="handleDelete(record,index)">
                    <a>删除</a>
                 </a-popconfirm>
               </span>
@@ -817,9 +817,8 @@ export default {
    
     // -------------------------------------
     // 操作 删除
-    handleDelete(ind) {
-     var delectId = ind.rowIndex
-     this.clothesAddData.splice(delectId, 1);
+    handleDelete(ind,index) {
+     this.clothesAddData.splice(index, 1);
      console.log(this.clothesAddData)
      this.setHeadCalField(this.clothesAddData)
     },