From 412a6dd1f13d4296b7101f602af5c391e1560e7f Mon Sep 17 00:00:00 2001 From: fanfan Date: Tue, 19 Mar 2024 15:40:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dataCenter/goods/Index.vue | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/views/dataCenter/goods/Index.vue b/src/views/dataCenter/goods/Index.vue index 844b303..b262675 100644 --- a/src/views/dataCenter/goods/Index.vue +++ b/src/views/dataCenter/goods/Index.vue @@ -27,10 +27,15 @@ @@ -143,7 +148,11 @@ -

+

{{ text == 0 ? '待处理' : text == 1 ? '已入池' : '未入池' }}

@@ -258,6 +267,7 @@ export default { is_self: '', is_pool: '', data_type: '', + categoryId: '', }, // 正在加载 isLoading: false, @@ -385,6 +395,13 @@ export default { getSale(val) { this.is_sale = val }, + onSearchCategory(list) { + let categoryId = [] + list.forEach((item) => { + categoryId.push(item.value) + }) + this.queryParam.categoryId=categoryId.join(',') + }, // 获取分类列表 getCategoryList() { this.isLoading = true @@ -397,7 +414,6 @@ export default { // 修改商品状态(上下架) handleUpdateStatus(goodsIds, is_pool) { - console.log(goodsIds, is_pool) this.isLoading = true GoodsApi.state({ goodsIds, is_pool }) .then((result) => {