Files
app-govern/pages/message/runDetail.vue

60 lines
1.8 KiB
Vue
Raw Normal View History

2023-09-21 15:15:17 +08:00
<template>
<Cn-page :loading="loading">
<view class="detail" slot="body">
<view class="detail-content" style="font-size: 32rpx">
<!-- <view class="detail-content-title mb20">发生时间</view> -->
<view>{{ detail.startTime }}</view>
</view>
<view class="detail-content">
<view class="detail-content-title mb20">基础信息</view>
2023-09-22 10:22:56 +08:00
<view class="mb10" style="font-size: 28rpx;"> {{ detail.showName }}</view>
<view class="mb5"> 设备名称{{ detail.title }}</view>
<view class="mb5"> 项目名称{{ detail.projectName }} </view>
<view class="mb5"> 工程名称{{ detail.engineeringName }} </view>
2023-09-21 15:15:17 +08:00
<view v-for="(item, textIndex) in detail.dataSet" :key="textIndex">
{{ item.showName + ':' + item.value + (item.unit || '') }}
</view>
</view>
</view>
</Cn-page>
</template>
<script>
import { updateStatus } from '@/common/api/message'
export default {
data() {
return {
loading: true,
detail: {},
}
},
onLoad(options) {
console.log(options.detail)
this.detail = JSON.parse(decodeURIComponent(options.detail).replace(/百分比/g, '%'))
this.loading = false
2023-09-22 10:22:56 +08:00
if (this.detail.status != 1) {
updateStatus([this.detail.id])
}
2023-09-21 15:15:17 +08:00
},
methods: {},
}
</script>
<style lang="scss">
.detail {
padding: 20rpx 0;
.detail-content {
padding: 20rpx;
background: #fff;
margin-bottom: 20rpx;
font-size: 26rpx;
.detail-content-title {
font-size: 32rpx;
color: #111;
font-weight: 700;
}
}
}
</style>