|
|
|
|
@ -164,7 +164,8 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-slot:set_list>
|
|
|
|
|
<div class="xy-table-item"> <div class="xy-table-item-label">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
明细:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
@ -186,23 +187,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-slot:picture_list>
|
|
|
|
|
<div class="xy-table-item"> <div class="xy-table-item-label">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
图集:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
|
|
|
|
|
<el-upload
|
|
|
|
|
class="upload-demo"
|
|
|
|
|
:action="action"
|
|
|
|
|
:before-upload="pichandleBefore"
|
|
|
|
|
:on-success="pichandleSuccess"
|
|
|
|
|
:on-preview="pichandlePreview"
|
|
|
|
|
:before-remove="pichandleBeforeRemove"
|
|
|
|
|
:on-remove="pichandleRemove"
|
|
|
|
|
:file-list="picfileList"
|
|
|
|
|
list-type="picture" multiple>
|
|
|
|
|
<el-upload class="upload-demo" :action="action" :before-upload="pichandleBefore"
|
|
|
|
|
:on-success="pichandleSuccess" :on-preview="pichandlePreview" :before-remove="pichandleBeforeRemove"
|
|
|
|
|
:on-remove="pichandleRemove" :file-list="picfileList" list-type="picture" multiple>
|
|
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
|
|
<div slot="tip" class="el-upload__tip">只能上传jpg/png文件或者视频文件,且不超过2M</div>
|
|
|
|
|
<div slot="tip" class="el-upload__tip">只能上传jpg/png文件或者视频文件,且不超过10M</div>
|
|
|
|
|
</el-upload>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -218,7 +213,9 @@
|
|
|
|
|
import {
|
|
|
|
|
store,
|
|
|
|
|
show,
|
|
|
|
|
save
|
|
|
|
|
save,
|
|
|
|
|
getPicture,
|
|
|
|
|
getCombo
|
|
|
|
|
} from "@/api/productService/commonServiceProduct"
|
|
|
|
|
import {
|
|
|
|
|
index as clubIndex
|
|
|
|
|
@ -242,16 +239,27 @@
|
|
|
|
|
isShow: false,
|
|
|
|
|
type: '',
|
|
|
|
|
listCombo: [],
|
|
|
|
|
tableCombo:[
|
|
|
|
|
{
|
|
|
|
|
tableCombo: [{
|
|
|
|
|
label: '名称',
|
|
|
|
|
sortable: false,
|
|
|
|
|
minWidth: 220,
|
|
|
|
|
customFn: (row) => {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<el-input size='small' placeholder="请输入名称" value={row.name} on={{['input']:(e)=>{row.name = e}}}/>
|
|
|
|
|
</div>
|
|
|
|
|
return ( <
|
|
|
|
|
div >
|
|
|
|
|
<el-input size = 'small'
|
|
|
|
|
placeholder = "请输入名称"
|
|
|
|
|
value = {
|
|
|
|
|
row.name
|
|
|
|
|
}
|
|
|
|
|
on = {
|
|
|
|
|
{
|
|
|
|
|
['input']: (e) => {
|
|
|
|
|
row.name = e
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/> < /
|
|
|
|
|
div >
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
@ -260,10 +268,22 @@
|
|
|
|
|
sortable: false,
|
|
|
|
|
minWidth: 420,
|
|
|
|
|
customFn: (row) => {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<el-input size='small' placeholder="请输入内容" value={row.content} on={{['input']:(e)=>{row.content = e}}}/>
|
|
|
|
|
</div>
|
|
|
|
|
return ( <
|
|
|
|
|
div >
|
|
|
|
|
<el-input size = 'small'
|
|
|
|
|
placeholder = "请输入内容"
|
|
|
|
|
value = {
|
|
|
|
|
row.content
|
|
|
|
|
}
|
|
|
|
|
on = {
|
|
|
|
|
{
|
|
|
|
|
['input']: (e) => {
|
|
|
|
|
row.content = e
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/> < /
|
|
|
|
|
div >
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -320,7 +340,7 @@
|
|
|
|
|
if ((file.size / 1000) > 10240) {
|
|
|
|
|
Message({
|
|
|
|
|
type: 'warning',
|
|
|
|
|
message:'上传文件大小超过2M!'
|
|
|
|
|
message: '上传文件大小超过10M!'
|
|
|
|
|
})
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
@ -444,7 +464,9 @@
|
|
|
|
|
coverPicture: res?.cover_picture,
|
|
|
|
|
timeLimit: res?.time_limit?.split(','),
|
|
|
|
|
content: res?.content,
|
|
|
|
|
video: res?.video
|
|
|
|
|
video: res?.video,
|
|
|
|
|
set_list: [],
|
|
|
|
|
picture_list: []
|
|
|
|
|
}
|
|
|
|
|
this.$refs['tinymce'].setContent(this.form.content)
|
|
|
|
|
},
|
|
|
|
|
@ -453,6 +475,32 @@
|
|
|
|
|
this.clubSelect.page++
|
|
|
|
|
this.getClubs()
|
|
|
|
|
},
|
|
|
|
|
async getCombo() {
|
|
|
|
|
let list = []
|
|
|
|
|
const res = await getCombo({
|
|
|
|
|
common_products_id: this.id
|
|
|
|
|
})
|
|
|
|
|
list.push(...res);
|
|
|
|
|
|
|
|
|
|
return list;
|
|
|
|
|
},
|
|
|
|
|
async getPic() {
|
|
|
|
|
|
|
|
|
|
let list = []
|
|
|
|
|
const res = await getPicture({
|
|
|
|
|
common_products_id: this.id
|
|
|
|
|
})
|
|
|
|
|
list.push(...res.map(item => {
|
|
|
|
|
return {
|
|
|
|
|
url: item.picture,
|
|
|
|
|
name: item.name || item.picture,
|
|
|
|
|
id: item.id
|
|
|
|
|
}
|
|
|
|
|
}))
|
|
|
|
|
|
|
|
|
|
return list;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
submit() {
|
|
|
|
|
|
|
|
|
|
|