|
@@ -26,6 +26,7 @@
|
|
|
start-placeholder="开始日期"
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
end-placeholder="结束日期"
|
|
|
:shortcuts="shortcuts"
|
|
:shortcuts="shortcuts"
|
|
|
|
|
+ :default-time="[new Date().setHours(0, 0, 0, 0), new Date().setHours(23, 59, 59, 999)]"
|
|
|
style="max-width: 299px"
|
|
style="max-width: 299px"
|
|
|
></el-date-picker>
|
|
></el-date-picker>
|
|
|
<el-button @click="onSearch" type="primary" style="width: 65px; height: 32px; margin-left: 16px"
|
|
<el-button @click="onSearch" type="primary" style="width: 65px; height: 32px; margin-left: 16px"
|
|
@@ -112,21 +113,22 @@
|
|
|
{
|
|
{
|
|
|
text: '今天',
|
|
text: '今天',
|
|
|
value: () => {
|
|
value: () => {
|
|
|
- return [new Date().setHours(0, 0, 0, 0), new Date()];
|
|
|
|
|
|
|
+ return [new Date().setHours(0, 0, 0, 0), new Date().setHours(23, 59, 59, 999)];
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
text: '本月',
|
|
text: '本月',
|
|
|
value: () => {
|
|
value: () => {
|
|
|
- const start = new Date();
|
|
|
|
|
- start.setTime(start.getTime() - 3600 * 1000 * 24 * (start.getDate() - 1));
|
|
|
|
|
|
|
+ const start = new Date(
|
|
|
|
|
+ new Date().getTime() - 3600 * 1000 * 24 * (new Date().getDate() - 1),
|
|
|
|
|
+ ).setHours(0, 0, 0, 0);
|
|
|
return [start, new Date()];
|
|
return [start, new Date()];
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
text: '累计',
|
|
text: '累计',
|
|
|
value: () => {
|
|
value: () => {
|
|
|
- return [new Date(2000, 1, 1, 0, 0, 0), new Date()];
|
|
|
|
|
|
|
+ return [new Date(2000, 1, 1, 0, 0, 0, 0), new Date()];
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
];
|
|
];
|
|
@@ -143,4 +145,16 @@
|
|
|
justify-content: flex-start;
|
|
justify-content: flex-start;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
}
|
|
}
|
|
|
|
|
+ .el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after {
|
|
|
|
|
+ left: 5px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .el-select-dropdown__item.is-selected {
|
|
|
|
|
+ font-weight: inherit;
|
|
|
|
|
+ }
|
|
|
|
|
+ :deep(.el-checkbox__label) {
|
|
|
|
|
+ padding-left: 2px;
|
|
|
|
|
+ }
|
|
|
|
|
+ :deep(.el-checkbox__input) {
|
|
|
|
|
+ margin-left: 4px;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|