[Object Object] 出现原因:因为对象直接调用了.toString()方法,需要先进行转换才能正确显示
<el-table-column
label="查看视频"
width="300"
prop="findtv">
<template slot-scope="scope">
<video autoplay="autoplay" controls="controls" width="200" height="186px">
<source :src="JSON.parse(JSON.stringify(scope.row.findtv))">
</video>
</template>
</el-table-column>
import tv from '@/assets/img404/right1.mp4'
import tv1 from '@/assets/img404/8.mp4'
import tv2 from '@/assets/img404/a.mp4'
import tv3 from '@/assets/img404/b.mp4'
import tv4 from '@/assets/img404/c.mp4'
export default {
data(){
return{
tv,
tv1,
tv2,
tv3,
tv4,
dialogVisible:false,
tableData4: [{
date: "电力检修",
name: "作业违规视频",
findtv:tv,
address: "天津市河西区下瓦房街道"
},
{
date: "员工作业",
name: "作业违规视频",
address: "津南区双港镇",
findtv:tv1
},]