|
@@ -90,7 +90,8 @@
|
|
|
|
|
|
|
|
<!-- 底部按钮 -->
|
|
<!-- 底部按钮 -->
|
|
|
<div class="app-footer">
|
|
<div class="app-footer">
|
|
|
- <button class="admin-button-com big blue" @click="commitPrice">批量隐藏 ({{ selectedCount }})</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com big blue footer-btn-left" @click="commitShow">批量显示</button>
|
|
|
|
|
+ <button class="admin-button-com big blue footer-btn-right" @click="commitPrice">批量隐藏</button>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 分类选择弹窗 -->
|
|
<!-- 分类选择弹窗 -->
|
|
@@ -243,13 +244,23 @@ export default {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
this.$util.confirmModal({content:'确认批量隐藏 ' + this.selectedIdsSet.size + ' 个花材?'},() => {
|
|
this.$util.confirmModal({content:'确认批量隐藏 ' + this.selectedIdsSet.size + ' 个花材?'},() => {
|
|
|
- this.commitChange()
|
|
|
|
|
|
|
+ this.commitChange(1)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- commitChange(){
|
|
|
|
|
|
|
+ commitShow(){
|
|
|
|
|
+ if(this.selectedIdsSet.size === 0){
|
|
|
|
|
+ this.$msg('请选择花材')
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$util.confirmModal({content:'确认批量显示 ' + this.selectedIdsSet.size + ' 个花材?'},() => {
|
|
|
|
|
+ this.commitChange(0)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ commitChange(hideStatus){
|
|
|
const ids = Array.from(this.selectedIdsSet);
|
|
const ids = Array.from(this.selectedIdsSet);
|
|
|
- batchStopItem({ids:JSON.stringify(ids)}).then(res=>{
|
|
|
|
|
|
|
+ batchStopItem({ids:JSON.stringify(ids), status: hideStatus}).then(res=>{
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
this.selectedIdsSet.clear()
|
|
this.selectedIdsSet.clear()
|
|
|
this.$msg(res.msg)
|
|
this.$msg(res.msg)
|
|
@@ -411,7 +422,7 @@ export default {
|
|
|
|
|
|
|
|
.item_list_title {
|
|
.item_list_title {
|
|
|
margin-bottom: 20upx;
|
|
margin-bottom: 20upx;
|
|
|
- font-size: 30upx;
|
|
|
|
|
|
|
+ font-size: 34upx;
|
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
|
color: #3385FF;
|
|
color: #3385FF;
|
|
|
|
|
|
|
@@ -428,8 +439,8 @@ export default {
|
|
|
|
|
|
|
|
.select-all-btn {
|
|
.select-all-btn {
|
|
|
color: #3385FF;
|
|
color: #3385FF;
|
|
|
- font-size: 28upx;
|
|
|
|
|
- font-weight: 700;
|
|
|
|
|
|
|
+ font-size: 34upx;
|
|
|
|
|
+ font-weight: bold;
|
|
|
padding: 8upx 16upx;
|
|
padding: 8upx 16upx;
|
|
|
white-space: nowrap;
|
|
white-space: nowrap;
|
|
|
background: #E8F2FF;
|
|
background: #E8F2FF;
|
|
@@ -439,15 +450,22 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.app-footer {
|
|
.app-footer {
|
|
|
- justify-content: space-evenly;
|
|
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-items: center;
|
|
|
z-index: 9999;
|
|
z-index: 9999;
|
|
|
flex-shrink: 0;
|
|
flex-shrink: 0;
|
|
|
padding: 20upx;
|
|
padding: 20upx;
|
|
|
background: white;
|
|
background: white;
|
|
|
box-shadow: 0 -2upx 8upx rgba(0, 0, 0, 0.1);
|
|
box-shadow: 0 -2upx 8upx rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
- button {
|
|
|
|
|
- width: 600upx;
|
|
|
|
|
|
|
+ .footer-btn-left {
|
|
|
|
|
+ width: 280upx;
|
|
|
|
|
+ margin-right: 40upx;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .footer-btn-right {
|
|
|
|
|
+ width: 280upx;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|