权限
This commit is contained in:
@@ -3,6 +3,7 @@ import type { VxeGridProps } from '#/adapter/vxe-table';
|
|||||||
import { getDictOptions } from '#/utils/dict';
|
import { getDictOptions } from '#/utils/dict';
|
||||||
import { costItemSettingList } from '#/api/property/costManagement/costItemSetting';
|
import { costItemSettingList } from '#/api/property/costManagement/costItemSetting';
|
||||||
import {meterReadingTypeList} from '#/api/property/costManagement/meterReadingType';
|
import {meterReadingTypeList} from '#/api/property/costManagement/meterReadingType';
|
||||||
|
import {renderDict} from "#/utils/render";
|
||||||
|
|
||||||
export const querySchema: FormSchemaGetter = () => [
|
export const querySchema: FormSchemaGetter = () => [
|
||||||
{
|
{
|
||||||
@@ -27,7 +28,12 @@ export const columns: VxeGridProps['columns'] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '费用类型',
|
title: '费用类型',
|
||||||
field: 'itemId',
|
field: 'costType',
|
||||||
|
slots: {
|
||||||
|
default: ({ row }) => {
|
||||||
|
return renderDict(row.costType, 'wy_cbfylx');
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '抄表类型',
|
title: '抄表类型',
|
||||||
@@ -97,7 +103,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
// return {
|
// return {
|
||||||
// api: async ()=>{
|
// api: async ()=>{
|
||||||
// console.log(values);
|
// console.log(values);
|
||||||
|
|
||||||
// const rows = await costItemSettingList({pageSize:1000000000,pageNum:1,costType:values.costType});
|
// const rows = await costItemSettingList({pageSize:1000000000,pageNum:1,costType:values.costType});
|
||||||
// return rows;
|
// return rows;
|
||||||
// },
|
// },
|
||||||
@@ -118,7 +124,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
// return {
|
// return {
|
||||||
// api: async()=>{
|
// api: async()=>{
|
||||||
// const rows = await meterReadingTypeList({pageSize:1000000000,pageNum:1,costType:values.costType=='5'?0:1});
|
// const rows = await meterReadingTypeList({pageSize:1000000000,pageNum:1,costType:values.costType=='5'?0:1});
|
||||||
// return rows;
|
// return rows;
|
||||||
// },
|
// },
|
||||||
// resultField:'rows',
|
// resultField:'rows',
|
||||||
// labelField:'name',
|
// labelField:'name',
|
||||||
|
@@ -44,8 +44,8 @@ async function handleOpenChange(open: boolean) {
|
|||||||
<DescriptionsItem label="访客身份证">
|
<DescriptionsItem label="访客身份证">
|
||||||
{{ visitorTodoDetail.idCard }}
|
{{ visitorTodoDetail.idCard }}
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
<DescriptionsItem label="人脸图片">
|
<DescriptionsItem label="人脸图片" v-if="visitorTodoDetail.facePictures" :span="2">
|
||||||
{{ visitorTodoDetail.facePictures }}
|
<img :src="visitorTodoDetail.facePictures" alt="图片加载失败" class="w-[100px] h-[100px]"/>
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
<DescriptionsItem label="所属公司">
|
<DescriptionsItem label="所属公司">
|
||||||
{{ visitorTodoDetail.visitorUnit}}
|
{{ visitorTodoDetail.visitorUnit}}
|
||||||
|
Reference in New Issue
Block a user