diff --git a/src/views/caseManage/waitForCreate.vue b/src/views/caseManage/waitForCreate.vue index e501344..3c2df0a 100644 --- a/src/views/caseManage/waitForCreate.vue +++ b/src/views/caseManage/waitForCreate.vue @@ -119,7 +119,7 @@ // }, { text: '状态', - value: 'statusName', + value: 'isAnswer', align: 'center' } ], // 显示列 @@ -173,19 +173,26 @@ this.list = response.data.rows this.total = response.data.total // 假数据 - this.list = [ - { callid: '122fse223f2122', callerNumber: '15652360420', agentUserName: '受理员', isp: '北京联通', dialStartStamp: '2020-04-15 09:00:20', bridgeStamp: 61, statusName: '未接听' }, - { callid: '122fse223f2123', callerNumber: '18600202639', agentUserName: '受理员', isp: '北京联通', dialStartStamp: '2020-04-04 09:02:01', bridgeStamp: 61, statusName: '未接听' } - ] - this.total = 2 + // this.list = [ + // { callid: '122fse223f2122', callerNumber: '15652360420', agentUserName: '受理员', isp: '北京联通', dialStartStamp: '2020-04-15 09:00:20', bridgeStamp: 61, statusName: '未接听' }, + // { callid: '122fse223f2123', callerNumber: '18600202639', agentUserName: '受理员', isp: '北京联通', dialStartStamp: '2020-04-04 09:02:01', bridgeStamp: 61, statusName: '未接听' } + // ] + // this.total = 2 } }) }, // 播放录音 openSound(row) { - this.soundShow = true - // this.sound.url = 'http://192.170.1.10:81/archive/2020/0426/6001_3256651e-87a3-11ea-b535-89e56eb1026b.wav' - this.sound.url = row.recordName + if (row.cusRecordFile || row.recordName) { + this.soundShow = true + if (row.cusRecordFile) { + this.sound.url = row.cusRecordFile + } else if (row.recordName) { + this.sound.url = row.recordName + } + } else { + this.$message.warning('无留言') + } }, // 关闭播放弹窗 closeSound() { @@ -212,7 +219,7 @@ }, fetchUserList() { const params = { - roleTips: 'receiver,monitor' + roleTips: 'receiver,monitor,administrator' } getUserSimpleList(params).then(response => { if (response.code === 200) { diff --git a/src/views/caseManage/waitForCreate.vue b/src/views/caseManage/waitForCreate.vue index e501344..3c2df0a 100644 --- a/src/views/caseManage/waitForCreate.vue +++ b/src/views/caseManage/waitForCreate.vue @@ -119,7 +119,7 @@ // }, { text: '状态', - value: 'statusName', + value: 'isAnswer', align: 'center' } ], // 显示列 @@ -173,19 +173,26 @@ this.list = response.data.rows this.total = response.data.total // 假数据 - this.list = [ - { callid: '122fse223f2122', callerNumber: '15652360420', agentUserName: '受理员', isp: '北京联通', dialStartStamp: '2020-04-15 09:00:20', bridgeStamp: 61, statusName: '未接听' }, - { callid: '122fse223f2123', callerNumber: '18600202639', agentUserName: '受理员', isp: '北京联通', dialStartStamp: '2020-04-04 09:02:01', bridgeStamp: 61, statusName: '未接听' } - ] - this.total = 2 + // this.list = [ + // { callid: '122fse223f2122', callerNumber: '15652360420', agentUserName: '受理员', isp: '北京联通', dialStartStamp: '2020-04-15 09:00:20', bridgeStamp: 61, statusName: '未接听' }, + // { callid: '122fse223f2123', callerNumber: '18600202639', agentUserName: '受理员', isp: '北京联通', dialStartStamp: '2020-04-04 09:02:01', bridgeStamp: 61, statusName: '未接听' } + // ] + // this.total = 2 } }) }, // 播放录音 openSound(row) { - this.soundShow = true - // this.sound.url = 'http://192.170.1.10:81/archive/2020/0426/6001_3256651e-87a3-11ea-b535-89e56eb1026b.wav' - this.sound.url = row.recordName + if (row.cusRecordFile || row.recordName) { + this.soundShow = true + if (row.cusRecordFile) { + this.sound.url = row.cusRecordFile + } else if (row.recordName) { + this.sound.url = row.recordName + } + } else { + this.$message.warning('无留言') + } }, // 关闭播放弹窗 closeSound() { @@ -212,7 +219,7 @@ }, fetchUserList() { const params = { - roleTips: 'receiver,monitor' + roleTips: 'receiver,monitor,administrator' } getUserSimpleList(params).then(response => { if (response.code === 200) { diff --git a/src/views/soundsManage/soundsManage.vue b/src/views/soundsManage/soundsManage.vue index 2d22b64..7d689ef 100644 --- a/src/views/soundsManage/soundsManage.vue +++ b/src/views/soundsManage/soundsManage.vue @@ -117,7 +117,7 @@ align: 'center' }, { - text: '通话时长(分)', + text: '通话时长(秒)', value: 'bridgeStamp', align: 'center' }, @@ -201,9 +201,16 @@ }, // 播放录音 openSound(row) { - this.soundShow = true - // this.sound.url = 'https://wdd.js.org/element-audio/static/falling-star.mp3' - this.sound.url = row.recordName + if (row.cusRecordFile || row.recordName) { + this.soundShow = true + if (row.cusRecordFile) { + this.sound.url = row.cusRecordFile + } else if (row.recordName) { + this.sound.url = row.recordName + } + } else { + this.$message.warning('无录音') + } }, // 关闭播放弹窗 closeSound() {