From b23c0332c287158ff2e6cf97479969d15744a992 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 18 九月 2023 18:01:22 +0800
Subject: [PATCH] 基础字段
---
platform/src/views/business/goods.vue | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/platform/src/views/business/goods.vue b/platform/src/views/business/goods.vue
index 64023b5..8992e61 100644
--- a/platform/src/views/business/goods.vue
+++ b/platform/src/views/business/goods.vue
@@ -105,7 +105,7 @@
import OperaGoodsWindow from '@/components/business/OperaGoodsWindow'
import selectProduct from '@/components/business/selectProduct'
import { brand, baseCategory, importExcel } from '@/api/system/common.js'
-import { updateStatusById, queryById, exportDoc, batchUpdateDisableById } from '@/api/business/goods.js'
+import { updateStatus, queryById, exportDoc } from '@/api/business/goods.js'
export default {
name: 'Goods',
extends: BaseTable,
@@ -121,6 +121,7 @@
brandId: ''
},
ids: '',
+ idList: [],
categoryList: [],
brandList: [],
statusList: [
@@ -144,6 +145,7 @@
handleSelectionChange(e) {
let arr = e.map(item => item.id)
this.ids = arr.join(',')
+ this.idList = arr;
console.log(this.ids)
},
// 鎵归噺涓婁笅鏋�
@@ -152,11 +154,12 @@
this.$message.warning({ message: '鑷冲皯閫夋嫨涓�椤瑰唴瀹�' })
return
}
- batchUpdateDisableById({
- ids: this.ids,
+ updateStatus({
+ idList: this.idList,
status: type
}).then(res => {
- this.$message.success({ message: res })
+ this.$tip.apiSuccess('鎿嶄綔鎴愬姛');
+ // this.$message.success({ message:res.message })
this.search()
})
},
@@ -221,8 +224,8 @@
})
},
changeStatus(item) {
- updateDisableById({
- id: item.id,
+ updateStatus({
+ idList: [item.id],
status: item.status
}).then(res => {
this.$tip.apiSuccess('鏇存柊鎴愬姛')
--
Gitblit v1.9.3