自动化立体仓库 - WMS系统
#
whycq
2023-09-05 e9f4a368fd3845a38eb54d3d18d77e96e5767b61
src/main/webapp/views/home/map_edit.html
@@ -81,6 +81,10 @@
                充电桩:
                <div class="pointBox chargeStation"></div>
            </div>
            <div>
                隐藏显示:
                <div class="pointBox pointBoxStart"></div>
            </div>
        </div>
        <div>
            <div>起点:<input type="text" v-model="startPosition"></div>
@@ -130,6 +134,7 @@
                <div @click="map[mapI][mapJ].value = 3" class="pointBox pointBoxGreen"></div>
                <div @click="map[mapI][mapJ].value = 4" class="pointBox pointBoxStation"></div>
                <div @click="map[mapI][mapJ].value = 5" class="pointBox chargeStation"></div>
                <div @click="map[mapI][mapJ].value = 10" class="pointBox pointBoxStart"></div>
            </div>
        </div>
        <div>
@@ -180,7 +185,6 @@
                //实际区域增加两行两列禁区
                let rowR = Number(this.row) + Number(2)
                let colR = Number(this.col) + Number(2)
                console.log(rowR, colR)
                for (var i = 0; i < rowR; i++) {
                    let x = []
                    for (var j = 0; j < colR; j++) {
@@ -249,7 +253,6 @@
            },
            switchBox(x, y) {
                let tmp = this.map
                console.log(x, y, tmp[x][y])
                switch (tmp[x][y].value) {
                    case -1:
                        tmp[x][y].value = 0
@@ -330,7 +333,6 @@
                }).then((res) => {
                    let data = res.data
                    let tmp = that.map
                    console.log(data)
                    data.forEach((item, index) => {
                        let x = item.x
                        let y = item.y
@@ -348,7 +350,6 @@
                    this.$forceUpdate()
                    this.printData()
                }).catch((error) => {
                    console.log(error)
                })
            },
            rightEvent(x, y, e) {