diff --git a/pages/investigation/task.vue b/pages/investigation/task.vue index c2c82de..1dfcc11 100644 --- a/pages/investigation/task.vue +++ b/pages/investigation/task.vue @@ -196,9 +196,12 @@ 重点排查 - + - {{ item.name }} + {{ item.name }} + + @@ -209,9 +212,15 @@ - + {{ indexData + 1 }}. + {{ itemData.length > 0 ? itemData[0].nname : '' }} + + + @@ -282,13 +291,15 @@ + style="width: 100%" @longpress="onLongPressYH(item)"> {{ item.hdTermName||item.dangerProblem }} - + + @@ -623,6 +634,8 @@ columnsPicker: [ ], + nidZD: '', + nidYH: '', }; }, watch: { @@ -637,6 +650,28 @@ } }, }, + computed: { + reversedTroubleshootingData() { + const array = Array.from({ length: this.investigationSelectList.length }, (_, i) => []); + let nidname = this.investigationSelectList.length > 0 ? this.investigationSelectList[0].name : '' + let nx = 0 + this.troubleshootingData.map(r => { + this.investigationSelectList.map(m => { + if(r.nid == m.nid) { + r.nname = m.name + if(r.nname == nidname){ + array[nx].push(r) + } else { + nidname = r.nname + nx++ + array[nx].push(r) + } + } + }) + }) + return array + } + }, methods: { showInvestigationTag(v) { console.log(v) @@ -1507,6 +1542,33 @@ console.log('盒子的高度:', height); } }).exec(); // 执行查询 + }, + onLongPressZD(item) { + this.nidZD = item.nid + }, + delZD(){ + this.troubleshootingData = this.troubleshootingData.filter(r => { + if(r.nid != this.nidZD){ + return r + } + }) + this.investigationSelectList = this.investigationSelectList.filter(r => { + if(r.nid != this.nidZD){ + return r + } + }) + this.nidZD = '' + }, + onLongPressYH(item) { + this.nidYH = item.nid + }, + delYH(){ + this.hiddenDangerList = this.hiddenDangerList.filter(r => { + if(r.nid != this.nidYH){ + return r + } + }) + this.nidYH = '' } }, };