后台样式调整,商城商品分类层级调整

This commit is contained in:
慕下 2024-08-09 14:38:05 +08:00
parent 62cb7e4638
commit 0e8fb6acb4
6 changed files with 7 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 KiB

View File

@ -67,7 +67,7 @@ watch(
to="/"
>
<img
class="h-[calc(var(--logo-height)-10px)] w-[calc(var(--logo-height)-10px)]"
class=" w-[calc(var(--logo-height)-10px)]"
src="@/assets/imgs/logo.png"
/>
<div

View File

@ -99,7 +99,7 @@
</el-skeleton>
</el-card>
<!-- <el-card shadow="never" class="mt-8px">
<el-card shadow="never" class="mt-8px">
<el-skeleton :loading="loading" animated>
<el-row :gutter="20" justify="space-between">
<el-col :xl="10" :lg="10" :md="24" :sm="24" :xs="24">
@ -118,7 +118,7 @@
</el-col>
</el-row>
</el-skeleton>
</el-card> -->
</el-card>
</el-col>
<el-col :xl="8" :lg="8" :md="24" :sm="24" :xs="24" class="mb-8px">
<el-card shadow="never">

View File

@ -27,7 +27,7 @@ public class ProductCategoryDO extends BaseDO {
/**
* 限定分类层级
*/
public static final int CATEGORY_LEVEL = 2;
public static final int CATEGORY_LEVEL = 1;
/**
* 分类编号

View File

@ -126,6 +126,9 @@ public class ProductSpuServiceImpl implements ProductSpuService {
private void validateCategory(Long id) {
categoryService.validateCategory(id);
// 校验层级
System.out.println(categoryService.getCategoryLevel(id));
System.out.println(CATEGORY_LEVEL);
System.out.println(categoryService.getCategoryLevel(id) < CATEGORY_LEVEL);
if (categoryService.getCategoryLevel(id) < CATEGORY_LEVEL) {
throw exception(SPU_SAVE_FAIL_CATEGORY_LEVEL_ERROR);
}