feat: 搜索栏调整
This commit is contained in:
@@ -82,6 +82,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
formOptions: {
|
formOptions: {
|
||||||
schema: useGridFormSchema(),
|
schema: useGridFormSchema(),
|
||||||
submitOnEnter: true,
|
submitOnEnter: true,
|
||||||
|
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-4',
|
||||||
},
|
},
|
||||||
gridOptions: {
|
gridOptions: {
|
||||||
columns: useGridColumns(),
|
columns: useGridColumns(),
|
||||||
|
|||||||
@@ -250,6 +250,14 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
option.name.toLowerCase().includes(input.toLowerCase()),
|
option.name.toLowerCase().includes(input.toLowerCase()),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
fieldName: 'projectName',
|
||||||
|
label: $t('project.name'),
|
||||||
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
allowClear: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'applicant',
|
fieldName: 'applicant',
|
||||||
label: $t('license.applicant'),
|
label: $t('license.applicant'),
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
collapsedRows: 2,
|
collapsedRows: 2,
|
||||||
schema: useGridFormSchema(),
|
schema: useGridFormSchema(),
|
||||||
submitOnEnter: true,
|
submitOnEnter: true,
|
||||||
|
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-4',
|
||||||
},
|
},
|
||||||
gridOptions: {
|
gridOptions: {
|
||||||
columns: useGridColumns(),
|
columns: useGridColumns(),
|
||||||
|
|||||||
@@ -286,12 +286,11 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'status',
|
fieldName: 'name',
|
||||||
label: $t('project.status'),
|
label: $t('project.name'),
|
||||||
component: 'Select',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
options: getDictOptions(DICT_TYPE.LIC_PROJECT_STATUS, 'number'),
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -308,6 +307,29 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
fieldName: 'businessOwner',
|
||||||
|
label: $t('project.businessOwner'),
|
||||||
|
component: 'Select',
|
||||||
|
componentProps: {
|
||||||
|
options: userList,
|
||||||
|
allowClear: true,
|
||||||
|
showSearch: true,
|
||||||
|
fieldNames: { label: 'nickname', value: 'id' },
|
||||||
|
filterOption: (input: string, option: any) => {
|
||||||
|
return option.nickname.toLowerCase().includes(input.toLowerCase());
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
fieldName: 'status',
|
||||||
|
label: $t('project.status'),
|
||||||
|
component: 'Select',
|
||||||
|
componentProps: {
|
||||||
|
allowClear: true,
|
||||||
|
options: getDictOptions(DICT_TYPE.LIC_PROJECT_STATUS, 'number'),
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'businessStatus',
|
fieldName: 'businessStatus',
|
||||||
label: $t('project.businessStatus'),
|
label: $t('project.businessStatus'),
|
||||||
@@ -318,8 +340,8 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'name',
|
fieldName: 'customerOwner',
|
||||||
label: $t('project.name'),
|
label: $t('project.customerOwner'),
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
@@ -341,28 +363,6 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
allowClear: true,
|
allowClear: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
fieldName: 'businessOwner',
|
|
||||||
label: $t('project.businessOwner'),
|
|
||||||
component: 'Select',
|
|
||||||
componentProps: {
|
|
||||||
options: userList,
|
|
||||||
allowClear: true,
|
|
||||||
showSearch: true,
|
|
||||||
fieldNames: { label: 'nickname', value: 'id' },
|
|
||||||
filterOption: (input: string, option: any) => {
|
|
||||||
return option.nickname.toLowerCase().includes(input.toLowerCase());
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
fieldName: 'customerOwner',
|
|
||||||
label: $t('project.customerOwner'),
|
|
||||||
component: 'Input',
|
|
||||||
componentProps: {
|
|
||||||
allowClear: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
// {
|
// {
|
||||||
// fieldName: 'startTime',
|
// fieldName: 'startTime',
|
||||||
// label: $t('project.startTime'),
|
// label: $t('project.startTime'),
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
collapsedRows: 2,
|
collapsedRows: 2,
|
||||||
schema: useGridFormSchema(),
|
schema: useGridFormSchema(),
|
||||||
submitOnEnter: true,
|
submitOnEnter: true,
|
||||||
|
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-4',
|
||||||
},
|
},
|
||||||
gridOptions: {
|
gridOptions: {
|
||||||
columns: useGridColumns(onActionClick),
|
columns: useGridColumns(onActionClick),
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
schema: useExpiringGridFormSchema(),
|
schema: useExpiringGridFormSchema(),
|
||||||
submitOnEnter: true,
|
submitOnEnter: true,
|
||||||
fieldMappingTime: [['expiryDate', ['expiryDateStart', 'expiryDateEnd']]],
|
fieldMappingTime: [['expiryDate', ['expiryDateStart', 'expiryDateEnd']]],
|
||||||
|
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-4',
|
||||||
},
|
},
|
||||||
gridOptions: {
|
gridOptions: {
|
||||||
columns: useExpiringGridColumns(),
|
columns: useExpiringGridColumns(),
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
schema: useExpiredGridFormSchema(),
|
schema: useExpiredGridFormSchema(),
|
||||||
submitOnEnter: true,
|
submitOnEnter: true,
|
||||||
fieldMappingTime: [['expiryDate', ['expiryDateStart', 'expiryDateEnd']]],
|
fieldMappingTime: [['expiryDate', ['expiryDateStart', 'expiryDateEnd']]],
|
||||||
|
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-4',
|
||||||
},
|
},
|
||||||
gridOptions: {
|
gridOptions: {
|
||||||
columns: useExpiredGridColumns(),
|
columns: useExpiredGridColumns(),
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
schema: useStaffGridFormSchema(),
|
schema: useStaffGridFormSchema(),
|
||||||
submitOnEnter: true,
|
submitOnEnter: true,
|
||||||
fieldMappingTime: [['updateTime', ['updateTimeStart', 'updateTimeEnd']]],
|
fieldMappingTime: [['updateTime', ['updateTimeStart', 'updateTimeEnd']]],
|
||||||
|
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-4',
|
||||||
},
|
},
|
||||||
gridOptions: {
|
gridOptions: {
|
||||||
columns: useStaffGridColumns(),
|
columns: useStaffGridColumns(),
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
schema: useProjectGridFormSchema(),
|
schema: useProjectGridFormSchema(),
|
||||||
submitOnEnter: true,
|
submitOnEnter: true,
|
||||||
fieldMappingTime: [['updateTime', ['updateTimeStart', 'updateTimeEnd']]],
|
fieldMappingTime: [['updateTime', ['updateTimeStart', 'updateTimeEnd']]],
|
||||||
|
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-4',
|
||||||
},
|
},
|
||||||
gridOptions: {
|
gridOptions: {
|
||||||
columns: useProjectGridColumns(),
|
columns: useProjectGridColumns(),
|
||||||
|
|||||||
Reference in New Issue
Block a user