| | |
| | | this.taskList = res.data |
| | | }, |
| | | getStroke() { |
| | | //console.log('getStroke:',this.progress.start,",",this.progress.speed) |
| | | if (this.percentage < 100) { |
| | | //console.log('getStroke2') |
| | | this.$http.get(`/taskReliability/SimulatAssess/getCalcProgress?taskId=${this.dataForm.id}`).then( |
| | | res => { |
| | | // console.log(res.data, 'res.data') |
| | | if (res.data) { |
| | | this.percentage = parseFloat(res.data) |
| | | } |
| | |
| | | this.dataForm.id = result.data |
| | | let res = await this.$http.post('/taskReliability/SimulatAssess/analyze', this.dataForm) |
| | | if (res.success) { |
| | | this.timers = window.setInterval(this.getStroke, 1000) |
| | | // let chkResult = res.data |
| | | // console.log(chkResult) |
| | | // if (chkResult.length == 0) { |
| | | this.timers = window.setInterval(this.getStroke, 1000) |
| | | // } |
| | | } |
| | | } |
| | | } |