Browse Source

巡检点检显示图片

master
张立 2 months ago
parent
commit
e9a2de297d
  1. 3
      src/components/Detail/src/Detail.vue
  2. 2
      src/views/eam/device/deviceSpotInspectionRecordMain/deviceSpotInspectionRecordMain.data.ts
  3. 13
      src/views/eam/device/deviceSpotInspectionRecordMain/index.vue

3
src/components/Detail/src/Detail.vue

@ -72,6 +72,9 @@
v-model:pageSize="tableObjectRef.pageSize" v-model:pageSize="tableObjectRef.pageSize"
v-model:currentPage="tableObjectRef.currentPage" v-model:currentPage="tableObjectRef.currentPage"
> >
<template v-for="name in Object.keys($slots)" :key="name" #[name]="{ row }">
<slot :name="name" :row="row"></slot>
</template>
<template #photos="{ row }"> <template #photos="{ row }">
<div <div
v-for="(item, index) in row.photos.split(',')" v-for="(item, index) in row.photos.split(',')"

2
src/views/eam/device/deviceSpotInspectionRecordMain/deviceSpotInspectionRecordMain.data.ts

@ -286,7 +286,7 @@ export const DeviceSpotInspectionRecordDetail = useCrudSchemas(reactive<CrudSche
field: 'filePathList', field: 'filePathList',
sort: 'custom', sort: 'custom',
table: { table: {
width: '300', width: '240',
}, },
isSearch: true isSearch: true
}, },

13
src/views/eam/device/deviceSpotInspectionRecordMain/index.vue

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

Loading…
Cancel
Save