yangys
2024-03-06 8ca9ae16f4ed1fc835a9386166b1855178adcf65
删除注释
已修改1个文件
7 ■■■■ 文件已修改
src/container/Map/Map.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/Map/Map.vue
@@ -427,23 +427,28 @@
        },
        sign(type) {
            //if(type == 2){//2:设备
                console.log('hh',this);
                //console.log('hh',this);
                const { x, x1, y, y1 } = this.range
                
                for (var i = x; i <= x1; i++) {
                    for (var j = y; j <= y1; j++) {
                        let arr = [...(this.map[i])]
                        if (type == 2 && (arr[j].colspan < 4 || arr[j].rowspan  <  4)) { //x1-x<3 || y1-y<3
                            return this.$message({
                                type: 'error',
                                message: '单元格较小,无法展示设备,请至少合并4行4列单元格'
                            })
                        }
                        
                        arr[j].type = type
                        arr[j].id = undefined
                        this.$set(this.map, i, arr)
                    }
                }
            //}
            this.showAction = false