fixed bug adout publish shop

This commit is contained in:
cmxdd 2020-08-11 09:41:12 +08:00
parent e33e07178d
commit 7cf5577cb0
2 changed files with 8 additions and 7 deletions

View File

@ -187,6 +187,7 @@ export default {
}
}
}
console.log(this.shoplist)
},
//
changeselect(num) {
@ -278,10 +279,10 @@ export default {
let that = this;
let num =Number(e.name)
if (e.value == true) {
that.delarr(that.list[num].goods_id);
that.pushes(that.list[num].goods_id);
that.list[num].checked=true
} else {
that.pushes(that.list[num].goods_id);
that.delarr(that.list[num].goods_id);
that.list[num].checked=false
}
},
@ -293,7 +294,7 @@ export default {
} else {
let index = that.arres_list.indexOf(id);
that.arres_list.splice(index, 1);
that.getshoplist(id);
that.getshoplist();
}
},
//
@ -303,7 +304,7 @@ export default {
console.log('为空');
} else {
that.arres_list.push(id);
that.getshoplist(id);
that.getshoplist();
}
},
tosign() {
@ -315,7 +316,7 @@ export default {
} else {
let arr = res.data.list;
for (let index in arr) {
arr[index].checked = true;
arr[index].checked = false;
}
this.list = arr;
}

View File

@ -285,10 +285,10 @@ export default {
let that = this;
let num =Number(e.name)
if (e.value == true) {
that.delarr(that.list[num].goods_id);
that.pushes(that.list[num].goods_id);
that.list[num].checked=true
} else {
that.pushes(that.list[num].goods_id);
that.delarr(that.list[num].goods_id);
that.list[num].checked=false
}
},