commit
Showing
2 changed files
with
19 additions
and
0 deletions
| ... | @@ -5,6 +5,7 @@ | ... | @@ -5,6 +5,7 @@ |
| 5 | <el-table | 5 | <el-table |
| 6 | :data="bizDataCounts" | 6 | :data="bizDataCounts" |
| 7 | border | 7 | border |
| 8 | @row-click="myRowClick" | ||
| 8 | style="width: 100%" | 9 | style="width: 100%" |
| 9 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> | 10 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> |
| 10 | <el-table-column | 11 | <el-table-column |
| ... | @@ -71,6 +72,15 @@ | ... | @@ -71,6 +72,15 @@ |
| 71 | type: 'error' | 72 | type: 'error' |
| 72 | }); | 73 | }); |
| 73 | }) | 74 | }) |
| 75 | }, | ||
| 76 | myRowClick(row, column, event) { | ||
| 77 | const {href} = this.$router.resolve({ name:'bizDataResponse', query: | ||
| 78 | { name: this.name, | ||
| 79 | bizdata: row.bizData, | ||
| 80 | beginDate: this.beginDate, | ||
| 81 | endDate: this.endDate, | ||
| 82 | type: this.type}}) | ||
| 83 | window.open(href, '_blank') | ||
| 74 | } | 84 | } |
| 75 | } | 85 | } |
| 76 | } | 86 | } | ... | ... |
| ... | @@ -5,6 +5,7 @@ | ... | @@ -5,6 +5,7 @@ |
| 5 | <el-table | 5 | <el-table |
| 6 | :data="methodCounts" | 6 | :data="methodCounts" |
| 7 | border | 7 | border |
| 8 | @row-click="myRowClick" | ||
| 8 | style="width: 100%" | 9 | style="width: 100%" |
| 9 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> | 10 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> |
| 10 | <el-table-column | 11 | <el-table-column |
| ... | @@ -69,6 +70,14 @@ | ... | @@ -69,6 +70,14 @@ |
| 69 | type: 'error' | 70 | type: 'error' |
| 70 | }); | 71 | }); |
| 71 | }) | 72 | }) |
| 73 | }, | ||
| 74 | myRowClick(row, column, event) { | ||
| 75 | const {href} = this.$router.resolve({ name:'bizDataCount', query: | ||
| 76 | { name: row.method, | ||
| 77 | beginDate: this.beginDate, | ||
| 78 | endDate: this.endDate, | ||
| 79 | type: this.type}}) | ||
| 80 | window.open(href, '_blank') | ||
| 72 | } | 81 | } |
| 73 | } | 82 | } |
| 74 | } | 83 | } | ... | ... |
-
Please register or sign in to post a comment