Browse Source

系统日历搜索

master
zhang_li 1 year ago
parent
commit
0b3d4e1880
  1. 1
      src/components/Search/src/Search.vue
  2. 17
      src/views/wms/basicDataManage/systemSetting/systemcalendar/systemcalendar.data.ts

1
src/components/Search/src/Search.vue

@ -78,6 +78,7 @@ const search = async () => {
if (isValid) { if (isValid) {
const { getFormData } = methods const { getFormData } = methods
const model = await getFormData() const model = await getFormData()
console.log(model)
emit('search', model) emit('search', model)
} }
}) })

17
src/views/wms/basicDataManage/systemSetting/systemcalendar/systemcalendar.data.ts

@ -38,6 +38,15 @@ export const Systemcalendar = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
isSearch: true, isSearch: true,
search: {
show: true,
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
// defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
}
}, },
{ {
label: '结束时间', label: '结束时间',
@ -61,6 +70,14 @@ export const Systemcalendar = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
isSearch: true, isSearch: true,
search: {
show: true,
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
}
}
}, },
{ {
label: '是否可用', label: '是否可用',

Loading…
Cancel
Save