长按取消

main
zhangqun 11 months ago
parent 4938613014
commit 8a541c22f3
  1. 27
      pages/investigation/task.vue

@ -635,7 +635,9 @@
], ],
nidZD: '', nidZD: '',
lockZD: false,
nidYH: '', nidYH: '',
lockYH: false
}; };
}, },
watch: { watch: {
@ -1544,7 +1546,18 @@
}).exec(); // }).exec(); //
}, },
onLongPressZD(item) { onLongPressZD(item) {
this.nidZD = item.nid if(this.nidZD == item.nid){
if(this.lockZD){
this.lockZD = false
this.nidZD = ''
} else {
this.lockZD = true
this.nidZD = item.nid
}
} else {
this.lockZD = true
this.nidZD = item.nid
}
}, },
delZD(){ delZD(){
this.troubleshootingData = this.troubleshootingData.filter(r => { this.troubleshootingData = this.troubleshootingData.filter(r => {
@ -1561,6 +1574,18 @@
}, },
onLongPressYH(item) { onLongPressYH(item) {
this.nidYH = item.nid this.nidYH = item.nid
if(this.nidYH == item.nid){
if(this.lockYH){
this.lockYH = false
this.nidYH = ''
} else {
this.lockYH = true
this.nidYH = item.nid
}
} else {
this.lockYH = true
this.nidYH = item.nid
}
}, },
delYH(){ delYH(){
this.hiddenDangerList = this.hiddenDangerList.filter(r => { this.hiddenDangerList = this.hiddenDangerList.filter(r => {

Loading…
Cancel
Save