feat 报告详情
This commit is contained in:
47
src/pages/report/detail/index.vue
Normal file
47
src/pages/report/detail/index.vue
Normal 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>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user