Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5f80d161
authored
Oct 01, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
product:优化分类列表
parent
88677ee1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/views/mall/product/category/index.vue
+5
-5
src/views/mall/product/spu/form/index.vue
+1
-1
No files found.
src/views/mall/product/category/index.vue
View file @
5f80d161
...
...
@@ -35,14 +35,14 @@
<!-- 列表 -->
<ContentWrap>
<el-table
v-loading=
"loading"
:data=
"list"
row-key=
"id"
default-expand-all
>
<el-table-column
label=
"
分类名称
"
prop=
"name"
sortable
/>
<el-table-column
label=
"
移动端分类图"
align=
"center
"
prop=
"picUrl"
>
<el-table-column
label=
"
名称"
min-width=
"240
"
prop=
"name"
sortable
/>
<el-table-column
label=
"
分类图标"
align=
"center"
min-width=
"80
"
prop=
"picUrl"
>
<template
#
default=
"scope"
>
<img
v-if=
"scope.row.picUrl"
:src=
"scope.row.picUrl"
alt=
"移动端分类图"
class=
"h-3
0
px"
/>
<img
v-if=
"scope.row.picUrl"
:src=
"scope.row.picUrl"
alt=
"移动端分类图"
class=
"h-3
6
px"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"
分类排序"
align=
"center
"
prop=
"sort"
/>
<el-table-column
label=
"
开启状态"
align=
"center
"
prop=
"status"
>
<el-table-column
label=
"
排序"
align=
"center"
min-width=
"150
"
prop=
"sort"
/>
<el-table-column
label=
"
状态"
align=
"center"
min-width=
"150
"
prop=
"status"
>
<
template
#
default=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.COMMON_STATUS"
:value=
"scope.row.status"
/>
</
template
>
...
...
src/views/mall/product/spu/form/index.vue
View file @
5f80d161
...
...
@@ -161,7 +161,7 @@ const submitForm = async () => {
deepCopyFormData
.
sliderPicUrls
=
newSliderPicUrls
// 校验都通过后提交表单
const
data
=
deepCopyFormData
as
ProductSpuApi
.
Spu
const
id
=
params
.
spuI
d
as
unknown
as
number
const
id
=
params
.
i
d
as
unknown
as
number
if
(
!
id
)
{
await
ProductSpuApi
.
createSpu
(
data
)
message
.
success
(
t
(
'common.createSuccess'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment