Browse Source

装箱单成衣-删行问题

jingbb 4 months ago
parent
commit
b498136bf5
1 changed files with 3 additions and 4 deletions
  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)
     },