feat: remove action column and handler filter modal product

This commit is contained in:
caturbgs
2021-12-17 02:20:50 +07:00
parent 51e92559e8
commit 068444fb07
3 changed files with 8 additions and 23 deletions

View File

@@ -22,6 +22,7 @@ export class Product {
pageSizeSubCategories = 10
dataSubCategories = [];
total_dataSubCategories = 0;
filterByCategory = null;
constructor(ctx) {
this.ctx = ctx;
@@ -44,7 +45,7 @@ export class Product {
async getDataSubCategories() {
try {
const response = await http.get(`/product/sub-categories?page=${this.pageSubCategories}&pageSize=${this.pageSizeSubCategories}`);
const response = await http.get(`/product/sub-categories?category=${this.filterByCategory}&page=${this.pageSubCategories}&pageSize=${this.pageSizeSubCategories}`);
this.dataSubCategories = response.body.data.map((item, idx) => {
item.key = idx;
return item