From 91ec3156aef91112fc3f6c608ee88ceca88d32c4 Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期一, 01 三月 2021 15:13:23 +0800
Subject: [PATCH] 朔黄时间快捷选择组件添加配置默认选项功能

---
 src/pages/shuohuangMonitorAnalyze/components/guideIndex.vue   |    2 +-
 src/pages/shuohuangMonitorAnalyze/components/timeShortcut.vue |    8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/pages/shuohuangMonitorAnalyze/components/guideIndex.vue b/src/pages/shuohuangMonitorAnalyze/components/guideIndex.vue
index 48c2ce7..10723b3 100644
--- a/src/pages/shuohuangMonitorAnalyze/components/guideIndex.vue
+++ b/src/pages/shuohuangMonitorAnalyze/components/guideIndex.vue
@@ -106,7 +106,7 @@
             <el-tab-pane label="闅愭偅浜嬩欢瓒嬪娍" name="hidDanderTrend"></el-tab-pane>
           </el-tabs>
           <div class="rt">
-            <time-shortcut @actPickerChange="timeShortChange"></time-shortcut>
+            <time-shortcut actPicker="week" @actPickerChange="timeShortChange"></time-shortcut>
             <el-date-picker
               v-model="searchHidDanderTime"
               type="datetimerange"
diff --git a/src/pages/shuohuangMonitorAnalyze/components/timeShortcut.vue b/src/pages/shuohuangMonitorAnalyze/components/timeShortcut.vue
index cabb2cd..9d3c697 100644
--- a/src/pages/shuohuangMonitorAnalyze/components/timeShortcut.vue
+++ b/src/pages/shuohuangMonitorAnalyze/components/timeShortcut.vue
@@ -13,7 +13,13 @@
 export default {
   data () {
     return {
-      actPicker: 'today',
+      //actPicker: 'today',
+    }
+  },
+  props: {
+    actPicker:{
+      type: String,
+      default: 'today'  //鐜版彁渚涘彲閫夊弬鏁颁负锛歵oday week month year
     }
   },
   watch: {

--
Gitblit v1.8.0