|
|
@ -101,9 +101,11 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
getData() { |
|
|
|
getData() { |
|
|
|
this.$post(`${this.api.getPracticeDetail}?pageNum=${this.page}&pageSize=${this.pageSize}&projectId=${this.projectId}&keyword=${this.keyword}`).then(res => { |
|
|
|
this.$post(`${this.api.getPracticeDetail}?pageNum=${this.page}&pageSize=${this.pageSize}&projectId=${this.projectId}&keyword=${this.keyword}`).then(res => { |
|
|
|
|
|
|
|
this.multipleSelection = res.page.records; |
|
|
|
this.listData = res.page.records; |
|
|
|
this.listData = res.page.records; |
|
|
|
this.total = res.page.total; |
|
|
|
this.total = res.page.total; |
|
|
|
this.avgScore = res.avgScore; |
|
|
|
let avgScore = +res.avgScore |
|
|
|
|
|
|
|
this.avgScore = avgScore.toFixed(2) |
|
|
|
this.peopleNum = res.peopleNum; |
|
|
|
this.peopleNum = res.peopleNum; |
|
|
|
this.getChart(res.getFractionalSegmentNum); |
|
|
|
this.getChart(res.getFractionalSegmentNum); |
|
|
|
}).catch(res => { |
|
|
|
}).catch(res => { |
|
|
@ -120,7 +122,7 @@ export default { |
|
|
|
exportData() { |
|
|
|
exportData() { |
|
|
|
if (this.multipleSelection.length) { |
|
|
|
if (this.multipleSelection.length) { |
|
|
|
let ids = this.multipleSelection.map(item => { |
|
|
|
let ids = this.multipleSelection.map(item => { |
|
|
|
return item.projectId; |
|
|
|
return item.reportId; |
|
|
|
}); |
|
|
|
}); |
|
|
|
location.href = `${this.api.exportPracticeInfo}?ids=${ids.toString()}`; |
|
|
|
location.href = `${this.api.exportPracticeInfo}?ids=${ids.toString()}`; |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -165,7 +167,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleCurrentChange(val) { |
|
|
|
handleCurrentChange(val) { |
|
|
|
this.page = val; |
|
|
|
this.page = val; |
|
|
|
this.handlePage(); |
|
|
|
this.getData(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
getChart(num) { |
|
|
|
getChart(num) { |
|
|
|
let data = [num.num1, num.num2, num.num3, num.num4, num.num5, num.num6, num.num7, num.num8, num.num9, num.num10]; |
|
|
|
let data = [num.num1, num.num2, num.num3, num.num4, num.num5, num.num6, num.num7, num.num8, num.num9, num.num10]; |
|
|
|