update code
parent
ff286361ce
commit
d0dc1f2085
|
@ -9,7 +9,7 @@
|
|||
<el-table v-loading="loading" :data="tableData" class="mytable" height="650" style="width: 100%;background: transparent;" ref="fbsubordinateUnit">
|
||||
<el-table-column label="照片" align="center" prop="id">
|
||||
<template slot-scope="{row}">
|
||||
<el-image v-if="row.recentPhoto||row.scanPhoto||row.workerPhoto" :src="row.recentPhoto||row.scanPhoto||row.workerPhoto" :preview-src-list="[row.recentPhoto||row.scanPhoto||row.workerPhoto]" style="height:60px"/>
|
||||
<el-image v-if="row.scanPhoto||row.recentPhoto||row.workerPhoto" :src="row.scanPhoto||row.recentPhoto||row.workerPhoto" :preview-src-list="[row.recentPhoto||row.scanPhoto||row.workerPhoto]" style="height:60px"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="姓名" align="center" prop="workerName" />
|
||||
|
@ -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;
|
||||
})
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue