历史回放页面图片列宽自适应

merge-requests/1/head
张鑫 5 years ago
parent d52f56865b
commit 1031fc086c

@ -22,6 +22,7 @@
</a-row> </a-row>
</a-form> </a-form>
</div> </div>
<a-table <a-table
:columns="columns" :columns="columns"
:row-key="record => record.id" :row-key="record => record.id"
@ -32,18 +33,22 @@
<span slot="streetType" slot-scope="text"> <span slot="streetType" slot-scope="text">
{{ text === null ? '-' : text === 0 ? '单伸' : '双伸' }} {{ text === null ? '-' : text === 0 ? '单伸' : '双伸' }}
</span> </span>
<span slot="pics" slot-scope="text"> <span slot="pics" slot-scope="text" style="width:auto">
<template> <template>
<span v-if="text.pics"> <span v-if="text.pics" style="height:100%;">
<happy-scroll color="rgba(100,100,100,0.5)" size="8" class="scroll-box" style="width:320px;height:90px;">
<viewer :images="text.pics"> <viewer :images="text.pics">
<img class="historyImg" v-for="(src,index) in text.pics" :src="imgUrl+src" <img class="historyImg" v-for="(src,index) in text.pics" :src="imgUrl+src"
:key="index"/> :key="index"/>
</viewer> </viewer>
</happy-scroll>
</span> </span>
<span v-else> <span v-else>
暂无图片 暂无图片
</span> </span>
</template> </template>
</span> </span>
<span slot="status" slot-scope="text"> <span slot="status" slot-scope="text">
<span :style="text.status == 1 ?' color:red': ''"> <span :style="text.status == 1 ?' color:red': ''">
@ -119,10 +124,10 @@ export default {
dataIndex: "startTime", dataIndex: "startTime",
}, },
{ {
title: "照片(入库 货位 出库)", title: "照片",
// dataIndex: "pic", // dataIndex: "pic",
scopedSlots: {customRender: 'pics'}, scopedSlots: {customRender: 'pics'},
width: 300 width:320,
}, },
{ {
title: "视频状态", title: "视频状态",
@ -241,6 +246,7 @@ export default {
.historyImg { .historyImg {
width: 80px; width: 80px;
height:auto;
margin: 5px; margin: 5px;
} }
</style> </style>

Loading…
Cancel
Save