数据过滤

This commit is contained in:
2025-08-05 17:09:41 +08:00
parent 2836fe4892
commit 4a2d3de48b
6 changed files with 48 additions and 9 deletions

View File

@ -34,7 +34,7 @@
:key="infoDataIndex+'infoData'">
<view class="grid-item-box">
<view class="title">{{infoDataItem.label}}</view>
<text class="text">{{item[infoDataItem.attr]}}
<text class="text">{{item[infoDataItem.attr] | formatNumber}}
<text v-if="infoDataItem.unit" v-html="infoDataItem.unit"></text>
</text>
</view>

View File

@ -34,7 +34,7 @@
:key="infoDataIndex+'infoData'">
<view class="grid-item-box">
<view class="title">{{infoDataItem.label}}</view>
<text class="text">{{item[infoDataItem.attr]}}
<text class="text">{{item[infoDataItem.attr] | formatNumber}}
<text v-if="infoDataItem.unit" v-html="infoDataItem.unit"></text>
</text>
</view>

View File

@ -188,6 +188,10 @@
// 运行状态颜色区分
.running {
.uni-group__title {
background-color: #05AEA3;
}
.uni-collapse-item__title-text {
color: #05AEA3;
}
@ -199,6 +203,10 @@
}
.danger {
.uni-group__title {
background-color: #FC6B69;
}
.uni-collapse-item__title-text {
color: #FC6B69;
}

View File

@ -5,7 +5,7 @@
<uni-grid-item v-for="(item,index) in runningHeadData" :key="index+'head'">
<view class="grid-item-box">
<view class="title">{{item.title}}</view>
<text class="text">{{runningHeadInfo[item.attr] || '-'}}</text>
<text class="text">{{runningHeadInfo[item.attr] | formatNumber}}</text>
</view>
</uni-grid-item>
</uni-grid>
@ -61,7 +61,7 @@
:key="infoDataIndex+'infoData'">
<view class="grid-item-box">
<view class="title">{{infoDataItem.label}}</view>
<text class="text">{{item[infoDataItem.attr]}}
<text class="text">{{item[infoDataItem.attr] | formatNumber}}
<text v-if="infoDataItem.unit" v-html="infoDataItem.unit"></text>
</text>
</view>