Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
web
soss
Commits
2f31f999
Commit
2f31f999
authored
2 years ago
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增商品分类图片
parent
2f359b85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
src/views/goods/category/index.vue
+17
-0
No files found.
src/views/goods/category/index.vue
View file @
2f31f999
...
...
@@ -33,6 +33,15 @@
<a
@
click=
"handleUpdate(scope.row)"
style=
"color: blue"
>
{{
scope
.
row
.
name
}}
</a>
</
template
>
</el-table-column>
<el-table-column
label=
"图片"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<div
class=
"image-tmp"
>
<el-image
style=
"width: 100px; height: 100px"
:src=
"scope.row.icon"
:preview-src-list=
"getPicsBigList(scope.row.icon)"
>
<div
slot=
"error"
class=
"image-slot"
></div>
</el-image>
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"编码"
align=
"center"
prop=
"code"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"remarks"
/>
<el-table-column
label=
"商品数量"
align=
"center"
prop=
"goodsCount"
/>
...
...
@@ -73,6 +82,9 @@
<el-form-item
label=
"名称"
prop=
"name"
>
<el-input
v-model=
"form.name"
placeholder=
"名称"
minlength=
"1"
maxlength=
"100"
/>
</el-form-item>
<el-form-item
label=
"添加商品分类图片"
>
<ImageUpload
:value=
"form.icon"
v-model=
"form.icon"
:limit=
"1"
/>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remarks"
>
<el-input
v-model=
"form.remarks"
type=
"textarea"
placeholder=
"请输入内容"
maxlength=
"500"
/>
</el-form-item>
...
...
@@ -149,6 +161,11 @@ export default {
this
.
getList
();
},
methods
:
{
getPicsBigList
(
str
){
let
list
=
[];
list
.
push
(
str
)
return
list
;
},
turnClick
(
row
,
tag
){
turnList
({
"id"
:
row
.
id
,
"pointer"
:
tag
}).
then
((
response
)
=>
{
console
.
log
(
"response"
,
response
);
...
...
This diff is collapsed.
Click to expand it.
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