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