feat
This commit is contained in:
@@ -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' },
|
||||
|
@@ -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
|
||||
|
@@ -9,11 +9,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
fieldName: 'name',
|
||||
label: '会议室名称',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'person',
|
||||
label: '预定人',
|
||||
},
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
|
Reference in New Issue
Block a user