diff --git a/src/views/caseManage/waitForCreate.vue b/src/views/caseManage/waitForCreate.vue index 3c2df0a..3fcea2c 100644 --- a/src/views/caseManage/waitForCreate.vue +++ b/src/views/caseManage/waitForCreate.vue @@ -8,7 +8,7 @@ - + @@ -167,6 +167,13 @@ this.listQuery.offset = 1 } this.listLoading = true + if (this.timeRange && this.timeRange.length === 2) { + this.listQuery.startTime = this.timeRange[0] + this.listQuery.endTime = this.timeRange[1] + } else { + this.listQuery.startTime = '' + this.listQuery.endTime = '' + } getSoundList(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false diff --git a/src/views/caseManage/waitForCreate.vue b/src/views/caseManage/waitForCreate.vue index 3c2df0a..3fcea2c 100644 --- a/src/views/caseManage/waitForCreate.vue +++ b/src/views/caseManage/waitForCreate.vue @@ -8,7 +8,7 @@ - + @@ -167,6 +167,13 @@ this.listQuery.offset = 1 } this.listLoading = true + if (this.timeRange && this.timeRange.length === 2) { + this.listQuery.startTime = this.timeRange[0] + this.listQuery.endTime = this.timeRange[1] + } else { + this.listQuery.startTime = '' + this.listQuery.endTime = '' + } getSoundList(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false diff --git a/src/views/soundsManage/soundsManage.vue b/src/views/soundsManage/soundsManage.vue index 7d689ef..35558eb 100644 --- a/src/views/soundsManage/soundsManage.vue +++ b/src/views/soundsManage/soundsManage.vue @@ -14,7 +14,7 @@ - + @@ -35,9 +35,14 @@ + + + {{ scope.row.bridgeStamp | timeFilter }} + + - + @@ -69,6 +74,14 @@ export default { name: 'SoundsManage', components: { AudioPlayer, SearchItem, SearchArea, AppContainer, NormalTable, CreateCase }, + filters: { + timeFilter(val) { + const m = Math.floor(val / 60) + const s = val - m * 60 + const str = ('0' + m).slice(-2) + ':' + ('0' + s).slice(-2) + return str + } + }, data() { return { listQuery: { @@ -107,6 +120,25 @@ align: 'center' }, { + text: '坐席工号', + value: 'agentName', + align: 'center', + default: '--' + }, + { + text: '坐席姓名', + value: 'agentUserName', + align: 'center', + default: '--' + }, + { + text: '归属地', + value: 'isp', + align: 'center', + width: 100, + default: '--' + }, + { text: '通话开始时间', value: 'dialStartStamp', align: 'center' @@ -115,28 +147,13 @@ text: '通话结束时间', value: 'dialEndStamp', align: 'center' - }, - { - text: '通话时长(秒)', - value: 'bridgeStamp', - align: 'center' - }, - { - text: '坐席工号', - value: 'agentName', - align: 'center' - }, - { - text: '坐席姓名', - value: 'agentUserName', - align: 'center' - }, - { - text: '归属地', - value: 'isp', - align: 'center', - width: 100 } + // { + // text: '通话时长(秒)', + // value: 'bridgeStamp', + // align: 'center', + // default: '0' + // } ], // 显示列 timeRange: [], // 时间范围 list: [], // 列表数据 @@ -163,11 +180,12 @@ size: 'small', soundShow: false, // 显示音频弹窗 userList: [], - callWayList: [{ name: '呼入', value: '1' }, { name: '呼出', value: '2' }, { name: '本地通话', value: '3' }, { name: '未知', value: '4' }], // 呼叫方向列表 + callWayList: [], // 呼叫方向列表 hangupCauseList: [{ name: '主叫挂机', value: '1' }, { name: '被叫挂机', value: '2' }, { name: '系统挂机', value: '3' }] // 挂机方向列表 } }, created() { + this.fetchCallWay() this.fetchUserList() this.search() }, @@ -184,6 +202,13 @@ this.listQuery.offset = 1 } this.listLoading = true + if (this.timeRange && this.timeRange.length === 2) { + this.listQuery.startTime = this.timeRange[0] + this.listQuery.endTime = this.timeRange[1] + } else { + this.listQuery.startTime = '' + this.listQuery.endTime = '' + } getAllSoundList(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false @@ -192,7 +217,7 @@ } }) }, - fetchCallWay(){ + fetchCallWay() { getCallWay().then(response => { if (response.code === 200) { this.callWayList = response.data diff --git a/src/views/caseManage/waitForCreate.vue b/src/views/caseManage/waitForCreate.vue index 3c2df0a..3fcea2c 100644 --- a/src/views/caseManage/waitForCreate.vue +++ b/src/views/caseManage/waitForCreate.vue @@ -8,7 +8,7 @@ - + @@ -167,6 +167,13 @@ this.listQuery.offset = 1 } this.listLoading = true + if (this.timeRange && this.timeRange.length === 2) { + this.listQuery.startTime = this.timeRange[0] + this.listQuery.endTime = this.timeRange[1] + } else { + this.listQuery.startTime = '' + this.listQuery.endTime = '' + } getSoundList(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false diff --git a/src/views/soundsManage/soundsManage.vue b/src/views/soundsManage/soundsManage.vue index 7d689ef..35558eb 100644 --- a/src/views/soundsManage/soundsManage.vue +++ b/src/views/soundsManage/soundsManage.vue @@ -14,7 +14,7 @@ - + @@ -35,9 +35,14 @@ + + + {{ scope.row.bridgeStamp | timeFilter }} + + - + @@ -69,6 +74,14 @@ export default { name: 'SoundsManage', components: { AudioPlayer, SearchItem, SearchArea, AppContainer, NormalTable, CreateCase }, + filters: { + timeFilter(val) { + const m = Math.floor(val / 60) + const s = val - m * 60 + const str = ('0' + m).slice(-2) + ':' + ('0' + s).slice(-2) + return str + } + }, data() { return { listQuery: { @@ -107,6 +120,25 @@ align: 'center' }, { + text: '坐席工号', + value: 'agentName', + align: 'center', + default: '--' + }, + { + text: '坐席姓名', + value: 'agentUserName', + align: 'center', + default: '--' + }, + { + text: '归属地', + value: 'isp', + align: 'center', + width: 100, + default: '--' + }, + { text: '通话开始时间', value: 'dialStartStamp', align: 'center' @@ -115,28 +147,13 @@ text: '通话结束时间', value: 'dialEndStamp', align: 'center' - }, - { - text: '通话时长(秒)', - value: 'bridgeStamp', - align: 'center' - }, - { - text: '坐席工号', - value: 'agentName', - align: 'center' - }, - { - text: '坐席姓名', - value: 'agentUserName', - align: 'center' - }, - { - text: '归属地', - value: 'isp', - align: 'center', - width: 100 } + // { + // text: '通话时长(秒)', + // value: 'bridgeStamp', + // align: 'center', + // default: '0' + // } ], // 显示列 timeRange: [], // 时间范围 list: [], // 列表数据 @@ -163,11 +180,12 @@ size: 'small', soundShow: false, // 显示音频弹窗 userList: [], - callWayList: [{ name: '呼入', value: '1' }, { name: '呼出', value: '2' }, { name: '本地通话', value: '3' }, { name: '未知', value: '4' }], // 呼叫方向列表 + callWayList: [], // 呼叫方向列表 hangupCauseList: [{ name: '主叫挂机', value: '1' }, { name: '被叫挂机', value: '2' }, { name: '系统挂机', value: '3' }] // 挂机方向列表 } }, created() { + this.fetchCallWay() this.fetchUserList() this.search() }, @@ -184,6 +202,13 @@ this.listQuery.offset = 1 } this.listLoading = true + if (this.timeRange && this.timeRange.length === 2) { + this.listQuery.startTime = this.timeRange[0] + this.listQuery.endTime = this.timeRange[1] + } else { + this.listQuery.startTime = '' + this.listQuery.endTime = '' + } getAllSoundList(this.listQuery).then(response => { if (response.code === 200) { this.listLoading = false @@ -192,7 +217,7 @@ } }) }, - fetchCallWay(){ + fetchCallWay() { getCallWay().then(response => { if (response.code === 200) { this.callWayList = response.data diff --git a/src/views/soundsManage/waitForCreate.vue b/src/views/soundsManage/waitForCreate.vue deleted file mode 100644 index 01d30b2..0000000 --- a/src/views/soundsManage/waitForCreate.vue +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 添加 - 修改 - 删除 - - - - - 详情 - 编辑 - 采集 - - - - - - - - - -