gaosp
2024-02-20 e041e9727900add4e8ac022de542270beac282fe
update
已修改1个文件
17 ■■■■ 文件已修改
src/container/Map/Map.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/Map/Map.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-01-05 23:47:53
 * @LastEditors: Sneed
 * @LastEditTime: 2024-02-05 16:57:29
 * @LastEditTime: 2024-02-19 19:19:48
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/Map/Map.vue
-->
<template>
@@ -66,15 +66,15 @@
            </span>
        </el-dialog>
        <el-dialog class="add-device" title="生成地图" top="94px" :close-on-click-modal="false" width="400px"
            :visible.sync="showMapSet" :show-close="false">
            :visible.sync="showMapSet" :show-close="true" @close="closeCreate">
            <div>
                <p>
                    <span>行数:</span>
                    <el-input style="width: 100px;" class="input" v-show="status !== 2" v-model="rows" />
                    <el-input style="width: 100px;" class="input" v-model="rows" />
                </p>
                <p style="margin-top: 20px;">
                    <span>列数:</span>
                    <el-input style="width: 100px;" class="input" v-show="status !== 2" v-model="cols" />
                    <el-input style="width: 100px;" class="input" v-model="cols" />
                </p>
            </div>
            <span slot="footer" class="dialog-footer">
@@ -142,6 +142,7 @@
    },
    data() {
        return {
            showMapSet: false,
            height: 0,
            plantName: '',
            rows: 20,
@@ -274,6 +275,14 @@
                name: 'mapList'
            })
        },
        closeCreate () {
            if (!this.map) {
                this.$router.push({
                    name: 'mapList'
                })
            }
            this.showMapSet = false
        },
        addRow() {
            this.rows += 1
            let row = []