修改测试问题
This commit is contained in:
@@ -21,7 +21,10 @@
|
||||
所属工程:<view>{{ device.engineeringName }}</view>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
所属项目:<view>{{ device.equipmentName }}</view>
|
||||
所属项目:<view>{{ device.projectName }}</view>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
所属设备:<view>{{ device.equipmentName }}</view>
|
||||
</view>
|
||||
|
||||
<view class="info-item status">
|
||||
@@ -42,7 +45,7 @@
|
||||
{{ disabled ? `刷新(${countdown}s)` : '刷新' }}
|
||||
</button>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 仪表盘 -->
|
||||
<view>
|
||||
<view class="chartBox">
|
||||
@@ -87,9 +90,14 @@
|
||||
</view>
|
||||
|
||||
<!-- 底部指标数据 -->
|
||||
<view class="params-wrap">
|
||||
|
||||
<view class="params-section">
|
||||
<view class="params-wrap ">
|
||||
<view class="legend-row mt10">
|
||||
<view class="legend-item" v-for="phase in phaseColors" :key="phase.name">
|
||||
<view class="legend-dot" :style="{ background: phase.color }" />
|
||||
<text class="legend-text">{{ phase.name }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="params-section mb40">
|
||||
<view v-for="(rowItems, rowIdx) in chunkedChildren(realTimeData)" :key="rowIdx"
|
||||
class="double-row">
|
||||
<view v-for="(child, childIdx) in rowItems" :key="childIdx" class="param-group">
|
||||
@@ -135,7 +143,11 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
loading: true,
|
||||
|
||||
phaseColors: [
|
||||
{ name: 'A相', color: '#F1B22E' },
|
||||
{ name: 'B相', color: '#2BA471' },
|
||||
{ name: 'C相', color: '#D54941' },
|
||||
],
|
||||
deviceInfo: {},
|
||||
// 使用上面定义的图表配置项
|
||||
option: {},
|
||||
@@ -190,7 +202,7 @@ export default {
|
||||
},
|
||||
{
|
||||
iconPath: '/static/about.png',
|
||||
text: '关于',
|
||||
text: '详情',
|
||||
},
|
||||
],
|
||||
device: {},
|
||||
@@ -969,7 +981,7 @@ export default {
|
||||
url: '/pages/index/message1',
|
||||
})
|
||||
// uni.navigateTo({ url: '/pages/device/APF/report?id=' + this.device.equipmentId })
|
||||
} else if (e.text === '关于') {
|
||||
} else if (e.text === '详情') {
|
||||
uni.navigateTo({ url: '/pages/device/APF/about?id=' + this.device.equipmentId })
|
||||
} else if (e.text === '移交') {
|
||||
uni.navigateTo({ url: '/pages/device/transfer?id=' + this.device.equipmentId })
|
||||
@@ -1191,4 +1203,29 @@ export default {
|
||||
height: 45rpx;
|
||||
line-height: 45rpx;
|
||||
}
|
||||
|
||||
.legend-row {
|
||||
display: flex;
|
||||
gap: 20rpx;
|
||||
align-items: center;
|
||||
justify-content: end;
|
||||
padding: 16rpx 20rpx;
|
||||
}
|
||||
|
||||
.legend-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8rpx;
|
||||
}
|
||||
|
||||
.legend-dot {
|
||||
width: 16rpx;
|
||||
height: 16rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.legend-text {
|
||||
font-size: 24rpx;
|
||||
color: #666666;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user