|
@@ -88,6 +88,10 @@
|
|
|
text: '删除',
|
|
|
backgroundColor: '#52A63A',
|
|
|
color: '#fff'
|
|
|
+ },{
|
|
|
+ text: '全选',
|
|
|
+ backgroundColor: '#52A63A',
|
|
|
+ color: '#fff'
|
|
|
}],
|
|
|
buttonGroup3: [{
|
|
|
text: '取消',
|
|
@@ -208,6 +212,20 @@
|
|
|
url: '/pagesGood/goodForm?type=add&formType=' + type
|
|
|
});
|
|
|
},
|
|
|
+ // 检测所有商品选情况
|
|
|
+ // getAllCartType() {
|
|
|
+ // return this['list' + (this.tabIndex + 1)].filter(site => site.allCheck).length == this['list' + (this.tabIndex + 1)].length
|
|
|
+ // },
|
|
|
+ // // 设置所有品全选状态
|
|
|
+ // checkAllShop() {
|
|
|
+ // let type = this.getAllCartType()
|
|
|
+ // this['list' + (this.tabIndex + 1)].forEach(item => {
|
|
|
+ // item.allCheck = !type
|
|
|
+ // item.products.forEach(site => {
|
|
|
+ // site.check = !type
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ // },
|
|
|
}
|
|
|
}
|
|
|
</script>
|