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
26bb8473
authored
Jan 13, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
MALL:简化商品分类的 VO 转化
parent
fdfb028d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 additions
and
12 deletions
+1
-12
src/api/mall/product/category.ts
+0
-4
src/views/mall/product/category/CategoryForm.vue
+0
-6
src/views/mall/product/category/index.vue
+1
-1
src/views/mall/trade/delivery/express/ExpressForm.vue
+0
-1
No files found.
src/api/mall/product/category.ts
View file @
26bb8473
...
...
@@ -21,10 +21,6 @@ export interface CategoryVO {
*/
picUrl
:
string
/**
* PC 端分类图
*/
bigPicUrl
?:
string
/**
* 分类排序
*/
sort
:
number
...
...
src/views/mall/product/category/CategoryForm.vue
View file @
26bb8473
...
...
@@ -25,10 +25,6 @@
<UploadImg
v-model=
"formData.picUrl"
:limit=
"1"
:is-show-tip=
"false"
/>
<div
style=
"font-size: 10px"
class=
"pl-10px"
>
推荐 180x180 图片分辨率
</div>
</el-form-item>
<el-form-item
label=
"PC 端分类图"
prop=
"bigPicUrl"
>
<UploadImg
v-model=
"formData.bigPicUrl"
:limit=
"1"
:is-show-tip=
"false"
/>
<div
style=
"font-size: 10px"
class=
"pl-10px"
>
推荐 468x340 图片分辨率
</div>
</el-form-item>
<el-form-item
label=
"分类排序"
prop=
"sort"
>
<el-input-number
v-model=
"formData.sort"
controls-position=
"right"
:min=
"0"
/>
</el-form-item>
...
...
@@ -68,7 +64,6 @@ const formData = ref({
id
:
undefined
,
name
:
''
,
picUrl
:
''
,
bigPicUrl
:
''
,
status
:
CommonStatusEnum
.
ENABLE
})
const
formRules
=
reactive
({
...
...
@@ -133,7 +128,6 @@ const resetForm = () => {
id
:
undefined
,
name
:
''
,
picUrl
:
''
,
bigPicUrl
:
''
,
status
:
CommonStatusEnum
.
ENABLE
}
formRef
.
value
?.
resetFields
()
...
...
src/views/mall/product/category/index.vue
View file @
26bb8473
...
...
@@ -38,7 +38,7 @@
<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-36px"
/>
<img
:src=
"scope.row.picUrl"
alt=
"移动端分类图"
class=
"h-36px"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"排序"
align=
"center"
min-width=
"150"
prop=
"sort"
/>
...
...
src/views/mall/trade/delivery/express/ExpressForm.vue
View file @
26bb8473
...
...
@@ -119,7 +119,6 @@ const resetForm = () => {
id
:
undefined
,
name
:
''
,
picUrl
:
''
,
bigPicUrl
:
''
,
status
:
CommonStatusEnum
.
ENABLE
}
formRef
.
value
?.
resetFields
()
...
...
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