Browse Source

[SBBJ-906] 模具查看图片

master
zengqinyuan 1 week ago
parent
commit
e383ab73d2
  1. 12
      src/views/eam/mold/moldSpotInspectionRecordMain/index.vue
  2. 9
      src/views/eam/mold/moldSpotInspectionRecordMain/moldSpotInspectionRecordMain.data.ts

12
src/views/eam/mold/moldSpotInspectionRecordMain/index.vue

@ -84,7 +84,17 @@
@detailSubmitForm="detailSubmitForm"
:isSearchTableItem="true"
:buttonControllFunction="buttonControllFunction"
/>
>
<template #filePathList="{row}">
<div style="display: flex;">
<div v-for="(item,index) in row.filePathList" :key='index'>
<a :href="item" download>
<el-image style="width: 100px; height: 100px; margin: 5px;" :src="item" />
</a>
</div>
</div>
</template>
</Detail>
<Dialog
ref="updateDialog"

9
src/views/eam/mold/moldSpotInspectionRecordMain/moldSpotInspectionRecordMain.data.ts

@ -280,6 +280,15 @@ export const DeviceSpotInspectionRecordDetail = useCrudSchemas(reactive<CrudSche
},
isSearch: true
},
{
label: '图片',
field: 'filePathList',
sort: 'custom',
table: {
width: '240',
},
isSearch: true
},
{
label: '操作',
field: 'action',

Loading…
Cancel
Save