|
|
|
@ -25,7 +25,7 @@
|
|
|
|
|
icon: 'ant-design:file-search-outlined',
|
|
|
|
|
onClick: () => {
|
|
|
|
|
console.log('deviceInfoList',deviceInfoList)
|
|
|
|
|
deviceWarningDrawer = true
|
|
|
|
|
openDeviceWarningDrawer(record)
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -55,7 +55,7 @@
|
|
|
|
|
<FeedbackDrawer />
|
|
|
|
|
</a-drawer>
|
|
|
|
|
<a-drawer class="device-warning" v-model:open="deviceWarningDrawer" title="告警信息" width="70%" :closable="false">
|
|
|
|
|
<DeviceWarning />
|
|
|
|
|
<DeviceWarning :deviceWarningInfo="deviceWarningInfo"/>
|
|
|
|
|
</a-drawer>
|
|
|
|
|
<a-drawer class="feedback-drawer" title="设备运维" v-model:open="deviceControl" width="45%" style="background:#f0f1f2" :closable="false">
|
|
|
|
|
<!-- <DeviceControl :deviceInfoList="deviceInfoList" :controlSN="controlSN" :controlChildSN="controlChildSN"/> -->
|
|
|
|
@ -136,6 +136,7 @@ const editDeviceModal = ref(false)
|
|
|
|
|
const editDeviceDate = ref({})
|
|
|
|
|
const controlChildSN = ref()
|
|
|
|
|
const controlItemDetsils = ref()
|
|
|
|
|
const deviceWarningInfo = ref()
|
|
|
|
|
watch(() => [afterFetch.value, props.connected], ([newAfterFetch, newConnected], [oldAfterFetch, oldConnected]) => {
|
|
|
|
|
// console.log(newAfterFetch,newConnected)
|
|
|
|
|
// console.log(getDataSource())
|
|
|
|
@ -253,6 +254,10 @@ const delDevice = (record) => {
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
const openDeviceWarningDrawer = (record) => {
|
|
|
|
|
deviceWarningInfo.value = record
|
|
|
|
|
deviceWarningDrawer.value = true
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|