1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
| <template>
| <div id="richContainer" :style="richerStyle" v-show="richerShow">
| <!-- <div
| class="mind-fj-box"
| v-show="showImageList.length > 0 || editorContent != ''"
| >
| <div class="mind-carousel" v-show="showImageList.length > 0">
| <el-carousel height="197px" :interval="2000" arrow="always">
| <el-carousel-item v-for="item in showImageList" :key="item.ID">
| <div class="carous-img">
| <img :src="item.fileName" alt="" />
| </div>
| </el-carousel-item>
| </el-carousel>
| </div>
|
| </div> -->
| <el-scrollbar v-show="editorContent != ''" class="mind-fj-p">
| <p v-html="editorContent"></p>
| </el-scrollbar>
| </div>
| </template>
|
| <script>
| import E from "wangeditor"
| export default {
| props: {
| data: Object
| },
| data() {
| return {
| richerShow:false,
| left:'-1000px',
| top:'-1000px',
| editor: null,
| editorContent:'',
| showImageList:[],
|
| };
| },
| computed: {
| richerStyle() {
| return {
| width: '400px',
| position: "absolute",
| top: this.top+'px',
| left: this.left+'px'
| };
| }
| },
| mounted(){
|
| } ,
| components: {
|
| },
| methods: {
| init(content,imageList,left,top){
| this.richerShow=true;
| this.left=left;
| this.top=top;
| this.editorContent=content;
| this.showImageList=imageList;
| },
| close(){
| this.richerShow=false;
| }
| }
| };
| </script>
| <style>
|
| </style>
|
|