diff --git a/src/pages/components/AttendanceDetailDialog.vue b/src/pages/components/AttendanceDetailDialog.vue index c944e7c..86003e1 100644 --- a/src/pages/components/AttendanceDetailDialog.vue +++ b/src/pages/components/AttendanceDetailDialog.vue @@ -9,7 +9,7 @@ @@ -95,7 +95,10 @@ export default { this.loading=true; this.$api.attendance.todayAttendance(postData).then(d=>{ this.total=d.total||0; - this.tableData=d.rows||[]; + this.tableData=(d.rows||[]).map(it=>{ + it.scanPhoto=it.scanPhoto && it.scanPhoto.indexOf("/profile")==0?"/jhapi"+it.scanPhoto:it.scanPhoto; + return it; + }); this.loading=false; }) } diff --git a/src/pages/projectVideo.vue b/src/pages/projectVideo.vue index 61e2729..2b2ba33 100644 --- a/src/pages/projectVideo.vue +++ b/src/pages/projectVideo.vue @@ -306,6 +306,18 @@ export default { parentVM: { vd01Flag: true, vd02Flag: true, vd03Flag: true, vd04Flag: true }, }; }, + beforeDestroy(){ + console.log("-----beforeDestroy------>") + this.players.forEach(p=>{ + if(p){ + try{ + p.stop(); + }catch(e){ + + } + } + }) + }, mounted() { window.xapp=this; this.$bus.$on( @@ -1543,7 +1555,16 @@ export default { //查询视频通道 initVideo(videoDvrNumber, url) { let that = this; - that.players = []; + that.players.forEach(p=>{ + if(p){ + try{ + p.stop(); + }catch(e){ + + } + } + }) + that.players = []; that.parentVM.vd01Flag=false; that.parentVM.vd02Flag=false; that.parentVM.vd03Flag=false;