|
@@ -256,6 +256,8 @@
|
|
range-separator="-"
|
|
range-separator="-"
|
|
start-placeholder="开始日期"
|
|
start-placeholder="开始日期"
|
|
end-placeholder="结束日期"
|
|
end-placeholder="结束日期"
|
|
|
|
+ :disabled-date="disabledDate"
|
|
|
|
+ @change="handleHlQueryParams"
|
|
>
|
|
>
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
<div
|
|
<div
|
|
@@ -706,6 +708,13 @@ const pageInit = async () => {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
}
|
|
}
|
|
|
|
+const handleHlQueryParams = (data: any) => {
|
|
|
|
+ const dates = {
|
|
|
|
+ start: data[0],
|
|
|
|
+ end: data[1]
|
|
|
|
+ }
|
|
|
|
+ handleDateRangeChange(dates)
|
|
|
|
+}
|
|
const handleDateRangeChange = (dates: { start: any; end: any }) => {
|
|
const handleDateRangeChange = (dates: { start: any; end: any }) => {
|
|
let { start, end } = dates;
|
|
let { start, end } = dates;
|
|
start = moment(start).format("YYYY-MM-DD");
|
|
start = moment(start).format("YYYY-MM-DD");
|