Commit c2ac4ddf by 王志慧

fixed

1 parent 18561f76
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</div> </div>
<div class="dialog-box"> <div class="dialog-box">
<div class="dialog-item" v-for="(item, index) in defenceDetail.detailList" :key="item.is"> <div class="dialog-item" v-for="(item, index) in defenceDetail.detailList" :key="item.is">
<div class="dialog-head"> <div class="dialog-head" @click="handleMapping(item.mergedOffset)">
<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 : '-' }}</div>
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<img src="@/assets/empty-2.png" /> <img src="@/assets/empty-2.png" />
</div> </div>
<div class="text"> <div class="text">
{{ detailObj.defence === 1 ? '数据分析中,请稍等' : '未发现攻防' }} {{ detailObj.defence === 1 ? '数据分析中,请稍等' : detailObj.defence === 3?'未发现攻防':'未进行攻防识别' }}
</div> </div>
</div> </div>
</template> </template>
...@@ -111,6 +111,14 @@ export default { ...@@ -111,6 +111,14 @@ export default {
this.getDefenceDetail() this.getDefenceDetail()
}, },
methods: { methods: {
handleMapping(time) {
Array.prototype.slice.call(this.$parent.$parent.$children).forEach(dom=>{
if(dom.currentDialog){
dom.currentDialog(time)
}
})
},
getDefenceDetail() { getDefenceDetail() {
let params = { let params = {
batchId: this.detailObj.id batchId: this.detailObj.id
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
</div> </div>
<div <div
class="dig-content" class="dig-content"
@click="currentDialog(item)" @click="currentDialog(item.mergedOffset)"
> >
{{ item.content }} {{ item.content }}
</div> </div>
...@@ -162,8 +162,8 @@ export default { ...@@ -162,8 +162,8 @@ export default {
formatSrt (str) { formatSrt (str) {
return str?.replace(/\n/g, "<br/>") || '' return str?.replace(/\n/g, "<br/>") || ''
}, },
currentDialog (data) { currentDialog (time) {
this.myAud.currentTime = data.mergedOffset this.myAud.currentTime = time
}, },
toMinutesAndSeconds (seconds) { toMinutesAndSeconds (seconds) {
let minutes = Math.floor(seconds / 60) let minutes = Math.floor(seconds / 60)
......
...@@ -360,13 +360,13 @@ export default { ...@@ -360,13 +360,13 @@ export default {
} }
}, },
{ {
label: '话术质检评分/分', label: '质检得分/分',
prop: 'score', prop: 'score',
addHtml: 'scoreHtml', addHtml: 'scoreHtml',
width: '170px', width: '170px',
renderHeader: createElement => { renderHeader: createElement => {
return createElement('div', { style: 'margin-left:-10px' }, [ return createElement('div', { style: 'margin-left:-10px' }, [
'话术质检评分/分', '质检得分/分',
createElement( createElement(
'el-tooltip', 'el-tooltip',
{ {
......
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
formatter(row) { formatter(row) {
return row.defence === 2 return row.defence === 2
? `<div class="num">${row.defencePoint}<span class="unit">分</span></div>` ? `<div class="num">${row.defencePoint}<span class="unit">分</span></div>`
: row.defence === 1 : row.defence === 1||row.defence === 0||row.defence === 4
? `<span style="font-size:22px;color:#999">分析中</span>` ? `<span style="font-size:22px;color:#999">分析中</span>`
: row.defence === 3 : row.defence === 3
? `<span style="font-size:22px;color:#999">未发现攻防</span>` ? `<span style="font-size:22px;color:#999">未发现攻防</span>`
......
...@@ -64,13 +64,13 @@ ...@@ -64,13 +64,13 @@
</div> </div>
<div slot="defencePoint" slot-scope="scope"> <div slot="defencePoint" slot-scope="scope">
<template v-if="scope.scope.defence === 2">{{ scope.scope.defencePoint ? scope.scope.defencePoint : '-' }}</template> <template v-if="scope.scope.defence === 2">{{ scope.scope.defencePoint ? scope.scope.defencePoint : '-' }}</template>
<template v-else-if="scope.scope.defence === 1">分析中</template> <template v-else-if="scope.scope.defence === 1 || scope.scope.defence === 0 || scope.scope.defence === 4">分析中</template>
<template v-else-if="scope.scope.defence === 3">未发现攻防</template> <template v-else-if="scope.scope.defence === 3">未发现攻防</template>
<template v-else>-</template> <template v-else>-</template>
</div> </div>
<div slot="customerTypeName" slot-scope="scope"> <div slot="customerTypeName" slot-scope="scope">
<template v-if="scope.scope.defence === 2">{{ scope.scope.customerTypeName ? scope.scope.customerTypeName : '-' }}</template> <template v-if="scope.scope.defence === 2">{{ scope.scope.customerTypeName ? scope.scope.customerTypeName : '-' }}</template>
<template v-else-if="scope.scope.defence === 1">分析中</template> <template v-else-if="scope.scope.defence === 1 || scope.scope.defence === 0 || scope.scope.defence === 4">分析中</template>
<template v-else-if="scope.scope.defence === 3">未知</template> <template v-else-if="scope.scope.defence === 3">未知</template>
<template v-else>-</template> <template v-else>-</template>
</div> </div>
...@@ -167,8 +167,8 @@ export default { ...@@ -167,8 +167,8 @@ export default {
}, },
{ {
label: '客户类型识别', label: '客户类型识别',
prop: 'customerTypeName,', prop: 'customerTypeName',
addHtml: 'customerTypeName,' addHtml: 'customerTypeName'
}, },
{ {
label: '接待时长', label: '接待时长',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!