Commit e33ee3e0 by 王志慧

fixed

1 parent 9a3f0f86
...@@ -25,15 +25,25 @@ ...@@ -25,15 +25,25 @@
<template v-if="item.role == 2"> <template v-if="item.role == 2">
<div class="improve-btn" v-if="!item.isdown" @click="handleDown(item)">改进建议<i class="el-icon-arrow-down"></i></div> <div class="improve-btn" v-if="!item.isdown" @click="handleDown(item)">改进建议<i class="el-icon-arrow-down"></i></div>
<div class="suggest" v-if="item.isdown"> <div class="suggest" v-if="item.isdown">
<div class="Ai-assess">
<div
class="Ai-assess-text"
v-for="(aitem, aindex) in assessList"
:key="aindex"
>
<div>{{ aitem.text }}</div>
<div class="result">{{ item[aitem.key] }}</div>
</div>
</div>
<div class="improve"> <div class="improve">
<img src="@/assets/improve.png" class="improve-img" /> <img src="@/assets/improve.png" class="improve-img" />
改进建议 改进建议
</div> </div>
<template v-if="item.suggestionsForImprovement"> <template v-if="item.improve">
<div <div
class="improve-text" class="improve-text"
v-html=" v-html="
regText(item.highlight, item.suggestionsForImprovement) regText(item.highlight, item.improve)
" "
></div></template> ></div></template>
<div class="no-data" v-else>暂无数据</div> <div class="no-data" v-else>暂无数据</div>
...@@ -42,10 +52,10 @@ ...@@ -42,10 +52,10 @@
<img src="@/assets/polish.png" class="improve-img" /> <img src="@/assets/polish.png" class="improve-img" />
润色表达 润色表达
</div> </div>
<template v-if="item.refineTheExpression"> <template v-if="item.polish">
<div <div
class="improve-text" class="improve-text"
v-html="regText(item.highlight, item.refineTheExpression)" v-html="regText(item.highlight, item.polish)"
></div> ></div>
</template> </template>
<div class="no-data" v-else>暂无数据</div> <div class="no-data" v-else>暂无数据</div>
...@@ -80,7 +90,25 @@ export default { ...@@ -80,7 +90,25 @@ export default {
totalTime: "0:00", totalTime: "0:00",
currentTime: "0:00", currentTime: "0:00",
isCircle: false, isCircle: false,
digest: "" digest: "",
assessList: [
{
text: "语速",
key: "speed"
},
{
text: "语调",
key: "intonation"
},
{
text: "清晰度",
key: "definition"
},
{
text: "冗余词",
key: "redundant"
}
]
} }
}, },
mounted() { mounted() {
...@@ -93,14 +121,10 @@ export default { ...@@ -93,14 +121,10 @@ export default {
data.isdown = !data.isdown data.isdown = !data.isdown
}, },
regText(highlight, value) { regText(highlight, value) {
highlight = highlight ? JSON.parse(highlight) : []
let replacedText = value let replacedText = value
if (value) { if (value) {
highlight.forEach((item) => { replacedText = replacedText.replace(/#3989FE/g,'#FE9220')
replacedText = replacedText.replace(item, function (match) {
return '<span style="color: #FE9220;">' + match + "</span>"
})
})
} }
return replacedText return replacedText
}, },
...@@ -170,9 +194,8 @@ export default { ...@@ -170,9 +194,8 @@ export default {
this.myAud.muted = !this.isMuted this.myAud.muted = !this.isMuted
}, },
conversationDetailPage() { conversationDetailPage() {
console.log(this.detailObj)
getSparringDetail({ getSparringDetail({
taskStaffId: this.detailObj.id, staffRecordId: this.detailObj.id,
currentPage: 1, currentPage: 1,
pageSize: 9999 pageSize: 9999
}).then((res) => { }).then((res) => {
...@@ -182,11 +205,11 @@ export default { ...@@ -182,11 +205,11 @@ export default {
}) })
this.dialogList = res.list this.dialogList = res.list
}) })
getQualityResult({ // getQualityResult({
taskStaffId: this.detailObj.id // taskStaffId: this.detailObj.id
}).then((res) => { // }).then((res) => {
this.digest = res.digest // this.digest = res.digest
}) // })
} }
} }
} }
...@@ -454,4 +477,30 @@ export default { ...@@ -454,4 +477,30 @@ export default {
background-color: #ebedff; background-color: #ebedff;
} }
} }
.Ai-assess {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
height: 54px;
background: #f7f9fa;
border-radius: 6px;
margin-bottom: 10px;
padding:0 40px;
box-sizing: border-box;
.Ai-assess-text {
font-weight: 400;
font-size: 12px;
color: #575c63;
letter-spacing: 0;
text-align: center;
line-height: 16px;
margin-bottom: 2px;
.result {
font-weight: 500;
font-size: 13px;
color: #2a58ad;
}
}
}
</style> </style>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="left"> <div class="left">
<div class="title">质检得分</div> <div class="title">质检得分</div>
<div class="content"> <div class="content">
{{ itemData.inspectionConversationCheck.score }}<span>/100</span> {{ (itemData.inspectionConversationCheck.score||itemData.inspectionConversationCheck.score===0)?itemData.inspectionConversationCheck.score:'-' }}<span>/100</span>
</div> </div>
</div> </div>
<div class="center"></div> <div class="center"></div>
......
...@@ -37,7 +37,9 @@ ...@@ -37,7 +37,9 @@
<div class="dialog-head"> <div class="dialog-head">
<img class="attack-score" src="@/assets/attack-score.png" alt="" /> <img class="attack-score" src="@/assets/attack-score.png" alt="" />
<div class="text">攻防得分</div> <div class="text">攻防得分</div>
<div class="score">{{ item.defScore ? item.defScore : "-" }}</div> <div class="score">
{{ item.defScore || item.defScore === 0 ? item.defScore : "-" }}
</div>
<div class="text">对话开始时间</div> <div class="text">对话开始时间</div>
<div class="time"> <div class="time">
{{ item.conStartTime ? item.conStartTime : "-" }} {{ item.conStartTime ? item.conStartTime : "-" }}
...@@ -70,6 +72,16 @@ ...@@ -70,6 +72,16 @@
</div> </div>
<br /> <br />
<div class="suggest"> <div class="suggest">
<div class="Ai-assess">
<div
class="Ai-assess-text"
v-for="(aitem, aindex) in assessList"
:key="aindex"
>
<div>{{ aitem.text }}</div>
<div class="result">{{ item[aitem.key] }}</div>
</div>
</div>
<div class="improve"> <div class="improve">
<img src="@/assets/improve.png" class="improve-img" /> <img src="@/assets/improve.png" class="improve-img" />
改进建议 改进建议
...@@ -109,13 +121,28 @@ ...@@ -109,13 +121,28 @@
export default { export default {
name: "saleSkills", name: "saleSkills",
data() { data() {
detailObj: "" return {
defenceDetail: "" detailObj: "",
defenceDetail: "",
isShow: false,
assessList: [
{
text: "语速",
key: "speed"
}, },
props: { {
itemData: { text: "语调",
type: Object, key: "intonation"
default: () => ({}) },
{
text: "清晰度",
key: "definition"
},
{
text: "冗余词",
key: "redundant"
}
]
} }
}, },
props: { props: {
...@@ -127,7 +154,7 @@ export default { ...@@ -127,7 +154,7 @@ export default {
watch: { watch: {
itemData: { itemData: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
// this.initData(newVal) console.log(newVal)
this.detailObj = newVal this.detailObj = newVal
this.defenceDetail = newVal.defenceScriptCheck this.defenceDetail = newVal.defenceScriptCheck
this.isShow = true this.isShow = true
...@@ -135,26 +162,27 @@ export default { ...@@ -135,26 +162,27 @@ export default {
immediate: true immediate: true
} }
}, },
data() { mounted() {},
return {
isShow: false
}
},
mounted() {
},
methods: { methods: {
regText(highlight, value) { regText(highlight, value) {
highlight = highlight ? JSON.parse(highlight) : []
let replacedText = value let replacedText = value
if (value) { if (value) {
highlight.forEach((item) => { replacedText = replacedText.replace(/#3989FE/g, "#FE9220")
replacedText = replacedText.replace(item, function (match) {
return '<span style="color: #FE9220;">' + match + "</span>"
})
})
} }
return replacedText return replacedText
} }
// regText(highlight, value) {
// highlight = highlight ? JSON.parse(highlight) : []
// let replacedText = value
// if (value) {
// highlight.forEach((item) => {
// replacedText = replacedText.replace(item, function (match) {
// return '<span style="color: #FE9220;">' + match + "</span>"
// })
// })
// }
// return replacedText
// }
} }
} }
</script> </script>
...@@ -349,6 +377,32 @@ export default { ...@@ -349,6 +377,32 @@ export default {
margin: 12px 8px; margin: 12px 8px;
background-color: #ebedff; background-color: #ebedff;
} }
.Ai-assess {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
height: 54px;
background: #f7f9fa;
border-radius: 6px;
margin-bottom: 10px;
padding:0 40px;
box-sizing: border-box;
.Ai-assess-text {
font-weight: 400;
font-size: 12px;
color: #575c63;
letter-spacing: 0;
text-align: center;
line-height: 16px;
margin-bottom: 2px;
.result {
font-weight: 500;
font-size: 13px;
color: #2a58ad;
}
}
}
} }
} }
.nth-child { .nth-child {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!