添加牌位-过滤所属区域
This commit is contained in:
parent
fd1e851daf
commit
62eb2c62c0
|
|
@ -2,7 +2,7 @@
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<base-background />
|
<base-background />
|
||||||
<!-- 使用自定义导航栏组件 -->
|
<!-- 使用自定义导航栏组件 -->
|
||||||
<custom-navbar title="添加牌位" />
|
<custom-navbar ref="customNavbar" title="添加牌位" />
|
||||||
|
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<!-- 扫码获取SN和MAC -->
|
<!-- 扫码获取SN和MAC -->
|
||||||
|
|
@ -84,10 +84,10 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 未绑定设备列表 -->
|
<!-- 未添加设备列表 -->
|
||||||
<view class="device-list-section">
|
<view class="device-list-section">
|
||||||
<view class="section-title">
|
<view class="section-title">
|
||||||
<text>未绑定牌位的设备列表</text>
|
<text>未添加牌位的设备列表</text>
|
||||||
<view v-if="winB_Pagination.total" class="count-badge">
|
<view v-if="winB_Pagination.total" class="count-badge">
|
||||||
{{ winB_Pagination.total }}
|
{{ winB_Pagination.total }}
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -96,7 +96,7 @@
|
||||||
<!-- 空状态 -->
|
<!-- 空状态 -->
|
||||||
<view v-if="winB_List.length === 0" class="empty-state">
|
<view v-if="winB_List.length === 0" class="empty-state">
|
||||||
<view class="empty-icon">📱</view>
|
<view class="empty-icon">📱</view>
|
||||||
<view class="empty-text">暂无未绑定设备</view>
|
<view class="empty-text">暂无未添加设备</view>
|
||||||
<view class="empty-tip">请先扫码添加设备</view>
|
<view class="empty-tip">请先扫码添加设备</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
@ -336,16 +336,18 @@ export default {
|
||||||
transformRegionData(data) {
|
transformRegionData(data) {
|
||||||
if (!data || !data.children) return [];
|
if (!data || !data.children) return [];
|
||||||
|
|
||||||
return data.children.map((floor) => ({
|
return data.children
|
||||||
label: floor.label,
|
.filter((floor) => floor.id !== "41") // 过滤掉 value 等于 "41" 的项目
|
||||||
value: floor.id,
|
.map((floor) => ({
|
||||||
children: floor.children
|
label: floor.label,
|
||||||
? floor.children.map((area) => ({
|
value: floor.id,
|
||||||
label: area.label,
|
children: floor.children
|
||||||
value: area.id,
|
? floor.children.map((area) => ({
|
||||||
}))
|
label: area.label,
|
||||||
: [],
|
value: area.id,
|
||||||
}));
|
}))
|
||||||
|
: [],
|
||||||
|
}));
|
||||||
},
|
},
|
||||||
|
|
||||||
// 显示区域选择器
|
// 显示区域选择器
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user