|
@@ -256,6 +256,8 @@
|
|
|
range-separator="-"
|
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
|
+ :disabled-date="disabledDate"
|
|
|
+ @change="handleHlQueryParams"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
<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 }) => {
|
|
|
let { start, end } = dates;
|
|
|
start = moment(start).format("YYYY-MM-DD");
|