Commit 1afacd0f authored by 黄奎's avatar 黄奎

页面修改

parent 19c63f2a
...@@ -364,8 +364,7 @@ ...@@ -364,8 +364,7 @@
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
//let content = this.$refs.UeEditor1.getUEContent();
//this.addMsg.MaterialInfo = content;
this.apipost("/api/Share/SetShareFriend", this.addMsg, this.apipost("/api/Share/SetShareFriend", this.addMsg,
res => { res => {
this.loading = false; this.loading = false;
......
...@@ -219,7 +219,6 @@ ...@@ -219,7 +219,6 @@
this.getData() this.getData()
} }
this.getgradeList(); this.getgradeList();
}, },
methods: { methods: {
input(){}, input(){},
......
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
<li class="menu_item" :class="{'Fchecked':isChecked=='/educationOrder'}" @click="isChecked='/educationOrder',CommonJump('educationOrder')"> <li class="menu_item" :class="{'Fchecked':isChecked=='/educationOrder'}" @click="isChecked='/educationOrder',CommonJump('educationOrder')">
<i class="el-icon-menu"></i><span>课程订单</span> <i class="el-icon-menu"></i><span>课程订单</span>
</li> </li>
<li class="menu_item" :class="{'Fchecked':isChecked=='/uploadKCSet'}" @click="isChecked='/uploadKCSet',CommonJump('uploadKCSet')"> <!-- <li class="menu_item" :class="{'Fchecked':isChecked=='/uploadKCSet'}" @click="isChecked='/uploadKCSet',CommonJump('uploadKCSet')">
<i class="el-icon-menu"></i><span>上传配置</span> <i class="el-icon-menu"></i><span>上传配置</span>
</li> </li>
<li class="menu_item" :class="{'Fchecked':isChecked=='/activityList'}" @click="isChecked='/activityList',CommonJump('activityList')"> <li class="menu_item" :class="{'Fchecked':isChecked=='/activityList'}" @click="isChecked='/activityList',CommonJump('activityList')">
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
</li> </li>
<li class="menu_item" :class="{'Fchecked':isChecked=='/resultPageList'}" @click="isChecked='/resultPageList',CommonJump('resultPageList')"> <li class="menu_item" :class="{'Fchecked':isChecked=='/resultPageList'}" @click="isChecked='/resultPageList',CommonJump('resultPageList')">
<i class="el-icon-menu"></i><span>调查列表</span> <i class="el-icon-menu"></i><span>调查列表</span>
</li> </li> -->
</ul> </ul>
</div> </div>
</div> </div>
......
...@@ -75,7 +75,10 @@ ...@@ -75,7 +75,10 @@
this.changeState = false; this.changeState = false;
}, },
getUEContent() { // 获取内容方法 getUEContent() { // 获取内容方法
return this.editor.getContent() if (this.editor) {
return this.editor.getContent();
}
return "";
}, },
loadUe() { loadUe() {
const _this = this; const _this = this;
...@@ -102,11 +105,11 @@ ...@@ -102,11 +105,11 @@
} }
}); });
this.editor.addListener('keyup', editor => { this.editor.addListener('keyup', editor => {
this.isInputChange = false; this.isInputChange = true;
_this.$emit('input', _this.editor.getContent()); _this.$emit('input', _this.editor.getContent());
}); });
this.editor.addListener('contentChange', editor => { this.editor.addListener('contentChange', editor => {
this.isInputChange = false; this.isInputChange = true;
_this.$emit('input', _this.editor.getContent()); _this.$emit('input', _this.editor.getContent());
}); });
} }
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
</div> </div>
<div class="diy-component-edit imgVisible" :class="{'visibleA':imageData.isCked}"> <div class="diy-component-edit imgVisible" :class="{'visibleA':imageData.isCked}">
<UE :defaultMsg="data.content" :config="config" ref="ue" @input="input"></UE> <UE v-model="data.content" :defaultMsg="data.content" :config="config" ref="ue" :IsMultiple="true"></UE>
</div> </div>
</div> </div>
</div> </div>
...@@ -47,15 +47,19 @@ ...@@ -47,15 +47,19 @@
}, },
data() { data() {
return { return {
data: this.imageData.data, data: {
content: ''
},
config: { config: {
initialFrameWidth: null, initialFrameWidth: null,
initialFrameHeight: 350, initialFrameHeight: 350,
}, },
content: ''
}; };
}, },
created() {}, created() {
var content = this.imageData.data.content;
this.data.content = content;
},
methods: { methods: {
//向父组件传值 并调用排序 //向父组件传值 并调用排序
resetSord(IsUp) { resetSord(IsUp) {
...@@ -65,16 +69,23 @@ ...@@ -65,16 +69,23 @@
delPlugin() { delPlugin() {
this.$emit('comDelPlugin', this.index); this.$emit('comDelPlugin', this.index);
}, },
input(obj) { getContent() {
this.data.content = obj return this.$refs.ue.getUEContent();
}, },
}, },
computed: {}, computed: {},
mounted() { mounted() {
this.$refs.ue.InitData(); this.$refs.ue.loadUe();
}, },
watch: { watch: {
data: {
deep: true,
handler(newVal, oldVal) {
let newContent = newVal.content;
this.data.content = newContent;
this.imageData.data.content = newContent;
},
}
} }
}; };
......
This diff is collapsed.
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