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