Commit 7574437d authored by zhangderong's avatar zhangderong

编辑器显示问题

parent 603a3055
<template>
<div>
<textarea id="editor" rows="10" cols="80" v-model='value'></textarea>
<textarea id="editor" rows="10" cols="80" v-model="editorValue"></textarea>
</div>
</template>
<script type="text/ecmascript-6">
......@@ -30,10 +30,13 @@
}
},
data() {
return {};
return {
editorValue : this.value
};
},
mounted() {
this.init()
console.log(3, this.value)
},
beforeDestroy() {
},
......@@ -56,6 +59,11 @@
});
}
},
watch:{
value: function(value) {
this.editor.setData(value)
}
},
components: {}
};
</script>
......
......@@ -26,6 +26,7 @@
}
}
},
watch:{},
components: {
editor
},
......
......@@ -329,7 +329,7 @@
</div>
</div>
<div class="ckeditor">
<ckeditor height='100%'>{{emailInline.templateContent}}</ckeditor>
<ckeditor :value='sad' :uploadUrl='uploadurl'></ckeditor>
</div>
<div class="uploadEnclosure">
<p><span>添加附件</span><span style="margin-left:10px">
......@@ -364,6 +364,7 @@ import ckeditor from '../../components/ckeditor'
export default {
data () {
return {
sad:'',
ruleInline: {
UpdateOWER: [
{ required: true, message: '邀约人不能为空', trigger: 'blur' }
......@@ -388,6 +389,7 @@ import ckeditor from '../../components/ckeditor'
Enclosure:[],//附件
templateContent:'',//模板内容
},
uploadurl:'',
isShowAll:false,
RescopyArr:[],
interelement:'1',
......@@ -1190,7 +1192,8 @@ import ckeditor from '../../components/ckeditor'
this.emailInline.theme=res.data.body.templateSubject
this.emailInline.receiveEmail=res.data.body.receiveEmail
this.emailInline.templateContent=res.data.body.templateContent
console.log( this.emailInline.templateContent,888888888888888)
this.sad=this.emailInline.templateContent
console.log(this.sad)
})
},
......
......@@ -31,6 +31,10 @@ export default new Router({
path: '/login',
name: 'login',
component: login,},
{
path: '/sweepCode',
name: 'sweepCode',
component: sweepCode,},
{
path:'/update',
name:'update',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment