Commit c0fcbaff by 王志慧

fixed

1 parent b9ad2285
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
</el-radio-group> </el-radio-group>
</div> </div>
<GLTable ref="analyseTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn" :pageConf="pageConf" :noDataImg="url"> <GLTable ref="analyseTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn" :pageConf="pageConf" :noDataImg="url">
<template slot="suggestions" slot-scope="scope">
<div v-html="formatSrt(scope.scope.suggestions)"></div>
</template>
<template slot="hitResult" slot-scope="scope"> <template slot="hitResult" slot-scope="scope">
<div :class="['tag', scope.scope.hitResult == 1 ? 'gre' : 'red']"> <div :class="['tag', scope.scope.hitResult == 1 ? 'gre' : 'red']">
{{ scope.scope.hitResult == 1 ? '是' : '否' }} {{ scope.scope.hitResult == 1 ? '是' : '否' }}
...@@ -149,7 +152,8 @@ export default { ...@@ -149,7 +152,8 @@ export default {
}, },
{ {
label: '话术建议', label: '话术建议',
prop: 'suggestions' prop: 'suggestions',
addHtml:'suggestions'
} }
] ]
}, },
...@@ -169,6 +173,9 @@ export default { ...@@ -169,6 +173,9 @@ export default {
// this.getPointCategory() // this.getPointCategory()
}, },
methods: { methods: {
formatSrt(str) {
return str.replace(/\n/g, "<br/>")
},
toMinutesAndSeconds(seconds) { toMinutesAndSeconds(seconds) {
seconds = Math.floor(seconds / 1000) seconds = Math.floor(seconds / 1000)
let formattedTime = '' let formattedTime = ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!