diff --git a/src/views/caseManage/waitForCreate.vue b/src/views/caseManage/waitForCreate.vue index 1c52350..5a9a114 100644 --- a/src/views/caseManage/waitForCreate.vue +++ b/src/views/caseManage/waitForCreate.vue @@ -19,8 +19,8 @@ type="datetimerange" range-separator="至" value-format="yyyy-MM-dd HH:mm:ss" - start-placeholder="创建开始时间" - end-placeholder="创建结束时间"/> + start-placeholder="来电开始时间" + end-placeholder="来电结束时间"/> @@ -167,27 +167,24 @@ this.listQuery.offset = 1 } this.listLoading = true - // getSoundList(this.listQuery).then(response => { - // if (response.code === 200) { - // this.listLoading = false - // this.list = response.data.rows - // this.total = response.data.total - // } - // }) - const that = this - setTimeout(function() { - that.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: '未接听' } - ] - that.total = 2 - that.listLoading = false - }, 2000) + getSoundList(this.listQuery).then(response => { + if (response.code === 200) { + this.listLoading = false + 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 + } + }) }, // 播放录音 openSound(row) { this.soundShow = true - this.sound.url = 'https://wdd.js.org/element-audio/static/falling-star.mp3' + this.sound.url = 'http://192.170.1.10:81/archive/2020/0426/6001_3256651e-87a3-11ea-b535-89e56eb1026b.wav' // this.sound.url = row.recordName }, // 关闭播放弹窗