fix: 开关列表增加联动状态。

This commit is contained in:
tianyongbao
2026-01-20 00:28:32 +08:00
parent fb6d80f000
commit 90bb60c990

View File

@@ -459,8 +459,11 @@
</view>
<view class="switch-info">
<text class="switch-name">{{ switchItem.switchName }}</text>
<text class="switch-status" v-if="switchItem.isOpen === 1">运行中</text>
<text class="switch-status off" v-else>已关闭</text>
<view class="switch-status-row">
<text class="switch-status" v-if="switchItem.isOpen === 1">运行中</text>
<text class="switch-status off" v-else>已关闭</text>
<text class="link-control-tag" v-if="switchItem.isLinkedCtrl">联动中</text>
</view>
</view>
</view>
<view class="switch-right">
@@ -2514,6 +2517,12 @@ defineExpose({
white-space: nowrap;
}
.switch-status-row {
display: flex;
align-items: center;
gap: 8px;
}
.switch-status {
font-size: 22px;
color: #09b8c2;
@@ -2522,6 +2531,15 @@ defineExpose({
color: #999;
}
}
.link-control-tag {
font-size: 20px;
color: #ff6b00;
background: rgba(255, 107, 0, 0.1);
padding: 2px 8px;
border-radius: 3px;
white-space: nowrap;
}
}
}