bls-dan 2 years ago
parent
commit
9a0577f9e7

+ 3 - 3
src/pages/views/home/components/LineAnalysis.vue

@@ -166,12 +166,12 @@ import Box from '@/components/box.vue'
 import Echart from '@/components/chart.vue'
 import SelectDate from '@/components/selectDate.vue'
 
-import { ref, watch } from 'vue'
+import { Ref, ref, watch } from 'vue'
 import { graphic } from 'echarts'
 import LineAnalysisService from '../services/lineAnalysis.service'
 import { format, subDays } from 'date-fns'
 
-const leftContent = ref({
+const leftContent:Ref<any> = ref({
   tCharts: [
     {
       name: '线路类型',
@@ -355,7 +355,7 @@ const leftContent = ref({
     }
   ]
 })
-const rightContent = ref({
+const rightContent:Ref<any> = ref({
   tCharts: [
     {
       name: '线路长度分布',

+ 1 - 0
src/pages/views/home/components/MaintenanceDynamics.vue

@@ -50,6 +50,7 @@
         <n-date-picker
           v-model:value="leftContent.bottom.range"
           type="daterange"
+          :bordered="false"
           style="width: 260px;"
         />
 

+ 1 - 1
src/pages/views/home/index.vue

@@ -329,7 +329,7 @@ const menus = [
     }
   }
 ]
-const active = ref(6)
+const active = ref(0)
 const currentComponent = ref(menus[active.value].component)
 const weather = computed(() => store.weather)
 const warningMsg = ref({