From 2d117e34a857890400ebfa00b338f5649c38b5cb Mon Sep 17 00:00:00 2001
From: 陈泽平 <chenzeping>
Date: 星期三, 26 五月 2021 15:13:09 +0800
Subject: [PATCH] 事件上报页面修改
---
src/components/layer/src/layer.vue | 23 ++++++++++++++++-------
1 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/src/components/layer/src/layer.vue b/src/components/layer/src/layer.vue
index 3b25a3a..03400c7 100644
--- a/src/components/layer/src/layer.vue
+++ b/src/components/layer/src/layer.vue
@@ -2,7 +2,7 @@
<div class="public-bounced map-background" v-drag :style="style">
<div class="public-bounced-title panel-title" ref="publicBounced">
<span>{{ title }}</span>
- <i class="el-icon-circle-close" @click="close"></i>
+ <i class="el-icon-close" @click="close"></i>
</div>
<div class="public-bounced-content" :id="id"></div>
</div>
@@ -10,6 +10,7 @@
<script>
import helper from './helper/helper.js'
+import '../../../utils/dragBoxes'
export default {
data () {
@@ -28,6 +29,18 @@
},
computed: {},
mounted () {
+ let left = this.left
+ let top = this.top
+ if (left > 0) {
+ left = left + 'px'
+ }
+ if (top > 0) {
+ top = top + 'px'
+ }
+ this.style = {
+ left: left || '25%',
+ top: top || '35%'
+ }
},
methods: {
close () {
@@ -35,10 +48,8 @@
},
init () {
const propsData = helper.deepClone(this.content.data) || {}
- propsData.layerid = this.id
- propsData.lydata = this.content.data
- propsData.lyoption = this.options
- const instance = new this.content.content({
+ // console.log(propsData)
+ const instance = new this.content.comp({
// parent: this.content.parent,
propsData: propsData
})
@@ -72,8 +83,6 @@
.public-bounced {
z-index: 2000;
position: absolute;
- top: 35%;
- left: 20%;
.public-bounced-title {
cursor: move;
--
Gitblit v1.8.0