Files
wvp-platform/web/src/views/jtDevice/index.vue
2025-05-11 08:01:45 +08:00

33 lines
653 B
Vue
Executable File

<template>
<div id="device" class="app-container">
<deviceList v-show="deviceId === null" @show-channel="showChannelList" />
<channelList v-if="deviceId !== null" :device-id="deviceId" @show-device="showDevice" />
</div>
</template>
<script>
import deviceList from './list.vue'
import channelList from './channel/index.vue'
export default {
name: 'Device',
components: {
deviceList,
channelList
},
data() {
return {
deviceId: null
}
},
methods: {
showChannelList: function(deviceId) {
this.deviceId = deviceId
},
showDevice: function() {
this.deviceId = null
}
}
}
</script>