Commit e33ee3e0 by 王志慧

fixed

1 parent 9a3f0f86
......@@ -25,15 +25,25 @@
<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="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">
<img src="@/assets/improve.png" class="improve-img" />
改进建议
</div>
<template v-if="item.suggestionsForImprovement">
<template v-if="item.improve">
<div
class="improve-text"
v-html="
regText(item.highlight, item.suggestionsForImprovement)
regText(item.highlight, item.improve)
"
></div></template>
<div class="no-data" v-else>暂无数据</div>
......@@ -42,10 +52,10 @@
<img src="@/assets/polish.png" class="improve-img" />
润色表达
</div>
<template v-if="item.refineTheExpression">
<template v-if="item.polish">
<div
class="improve-text"
v-html="regText(item.highlight, item.refineTheExpression)"
v-html="regText(item.highlight, item.polish)"
></div>
</template>
<div class="no-data" v-else>暂无数据</div>
......@@ -80,7 +90,25 @@ export default {
totalTime: "0:00",
currentTime: "0:00",
isCircle: false,
digest: ""
digest: "",
assessList: [
{
text: "语速",
key: "speed"
},
{
text: "语调",
key: "intonation"
},
{
text: "清晰度",
key: "definition"
},
{
text: "冗余词",
key: "redundant"
}
]
}
},
mounted() {
......@@ -93,14 +121,10 @@ export default {
data.isdown = !data.isdown
},
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>"
})
})
replacedText = replacedText.replace(/#3989FE/g,'#FE9220')
}
return replacedText
},
......@@ -170,9 +194,8 @@ export default {
this.myAud.muted = !this.isMuted
},
conversationDetailPage() {
console.log(this.detailObj)
getSparringDetail({
taskStaffId: this.detailObj.id,
staffRecordId: this.detailObj.id,
currentPage: 1,
pageSize: 9999
}).then((res) => {
......@@ -182,11 +205,11 @@ export default {
})
this.dialogList = res.list
})
getQualityResult({
taskStaffId: this.detailObj.id
}).then((res) => {
this.digest = res.digest
})
// getQualityResult({
// taskStaffId: this.detailObj.id
// }).then((res) => {
// this.digest = res.digest
// })
}
}
}
......@@ -454,4 +477,30 @@ export default {
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>
......@@ -10,7 +10,7 @@
<div class="left">
<div class="title">质检得分</div>
<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 class="center"></div>
......
......@@ -37,7 +37,9 @@
<div class="dialog-head">
<img class="attack-score" src="@/assets/attack-score.png" alt="" />
<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="time">
{{ item.conStartTime ? item.conStartTime : "-" }}
......@@ -70,6 +72,16 @@
</div>
<br />
<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">
<img src="@/assets/improve.png" class="improve-img" />
改进建议
......@@ -109,13 +121,28 @@
export default {
name: "saleSkills",
data() {
detailObj: ""
defenceDetail: ""
},
props: {
itemData: {
type: Object,
default: () => ({})
return {
detailObj: "",
defenceDetail: "",
isShow: false,
assessList: [
{
text: "语速",
key: "speed"
},
{
text: "语调",
key: "intonation"
},
{
text: "清晰度",
key: "definition"
},
{
text: "冗余词",
key: "redundant"
}
]
}
},
props: {
......@@ -127,7 +154,7 @@ export default {
watch: {
itemData: {
handler(newVal, oldVal) {
// this.initData(newVal)
console.log(newVal)
this.detailObj = newVal
this.defenceDetail = newVal.defenceScriptCheck
this.isShow = true
......@@ -135,26 +162,27 @@ export default {
immediate: true
}
},
data() {
return {
isShow: false
}
},
mounted() {
},
mounted() {},
methods: {
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>"
})
})
replacedText = replacedText.replace(/#3989FE/g, "#FE9220")
}
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>
......@@ -349,6 +377,32 @@ export default {
margin: 12px 8px;
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 {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!