Browse Source

甘特图接口联调

fujunwen 4 years ago
parent
commit
a3cc055b22
1 changed files with 15 additions and 0 deletions
  1. 15 0
      src/views/analysis/GanttChart.vue

+ 15 - 0
src/views/analysis/GanttChart.vue

@@ -150,6 +150,7 @@ export default {
         {id: 1, imgSrc: require('../../assets/imgs/analysis/report_pdf.png'), title: '2019年5月高压用具检测报告.pdf'},
         {id: 2, imgSrc: require('../../assets/imgs/analysis/report_word.png'), title: '2019年5月高压用具检测报告.docx'},
       ], // 报告
+      tableData: [], // 表数据
     }
   },
 
@@ -299,6 +300,20 @@ export default {
     showDialog(task) {
       this.showDetail = true;
       this.detailTitle = task._pdata.description;
+      this.getGanttDetailData();
+    },
+    /**
+     * 获取甘特图详情
+     */
+    getGanttDetailData() {
+      let param = {
+        plazaId: 1000664,
+        type: 1,
+        id: 1117
+      }
+      queryGanttDetail('/data/base/queryGanttChartDetails', param).then((res) => {
+        console.log('res', res)
+      })
     }
   }
 }