Commit a9ceac72 by 张立顺

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

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