shish 6 месяцев назад
Родитель
Сommit
28282099d9

+ 2 - 2
ghsApp/src/admin/changePrice/changeHide.vue

@@ -89,7 +89,7 @@
 
         <!-- 底部按钮 -->
         <div class="app-footer">
-			<button class="admin-button-com big blue footer-btn-left" @click="commitShow">批量显示</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="commitHide">批量隐藏</button>
         </div>
 
@@ -241,7 +241,7 @@ export default {
 				this.$msg('请选择花材')
 				return;
 			}
-			this.$util.confirmModal({content:'确认显示这 ' + this.selectedIdsSet.size + ' 个花材?'},() => {
+			this.$util.confirmModal({content:'确认取消隐藏这 ' + this.selectedIdsSet.size + ' 个花材?'},() => {
 				this.commitChange(0)
 			})
 		},

+ 14 - 13
ghsApp/src/admin/stat/hide.vue

@@ -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(){

+ 4 - 4
ghsApp/src/api/item/index.js

@@ -83,12 +83,12 @@ export const batchChangeFrontHide = data => {
 	return https.post('/item/batch-change-front-hide', data)
 }
 
-export const allHideShow = data => {
-	return https.get('/item/all-hide-show', data)
+export const cancelAllItemHide = data => {
+	return https.get('/item/cancel-all-item-hide', data)
 }
 
-export const classItemShow = data => {
-	return https.get('/item/class-item-show', data)
+export const cancelClassItemHide = data => {
+	return https.get('/item/cancel-class-item-hide', data)
 }
 
 export const batchRecover = data => {