From cadb47cd2267f015415bfa8a4874e99a2c36a25b Mon Sep 17 00:00:00 2001
From: Huakk <1751826683@qq.com>
Date: Thu, 1 Aug 2024 22:56:24 +0800
Subject: [PATCH] mod(custom):
---
src/views/commodity/hot_list/index.vue | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/views/commodity/hot_list/index.vue b/src/views/commodity/hot_list/index.vue
index 1ecb258..a2271c0 100644
--- a/src/views/commodity/hot_list/index.vue
+++ b/src/views/commodity/hot_list/index.vue
@@ -76,7 +76,8 @@
重置
-
+ 批量审核
+
设为普通商品
@@ -624,7 +625,7 @@ const veeify = async () => {
let data = {}
if (nowKey.value === 1 || nowKey.value === 2) {
data = {
- gid: nowRow.value.gid,
+ gid: [nowRow.value.gid],
status: nowKey.value,
notes: notesVal.value,
}
@@ -644,6 +645,16 @@ const veeify = async () => {
})
}
}
+
+const veeifys = async () => {
+ if (queryParams.value.checkedRowKeysRef.length === 0) return $message.info('没有选中商品')
+ await api.getHotStatus({
+ gid: queryParams.value.checkedRowKeysRef,
+ status: 1,
+ notes: '',
+ })
+ clear()
+}