Skip to content

Commit ae2a3fd

Browse files
committed
Java:CVAuto 新增一键下载测试报告
1 parent f54c85b commit ae2a3fd

File tree

1 file changed

+8
-0
lines changed
  • APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/cv/js

1 file changed

+8
-0
lines changed

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/cv/js/main.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2145,6 +2145,11 @@ https://github.com/Tencent/APIJSON/issues
21452145
if (this.isTestCaseShow) { //文档
21462146
this.exTxt.name = 'APIJSON自动化文档 ' + this.formatDateTime()
21472147
}
2148+
2149+
else if (this.isRandomShow && this.isRandomListShow) {
2150+
this.exTxt.name = 'CVAuto_report_' + (this.reportId || 0) + '.xlsx'
2151+
window.open(this.server + '/download/cv/report/' + (this.reportId || 0))
2152+
}
21482153
else if (this.view == 'markdown' || this.view == 'output') {
21492154
var suffix
21502155
switch (this.language) {
@@ -2940,6 +2945,9 @@ https://github.com/Tencent/APIJSON/issues
29402945
+ '\n\n\n\n\n\n\n\n## 文档(Markdown格式,可用工具预览) \n\n' + doc
29412946
, this.exTxt.name + '.txt')
29422947
}
2948+
else if (this.isRandomShow && this.isRandomListShow) {
2949+
window.open(this.server + '/download/cv/report/' + (this.reportId || 0))
2950+
}
29432951
else if (this.view == 'markdown' || this.view == 'output') { //model
29442952
var clazz = StringUtil.trim(this.exTxt.name)
29452953

0 commit comments

Comments
 (0)