Browse Source

历史工况记录优化

zhangchuang 3 months ago
parent
commit
b52aacab59
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/views/HealthStatusAnalysis/mock.vue

+ 9 - 0
src/views/HealthStatusAnalysis/mock.vue

@@ -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");