Commit fb5948ab authored by zhengke's avatar zhengke

修改

parent 07d2d447
...@@ -505,7 +505,7 @@ ...@@ -505,7 +505,7 @@
</div> </div>
<el-row> <el-row>
<el-col :span="242"> <el-col :span="242">
<UE style="width:750px;" :defaultMsg="defaultMsg" :config="config" :IsMultiple="true" ref="ue"></UE> <UE style="width:770px;" :defaultMsg="defaultMsg" :config="config" :IsMultiple="true" ref="ue"></UE>
</el-col> </el-col>
</el-row> </el-row>
</el-card> </el-card>
...@@ -942,6 +942,7 @@ ...@@ -942,6 +942,7 @@
}, },
data() { data() {
return { return {
dataContent:'',
ComTreeList: [], ComTreeList: [],
thisType: 0, thisType: 0,
tableData: [], tableData: [],
...@@ -1872,7 +1873,8 @@ ...@@ -1872,7 +1873,8 @@
}; };
this.disList1.push(objNew); this.disList1.push(objNew);
if (this.addMsg.GoodsDetails && this.addMsg.GoodsDetails != "") { if (this.addMsg.GoodsDetails && this.addMsg.GoodsDetails != "") {
this.$refs.ue.SetVal(this.addMsg.GoodsDetails); // this.$refs.ue.SetVal(this.addMsg.GoodsDetails);
this.defaultMsg=this.addMsg.GoodsDetails;
} }
this.NewCategoryList = []; this.NewCategoryList = [];
this.addMsg.CategoryList.forEach(item => { this.addMsg.CategoryList.forEach(item => {
......
...@@ -297,7 +297,7 @@ ...@@ -297,7 +297,7 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.addMsg = res.data.data; this.addMsg = res.data.data;
this.addMsg.MallBaseId = this.getLocalStorage().MallBaseId; this.addMsg.MallBaseId = this.getLocalStorage().MallBaseId;
this.$refs.ue.SetVal(this.addMsg.MemberSpecification); this.defaultMsg=this.addMsg.MemberSpecification;
} }
}) })
......
...@@ -42,7 +42,9 @@ ...@@ -42,7 +42,9 @@
watch: { watch: {
defaultMsg(newVal, oldVal) { defaultMsg(newVal, oldVal) {
if (!this.isInputChange && newVal) { if (!this.isInputChange && newVal) {
if (this.editor && this.editor.isReady === 1) {} else { if (this.editor && this.editor.isReady === 1) {
this.editor.setContent(newVal);
} else {
this.tempContent = newVal; this.tempContent = newVal;
} }
} }
...@@ -52,9 +54,6 @@ ...@@ -52,9 +54,6 @@
}, },
}, },
methods: { methods: {
SetVal(val) {
this.editor.setContent(val);
},
InitData() { InitData() {
}, },
......
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