Commit 0093d25f authored by lixy's avatar lixy

Default Changelist

parent acd62fd6
......@@ -123,7 +123,7 @@
}
</style>
<script>
import Editor from "../../modal/editorTool";//富文本
// import Editor from "../../modal/editorTool";//富文本
import UE from '../../modal/Ueditor';//百度ue富文本
import campsiteLabelModal from "../../tourManage/modal/tourLabelModal";//标签
import campsiteModal from "./campsiteModal";//营地地址
......@@ -149,7 +149,7 @@
props: ["oneRow", "title"],
name: 'upkeepDialog',
components: {
Editor,
// Editor,
UE,
campsiteModal,
campsiteLabelModal
......
......@@ -20,10 +20,10 @@
},
editorId:{}
},
mounted() {debugger
mounted() {
const _this = this;
this.editor = UE.getEditor(this.editorId, this.config); // 初始化UE
this.editor.addListener("ready", function () {debugger
this.editor.addListener("ready", function () {
_this.editor.setContent(_this.defaultMsg); // 确保UE加载完成后,放入内容。
_this.$emit('ready', _this.editor);
});
......
......@@ -147,9 +147,15 @@
<el-button v-if="fileList2.length<5" size="small" type="primary">点击上传</el-button>
</el-upload>
</el-form-item>
<el-form-item label="车型详情">
<Editor @input="handelIncrease" :value="form.modelsDetails" :myQuillEditor="'myQuillEditor'"></Editor>
</el-form-item>
<el-tabs v-model="activeName2" type="card">
<el-tab-pane label="车型详情" name="first">
<!--<Editor @input="handelIncrease" :value="form.modelsDetails" :myQuillEditor="'myQuillEditor'"></Editor>-->
<div class="editor-container">
<UE :editorId="activeName2" :defaultMsg="form.modelsDetails" :config=config ref="ue" @ready="editorReadyEvent"></UE>
</div>
</el-tab-pane>
</el-tabs>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="cancel">取 消</el-button>
......@@ -192,6 +198,9 @@
</div>
</template>
<style>
textarea{
display: none;
}
.el-upload-list{
display: flex;
width: 100px;
......@@ -201,7 +210,8 @@
}
</style>
<script>
import Editor from "../../modal/editorTool";//富文本
// import Editor from "../../modal/editorTool";//富文本
import UE from '../../modal/Ueditor';//百度ue富文本
import {
getOneTypeById,
getAllParentLabel,
......@@ -227,12 +237,13 @@
ElFormItem,
ElCol,
ElRow,
Editor
UE
},
data() {
return {
labelList:[],//全部车型标签
fileList2:[],
activeName2: 'first',//房车详情
form: {
pPrice:0,//普通会员
hPrice:0,//黄金会员
......@@ -721,8 +732,11 @@
* 富文本内容
* @param step
*/
handelIncrease(step) {
this.form.modelsDetails = step;
editorReadyEvent(instance){
let t = this;
instance.addListener('contentChange', () => {
t.form.modelsDetails = instance.getContent();
});
},
/**
* 删除banner
......
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