qinzhipeng_v 5 years ago
parent
commit
48a724d54b
1 changed files with 31 additions and 3 deletions
  1. 31 3
      src/views/projectManage/taskList/taskViewDetails.vue

+ 31 - 3
src/views/projectManage/taskList/taskViewDetails.vue

@@ -203,7 +203,9 @@
             <el-tab-pane label="提测报告">
               <el-table :data="launchTestInfoDOS" size="small" :header-cell-style="{ background: '#E9E9E9', color: '#333B4A' }" show-overflow-tooltip="true">
                 <el-table-column label="标题名称" min-width="100" align="center">
-                  <template slot-scope="scope">{{ scope.row.name }}</template>
+                  <template slot-scope="scope">
+                    <a href="javascript:void(0)" style="color:#20a0ff" @click="toReportView(scope.row, 2)">{{ scope.row.name }}</a>
+                  </template>
                 </el-table-column>
                 <el-table-column label="状态" min-width="100" align="center">
                   <template slot-scope="scope">{{ scope.row.statusString }}</template>
@@ -237,7 +239,9 @@
             <el-tab-pane label="测试报告">
               <el-table :data="dailyTestReports" size="small" :header-cell-style="{ background: '#E9E9E9', color: '#333B4A' }" show-overflow-tooltip="true">
                 <el-table-column label="标题名称" min-width="100" align="center">
-                  <template slot-scope="scope">{{ scope.row.reportName }}</template>
+                  <template slot-scope="scope">
+                    <a href="javascript:void(0)" style="color:#20a0ff" @click="toReportView(scope.row, 0)">{{ scope.row.reportName }}</a>
+                  </template>
                 </el-table-column>
                 <el-table-column label="状态" min-width="100" align="center">
                   <template slot-scope="scope">{{ scope.row.statusString }}</template>
@@ -256,7 +260,9 @@
             <el-tab-pane label="准出报告">
               <el-table :data="projectTestReportDOS" size="small" :header-cell-style="{ background: '#E9E9E9', color: '#333B4A' }" show-overflow-tooltip="true">
                 <el-table-column label="标题名称" min-width="100" align="center">
-                  <template slot-scope="scope">{{ scope.row.reportName }}</template>
+                  <template slot-scope="scope">
+                    <a href="javascript:void(0)" style="color:#20a0ff" @click="toReportView(scope.row, 1)">{{ scope.row.reportName }}</a>
+                  </template>
                 </el-table-column>
                 <el-table-column label="状态" min-width="100" align="center">
                   <template slot-scope="scope">{{ scope.row.reportStatusString }}</template>
@@ -552,6 +558,28 @@ export default {
           break
       }
     },
+    toReportView(ele, index) {
+      switch (index) {
+        case 0:
+          this.dialogDaily = true
+          this.$nextTick(() => {
+            this.$refs.DailyReport.init(3, ele)
+          })
+          break
+        case 1:
+          this.dialogClient = true
+          this.$nextTick(() => {
+            this.$refs.ClientReport.init(3, ele)
+          })
+          break
+        case 2:
+          this.dialogVisible1 = true
+          this.$nextTick(() => {
+            this.$refs.TestReport.init(3, ele)
+          })
+          break
+      }
+    },
     click_bugName(id) {
       this.bugId = id
       this.initCount++