|
|
@@ -110,7 +110,7 @@
|
|
|
<image src="/static/product/round.png" mode="" v-else></image>
|
|
|
全选
|
|
|
</view>
|
|
|
- <view class="delete" @click="remove">删除</view>
|
|
|
+ <view class="delete" @click="remove" v-if="currentIndex == 0 || currentIndex == 3">删除</view>
|
|
|
<view class="delete delist" @click="deletes(1)" v-if="currentIndex == 0">上架</view>
|
|
|
<view class="delete delist" @click="deletes(0)" v-else>下架</view>
|
|
|
</view>
|
|
|
@@ -331,7 +331,6 @@ export default {
|
|
|
},
|
|
|
//批量删除
|
|
|
remove() {
|
|
|
- console.log(this.productList)
|
|
|
this.productList.forEach((item => {
|
|
|
if (item.select) {
|
|
|
this.productHandleList.push(item.productId)
|
|
|
@@ -339,7 +338,7 @@ export default {
|
|
|
|
|
|
}))
|
|
|
this.isDelete = true
|
|
|
- this.getProductList()
|
|
|
+ // this.getProductList()
|
|
|
},
|
|
|
removeProduct() {
|
|
|
let ids = []
|
|
|
@@ -353,12 +352,12 @@ export default {
|
|
|
duration: 2000,
|
|
|
icon: 'none'
|
|
|
});
|
|
|
+ this.getProductList()
|
|
|
this.isDelete = false
|
|
|
this.productHandleList = []
|
|
|
- this.$router.go(0)
|
|
|
this.isManage = false
|
|
|
this.isAll = false
|
|
|
- this.getProductList()
|
|
|
+
|
|
|
} else {
|
|
|
this.isDelete = false
|
|
|
this.productHandleList = []
|
|
|
@@ -914,7 +913,7 @@ export default {
|
|
|
.operate {
|
|
|
width: 100%;
|
|
|
display: flex;
|
|
|
- // justify-content: space-between;
|
|
|
+ justify-content: space-between;
|
|
|
align-items: center;
|
|
|
padding: 0px 20rpx;
|
|
|
|