浏览代码

'添加浮层'

zhangyu 4 年之前
父节点
当前提交
8865fa70bb
共有 1 个文件被更改,包括 15 次插入5 次删除
  1. 15 5
      src/components/floorMap/index.vue

+ 15 - 5
src/components/floorMap/index.vue

@@ -9,7 +9,7 @@
         </div>
         <room-box ref='boxRoom'></room-box>
         <el-popover ref="popover" placement="right" trigger="manual" v-model="visible" width="380">
-            <div style="text-align: right;">
+            <div style="text-align: right;margin-bottom: 10px;">
                 <span style="float: left;">对应的工程信息化信息</span>
                 <el-link icon="el-icon-close" :underline="false" @click="visible = false"></el-link>
             </div>
@@ -21,9 +21,9 @@
                         <el-table-column prop="sl" width="80" label="数量" :show-overflow-tooltip='true'></el-table-column>
                         <el-table-column prop="sb_status" width="80" label="设备状态" :show-overflow-tooltip='true'></el-table-column>
                         <el-table-column prop="sbglgs" width="80" label="管理归属" :show-overflow-tooltip='true'></el-table-column>
-                        <el-table-column label="" width="60">
+                        <el-table-column label="" width="80">
                             <template slot-scope="scope">
-                                <el-button @click="handleClickEquipDetail(scope.row)" type="text" size="small">台账详情</el-button>
+                                <el-button @click="handleClickEquipDetail(scope.row)" type="text" size="small" style="color: #025BAA">台账详情</el-button>
                             </template>
                         </el-table-column>
                     </el-table>
@@ -49,7 +49,7 @@
 </template>
 <script>
 import { SFengParser } from '@saga-web/feng-map'
-import { SFloorParser, ItemOrder, ItemColor } from '@saga-web/big'
+import { SFloorParser, ItemOrder, ItemColor, SPolygonItem } from '@saga-web/big'
 import { FloorView } from '@/lib/FloorView'
 import { FloorScene } from '@/lib/FloorScene'
 import RoomBox from '@/views/room/index'
@@ -58,9 +58,11 @@ import { readGroup, queryStatis } from '@/api/public'
 import { queryShops } from '@/api/equipmentList.js'
 import { STopologyParser } from '@/lib/parsers/STopologyParser'
 import { mapGetters, mapActions } from 'vuex'
-import { SImageItem, SImageShowType } from '@saga-web/graph/lib'
+import { SImageItem, SImageShowType, SGraphItem } from '@saga-web/graph/lib'
 import { SColor } from '@saga-web/draw/lib'
 import bus from '@/utils/bus.js'
+import { TipelineItem } from '../../lib/items/TipelineItem'
+import { SImageLegendItem } from '../../lib/items/SImageLegendItem'
 
 // import { uuid } from "@/components/mapClass/until";
 
@@ -421,6 +423,13 @@ export default {
             // else {
                 // this.clearHightLight()
             // }
+            if (ev[0].length) {
+                if (!(ev[0][0] instanceof SPolygonItem || ev[0][0] instanceof TipelineItem || ev[0][0] instanceof SImageLegendItem)) {
+                    this.visible = false;
+                }
+            } else {
+                this.visible = false;
+            }
             this.clearHightLight()
         },
         // 选中电井关联的商铺高亮
@@ -651,6 +660,7 @@ a:hover {
                 white-space: nowrap;
             }
             a {
+                color: #025BAA;
                 font-size: 13px;
             }
         }