43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
<!--pages/statistics/index/index.wxml-->
|
|
<view class="container">
|
|
<view class="stats-overview">
|
|
<view class="overview-card">
|
|
<view class="card-value">{{totalDevices}}</view>
|
|
<view class="card-label">设备总数</view>
|
|
</view>
|
|
<view class="overview-card">
|
|
<view class="card-value warning">{{warningRate}}%</view>
|
|
<view class="card-label">预警率</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="chart-section">
|
|
<view class="section-title">设备类型分布</view>
|
|
<view class="chart-placeholder">
|
|
<t-icon name="chart-pie" size="120rpx" color="#ccc" />
|
|
<text>图表功能开发中...</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="chart-section">
|
|
<view class="section-title">单位设备统计</view>
|
|
<view class="chart-placeholder">
|
|
<t-icon name="chart-bar" size="120rpx" color="#ccc" />
|
|
<text>图表功能开发中...</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="list-section">
|
|
<view class="section-title">设备类型统计</view>
|
|
<t-cell-group>
|
|
<t-cell
|
|
wx:for="{{typeStats}}"
|
|
wx:key="type"
|
|
title="{{item.type}}"
|
|
note="{{item.count}}台"
|
|
/>
|
|
</t-cell-group>
|
|
</view>
|
|
</view>
|
|
|