新增多个功能模块
This commit is contained in:
@@ -2,8 +2,6 @@ import type {FormSchemaGetter} from '#/adapter/form';
|
||||
import type {VxeGridProps} from '#/adapter/vxe-table';
|
||||
import {getDictOptions} from "#/utils/dict";
|
||||
import {renderDict} from "#/utils/render";
|
||||
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
component: 'Input',
|
||||
@@ -47,6 +45,11 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '单位类型',
|
||||
field: 'type',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
return renderDict(row.type, 'wy_rzdwlx');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '联系人',
|
||||
@@ -109,13 +112,15 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
fieldName: 'name',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
|
||||
},
|
||||
{
|
||||
label: '单位类型',
|
||||
fieldName: 'type',
|
||||
component: 'Input',
|
||||
component: 'Select',
|
||||
rules: 'required',
|
||||
componentProps: {
|
||||
options: getDictOptions('wy_rzdwlx'),
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '联系人',
|
||||
|
Reference in New Issue
Block a user