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() +}