修改测试问题
This commit is contained in:
@@ -63,7 +63,9 @@
|
||||
<view class="card-header-info">
|
||||
<view class="point-name-row">
|
||||
<text class="point-name ellipsis">{{ point.pointName }}</text>
|
||||
|
||||
<text class="event-tag" :class="point.runStatus == 1 ? 'lx-tag' : 'zx-tag'">
|
||||
{{ point.runStatus == 1 ? '离线' : '在线' }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="meta-row">
|
||||
<text class="meta-item ellipsis">项目:{{ point.projectName }}</text>
|
||||
@@ -82,7 +84,7 @@
|
||||
</view>
|
||||
<view v-if="hasTPhaseData(child)" class="phase-single">
|
||||
<text class="phase-value-vertical phase-value-vertical--neutral">{{ child.T
|
||||
}}</text>
|
||||
}}</text>
|
||||
</view>
|
||||
<view v-else class="phase-vertical">
|
||||
<view class="phase-item-vertical">
|
||||
@@ -397,16 +399,12 @@ export default {
|
||||
this.saveSelectedIndicators()
|
||||
this.closeIndicatorPopup()
|
||||
},
|
||||
// 跳转指标详情页;治理测点展示全部指标,普通测点展示未选中的指标
|
||||
// 跳转指标详情页,展示该监测点全部指标
|
||||
onMoreIndicators(point) {
|
||||
uni.setStorageSync('monitorPointDetail', {
|
||||
...point,
|
||||
engineeringName: this.engineeringName,
|
||||
selectedIndicators:
|
||||
point.lineType === 0
|
||||
? [...GOVERNANCE_DEFAULT_INDICATORS]
|
||||
: [...this.selectedIndicators],
|
||||
showAllIndicators: point.lineType === 0,
|
||||
showAllIndicators: true,
|
||||
})
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/comp/targetInfo',
|
||||
@@ -424,14 +422,9 @@ export default {
|
||||
this.selectedIndicators.some((name) => this.matchIndicator(child.name, name)),
|
||||
)
|
||||
},
|
||||
// 治理测点存在默认四项以外的指标时显示「更多指标」
|
||||
// 有指标数据时显示「更多指标」
|
||||
shouldShowMoreBtn(point) {
|
||||
if (point.lineType !== 0) return true
|
||||
const children = point.children || []
|
||||
return children.some(
|
||||
(child) =>
|
||||
!GOVERNANCE_DEFAULT_INDICATORS.some((name) => this.matchIndicator(child.name, name)),
|
||||
)
|
||||
return (point.children || []).length > 0
|
||||
},
|
||||
|
||||
// 将指标列表按每行两个分组
|
||||
@@ -477,7 +470,7 @@ export default {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 4rpx 16rpx rgba(55, 108, 243, 0.35);
|
||||
z-index: 99;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.card {
|
||||
@@ -691,7 +684,7 @@ export default {
|
||||
}
|
||||
|
||||
.point-name {
|
||||
flex: 1;
|
||||
// flex: 1;
|
||||
min-width: 0;
|
||||
font-size: 30rpx;
|
||||
font-weight: 700;
|
||||
@@ -710,7 +703,7 @@ export default {
|
||||
|
||||
.meta-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 6rpx 12rpx;
|
||||
}
|
||||
|
||||
@@ -867,4 +860,24 @@ export default {
|
||||
background: #376cf310;
|
||||
}
|
||||
}
|
||||
|
||||
.event-tag {
|
||||
font-size: 22rpx;
|
||||
padding: 2rpx 10rpx;
|
||||
border-radius: 8rpx;
|
||||
margin-top: 5rpx;
|
||||
margin-left: 10rpx;
|
||||
// height: 38rpx;
|
||||
}
|
||||
|
||||
// 在线
|
||||
.zx-tag {
|
||||
background-color: #10b98120;
|
||||
color: #10b981;
|
||||
}
|
||||
|
||||
.lx-tag {
|
||||
background-color: #ff3b3020;
|
||||
color: #ff3b30;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user