|
@@ -0,0 +1,121 @@
|
|
|
|
+<template>
|
|
|
|
+ <div class="total-wrap flex-column" :style="{'pointer-events' :isPreview?'none':'auto'}">
|
|
|
|
+ <div class="line flex-center">
|
|
|
|
+ <div class="line-item flex-center"
|
|
|
|
+ :style="pageItem.layers&&!isLayerShow()?TypeName(1)==='ChartEl'?'z-index:5':'z-index:3':''">
|
|
|
|
+ <component :data-position="1" :is="TypeName(1)" :ref="RefName(1)" :index="pageIndex" :position="1"
|
|
|
|
+ :item="Item(1)" @dragstart.native="onDragStart" @dragover.native="onDragOver" @drop.native="onDrop"
|
|
|
|
+ @getText="getText($event,1)" />
|
|
|
|
+ </div>
|
|
|
|
+ <div class="line-item flex-center"
|
|
|
|
+ :style="pageItem.layers&&!isLayerShow()?TypeName(2)==='ChartEl'?'z-index:5':'z-index:3':''">
|
|
|
|
+ <component :data-position="2" :is="TypeName(2)" :ref="RefName(2)" :index="pageIndex" :position="2"
|
|
|
|
+ :item="Item(2)" @dragstart.native="onDragStart" @dragover.native="onDragOver" @drop.native="onDrop"
|
|
|
|
+ @getText="getText($event,2)" />
|
|
|
|
+ </div>
|
|
|
|
+ <div class="line-item flex-center"
|
|
|
|
+ :style="pageItem.layers&&!isLayerShow()?TypeName(3)==='ChartEl'?'z-index:5':'z-index:3':''">
|
|
|
|
+ <component :data-position="3" :is="TypeName(3)" :ref="RefName(3)" :index="pageIndex" :position="3"
|
|
|
|
+ :item="Item(3)" @dragstart.native="onDragStart" @dragover.native="onDragOver" @drop.native="onDrop"
|
|
|
|
+ @getText="getText($event,3)" />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="line flex-center">
|
|
|
|
+ <div class="line-item flex-center"
|
|
|
|
+ :style="pageItem.layers&&!isLayerShow()?TypeName(4)==='ChartEl'?'z-index:5':'z-index:3':''">
|
|
|
|
+ <component :data-position="4" :is="TypeName(4)" :ref="RefName(4)" :index="pageIndex" :position="4"
|
|
|
|
+ :item="Item(4)" @dragstart.native="onDragStart" @dragover.native="onDragOver" @drop.native="onDrop"
|
|
|
|
+ @getText="getText($event,4)" />
|
|
|
|
+ </div>
|
|
|
|
+ <div class="line-item flex-center"
|
|
|
|
+ :style="pageItem.layers&&!isLayerShow()?TypeName(5)==='ChartEl'?'z-index:5':'z-index:3':''">
|
|
|
|
+ <component :data-position="5" :is="TypeName(5)" :ref="RefName(5)" :index="pageIndex" :position="5"
|
|
|
|
+ :item="Item(5)" @dragstart.native="onDragStart" @dragover.native="onDragOver" @drop.native="onDrop"
|
|
|
|
+ @getText="getText($event,5)" />
|
|
|
|
+ </div>
|
|
|
|
+ <div class="line-item flex-center"
|
|
|
|
+ :style="pageItem.layers&&!isLayerShow()?TypeName(6)==='ChartEl'?'z-index:5':'z-index:3':''">
|
|
|
|
+ <component :data-position="6" :is="TypeName(6)" :ref="RefName(6)" :index="pageIndex" :position="6"
|
|
|
|
+ :item="Item(6)" @dragstart.native="onDragStart" @dragover.native="onDragOver" @drop.native="onDrop"
|
|
|
|
+ @getText="getText($event,6)" />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="wrap-full-bottom bottom-15 flex-center"
|
|
|
|
+ :style="pageItem.layers&&!isLayerShow()?TypeName(7)==='ChartEl'?'z-index:5':'z-index:3':''">
|
|
|
|
+ <component :data-position="7" :is="TypeName(7)" :ref="RefName(7)" :index="pageIndex" :position="7"
|
|
|
|
+ :item="Item(7)" @dragstart.native="onDragStart" @dragover.native="onDragOver" @drop.native="onDrop"
|
|
|
|
+ @getText="getText($event,7)"></component>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- 图层编辑模式 -->
|
|
|
|
+ <div class="layers" :id="`layers_${pageItem.id}`" v-if="isLayerShow()" @click.stop="clickLayer"
|
|
|
|
+ @contextmenu.stop="showLayerContentMenu">
|
|
|
|
+ <template v-for="item in pageItem.layers">
|
|
|
|
+ <component :is="getLayerElName(item)" :key="item.id" :elementInfo="item"
|
|
|
|
+ :isActive="item.id===activeLayerEl.id&&!isClickLayer" :isLayerEdit="true"
|
|
|
|
+ @click.stop.native="changeActEl(item)" @chooseThis="changeActEl(item)" v-on="$listeners">
|
|
|
|
+ </component>
|
|
|
|
+ </template>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- 非图层编辑模式 -->
|
|
|
|
+ <template v-else>
|
|
|
|
+ <template v-for="item in pageItem.layers">
|
|
|
|
+ <component :is="getLayerElName(item)" :key="item.id" :elementInfo="item" :isActive="false"
|
|
|
|
+ :isLayerEdit="false"></component>
|
|
|
|
+ </template>
|
|
|
|
+ </template>
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+ import mixin from "./mixins";
|
|
|
|
+ import {
|
|
|
|
+ defaultPosition
|
|
|
|
+ } from "../../utils/config";
|
|
|
|
+ export default {
|
|
|
|
+ name: "formatTen",
|
|
|
|
+ mixins: [mixin],
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ modelId: 10,
|
|
|
|
+ positionInfo: defaultPosition[10]
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ };
|
|
|
|
+</script>
|
|
|
|
+<style lang="scss">
|
|
|
|
+.line{
|
|
|
|
+ .line-item{
|
|
|
|
+ .el-wrap .chart-wrap{
|
|
|
|
+ width:90%;
|
|
|
|
+ height:90%;
|
|
|
|
+ }
|
|
|
|
+ .editor-wrap{
|
|
|
|
+ width:90%;
|
|
|
|
+ height:90%
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+</style>
|
|
|
|
+<style scoped lang="scss">
|
|
|
|
+ .total-wrap {
|
|
|
|
+ .line{
|
|
|
|
+ height:40%;
|
|
|
|
+ .line-item{
|
|
|
|
+ width:33%;
|
|
|
|
+ height:100%;
|
|
|
|
+ .el-wrap .chart-wrap{
|
|
|
|
+ width:90%;
|
|
|
|
+ height:90%;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .wrap-full-bottom {
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ }
|
|
|
|
+ .bottom-15{
|
|
|
|
+ height: 18%;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+</style>
|