|
|
@@ -1,41 +1,44 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<el-table border v-loading="loading" :data="list" >
|
|
|
- <el-table-column label="ID" align="center" prop="voiceId" />
|
|
|
+ <el-table-column label="ID" align="center" prop="logId" />
|
|
|
<el-table-column label="公司名" align="center" prop="companyName" />
|
|
|
- <el-table-column label="员工姓名" align="center" prop="userNickName" />
|
|
|
- <el-table-column label="录制地址" align="center" show-overflow-tooltip prop="voiceUrl" width="350">
|
|
|
+ <el-table-column label="员工姓名" align="center" prop="companyUserName" />
|
|
|
+ <el-table-column label="录制地址" align="center" show-overflow-tooltip prop="recordPath" width="350">
|
|
|
<template slot-scope="scope">
|
|
|
- <audio v-if="scope.row.voiceUrl!=null" controls :src="scope.row.voiceUrl"></audio>
|
|
|
+ <audio v-if="scope.row.recordPath!=null" controls :src="handleRecordPath(scope.row.recordPath)"></audio>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="开始时间" align="center" prop="startTime" width="180">
|
|
|
+ <el-table-column label="呼入时间" align="center" prop="callCreateTime" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.startTime) }}</span>
|
|
|
+ <span>{{ parseTime(scope.row.callCreateTime) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="结束时间" align="center" prop="finishTime" width="180">
|
|
|
+ <el-table-column label="应答时间" align="center" prop="callAnswerTime" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.finishTime) }}</span>
|
|
|
+ <span>{{ parseTime(scope.row.callAnswerTime) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="主叫" align="center" prop="callerPhone" />
|
|
|
- <el-table-column label="被叫" align="center" prop="calleePhone" />
|
|
|
- <el-table-column label="时长(秒)" align="center" prop="times" width="180">
|
|
|
+ <el-table-column label="主叫" align="center" prop="callerNum" />
|
|
|
+ <el-table-column label="被叫" align="center" prop="calleeNum" />
|
|
|
+ <el-table-column label="时长(秒)" align="center" prop="callTime" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.voiceUrl!=null">{{ scope.row.times}}秒 </span>
|
|
|
+ <span v-if="scope.row.recordPath!=null">{{ scope.row.callTime}}秒 </span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="计费时长(分)" align="center" prop="billingTime" width="180">
|
|
|
+ <el-table-column label="意向度" align="center" prop="intention" width="180">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag v-for="item in levelList" v-if="scope.row.intention == item.dictValue">{{item.dictLabel}}</el-tag>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="主叫显示号" align="center" prop="displayCallerNumber" />
|
|
|
- <el-table-column label="被叫显示号" align="center" prop="displayCalleeNumber" />
|
|
|
+ <!-- <el-table-column label="主叫显示号" align="center" prop="displayCallerNumber" />
|
|
|
+ <el-table-column label="被叫显示号" align="center" prop="displayCalleeNumber" /> -->
|
|
|
<el-table-column label="状态" align="center" prop="status" >
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag prop="status" v-for="(item, index) in statusOptions" v-if="scope.row.status==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="备注" align="center" prop="remark" />
|
|
|
+ <!-- <el-table-column label="备注" align="center" prop="remark" /> -->
|
|
|
</el-table>
|
|
|
<pagination
|
|
|
v-show="total>0"
|
|
|
@@ -50,12 +53,15 @@
|
|
|
|
|
|
<script>
|
|
|
import { listCompanyVoiceLogs, getCompanyVoiceLogs, delCompanyVoiceLogs, addCompanyVoiceLogs, updateCompanyVoiceLogs, exportCompanyVoiceLogs } from "@/api/company/companyVoiceLogs";
|
|
|
+import { listCallphone } from "@/api/company/callphone";
|
|
|
+
|
|
|
+import {getDicts} from "@/api/system/dict/data";
|
|
|
export default {
|
|
|
- name: "customerVisit",
|
|
|
+ name: "aiCallVoiceLog",
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
statusOptions:[],
|
|
|
+ levelList:[],
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
// 总条数
|
|
|
@@ -66,29 +72,39 @@ export default {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
customerId: null,
|
|
|
+ callerId:null
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- this.getDicts("company_voice_logs_status").then((response) => {
|
|
|
+ getDicts("ai_call_task_status").then((response) => {
|
|
|
this.statusOptions = response.data;
|
|
|
});
|
|
|
+ getDicts("customer_intention_level").then(e => {
|
|
|
+ this.levelList = e.data;
|
|
|
+ })
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
- getData(customerId){
|
|
|
+ getData(customerId,calleesId){
|
|
|
this.queryParams.customerId=customerId;
|
|
|
+ this.queryParams.callerId=calleesId;
|
|
|
this.queryParams.pageNum=1;
|
|
|
this.getList();
|
|
|
},
|
|
|
- getList() {
|
|
|
+ getList(){
|
|
|
this.loading = true;
|
|
|
- listCompanyVoiceLogs(this.queryParams).then(response => {
|
|
|
+ listCallphone(this.queryParams).then(response => {
|
|
|
this.list = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
+ handleRecordPath(url){
|
|
|
+ let path = 'http://118.24.138.129/recordFile/listen?file=' + url;
|
|
|
+ console.log(path);
|
|
|
+ return path;
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|