活动页面完善
This commit is contained in:
@@ -81,6 +81,7 @@
|
||||
totalPage: 0,
|
||||
dataListLoading: false,
|
||||
dataListSelections: [],
|
||||
listIndex: -1
|
||||
}
|
||||
},
|
||||
create(){
|
||||
@@ -94,7 +95,7 @@
|
||||
this.$bus.$on("getListInMes", (data) => {
|
||||
this.selectTitle = data.selectTitle
|
||||
this.oldSelected = data.ProductList
|
||||
|
||||
this.listIndex = data.ProductListIndex
|
||||
});
|
||||
},methods:{
|
||||
// 判断初始选中的产品
|
||||
@@ -117,7 +118,8 @@
|
||||
},
|
||||
sedSelectPro(){
|
||||
console.log(this.dataListSelections)
|
||||
this.$bus.$emit('haveSelected', {title:this.selectTitle,list:this.dataListSelections})
|
||||
this.$bus.$emit('haveSelected', {title:this.selectTitle,list:this.dataListSelections, listIndex: this.listIndex})
|
||||
this.listIndex = null
|
||||
this.handleClose()
|
||||
},
|
||||
// 获取数据列表
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
</div>
|
||||
<el-form-item label="商品详情" prop="productDetails">
|
||||
<quill-editor v-model="dataForm.productDetails" ref="myQuillEditor" :options="editorOption"
|
||||
@blur="onEditorBlur($event)" @focus="onEditorFocus($event)" @change="onEditorChange($event)"
|
||||
@blur="onEditorBlur($event)" @focus="onEditorFocus($event)"
|
||||
@ready="onEditorReady($event)" class="shangpin_editor">
|
||||
</quill-editor>
|
||||
</el-form-item>
|
||||
@@ -479,7 +479,7 @@
|
||||
this.visible = false
|
||||
this.swiperfileList = []
|
||||
this.$refs['dataForm'].resetFields()
|
||||
this.$refs['dataForm'].reset()
|
||||
// this.$refs['dataForm'].reset()
|
||||
},
|
||||
// 失去焦点事件
|
||||
onEditorBlur(quill) {
|
||||
@@ -493,15 +493,7 @@
|
||||
onEditorReady(quill) {
|
||||
// console.log('editor ready!', quill)
|
||||
},
|
||||
// 内容改变事件
|
||||
onEditorChange({
|
||||
quill,
|
||||
html,
|
||||
text
|
||||
}) {
|
||||
console.log('editor change!', quill, html, text)
|
||||
this.content = html
|
||||
}
|
||||
|
||||
},
|
||||
components: {
|
||||
quillEditor
|
||||
|
||||
Reference in New Issue
Block a user