装表的时候过滤已经选择的互感器

This commit is contained in:
2025-11-17 15:51:41 +08:00
parent 771bacdafa
commit db1adea70a
5 changed files with 81 additions and 30 deletions

View File

@@ -19,8 +19,19 @@ Page({
}],
},
showActionMenu(e) {
const { id, status } = e.currentTarget.dataset;
this.setData({
currentActionSheet: e.currentTarget.dataset.id
currentActionSheet: id,
actionItems: status === 0 ? [{
name: '详情',
value: 'detail'
}, {
name: '确认',
value: 'ok'
}] : [{
name: '详情',
value: 'detail'
}]
});
},
onClearPark() {
@@ -82,7 +93,10 @@ onMenuSelect(e) {
return
}
alertSuccess("确认成功")
this.init();
const that = this;
setTimeout(() => {
that.init();
}, 300)
},
jumpToDetail(id) {

View File

@@ -63,13 +63,14 @@
{{ item.current_user_audit_status === 0 ? "处理中" : "已确认" }}
</view>
<view class="th" style="flex: 0 0 120rpx; justify-content: flex-end; display: flex; align-items: center;">
<van-icon name="ellipsis" size="24px" bind:tap="showActionMenu" data-id="{{item.id}}" data-data="{{index}}" class="more-icon" />
<van-icon name="ellipsis" size="24px" bind:tap="showActionMenu" data-id="{{item.id}}" data-data="{{index}}" data-status="{{item.current_user_audit_status}}" class="more-icon" />
<van-action-sheet
show="{{ currentActionSheet === item.id }}"
actions="{{ actionItems }}"
bind:close="hideActionMenu"
bind:select="onMenuSelect"
data-id="{{item.id}}"
close-on-click-action
/>
<!-- <view