Commit 1ee56d50d871ed0adb2d3b39600653945e34bb23
Merge remote-tracking branch 'origin/wvp-28181-2.0' into wvp-28181-2.0
Showing
1 changed file
with
5 additions
and
1 deletions
web_src/src/components/dialog/recordDownload.vue
| ... | ... | @@ -89,7 +89,7 @@ export default { |
| 89 | 89 | if (parseFloat(res.data.progress) == 1) { |
| 90 | 90 | this.percentage = 100; |
| 91 | 91 | }else { |
| 92 | - this.percentage = (res.data.progress*100).toFixed(1); | |
| 92 | + this.percentage = (res.data.data.progress*100).toFixed(1); | |
| 93 | 93 | } |
| 94 | 94 | if (callback)callback(); |
| 95 | 95 | } |
| ... | ... | @@ -175,6 +175,10 @@ export default { |
| 175 | 175 | }).then((res) => { |
| 176 | 176 | console.log(res) |
| 177 | 177 | if (res.data.code === 0) { |
| 178 | + if (res.data.data.length === 0){ | |
| 179 | + this.percentage = 0 | |
| 180 | + return | |
| 181 | + } | |
| 178 | 182 | this.percentage = parseFloat(res.data.data.percentage)*100 |
| 179 | 183 | if (res.data.data[0].percentage === '1') { |
| 180 | 184 | this.getProgressForFileRun = false; | ... | ... |