Commit c2ac4ddf by 王志慧

fixed

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