Commit acd62fd6 authored by lixy's avatar lixy

Default Changelist

parent 4856df59
...@@ -79,14 +79,15 @@ ...@@ -79,14 +79,15 @@
<el-tabs v-model="activeName2" type="card" @tab-click="handleClick"> <el-tabs v-model="activeName2" type="card" @tab-click="handleClick">
<el-tab-pane label="营地详情" name="first"> <el-tab-pane label="营地详情" name="first">
<!--<Editor v-if="activeName2=='first'" @input="handelContentIncrease" :value="form.content" :myQuillEditor="'myQuillEditorContent'" :activeName2="activeName2"></Editor>--> <!--<Editor v-if="activeName2=='first'" @input="handelContentIncrease" :value="form.content" :myQuillEditor="'myQuillEditorContent'" :activeName2="activeName2"></Editor>-->
<div class="editor-container"> <div class="editor-container" v-if="activeName2=='first'">
<UE :defaultMsg=defaultMsg :config=config ref="ue"></UE> <UE :editorId="activeName2" :defaultMsg="form.content" :config=config ref="ue" @ready="editorReadyEvent"></UE>
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="配套&收费" name="second"> <el-tab-pane label="配套&收费" name="second">
<Editor v-if="activeName2=='second'" @input="handelIntroduceIncrease" :value="form.configure" :myQuillEditor="'myQuillEditorIntroduce'" :activeName2="activeName2"></Editor> <!--<Editor v-if="activeName2=='second'" @input="handelIntroduceIncrease" :value="form.configure" :myQuillEditor="'myQuillEditorIntroduce'" :activeName2="activeName2"></Editor>-->
<div class="editor-container" v-if="activeName2=='second'">
<UE :editorId="activeName2" :defaultMsg="form.configure" :config=config ref="ue" @ready="editorReadyEvent"></UE>
</div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-form-item></el-form-item> <el-form-item></el-form-item>
...@@ -103,6 +104,9 @@ ...@@ -103,6 +104,9 @@
</div> </div>
</template> </template>
<style> <style>
textarea{
display: none;
}
.info{ .info{
border-radius: 10px; border-radius: 10px;
line-height: 20px; line-height: 20px;
...@@ -157,8 +161,6 @@ ...@@ -157,8 +161,6 @@
initialFrameWidth: null, initialFrameWidth: null,
initialFrameHeight: 350 initialFrameHeight: 350
}, },
isExist:false,//名称是否已存在 isExist:false,//名称是否已存在
campsiteObj: {},//营地地址 campsiteObj: {},//营地地址
departureList: [],//出发地列表 departureList: [],//出发地列表
...@@ -180,10 +182,10 @@ ...@@ -180,10 +182,10 @@
address: undefined,//详细地址 address: undefined,//详细地址
latitude: undefined, latitude: undefined,
longitude: undefined, longitude: undefined,
content: undefined,//营地详情 content: '',//营地详情
concat: "",//联系人 concat: "",//联系人
logo:undefined,//封面图 logo:undefined,//封面图
configure: undefined,//配套&收费 configure: '',//配套&收费
campsiteTagListVos: [],//营地类型 campsiteTagListVos: [],//营地类型
carouse:[],//banner轮播 carouse:[],//banner轮播
}, },
...@@ -312,9 +314,8 @@ ...@@ -312,9 +314,8 @@
latitude: this.campsiteObj.latitude, latitude: this.campsiteObj.latitude,
longitude: this.campsiteObj.longitude, longitude: this.campsiteObj.longitude,
}; };
console.log(content)
console.log(params); console.log(params);
// this.isExistCampsiteShop("create", params); this.isExistCampsiteShop("create", params);
}, },
/** /**
* 判断营地名称是否已存在 * 判断营地名称是否已存在
...@@ -552,8 +553,15 @@ ...@@ -552,8 +553,15 @@
/** /**
* 富文本 营地详情 * 富文本 营地详情
* */ * */
handelContentIncrease(step){ editorReadyEvent(instance){
this.form.content = step; let t = this;
instance.addListener('contentChange', () => {
if(t.activeName2 == "first"){
t.form.content = instance.getContent();
} else if(t.activeName2 == "second"){
t.form.configure = instance.getContent();
}
});
}, },
/** /**
* 删除banner * 删除banner
...@@ -607,10 +615,10 @@ ...@@ -607,10 +615,10 @@
address: undefined,//详细地址 address: undefined,//详细地址
latitude: undefined, latitude: undefined,
longitude: undefined, longitude: undefined,
content: undefined,//营地详情 content: '',//营地详情
concat: "",//联系人 concat: "",//联系人
logo:undefined,//封面图 logo:undefined,//封面图
configure: undefined,//配套&收费 configure: '',//配套&收费
campsiteTagListVos: [],//营地类型 campsiteTagListVos: [],//营地类型
carouse:[],//banner轮播 carouse:[],//banner轮播
}; };
......
<template> <template>
<div> <div>
<script id="editor" type="text/plain"></script> <script :id="editorId" type="text/plain"></script>
</div> </div>
</template> </template>
<script> <script>
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
name: 'UE', name: 'UE',
data () { data () {
return { return {
editor: null editor: null,
} }
}, },
props: { props: {
...@@ -17,13 +17,15 @@ ...@@ -17,13 +17,15 @@
}, },
config: { config: {
type: Object type: Object
} },
editorId:{}
}, },
mounted() { mounted() {debugger
const _this = this; const _this = this;
this.editor = UE.getEditor('editor', this.config); // 初始化UE this.editor = UE.getEditor(this.editorId, this.config); // 初始化UE
this.editor.addListener("ready", function () { this.editor.addListener("ready", function () {debugger
_this.editor.setContent(_this.defaultMsg); // 确保UE加载完成后,放入内容。 _this.editor.setContent(_this.defaultMsg); // 确保UE加载完成后,放入内容。
_this.$emit('ready', _this.editor);
}); });
}, },
methods: { methods: {
......
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