马宇豪
2023-05-05 c819024e241b9f7c54cc3786373ad0d2998f2190
src/components/Tab/Model.vue
@@ -10,14 +10,14 @@
                >
                    添加
                </el-button>
                <el-button
                <!-- <el-button
                    icon="el-icon-delete"
                    size="small"
                    type="danger"
                    @click="clearHandle"
                >
                    清空
                </el-button>
                </el-button> -->
                <el-button
                    icon="el-icon-view"
                    size="small"
@@ -101,7 +101,13 @@
            return this.timestamp && global.map ? global.map.models : [];
        }
    },
    mounted() {
        this.beginSet()
    },
    methods: {
        beginSet() {
            this.focusHandle(this.models[0].id)
        },
        editHandle(model) {
            if (!global.map) return;
            this.model = {