gaosp
2024-01-12 de49d40ab302b48a5d98201ba80105dadb2b2ac4
update
已修改2个文件
18 ■■■■■ 文件已修改
src/container/Map/Map.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/Map/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/Map/Map.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-01-05 23:47:53
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-12 00:22:57
 * @LastEditTime: 2024-01-12 00:35:17
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/Map/Map.vue
-->
<template>
@@ -29,12 +29,10 @@
                    <!-- <div>删除列</div> -->
                </div>
                <table>
                    <tr v-for="(item, index) in mapNew" :key="index">
                    <tr v-for="(item, index) in map" :key="index">
                        <td v-if="v.rowspan !==0 && v.colspan!==0"
                        :style="{
                            'width': v.type ===1 ? '20px' : v.colspan * 20 + 'px!important',
                            'height': v.type ===1 ? '20px' : v.rowspan * 20+ 'px!important'
                        }"
                        :width="v.type ===1 ? '20px' : v.colspan * 400 + 'px'"
                        :height="v.type ===1 ? '20px' : v.rowspan * 100+ 'px'"
                        :class="{'active': (range.x !=='' && v.rowIndex >=range.x && v.rowIndex<=range.x1 && v.colIndex>=range.y && v.colIndex<=range.y1),aisle: v.type ===1}" @mousedown="e => onMousedown(e, v)" @mousemove="e => onMouseMove(e, v)" v-for="v in item"
                            :rowspan="v.rowspan" :colspan="v.colspan" :key="v.rowIndex + '-' + v.colIndex">
                            <img @click="addDevice($event,v)" @mousedown="e => e.stopPropagation()" v-if="v.type ===2 && status!==2" src="./img/+.png" alt="">
@@ -448,11 +446,11 @@
    }
    table {
        width: 100%;
        width: 2000px;
        height: 100%;
        
        border-collapse: collapse;
        table-layout: fixed;
        // table-layout: fixed;
        word-wrap: break-word;
        overflow: hidden;
        
src/container/Map/index.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-01-05 22:26:22
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-11 22:50:23
 * @LastEditTime: 2024-01-12 00:36:43
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/Map/index.vue
-->
<template>
@@ -42,7 +42,7 @@
                </div>
            </div>
            <div class="right">
                <Status />
                <Status v-show="false"/>
                <div class="preview-map">
                    <Map :status="2" :currentMap="currentMap"  @out="out" />
                </div>