Эх сурвалжийг харах

fix: 菜单样式;故障统计默认地区

Gaokun Wang 22 цаг өмнө
parent
commit
e3e9ec7103

+ 3 - 3
src/layout/components/NavBar/index.scss

@@ -115,7 +115,7 @@
     .el-menu--horizontal > .el-submenu .el-submenu__title,
     .el-menu--horizontal > .el-menu-item {
       height: 50px;
-      width: 130px;
+      width: 110px;
       line-height: 50px;
       text-align: center;
       overflow: hidden;
@@ -384,7 +384,7 @@
   display: flex;
   justify-content: center;
   align-items: center;
-  width: 130px;
+  width: 110px;
   height: 50px;
   line-height: 50px;
   font-size: 1.2rem !important;
@@ -396,7 +396,7 @@
   display: flex;
   justify-content: center;
   align-items: center;
-  width: 130px;
+  width: 110px;
   height: 50px;
   line-height: 50px;
   color: #fff;

+ 5 - 1
src/views/als/faultCase/index.vue

@@ -311,8 +311,12 @@ export default {
       const { keyWord } = this
       const { pageSize, pageIndex } = this.tableRequset
       const {
-        data: { list, total }
+        data: { list, total },
+        code
       } = await getFaultCase({ pageSize, pageNum: pageIndex, ...params })
+      if (code == 200) {
+        console.log('sdsds')
+      }
       this.tableData = list
       this.tableRequset.total = total
     },

+ 6 - 1
src/views/als/faultStatistics/echarts.vue

@@ -65,6 +65,8 @@ import { getFaultStatisticsListAll, getAircaftTypeAndModelTree, removeFaultStati
 import { debounce } from '@/utils/index'
 import * as echarts from 'echarts'
 import CardEcharts from '@/components/CardEcharts/index.vue'
+import { getAircaftType } from '@/api/basicData/dataSpecies'
+
 export default {
   name: 'FaultStatistics',
   components: { CardEcharts },
@@ -193,7 +195,7 @@ export default {
       this.debounceFn()
     }
   },
-  created() {
+  async created() {
     let now = new Date()
     let year = now.getFullYear()
     let month = ('0' + (now.getMonth() + 1)).slice(-2)
@@ -207,12 +209,15 @@ export default {
     const formattedTimeStart = year + '-' + month + '-' + day
 
     this.statisticsDate = [formattedTimeStart, formattedTimeEnd]
+    const { data: atrData } = await getAircaftType()
+    this.select.groups = atrData[0].aircaftTypeName
   },
   mounted() {
     if (this.statisticsDate != null) {
       this.select.startStatisticsDate = this.statisticsDate[0]
       this.select.endStatisticsDate = this.statisticsDate[1]
     }
+
     this.getFaultStatisticsAPI(this.select)
   },
   methods: {

+ 2 - 0
src/views/als/faultStatistics/index.vue

@@ -373,6 +373,7 @@
 import { getSync, getFaultStatistics, getFaultStatisticsListAll, getAircaftTypeAndModelTree, addFaultStatistics, updateFaultStatistics, removeFaultStatistics, downLoadFaultStatistics, exportFaultStatisticsExcel } from '@/api/als/faultStatistics'
 import { deepClone, debounce } from '@/utils/index'
 import ImportDialog from './importDialog/index.vue'
+
 import EchartsVue from './echarts.vue'
 export default {
   name: 'FaultStatistics',
@@ -790,6 +791,7 @@ export default {
       if (params.distinctField == 'aircraft_num') {
         params.aircraftModel = this.select.aircraftModel
       }
+
       const { data } = await getFaultStatisticsListAll({ ...params })
       if (params.distinctField == 'groups') {
         this.groupsList = data

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

@@ -53,7 +53,7 @@
           </el-col>
         </el-row>
       </el-tab-pane>
-      <el-tab-pane label="航材面板" lazy="true" name="2">
+      <el-tab-pane label="航材面板" :lazy="true" name="2">
         <el-row>
           <el-col :span="12" style="margin-bottom: 15px">
             <Card title="历年任务">