feat
This commit is contained in:
@@ -80,6 +80,7 @@ export const columns: VxeGridProps['columns'] = [
|
|||||||
{
|
{
|
||||||
title: '巡检照片',
|
title: '巡检照片',
|
||||||
field: 'inspectionImage',
|
field: 'inspectionImage',
|
||||||
|
slots: { default: 'inspectionImage' },
|
||||||
width:120
|
width:120
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -120,19 +121,24 @@ export const columns: VxeGridProps['columns'] = [
|
|||||||
{
|
{
|
||||||
title: '巡检结果',
|
title: '巡检结果',
|
||||||
field: 'inspectionResults',
|
field: 'inspectionResults',
|
||||||
width:180
|
width:180,
|
||||||
|
slots: {
|
||||||
|
default: ({ row }) => {
|
||||||
|
return renderDict(row.inspectionResults, 'pro_inspection_results');
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '巡检描述',
|
title: '巡检描述',
|
||||||
field: 'inspectionDesc',
|
|
||||||
width:180
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '备注',
|
|
||||||
field: 'remark',
|
field: 'remark',
|
||||||
width:180
|
width:180
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
|
// title: '备注',
|
||||||
|
// field: 'remark',
|
||||||
|
// width:180
|
||||||
|
// },
|
||||||
|
// {
|
||||||
// field: 'action',
|
// field: 'action',
|
||||||
// fixed: 'right',
|
// fixed: 'right',
|
||||||
// slots: { default: 'action' },
|
// slots: { default: 'action' },
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {Page, useVbenModal, type VbenFormProps} from '@vben/common-ui';
|
import {Page, useVbenModal, type VbenFormProps} from '@vben/common-ui';
|
||||||
|
|
||||||
import {Space} from 'ant-design-vue';
|
import {Avatar, Space} from 'ant-design-vue';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
useVbenVxeGrid,
|
useVbenVxeGrid,
|
||||||
@@ -102,6 +102,10 @@ function handleDownloadExcel() {
|
|||||||
|
|
||||||
</Space>
|
</Space>
|
||||||
</template>
|
</template>
|
||||||
|
<template #inspectionImage="{ row }">
|
||||||
|
<Avatar :src="row.inspectionImage" v-if="row.inspectionImage" />
|
||||||
|
<span v-else>无</span>
|
||||||
|
</template>
|
||||||
<template #action="{ row }">
|
<template #action="{ row }">
|
||||||
<Space>
|
<Space>
|
||||||
<ghost-button
|
<ghost-button
|
||||||
|
@@ -9,11 +9,6 @@ export const querySchema: FormSchemaGetter = () => [
|
|||||||
fieldName: 'name',
|
fieldName: 'name',
|
||||||
label: '会议室名称',
|
label: '会议室名称',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
component: 'Input',
|
|
||||||
fieldName: 'person',
|
|
||||||
label: '预定人',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
component: 'Select',
|
component: 'Select',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
Reference in New Issue
Block a user