Merge branch 'dev' into test
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -76,7 +76,8 @@
|
||||
<n-button ml-10 @click="clear">重置</n-button>
|
||||
</n-gi>
|
||||
<n-gi span="24" mt-10 flex items-center>
|
||||
<n-button strong secondary type="primary" @click="changeGoodsType(0)">
|
||||
<n-button strong secondary type="primary" @click="veeifys()">批量审核</n-button>
|
||||
<n-button strong secondary ml-10 type="primary" @click="changeGoodsType(0)">
|
||||
设为普通商品
|
||||
</n-button>
|
||||
<n-button strong secondary ml-10 type="warning" @click="changeGoodsType(1)">
|
||||
@@ -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()
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
Reference in New Issue
Block a user