|
|
|
|
@ -11,10 +11,10 @@
|
|
|
|
|
<a-table :rowKey="record => record.id" :columns="columns" :dataSource="dataSource">
|
|
|
|
|
<div slot="filePath" slot-scope="text, record">
|
|
|
|
|
<img
|
|
|
|
|
v-if="imglist.some(item => record.mediaType === item)"
|
|
|
|
|
v-if="imglist.some(item => record.mediaType.toLowerCase() === item)"
|
|
|
|
|
:src="record.filePath"
|
|
|
|
|
alt="内容图片"
|
|
|
|
|
style="width: 140px"
|
|
|
|
|
style="width: 140px; cursor:pointer;"
|
|
|
|
|
@click="handlePopup('image', record.filePath)"
|
|
|
|
|
/>
|
|
|
|
|
<span
|
|
|
|
|
@ -45,22 +45,26 @@ export default {
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
title: "工单号",
|
|
|
|
|
dataIndex: "orderNum"
|
|
|
|
|
dataIndex: "orderNum",
|
|
|
|
|
width: 90
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "仓位号",
|
|
|
|
|
dataIndex: "positionNum"
|
|
|
|
|
dataIndex: "positionNum",
|
|
|
|
|
width: 170
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "创建时间",
|
|
|
|
|
dataIndex: "createTime"
|
|
|
|
|
dataIndex: "createTime",
|
|
|
|
|
width: 200
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "内容",
|
|
|
|
|
dataIndex: "filePath",
|
|
|
|
|
scopedSlots: {
|
|
|
|
|
customRender: "filePath"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
width: 300
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
dataSource: [],
|
|
|
|
|
|