Commit 3931fdd2 by zhangxw

修改

1 parent 3b7ebc78
......@@ -117,8 +117,15 @@ export default {
},
mounted() {
// 获取对练报告详情
console.log(this.detailObj, '===')
getSparringReportDetail({ id: this.detailObj?.id }).then(res => {
let activeNameArr = ['saleSkills', 'fluency', 'phonetic', 'proficiency', 'serviceAttitude']
let itemTypeArr = [1, 2, 3, 4, 5]
for (let i = 0; i < itemTypeArr.length; i++) {
if (res.reportItem.findIndex(item => item.itemType == itemTypeArr[i]) > -1) {
this.activeName = activeNameArr[i];
break
}
}
this.detailInfo = res || {}
this.showPage = true
this.initChart(res)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!