|
|
@@ -33,9 +33,6 @@
|
|
|
</t-td>
|
|
|
<t-td></t-td>
|
|
|
<t-td></t-td>
|
|
|
- <t-td></t-td>
|
|
|
- <t-td></t-td>
|
|
|
- <t-td></t-td>
|
|
|
</t-tr>
|
|
|
<template v-if="classItem.child && !$util.isEmpty(classItem.child)">
|
|
|
<block v-for="(productItem, productIndex) in classItem.child" :key="productIndex">
|
|
|
@@ -100,7 +97,7 @@
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import SelectList from "@/components/plugin/selectList";
|
|
|
import { getProductDataApi } from "@/api/product";
|
|
|
-import { allHideShow,classItemShow,changeFrontHide } from "@/api/item";
|
|
|
+import { cancelAllItemHide,cancelClassItemHide,changeFrontHide } from "@/api/item";
|
|
|
import { list } from "@/mixins";
|
|
|
import ShopSelect from "@/components/module/shopSelect";
|
|
|
import DateSelect from "@/components/module/dateSelect";
|
|
|
@@ -139,13 +136,15 @@ export default {
|
|
|
init(){
|
|
|
},
|
|
|
cancelClassHide(classInfo){
|
|
|
- classItemShow({classId:classInfo.id}).then(res=>{
|
|
|
- this.$msg('操作成功')
|
|
|
- this.showHideItem()
|
|
|
+ this.$util.confirmModal({content:'确认取消隐藏此分类下花材?'},() => {
|
|
|
+ cancelClassItemHide({classId:classInfo.classId}).then(res=>{
|
|
|
+ this.$msg('操作成功')
|
|
|
+ this.showHideItem()
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
showCurrentItme(item){
|
|
|
- this.$util.confirmModal({content:'取消隐藏此花材?'},() => {
|
|
|
+ this.$util.confirmModal({content:'确认取消隐藏此花材?'},() => {
|
|
|
changeFrontHide({id:item.id,status:0}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
this.$msg('操作成功')
|
|
|
@@ -155,11 +154,13 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
allShow(){
|
|
|
- allHideShow().then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- this.$msg('操作成功')
|
|
|
- this.showHideItem()
|
|
|
- }
|
|
|
+ this.$util.confirmModal({content:'确认取消隐藏所有花材?'},() => {
|
|
|
+ cancelAllItemHide().then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ this.$msg('操作成功')
|
|
|
+ this.showHideItem()
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
showHideItem(){
|