|
@@ -121,6 +121,11 @@ export default {
|
|
predictDetail({ sn: this.$route.params.sn }).then(res => {
|
|
predictDetail({ sn: this.$route.params.sn }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.detailData = res.data
|
|
this.detailData = res.data
|
|
|
|
+ if (res.data.state == 'RUN') {
|
|
|
|
+ this.current = 2
|
|
|
|
+ } else {
|
|
|
|
+ this.current = 0
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
this.detailData = null
|
|
this.detailData = null
|
|
}
|
|
}
|