This commit is contained in:
FLL
2025-09-15 17:01:58 +08:00
parent 5f927bf330
commit 553253ce65
3 changed files with 17 additions and 12 deletions

View File

@@ -80,6 +80,7 @@ export const columns: VxeGridProps['columns'] = [
{
title: '巡检照片',
field: 'inspectionImage',
slots: { default: 'inspectionImage' },
width:120
},
{
@@ -120,19 +121,24 @@ export const columns: VxeGridProps['columns'] = [
{
title: '巡检结果',
field: 'inspectionResults',
width:180
width:180,
slots: {
default: ({ row }) => {
return renderDict(row.inspectionResults, 'pro_inspection_results');
},
},
},
{
title: '巡检描述',
field: 'inspectionDesc',
width:180
},
{
title: '备注',
field: 'remark',
width:180
},
// {
// title: '备注',
// field: 'remark',
// width:180
// },
// {
// field: 'action',
// fixed: 'right',
// slots: { default: 'action' },

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import {Page, useVbenModal, type VbenFormProps} from '@vben/common-ui';
import {Space} from 'ant-design-vue';
import {Avatar, Space} from 'ant-design-vue';
import {
useVbenVxeGrid,
@@ -102,6 +102,10 @@ function handleDownloadExcel() {
</Space>
</template>
<template #inspectionImage="{ row }">
<Avatar :src="row.inspectionImage" v-if="row.inspectionImage" />
<span v-else></span>
</template>
<template #action="{ row }">
<Space>
<ghost-button

View File

@@ -9,11 +9,6 @@ export const querySchema: FormSchemaGetter = () => [
fieldName: 'name',
label: '会议室名称',
},
{
component: 'Input',
fieldName: 'person',
label: '预定人',
},
{
component: 'Select',
componentProps: {