| | |
| | | <!-- |
| | | * @Date: 2024-01-05 23:47:53 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-23 21:41:33 |
| | | * @LastEditTime: 2024-01-29 22:46:03 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/Map/Map.vue |
| | | --> |
| | | <template> |
| | |
| | | </div> |
| | | <el-dialog title="放置设备" top="94px" :close-on-click-modal="false" width="100%" :visible.sync="addStatus" > |
| | | <el-select class="wkshoplist" clearable v-model="deviceId" placeholder="请选择"> |
| | | <el-option v-for="item in deviceList" :key="item.machineId" :label="item.machineName" |
| | | <el-option v-show="!hasPushed.includes(item.machineId)" v-for="item in deviceList" :key="item.machineId" :label="item.machineName" |
| | | :value="item.machineId"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | tdMounseDown: false, |
| | | range: { x: '', x1: '', y: '', y1: '' }, |
| | | currentAdd: {}, |
| | | colgroups: [] |
| | | colgroups: [], |
| | | hasPushed: [], |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | addDevice(e, v) { |
| | | e.stopPropagation() |
| | | this.addStatus = true |
| | | let hasPushed = [] |
| | | this.map.forEach(item => { |
| | | item.forEach(v => { |
| | | if (v.id) { |
| | | hasPushed.push(v.id) |
| | | } |
| | | }) |
| | | }) |
| | | this.hasPushed = hasPushed |
| | | this.deviceId = '' |
| | | this.currentAdd = v |
| | | }, |