Commit bb42e030 by 王志慧

fixed

1 parent df200abc
......@@ -56,6 +56,7 @@
:min-width="item.minWidth"
:align="item.align || 'center'"
:sortable="item.sortable"
:render-header="item.renderHeader"
:show-overflow-tooltip="item.showOverFlow"
>
<template slot="header">
......
......@@ -36,7 +36,7 @@
<template v-for="item in dialogList">
<div class="dialog-detail" :key="item.id">
<div class="name">{{ item.role }}</div>
<div class="dig-content">
<div class="dig-content" @click="currentDialog(item)">
{{ item.content }}
</div>
</div>
......@@ -80,14 +80,19 @@ export default {
this.conversationDetailPage()
},
methods: {
currentDialog(data) {
this.myAud.currentTime = data.mergedOffset
},
toMinutesAndSeconds(seconds) {
const minutes = Math.floor(seconds / 60)
const remainingSeconds = parseInt(seconds % 60)
let minutes = Math.floor(seconds / 60)
let remainingSeconds = parseInt(seconds % 60)
minutes = minutes > 10 ? minutes : `0${minutes}`
remainingSeconds = remainingSeconds > 10 ? remainingSeconds : `0${remainingSeconds}`
return `${minutes}:${remainingSeconds}`
},
handleprogress() {
const progress = document.getElementById("progress")
const progressBar=document.getElementById("progressBar")
const progressBar = document.getElementById("progressBar")
this.myAud.addEventListener("canplay", () => {
if (this.myAud.duration > 0) {
this.totalTime = this.toMinutesAndSeconds(this.myAud.duration)
......@@ -96,7 +101,8 @@ export default {
this.myAud.addEventListener("timeupdate", () => {
if (this.myAud.duration > 0) {
this.currentTime = this.toMinutesAndSeconds(this.myAud.currentTime)
const progressDur = (this.myAud.currentTime / this.myAud.duration) * 100
const progressDur =
(this.myAud.currentTime / this.myAud.duration) * 100
progress.style.width = `${progressDur}%`
}
})
......@@ -132,6 +138,7 @@ export default {
}
},
conversationDetailPage() {
console.log(this.detailObj)
conversationDetailPage({
batchId: this.detailObj.id,
currentPage: 1,
......
......@@ -20,7 +20,6 @@
@blur="handleBlur"
@input="handleStartInput"
class="el-range-input"
@keydown="handleKeydown"
></el-input>
<span class="el-range-separator">至</span>
<el-input
......@@ -30,7 +29,6 @@
@focus="handleFocus"
@blur="handleBlur"
class="el-range-input"
@keydown="handleKeydown"
></el-input>
<i
......
......@@ -111,7 +111,7 @@ export default {
{
text: "预计营销结果",
formatter: (data) => {
return `<span style="font-weight:700;font-size:26px;">${
return `<span style="font-weight:700;font-size:22px;">${
data.estimatedResult ? data.estimatedResult : "--"
}</span>`
}
......@@ -128,11 +128,8 @@ export default {
text: "对话时长",
formatter: (data) => {
return `<span style="font-weight:700;font-size:26px;">${
this.toMinutesAndSeconds(data.duration).h
}</span>小时
<span style="font-weight:700;font-size:26px;">${
this.toMinutesAndSeconds(data.duration).m
}</span>分钟
data.duration
}</span>
`
}
}
......@@ -140,8 +137,8 @@ export default {
searchForm: {
firstClassify: "",
secondClassify: "",
qualityTestScore: []
// hitResult: ""
qualityTestScore: [],
hitResult: ""
},
searchFormSearch: {},
showFormData: [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!