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

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) {