|
@@ -136,7 +136,7 @@ import {
|
|
|
modelListAll,
|
|
|
} from '@/api/manage/data'
|
|
|
export default {
|
|
|
- name: 'faultDiagnosis',
|
|
|
+ name: 'faultPrediction',
|
|
|
components: {},
|
|
|
dicts: ['data_type'],
|
|
|
data() {
|
|
@@ -215,20 +215,11 @@ export default {
|
|
|
selectSortieParams: [],
|
|
|
modelId: null,
|
|
|
batchNo: '',
|
|
|
- // 虚警抑制结果的按钮
|
|
|
- FABtnText:'下一步',
|
|
|
- showFlag:''
|
|
|
+ showFlag:'',
|
|
|
+ faultPredictionResult:[]
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
- checkList: {
|
|
|
- handler(newValue, oldValue) {
|
|
|
- if (newValue.length===0) {
|
|
|
- this.FABtnText = '完成'
|
|
|
- }
|
|
|
- },
|
|
|
- deep: true,
|
|
|
- }
|
|
|
},
|
|
|
created() {
|
|
|
this.getList()
|
|
@@ -326,7 +317,7 @@ export default {
|
|
|
} else {
|
|
|
this.dialogResult = false
|
|
|
this.checkList = this.checkList.map(str => parseInt(str, 10));
|
|
|
- this.faultPredictionBegin()
|
|
|
+ // this.faultPredictionBegin()
|
|
|
}
|
|
|
},
|
|
|
modelSelectHandel(val) {
|
|
@@ -358,26 +349,25 @@ export default {
|
|
|
modelId: this.modelId,
|
|
|
sortieNo: this.form.sortieNumber,
|
|
|
batchNo: this.batchNo,
|
|
|
- // dataType: this.radio,
|
|
|
dataType: this.checkList[0],
|
|
|
dataId: this.selectSortieId,
|
|
|
dataParams: this.selectSortieParams,
|
|
|
}
|
|
|
console.log('data', data)
|
|
|
- if (!this.timer) {
|
|
|
- this.timer = setInterval(() => {
|
|
|
- this.percentageVal += 1
|
|
|
- if (this.percentageVal == 100) {
|
|
|
- this.percentageVal=50
|
|
|
- clearInterval(this.timer)
|
|
|
- this.timer = null
|
|
|
- this.dialogProgress = false
|
|
|
- this.dialogResult = true
|
|
|
- this.title = '故障预测结果'
|
|
|
- this.selectModelVal===''
|
|
|
- }
|
|
|
- }, 50)
|
|
|
- }
|
|
|
+ beginModel(data).then(response => {
|
|
|
+ if(response.code===200){
|
|
|
+ console.log("response",response);
|
|
|
+ this.faultPredictionResult = JSON.parse(response.data)
|
|
|
+
|
|
|
+ this.$message.success("执行成功")
|
|
|
+ this.dialogProgress = false
|
|
|
+ this.dialogResult = true
|
|
|
+ this.title = '故障预测结果'
|
|
|
+ this.selectModelVal===''
|
|
|
+ }else{
|
|
|
+ this.$message.error(response.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
// 上报
|
|
|
reportHandel(){
|