Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
f781cdeb
Commit
f781cdeb
authored
Nov 01, 2020
by
linlinjava
Browse files
chore
parent
909974d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
litemall-admin/src/api/goods.js
View file @
f781cdeb
...
...
@@ -16,14 +16,6 @@ export function deleteGoods(data) {
})
}
export
function
deleteGoodsBatch
(
data
)
{
return
request
({
url
:
'
/goods/deleteBatch
'
,
method
:
'
post
'
,
data
})
}
export
function
publishGoods
(
data
)
{
return
request
({
url
:
'
/goods/create
'
,
...
...
litemall-admin/src/views/goods/create.vue
View file @
f781cdeb
...
...
@@ -127,13 +127,11 @@
</el-tag>
</
template
>
</el-table-column>
<!--
<el-table-column property="picUrl" label="规格图片">
<template slot-scope="scope">
<img v-if="scope.row.picUrl" :src="scope.row.picUrl" width="40">
</template>
</el-table-column>
-->
<el-table-column
property=
"picUrl"
label=
"规格图片"
>
<
template
slot-scope=
"scope"
>
<img
v-if=
"scope.row.picUrl"
:src=
"scope.row.picUrl"
width=
"40"
>
</
template
>
</el-table-column>
<el-table-column
v-if=
"multipleSpec"
align=
"center"
...
...
@@ -163,22 +161,19 @@
<el-form-item
label=
"规格值"
prop=
"value"
>
<el-input
v-model=
"specForm.value"
/>
</el-form-item>
<!-- <el-form-item label="规格图片" prop="picUrl">
<el-upload
:action="uploadPath"
:show-file-list="false"
:headers="headers"
:on-success="uploadSpecPicUrl"
class="avatar-uploader"
accept=".jpg,.jpeg,.png,.gif"
>
<img v-if="specForm.picUrl" :src="specForm.picUrl" class="avatar">
<i v-else class="el-icon-plus avatar-uploader-icon" />
</el-upload>
</el-form-item>
-->
<el-form-item
label=
"规格图片"
prop=
"picUrl"
>
<el-upload
:action=
"uploadPath"
:show-file-list=
"false"
:headers=
"headers"
:on-success=
"uploadSpecPicUrl"
class=
"avatar-uploader"
accept=
".jpg,.jpeg,.png,.gif"
>
<img
v-if=
"specForm.picUrl"
:src=
"specForm.picUrl"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
/>
</el-upload>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"specVisiable = false"
>
取消
</el-button>
...
...
Write
Preview
Supports
Markdown
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