feat 报告详情

This commit is contained in:
Ironsp
2026-09-03 11:58:40 +08:00
parent 1fffd93c83
commit 607b5f8c91
7 changed files with 261 additions and 2 deletions

View File

@@ -0,0 +1,47 @@
<script setup lang="ts">
definePage({
layout: false,
style: {
navigationStyle: 'custom',
},
})
const reportData = ref<any>(null)
onLoad((options) => {
if (options?.data) {
console.log('222222222222', options.data)
reportData.value = JSON.parse(options.data)
// reportData.value = JSON.parse(decodeURIComponent(options.data))
console.log('2222222222223333333', reportData.value)
}
})
</script>
<template>
<view class="page">
<back-nav title="报告详情" />
<view class="content">
<report-device-header
v-if="reportData"
:device-code="reportData.deviceCode"
:time="reportData.time"
:status="reportData.status"
/>
</view>
</view>
</template>
<style scoped>
.page {
min-height: 100vh;
background-color: #EAEFF9;
}
.content {
padding: 16px;
padding-top: 72px;
}
</style>

View File

@@ -10,7 +10,9 @@ const warningData = ref<any>(null)
onLoad((options) => {
if (options?.data) {
console.log('111111111111111', options.data)
warningData.value = JSON.parse(decodeURIComponent(options.data))
console.log('11111111111111111222222', warningData.value)
}
})
</script>