后台样式调整,商城商品分类层级调整
This commit is contained in:
parent
62cb7e4638
commit
0e8fb6acb4
BIN
yudao-admin-vue3/src/assets/imgs/login-bg.png
Normal file
BIN
yudao-admin-vue3/src/assets/imgs/login-bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
BIN
yudao-admin-vue3/src/assets/imgs/pic-bg-min.png
Normal file
BIN
yudao-admin-vue3/src/assets/imgs/pic-bg-min.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 313 KiB |
@ -67,7 +67,7 @@ watch(
|
|||||||
to="/"
|
to="/"
|
||||||
>
|
>
|
||||||
<img
|
<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"
|
src="@/assets/imgs/logo.png"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
|
@ -99,7 +99,7 @@
|
|||||||
</el-skeleton>
|
</el-skeleton>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<!-- <el-card shadow="never" class="mt-8px">
|
<el-card shadow="never" class="mt-8px">
|
||||||
<el-skeleton :loading="loading" animated>
|
<el-skeleton :loading="loading" animated>
|
||||||
<el-row :gutter="20" justify="space-between">
|
<el-row :gutter="20" justify="space-between">
|
||||||
<el-col :xl="10" :lg="10" :md="24" :sm="24" :xs="24">
|
<el-col :xl="10" :lg="10" :md="24" :sm="24" :xs="24">
|
||||||
@ -118,7 +118,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-skeleton>
|
</el-skeleton>
|
||||||
</el-card> -->
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :xl="8" :lg="8" :md="24" :sm="24" :xs="24" class="mb-8px">
|
<el-col :xl="8" :lg="8" :md="24" :sm="24" :xs="24" class="mb-8px">
|
||||||
<el-card shadow="never">
|
<el-card shadow="never">
|
||||||
|
@ -27,7 +27,7 @@ public class ProductCategoryDO extends BaseDO {
|
|||||||
/**
|
/**
|
||||||
* 限定分类层级
|
* 限定分类层级
|
||||||
*/
|
*/
|
||||||
public static final int CATEGORY_LEVEL = 2;
|
public static final int CATEGORY_LEVEL = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分类编号
|
* 分类编号
|
||||||
|
@ -126,6 +126,9 @@ public class ProductSpuServiceImpl implements ProductSpuService {
|
|||||||
private void validateCategory(Long id) {
|
private void validateCategory(Long id) {
|
||||||
categoryService.validateCategory(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) {
|
if (categoryService.getCategoryLevel(id) < CATEGORY_LEVEL) {
|
||||||
throw exception(SPU_SAVE_FAIL_CATEGORY_LEVEL_ERROR);
|
throw exception(SPU_SAVE_FAIL_CATEGORY_LEVEL_ERROR);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user