Commit a9ceac72 by 张立顺

fix 对练记录详情接口取值修改

1 parent d58e3a9d
......@@ -5,7 +5,7 @@
<div class="title">{{ item.text }}</div>
<div
class="content"
v-html="item.formatter && item.formatter(detailObj)"
v-html="item.formatter && item.formatter(detailObjData)"
></div>
</div>
</div>
......@@ -115,6 +115,7 @@ export default {
},
data() {
return {
detailObjData: {},
sList: [
{
text: "话术评分",
......@@ -217,7 +218,7 @@ export default {
}
},
mounted() {
// this.getPointCategory()
this.getPointCategory()
},
methods: {
formatSrt(str) {
......@@ -252,13 +253,21 @@ export default {
// }
// },
getPointCategory() {
this.classifyMap = new Map()
getPointCategory().then((res) => {
// this.classifyMap = new Map()
getQualityResult({
pageSize: 10,
currentPage: 1,
staffRecordId: this.detailObj.id
}).then((res) => {
console.log(res)
this.baseData.firstClassifyList = Object.keys(res)
for (const item in res) {
this.classifyMap.set(item, res[item])
this.detailObjData = {
score: res.score,
estimatedResult: this.detailObj.estimatedResult
}
// this.baseData.firstClassifyList = Object.keys(res)
// for (const item in res) {
// this.classifyMap.set(item, res[item])
// }
})
},
changeClassify() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!