Commit bb42e030 by 王志慧

fixed

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