Commit 292dee1c by zhangquan

bug修复

1 parent e006b8b8
......@@ -415,8 +415,8 @@ export default {
this.merchantDialogVisible = !this.merchantDialogVisible
},
handleDel(row) {
const idx = this.saleMerchantList.findIndex(item => item.id == row.id)
this.saleMerchantList.splice(idx, 1)
const idx = this.saleMerchantList.findIndex(item => item.merchantId == row.merchantId)
if( idx>-1 )this.saleMerchantList.splice(idx, 1)
},
selectCategory(e){
this.formObj.associationClassifyFirstId = e?.parent?.id
......
......@@ -337,8 +337,8 @@ export default {
this.merchantDialogVisible = !this.merchantDialogVisible
},
handleDel(row) {
const idx = this.saleMerchantList.findIndex(item => item.id == row.id)
this.saleMerchantList.splice(idx, 1)
const idx = this.saleMerchantList.findIndex(item => item.merchantId == row.merchantId)
if(idx>-1) this.saleMerchantList.splice(idx, 1)
},
getParams(){
let obj = JSON.parse(JSON.stringify(this.formObj))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!