装表的时候过滤已经选择的互感器
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user