设备消息
This commit is contained in:
@@ -1,57 +1,27 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<uni-list :border="false">
|
||||
<uni-list-item
|
||||
show-badge
|
||||
badgeType="error"
|
||||
isDot
|
||||
badge-text="未读"
|
||||
title="发生稳态越限监测点10个"
|
||||
note="2023-02-03"
|
||||
clickable
|
||||
@click="jump"
|
||||
/>
|
||||
<uni-list-item
|
||||
show-badge
|
||||
badgeType="error"
|
||||
isDot
|
||||
badge-text="未读"
|
||||
title="发生稳态越限监测点10个"
|
||||
note="2023-02-02"
|
||||
clickable
|
||||
@click="jump"
|
||||
/>
|
||||
<uni-list-item
|
||||
show-badge
|
||||
badgeType="error"
|
||||
isDot
|
||||
badge-text="未读"
|
||||
title="发生稳态越限监测点10个"
|
||||
note="2023-02-01"
|
||||
clickable
|
||||
@click="jump"
|
||||
/>
|
||||
<uni-list-item
|
||||
badgeType="error"
|
||||
isDot
|
||||
badge-text="未读"
|
||||
title="发生稳态越限监测点10个"
|
||||
note="2023-01-31"
|
||||
clickable
|
||||
@click="jump"
|
||||
/>
|
||||
<uni-list-item
|
||||
badgeType="error"
|
||||
isDot
|
||||
badge-text="未读"
|
||||
title="发生稳态越限监测点10个"
|
||||
note="2023-01-30"
|
||||
clickable
|
||||
@click="jump"
|
||||
/>
|
||||
</uni-list>
|
||||
<uni-load-more status="nomore"></uni-load-more>
|
||||
</view>
|
||||
<Cn-page :loading="loading">
|
||||
<view class="content" slot="body">
|
||||
<uni-card
|
||||
:title="item.equipmentName"
|
||||
:extra="item.status === '1' ? '' : '未读'"
|
||||
:sub-title="item.startTime"
|
||||
@click="jump(item)"
|
||||
v-for="(item, index) in store.data"
|
||||
:key="index"
|
||||
>
|
||||
<view class="term-list-bottom">
|
||||
<view class="term-list-bottom-item">
|
||||
{{ item.engineeringName +' ' + item.projectName }}
|
||||
</view>
|
||||
<view class="term-list-bottom-item" v-for="(item2, textIndex) in item.dataSet" :key="textIndex">
|
||||
{{ item2.showName + ':' + item2.value + (item2.unit || '') }}
|
||||
</view>
|
||||
</view>
|
||||
</uni-card>
|
||||
<Cn-empty v-if="store.empty" style="padding-top: 400rpx"></Cn-empty>
|
||||
<uni-load-more v-if="store.data && store.data.length > 0" :status="store.status"></uni-load-more>
|
||||
</view>
|
||||
</Cn-page>
|
||||
</template>
|
||||
<script>
|
||||
import list from '@/common/js/list'
|
||||
@@ -73,8 +43,8 @@ export default {
|
||||
this.store = this.DataSource('/cs-harmonic-boot/event/queryEventList')
|
||||
this.store.params.type = 1
|
||||
this.store.firstCallBack = (res) => {
|
||||
this.store.data.forEach((item) => {
|
||||
item.title = item.equipmentName + dictData.find((item2) => item2.code === item.tag).name
|
||||
this.store.data.forEach(item => {
|
||||
item.title = item.equipmentName + dictData.find(item2 => item2.code === item.tag)?.name
|
||||
})
|
||||
console.log(this.store.data)
|
||||
this.loading = false
|
||||
|
||||
Reference in New Issue
Block a user