| | |
| | | </el-scrollbar> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <DeviceMatch :device="selectedDevice" :scene="selectedScene"></DeviceMatch> |
| | | <DeviceMatch :device="selectedDevice" :scene="selectedScene" @success="onUploadSuccess"></DeviceMatch> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-text>监管工地</el-text> |
| | |
| | | import { useFetchData } from '@/composables/fetchData'; |
| | | |
| | | import ItemDevice from './components/ItemDevice.vue'; |
| | | import ItemScene from './components/ItemScene.vue'; |
| | | import DeviceMatch from './components/DeviceMatch.vue'; |
| | | |
| | | const { loading, fetchData } = useFetchData(); |
| | |
| | | function addScene(item) { |
| | | selectedScene.value = item; |
| | | } |
| | | |
| | | /** |
| | | * 上传设备完成 |
| | | */ |
| | | function onUploadSuccess() { |
| | | const i = deviceList.value.indexOf(selectedDevice.value) |
| | | deviceList.value.splice(i, 1) |
| | | selectedDevice.value = null |
| | | selectedScene.value = null |
| | | |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .device-scene-wrap { |