新增商品分组

This commit is contained in:
gyq
2024-01-16 17:24:35 +08:00
parent 6e62895adb
commit 26425e7f57
5 changed files with 488 additions and 108 deletions

View File

@@ -50,7 +50,7 @@
<script>
import addSpecification from './components/addSpecification'
import { tbProductSpecGet } from '@/api/shop'
import { tbProductSpecGet, tbProductSpecDelete } from '@/api/shop'
export default {
components: {
addSpecification
@@ -68,7 +68,6 @@ export default {
list: []
}
}
},
mounted() {
this.getTableData()
@@ -85,6 +84,20 @@ export default {
this.tableData.page = e
this.getTableData()
},
// 删除
async delHandle(ids) {
try {
const res = await tbProductSpecDelete(ids)
this.$notify({
title: '成功',
message: `删除成功`,
type: 'success'
});
this.getTableData()
} catch (error) {
console.log(error)
}
},
// 获取商品列表
async getTableData() {
this.tableData.loading = true