|
@@ -60,6 +60,7 @@ export class IncidentDetailComponent implements OnInit {
|
60
|
60
|
|
61
|
61
|
if(this.activeTabValue == 1){
|
62
|
62
|
this.incidentData.callID && this.getCallLog();
|
|
63
|
+ this.incidentData.reqRecord && this.getAudioRequireSrc();
|
63
|
64
|
this.incidentData.reqAttachment && this.getRepairImgs();
|
64
|
65
|
}else if(this.activeTabValue == 2){
|
65
|
66
|
this.getHandleImgs();
|
|
@@ -205,6 +206,24 @@ export class IncidentDetailComponent implements OnInit {
|
205
|
206
|
});
|
206
|
207
|
}
|
207
|
208
|
|
|
209
|
+ // 获取报修录音
|
|
210
|
+ audioRequireSrc = '';//音频
|
|
211
|
+ getAudioRequireSrc() {
|
|
212
|
+ this.mainService
|
|
213
|
+ .getPreviewImage('wechatIncidentRecord', this.incidentData.id)
|
|
214
|
+ .subscribe((res:any) => {
|
|
215
|
+ res.data = res.data || [];
|
|
216
|
+ if(res.data.length){
|
|
217
|
+ res.data.forEach(v => {
|
|
218
|
+ v.previewUrl = location.origin + "/file" + v.relativeFilePath;
|
|
219
|
+ })
|
|
220
|
+ this.audioRequireSrc = res.data[0].previewUrl;
|
|
221
|
+ }else{
|
|
222
|
+ this.audioRequireSrc = '';
|
|
223
|
+ }
|
|
224
|
+ });
|
|
225
|
+ }
|
|
226
|
+
|
208
|
227
|
maskFlag:any = false;
|
209
|
228
|
// 获取处理流程
|
210
|
229
|
incidentLogList:any[] = [];
|