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

页面修改

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