|
@@ -122,9 +122,11 @@ export default {
|
|
|
},
|
|
|
// 详情
|
|
|
getDetail () {
|
|
|
+ this.spinning = true
|
|
|
predictDetail({ sn: this.$route.params.sn }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.detailData = res.data
|
|
|
+ this.form.stockPredictRange = res.data.stockPredictRange != undefined ? Number(res.data.stockPredictRange) : 1
|
|
|
if (res.data.state == 'RUN') {
|
|
|
this.current = 2
|
|
|
} else {
|
|
@@ -133,6 +135,8 @@ export default {
|
|
|
} else {
|
|
|
this.detailData = null
|
|
|
}
|
|
|
+ this.getTrendSn()
|
|
|
+ this.spinning = false
|
|
|
})
|
|
|
},
|
|
|
// 产品范围 ok
|
|
@@ -238,8 +242,6 @@ export default {
|
|
|
}
|
|
|
this.$refs.ruleForm.resetFields()
|
|
|
this.getDetail()
|
|
|
- this.getTrendSn()
|
|
|
- this.current = 0
|
|
|
|
|
|
const _this = this
|
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|