zhaoke 1 년 전
부모
커밋
2599d0a0cd

+ 1 - 1
src/views/statisticsCharts/views/airlineCompany/baggagePassengerStatisticsCharts.vue

@@ -14,7 +14,7 @@ export default {
       },
       formData: {
         air_line: null,
-        iata_code: '',
+        iata_code: null,
         dateTime: [],
         timedim: '',
       },

+ 4 - 9
src/views/statisticsCharts/views/airlineCompany/baggageStatisticsCharts.vue

@@ -1,10 +1,5 @@
 <template>
-  <CommonBarStatisticsCharts
-    charts-title="航司行李量"
-    :query-settings="querySettings"
-    :formItems="formItems"
-    :formData="formData"
-  />
+  <CommonBarStatisticsCharts charts-title="航司行李量" :query-settings="querySettings" :formItems="formItems" :formData="formData" />
 </template>
 
 <script>
@@ -12,19 +7,19 @@ import CommonBarStatisticsCharts from '../../components/commonBarStatisticsChart
 export default {
   name: 'BaggageStatisticsCharts',
   components: { CommonBarStatisticsCharts },
-  data() {
+  data () {
     return {
       querySettings: {
         serviceId: SERVICE_ID.LuggagecId
       },
       formData: {
         air_line: null,
-        iata_code: '',
+        iata_code: null,
         dateTime: [],
         timedim: '',
       },
       formItems: [
-      {
+        {
           prop: 'iata_code',
           inputType: 'select',
           placeholder: '航司',

+ 3 - 2
src/views/statisticsCharts/views/nodeStatisticsCharts.vue

@@ -457,8 +457,8 @@ export default {
           dataContent: params,
         })
         if (Number(res.code) === 0) {
-          if (res.returnData.listValues.length) {
-            const list = Object.entries(res.returnData.listValues[0])
+          if (res.returnData.length) {
+            const list = Object.entries(res.returnData[0])
             const max = Math.max(...list.map(element => element[1]))
             this.indicator.forEach(node => {
               node.max = max
@@ -488,6 +488,7 @@ export default {
           this.$message.error(res.message || '失败')
         }
       } catch (error) {
+        console.log(error)
         this.$message.error('失败')
       }
     },