zhongxiaoyu 2 жил өмнө
parent
commit
f57a6f2f2c

+ 1 - 1
src/views/baggageManagement/components/baggage/index.vue

@@ -796,7 +796,7 @@ export default {
                 (item['DeviceCode'] && item['DeviceCode'].toUpperCase() === 'STARHUB') ||
                 (!item['DeviceCode'] && !['LOAD', 'INFL'].includes(item['nodeCode']))
               ) {
-                item['dataSource'] = 'Manual Load'
+                item['dataSource'] = '星盟'
               } else {
                 item['dataSource'] = 'BRS'
               }

+ 3 - 0
src/views/statisticsCharts/components/statisticsHeader.vue

@@ -339,6 +339,9 @@ export default {
       if (item.queryId && item.setKey) {
         this.getOptions(item.queryId, item.setKey, item.prop)
       }
+      if (item.defaultOption) {
+        this.formData[item.prop] = item.defaultOption
+      }
     })
   },
   methods: {

+ 63 - 0
src/views/statisticsCharts/mixins/pieForm.js

@@ -0,0 +1,63 @@
+export default {
+  data() {
+    return {
+      customFormItems: [
+        {
+          itemIndex: 0,
+          replaceNum: 1,
+          prop: 'range',
+          inputType: 'select',
+          placeholder: '统计范围',
+          requiredWarning: '请先选择统计范围',
+          options: [
+            {
+              value: '全部',
+              label: '全部'
+            },
+            {
+              value: '航线',
+              label: '航线'
+            }
+          ],
+          changeHandler(value) {
+            this.formData.inOrOut = ''
+            this.formData.airline = ''
+            const airlineItem = this.formItems.find(item => item.prop === 'airline')
+            airlineItem && (airlineItem.disabled = true)
+            switch (value) {
+              case '航线':
+                airlineItem && (airlineItem.disabled = false)
+                break
+              default:
+                break
+            }
+          }
+        },
+        {
+          itemIndex: 2,
+          replaceNum: 1,
+          prop: 'interval',
+          inputType: 'select',
+          placeholder: '时间维度',
+          requiredWarning: '请先选择统计时间维度',
+          disabled: true,
+          defaultOption: '日',
+          options: [
+            {
+              value: '日',
+              label: '按日统计'
+            }
+          ]
+        },
+        {
+          itemIndex: 5,
+          replaceNum: 3
+        },
+        {
+          itemIndex: 1,
+          replaceNum: 1
+        }
+      ]
+    }
+  }
+}

+ 2 - 2
src/views/statisticsCharts/views/special/compensationClassificationStatisticsCharts.vue

@@ -10,12 +10,12 @@
 
 <script>
 import CommonPieStatisticsCharts from '../../components/commonPieStatisticsCharts.vue'
-import noTerminal from '../../mixins/noTerminal'
+import pieForm from '../../mixins/pieForm'
 
 export default {
   name: 'CompensationClassificationStatisticsCharts',
   components: { CommonPieStatisticsCharts },
-  mixins: [noTerminal],
+  mixins: [pieForm],
 
   data() {
     return {