Commit 0093d25f authored by lixy's avatar lixy

Default Changelist

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