Skip to content

Commit 5f80d16

Browse files
committed
product:优化分类列表
1 parent 88677ee commit 5f80d16

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/views/mall/product/category/index.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
<!-- 列表 -->
3636
<ContentWrap>
3737
<el-table v-loading="loading" :data="list" row-key="id" default-expand-all>
38-
<el-table-column label="分类名称" prop="name" sortable />
39-
<el-table-column label="移动端分类图" align="center" prop="picUrl">
38+
<el-table-column label="名称" min-width="240" prop="name" sortable />
39+
<el-table-column label="分类图标" align="center" min-width="80" prop="picUrl">
4040
<template #default="scope">
41-
<img v-if="scope.row.picUrl" :src="scope.row.picUrl" alt="移动端分类图" class="h-30px" />
41+
<img v-if="scope.row.picUrl" :src="scope.row.picUrl" alt="移动端分类图" class="h-36px" />
4242
</template>
4343
</el-table-column>
44-
<el-table-column label="分类排序" align="center" prop="sort" />
45-
<el-table-column label="开启状态" align="center" prop="status">
44+
<el-table-column label="排序" align="center" min-width="150" prop="sort" />
45+
<el-table-column label="状态" align="center" min-width="150" prop="status">
4646
<template #default="scope">
4747
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
4848
</template>

src/views/mall/product/spu/form/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ const submitForm = async () => {
161161
deepCopyFormData.sliderPicUrls = newSliderPicUrls
162162
// 校验都通过后提交表单
163163
const data = deepCopyFormData as ProductSpuApi.Spu
164-
const id = params.spuId as unknown as number
164+
const id = params.id as unknown as number
165165
if (!id) {
166166
await ProductSpuApi.createSpu(data)
167167
message.success(t('common.createSuccess'))

0 commit comments

Comments
 (0)