commit
Showing
1 changed file
with
27 additions
and
1 deletions
| 1 | <template xmlns:el-col="http://www.w3.org/1999/html"> | 1 | <template xmlns:el-col="http://www.w3.org/1999/html"> |
| 2 | <div> | 2 | <div> |
| 3 | <br/> | 3 | <br/> |
| 4 | <span>查询接口测试用例验证结果</span> | 4 | <span>接口请求参数测试次数</span> |
| 5 | <el-table | ||
| 6 | :data="baseReports" | ||
| 7 | border | ||
| 8 | style="width: 100%" | ||
| 9 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> | ||
| 10 | <el-table-column | ||
| 11 | prop="method" | ||
| 12 | label="接口名称" | ||
| 13 | min-width="3"> | ||
| 14 | </el-table-column> | ||
| 15 | <el-table-column | ||
| 16 | prop="tcDescribe" | ||
| 17 | label="请求参数" | ||
| 18 | min-width="5"> | ||
| 19 | </el-table-column> | ||
| 20 | <el-table-column | ||
| 21 | prop="tcSuccess" | ||
| 22 | label="测试次数" | ||
| 23 | min-width="1"> | ||
| 24 | </el-table-column> | ||
| 25 | </el-table> | ||
| 26 | <br/> | ||
| 27 | <br/> | ||
| 28 | <span>测试用例验证结果</span> | ||
| 5 | <el-table | 29 | <el-table |
| 6 | :data="bigdataReports" | 30 | :data="bigdataReports" |
| 7 | border | 31 | border |
| ... | @@ -44,6 +68,7 @@ | ... | @@ -44,6 +68,7 @@ |
| 44 | data() { | 68 | data() { |
| 45 | return { | 69 | return { |
| 46 | project: this.$route.query.project, | 70 | project: this.$route.query.project, |
| 71 | baseReports: [], | ||
| 47 | bigdataReports: [] | 72 | bigdataReports: [] |
| 48 | } | 73 | } |
| 49 | }, | 74 | }, |
| ... | @@ -76,6 +101,7 @@ | ... | @@ -76,6 +101,7 @@ |
| 76 | project: this.project | 101 | project: this.project |
| 77 | }),config).then((res)=>{ | 102 | }),config).then((res)=>{ |
| 78 | console.log(res.data) | 103 | console.log(res.data) |
| 104 | this.baseReports=res.data.baseReports | ||
| 79 | this.bigdataReports=res.data.bigdataReports | 105 | this.bigdataReports=res.data.bigdataReports |
| 80 | loading.close(); | 106 | loading.close(); |
| 81 | }).catch(error=>{ | 107 | }).catch(error=>{ | ... | ... |
-
Please register or sign in to post a comment