feat: 添加设备列表排序功能,支持房号、配置版本和固件版本排序

This commit is contained in:
2026-04-08 15:42:04 +08:00
parent c03f7b47d0
commit 2580cd86e9
4 changed files with 150 additions and 14 deletions

View File

@@ -56,6 +56,7 @@ bindtouchend="handleTouchEnd" style="margin-bottom: 30rpx;">
<view style="font-size: 32rpx;justify-content:start" >{{item.RoomNumber}}</view>
<view style="font-size: 20rpx;justify-content:start; color: {{(!item.MAC && item.Status !== 1) ? '#FF3B30' : '#666666'}};" >
{{item.MAC || (item.Status !== 1 ? '点击扫码绑定主机' : '')}}
<br/>长按输入MAC地址绑定主机
</view>
<!-- 升级进度显示(若当前正在升级此房间) -->
<view wx:if="{{CurrentUpgradeDev == item.RoomNumber}}" class="upgrade-badge">升级: {{CurrentUpgradeDevStart}}</view>
@@ -123,16 +124,16 @@ bindtouchend="handleTouchEnd" style="margin-bottom: 30rpx;">
<!-- 排序卡片 -->
<view class=" flex align-center " style="height: 40rpx;background: aquamarine; justify-content:flex-end; padding-right:12rpx;" >
<view style="display:flex; align-items:center; margin-left:12rpx;">
<checkbox checked="{{Allcheckbox}}"></checkbox>
<view style="display:flex; align-items:center; margin-left:12rpx;" bindtap="RoomNumberSortTap">
<checkbox checked="{{RoomNumberSort}}"></checkbox>
<text style="margin-left:6rpx;">房号排序</text>
</view>
<view style="display:flex; align-items:center; margin-left:12rpx;">
<checkbox checked="{{Allcheckbox}}"></checkbox>
<view style="display:flex; align-items:center; margin-left:12rpx;" bindtap="FirmwareVersionSortTap">
<checkbox checked="{{FirmwareVersionSort}}"></checkbox>
<text style="margin-left:6rpx;">固件版本排序</text>
</view>
<view style="display:flex; align-items:center; margin-left:12rpx;">
<checkbox checked="{{Allcheckbox}}"></checkbox>
<view style="display:flex; align-items:center; margin-left:12rpx;" bindtap="ConfigVersionSortTap">
<checkbox checked="{{ConfigVersionSort}}"></checkbox>
<text style="margin-left:6rpx;">配置版本排序</text>
</view>