|
@@ -96,7 +96,10 @@
|
96
|
96
|
>{{ item.place.area.area }} {{ item.place.place }}
|
97
|
97
|
{{ item.houseNumber }}</span
|
98
|
98
|
>
|
99
|
|
- <span>{{ item.acceptDate | timeFormat("MM-dd HH:mm") }}</span>
|
|
99
|
+ <span>
|
|
100
|
+ <i v-if="item.callID" @click.stop="showAudio(item.callID)" class="dash dash-dianbohuifang"></i>
|
|
101
|
+ {{ item.acceptDate | timeFormat("MM-dd HH:mm") }}
|
|
102
|
+ </span>
|
100
|
103
|
</div>
|
101
|
104
|
<div class="btns">
|
102
|
105
|
<cube-form-group
|
|
@@ -178,6 +181,11 @@
|
178
|
181
|
:operate="models1.operate"
|
179
|
182
|
textName="textarea"
|
180
|
183
|
></showModel>
|
|
184
|
+ <div class="mask" v-if="audioMask" @click="hideAudio()">
|
|
185
|
+ <audio controls autoplay="autoplay" id="bgMusic">
|
|
186
|
+ <source :src="audioSrc" type="audio/mpeg">
|
|
187
|
+ </audio>
|
|
188
|
+ </div>
|
181
|
189
|
</div>
|
182
|
190
|
</template>
|
183
|
191
|
<script>
|
|
@@ -192,6 +200,8 @@ import LoadIng from "./../views/loading.vue";
|
192
|
200
|
export default {
|
193
|
201
|
data() {
|
194
|
202
|
return {
|
|
203
|
+ audioSrc:'',//音频路径
|
|
204
|
+ audioMask:false,//音频
|
195
|
205
|
modelsData: null, //点击弹窗的那一项数据
|
196
|
206
|
modelsData1: null, //点击弹窗的那一项数据
|
197
|
207
|
// 弹窗model
|
|
@@ -278,6 +288,30 @@ export default {
|
278
|
288
|
}
|
279
|
289
|
},
|
280
|
290
|
methods: {
|
|
291
|
+ // 播放音频
|
|
292
|
+ showAudio(callID){
|
|
293
|
+ const toast = this.$createToast({
|
|
294
|
+ txt: "Loading...",
|
|
295
|
+ mask: true
|
|
296
|
+ });
|
|
297
|
+ toast.show();
|
|
298
|
+ this.$http
|
|
299
|
+ .post("service/bpm/data/fetchDataList/callrecord", {idx: 0, sum: 1, callrecord: {callAccept: callID}})
|
|
300
|
+ .then(res => {
|
|
301
|
+ toast.hide();
|
|
302
|
+ if (res.data.status == 200) {
|
|
303
|
+ res.data.list = res.data.list || [];
|
|
304
|
+ if(res.data.list.length){
|
|
305
|
+ this.audioMask = true;
|
|
306
|
+ this.audioSrc = this.$host+res.data.list[0].recordingFileName;
|
|
307
|
+ }
|
|
308
|
+ }
|
|
309
|
+ });
|
|
310
|
+ },
|
|
311
|
+ // 隐藏音频组件
|
|
312
|
+ hideAudio(){
|
|
313
|
+ this.audioMask=false;
|
|
314
|
+ },
|
281
|
315
|
//确定
|
282
|
316
|
ok(selectUserId) {
|
283
|
317
|
console.log(selectUserId);
|
|
@@ -630,6 +664,17 @@ export default {
|
630
|
664
|
};
|
631
|
665
|
</script>
|
632
|
666
|
<style lang="stylus" rel="stylesheet/stylus" scoped>
|
|
667
|
+.mask{
|
|
668
|
+ width: 100%;
|
|
669
|
+ height: 100%;
|
|
670
|
+ position: fixed;
|
|
671
|
+ top: 0;
|
|
672
|
+ background: rgba(0,0,0,.5);
|
|
673
|
+ z-index: 999;
|
|
674
|
+ display: flex;
|
|
675
|
+ align-items: center;
|
|
676
|
+ justify-content: center;
|
|
677
|
+}
|
633
|
678
|
.btns{
|
634
|
679
|
display: flex;
|
635
|
680
|
justify-content: space-between
|