feat: hover-image-preview失效问题调整
This commit is contained in:
@ -53,7 +53,7 @@
|
||||
<div class="filter-row-item">
|
||||
<span class="label">时间筛选</span>
|
||||
<DatePicker.RangePicker
|
||||
v-model="data_time"
|
||||
v-model:value="data_time"
|
||||
:allowClear="false"
|
||||
format="YYYY-MM-DD"
|
||||
class="w-240px"
|
||||
@ -145,8 +145,12 @@ const onDateChange = (date) => {
|
||||
handleSearch();
|
||||
};
|
||||
|
||||
const init = () => {
|
||||
data_time.value = [dayjs().subtract(1, 'day'), dayjs().subtract(1, 'day')];
|
||||
};
|
||||
|
||||
const handleReset = () => {
|
||||
data_time.value = [];
|
||||
init();
|
||||
emits('onReset');
|
||||
};
|
||||
|
||||
@ -163,13 +167,6 @@ const getOperators = async () => {
|
||||
}
|
||||
};
|
||||
|
||||
const getYesterdayDays = () => {
|
||||
const today = new Date();
|
||||
const last7Days = new Date(today);
|
||||
last7Days.setDate(today.getDate() - 1);
|
||||
return [last7Days.toISOString().split('T')[0], today.toISOString().split('T')[0]];
|
||||
};
|
||||
|
||||
const getAccounts = async () => {
|
||||
const { code, data } = await getPlacementAccountsList();
|
||||
if (code === 200) {
|
||||
@ -178,8 +175,7 @@ const getAccounts = async () => {
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
const defaultTime = getYesterdayDays();
|
||||
data_time.value = defaultTime;
|
||||
init();
|
||||
|
||||
getGroups();
|
||||
getOperators();
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
<div class="filter-row flex mb-20px">
|
||||
<div class="filter-row-item flex items-center">
|
||||
<span class="label">时间筛选</span>
|
||||
<DatePicker.RangePicker v-model="data_time" size="medium" allowClear format="YYYY-MM-DD" class="w-310" @change="onDateChange" />
|
||||
<DatePicker.RangePicker v-model:value="data_time" size="medium" allowClear format="YYYY-MM-DD" class="w-310" @change="onDateChange" />
|
||||
</div>
|
||||
|
||||
<div class="filter-row-item flex items-center">
|
||||
|
||||
Reference in New Issue
Block a user