zhaoke před 1 rokem
rodič
revize
f6a67b56d5

+ 7 - 1
public/config.js

@@ -127,6 +127,9 @@ var NEW_DATACONTENT_ID = [
   52231,
   52232,
   52233,
+  52234,
+  52235,
+  52236,
   51063
 ]
 
@@ -458,7 +461,10 @@ var DATACONTENT_ID = {
   dimensionGnArrival: 52230, //数据异常统计-部门维度统计-国内进港
   dimensionGjDeparture: 52231, //数据异常统计-部门维度统计-国际离港
   dimensionGjArrival: 52232, //数据异常统计-部门维度统计-国际进港
-  detailNode: 52233, //数据异常统计-节点明细统计
+  detailGnDeparture: 52233, //数据异常统计-节点明细统计-国内离港
+  detailGnArrival: 52234, //数据异常统计-节点明细统计-国内进港
+  detailGjDeparture: 52235, //数据异常统计-节点明细统计-国际离港
+  detailGjArrival: 52236, //数据异常统计-节点明细统计-国际进港
 }
 
 var SERVICE_ID = {

+ 47 - 3
src/views/statisticalanalysis/dataException/views/detail.vue

@@ -74,6 +74,31 @@ export default {
         },
       ],
       formItems: [
+        {
+          prop: "fttpId",
+          inputType: "select",
+          placeholder: "国内国际",
+          requiredWarning: "请先选择国内国际",
+          clearable: true,
+          options: [
+            {
+              value: DATACONTENT_ID.detailGnDeparture,
+              label: "国内出港",
+            },
+            {
+              value: DATACONTENT_ID.detailGjDeparture,
+              label: "国际出港",
+            },
+            {
+              value: DATACONTENT_ID.detailGnArrival,
+              label: "国内进港",
+            },
+            {
+              value: DATACONTENT_ID.detailGjArrival,
+              label: "国际进港",
+            },
+          ],
+        },
         {
           prop: "fttp",
           inputType: "select",
@@ -198,20 +223,39 @@ export default {
         fd1: data.dateTime,
         fd2: data.dateTime
       }]
-      this.getQuery(option, null);
+      this.getQuery(data.fttpId, option, null);
+      let typeName = null
+      switch (data.fttpId) {
+        case 52233:
+          typeName = '国内出港'
+          break;
+        case 52234:
+          typeName = '国内进港'
+          break;
+        case 52235:
+          typeName = '国际出港'
+          break;
+        case 52236:
+          typeName = '国际进港'
+          break;
+        default:
+          typeName = '国内出港'
+          break;
+      }
       this.listname =
         "节点明细统计" + '-' +
+        typeName + '-' +
         data.fttp + '-' +
         data.flighttype + '-' +
         data.dateTime;
       this.listHeader = ["序号", "时间", "航班(班)", "环比(%)"];
     },
     //获取表格数据
-    async getQuery (data, dat) {
+    async getQuery (id, data, dat) {
       this.loading = true
       try {
         const { code, returnData } = await Query({
-          id: DATACONTENT_ID.detailNode,
+          id: id,
           dataContent: data,
         });
         if (code == 0) {