File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 35
35
<!-- 列表 -->
36
36
<ContentWrap >
37
37
<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" >
40
40
<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 " />
42
42
</template >
43
43
</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" >
46
46
<template #default =" scope " >
47
47
<dict-tag :type =" DICT_TYPE.COMMON_STATUS" :value =" scope.row.status" />
48
48
</template >
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ const submitForm = async () => {
161
161
deepCopyFormData .sliderPicUrls = newSliderPicUrls
162
162
// 校验都通过后提交表单
163
163
const data = deepCopyFormData as ProductSpuApi .Spu
164
- const id = params .spuId as unknown as number
164
+ const id = params .id as unknown as number
165
165
if (! id ) {
166
166
await ProductSpuApi .createSpu (data )
167
167
message .success (t (' common.createSuccess' ))
You can’t perform that action at this time.
0 commit comments