|
|
@@ -4,7 +4,7 @@
|
|
|
<el-drawer
|
|
|
title="编辑案例"
|
|
|
:visible.sync="dialogFormVisible"
|
|
|
- size="60%"
|
|
|
+ size="70%"
|
|
|
direction="rtl"
|
|
|
append-to-body
|
|
|
:show-close="false"
|
|
|
@@ -52,16 +52,11 @@
|
|
|
<p class="info">注:建议上传图片大小130x80像素,大小不超过2M,格式为JPG/PNG</p>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="内容" prop="notes">
|
|
|
- <myEditor ref="editor" :content="form.content" :id="form.sat_sharematerialid"></myEditor>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
</el-form>
|
|
|
</el-row>
|
|
|
<div>
|
|
|
<div style="font-size: 16px;font-weight: bold;margin-bottom: 10px">关联产品</div>
|
|
|
- <addProduct :sat_sharematerialid="form.sat_sharematerialid" style="margin-bottom: 10px" @selectData="selectData"></addProduct>
|
|
|
+ <addProduct ref="addProductRef" :sat_sharematerialid="form.sat_sharematerialid" style="margin-bottom: 10px" @selectData="selectData"></addProduct>
|
|
|
<tableNewLayout ref="tableRef" :checkbox="false" :custom="true" :data="list" :layout="tablecols"
|
|
|
:opwidth="200" :width="true" height="300px">
|
|
|
<template v-slot:customcol="scope">
|
|
|
@@ -86,6 +81,10 @@
|
|
|
:total="total">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
+ <p style="font-size: 14px;margin-top: 10px">内容</p>
|
|
|
+ <div style="margin-top: 10px">
|
|
|
+ <myEditor ref="editor" :content="form.content" :id="form.sat_sharematerialid"></myEditor>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="fixed__btn__panel">
|
|
|
@@ -225,7 +224,7 @@ export default {
|
|
|
this.form.image = ''
|
|
|
this.form.cover = ''
|
|
|
this.form.sat_sharematerialid = 0
|
|
|
- this.$emit('onSuccess')
|
|
|
+ this.$emit('editSuccess')
|
|
|
},
|
|
|
clearCover() {
|
|
|
this.form.cover = null
|
|
|
@@ -255,13 +254,20 @@ export default {
|
|
|
"id": "20240801133803",
|
|
|
"content": {
|
|
|
"sat_sharematerialid": this.form.sat_sharematerialid,
|
|
|
- "sat_sharematerial_itemsid": data.sat_sharematerial_itemsid,
|
|
|
- "itemid": data.itemid
|
|
|
+ "iteminfos":[
|
|
|
+ {
|
|
|
+ "sat_sharematerial_itemsid": 0,
|
|
|
+ "itemid": data.itemid
|
|
|
+ }
|
|
|
+ ]
|
|
|
|
|
|
}
|
|
|
})
|
|
|
- this.productParam.content.sat_sharematerialid = this.form.sat_sharematerialid
|
|
|
- this.productData()
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.productParam.content.sat_sharematerialid = this.form.sat_sharematerialid
|
|
|
+ this.productData(this.productParam.content.pageNumber = 1)
|
|
|
+ this.$refs.addProductRef.listData()
|
|
|
+ })
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|