| | |
| | | }) |
| | | }) |
| | | } |
| | | // 把相同类型问题分组 |
| | | let obj = this.groupBy(row.patrolRecordVOList, 'qType') |
| | | let arr = Object.entries(obj) |
| | | let newArr = [] |
| | | arr.forEach(part => { |
| | | newArr.push({ questionName: part[0], questionList: part[1], isShowQList: true }) |
| | | }) |
| | | row.qTypeList = newArr |
| | | if (row.patrolRecordVOList) { |
| | | // 把相同类型问题分组 |
| | | let obj = this.groupBy(row.patrolRecordVOList, 'qType') |
| | | let arr = Object.entries(obj) |
| | | let newArr = [] |
| | | arr.forEach(part => { |
| | | newArr.push({ questionName: part[0], questionList: part[1], isShowQList: true }) |
| | | }) |
| | | row.qTypeList = newArr |
| | | } |
| | | // 九小类型转换 |
| | | row.nineTypeName = this.switchNineType(row.nineType) |
| | | this.rowDetail = row |