|
@@ -54,6 +54,8 @@
|
|
|
import { listRoomsApi } from '/@/api/scene/list';
|
|
|
import { formatToDate } from '/@/utils/dateUtil';
|
|
|
import dayjs from 'dayjs';
|
|
|
+ import 'dayjs/locale/zh-cn';
|
|
|
+ import locale from 'ant-design-vue/es/date-picker/locale/zh_CN';
|
|
|
|
|
|
const today = formatToDate(dayjs(new Date()));
|
|
|
const priorDate = formatToDate(dayjs(new Date().setDate(new Date().getDate() - 30)));
|
|
@@ -120,12 +122,14 @@
|
|
|
field: 'time',
|
|
|
label: '时间段',
|
|
|
component: 'RangePicker',
|
|
|
- defaultValue: [priorDate, today],
|
|
|
+ // defaultValue: [priorDate, today],
|
|
|
colProps: {
|
|
|
xl: 16,
|
|
|
xxl: 16,
|
|
|
},
|
|
|
componentProps: {
|
|
|
+ // mode: 'date',
|
|
|
+ locale: locale,
|
|
|
disabledDate(current) {
|
|
|
// console.log('current', current, date);
|
|
|
return current && current > dayjs().endOf('day');
|