|
@@ -120,13 +120,12 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 虚警抑制清单 -->
|
|
|
- <el-dialog :title="title" :visible.sync="dialogResult" width="800" :close-on-click-modal="false"
|
|
|
- append-to-body>
|
|
|
- <falseAlarmResult v-if="showFlag=='3'"/>
|
|
|
- <groundDiagnosisResult v-if="showFlag=='4'"/>
|
|
|
- <deepIsolationResult v-if="showFlag=='5'"/>
|
|
|
+ <el-dialog :title="title" :visible.sync="dialogResult" width="800" :close-on-click-modal="false" append-to-body>
|
|
|
+ <falseAlarmResult v-if="showFlag=='3'" :resultList='falseAlarmResultList' :parameterData='parameterData'/>
|
|
|
+ <groundDiagnosisResult v-if="showFlag=='4'" />
|
|
|
+ <deepIsolationResult v-if="showFlag=='5'" />
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="falseAlarmResultNext">{{ FABtnText }}</el-button>
|
|
|
+ <el-button type="primary" @click="next">{{ FABtnText }}</el-button>
|
|
|
<el-button type="success" @click="reportHandel" v-if="showFlag==('4' && '5')">上报</el-button>
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
@@ -135,7 +134,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listSortie, getSortie, getSortieParams } from '@/api/manage/sortie'
|
|
|
+import { listSortie, getSortie, getSortieParams,getSortieDataByName } from '@/api/manage/sortie'
|
|
|
import {
|
|
|
beginModel,
|
|
|
listSortieParameterAll,
|
|
@@ -232,7 +231,14 @@ export default {
|
|
|
batchNo: '',
|
|
|
// 虚警抑制结果的按钮
|
|
|
FABtnText:'下一步',
|
|
|
- showFlag:''
|
|
|
+ showFlag:'',
|
|
|
+ // 获取数据的参数数值
|
|
|
+ parameterData:[],
|
|
|
+ // 模型运行结果
|
|
|
+ falseAlarmResultList:[],
|
|
|
+ groundDiagnosisResultText:'',
|
|
|
+ deepIsolationResultList:''
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -404,21 +410,39 @@ export default {
|
|
|
dataParams: this.selectSortieParams,
|
|
|
}
|
|
|
console.log('data', data)
|
|
|
+ const data1={
|
|
|
+ sortieNo: this.form.sortieNumber,
|
|
|
+ parameters: this.selectSortieParams,
|
|
|
+ }
|
|
|
+ getSortieDataByName(data1).then(response => {
|
|
|
+ this.parameterData = JSON.parse(response.data);
|
|
|
+ console.log("this.parameterData",this.parameterData)
|
|
|
+ })
|
|
|
if (!this.timer) {
|
|
|
this.timer = setInterval(() => {
|
|
|
- this.percentageVal += 1
|
|
|
- if (this.percentageVal == 100) {
|
|
|
- this.percentageVal=50
|
|
|
+ this.percentageVal += 2
|
|
|
+ if (this.percentageVal == 98) {
|
|
|
clearInterval(this.timer)
|
|
|
this.timer = null
|
|
|
- this.dialogProgress = false
|
|
|
- this.dialogResult = true
|
|
|
- this.title = '虚警抑制结果'
|
|
|
- // 选择模型页面数据清空
|
|
|
- this.selectModelVal = ''
|
|
|
- this.showFlag=this.checkList[0]
|
|
|
- // 删除数组中第一个元素
|
|
|
- this.checkList.shift()
|
|
|
+ beginModel(data).then(response => {
|
|
|
+ if(response.code===200){
|
|
|
+ this.$message.success("执行成功")
|
|
|
+ // console.log("response",response.data);
|
|
|
+ this.falseAlarmResultList = response.data
|
|
|
+ this.percentageVal=50
|
|
|
+ this.dialogProgress = false
|
|
|
+ this.dialogResult = true
|
|
|
+ this.title = '虚警抑制结果'
|
|
|
+ // 选择模型页面数据清空
|
|
|
+ this.selectModelVal = ''
|
|
|
+ this.showFlag=this.checkList[0]
|
|
|
+ // 删除数组中第一个元素
|
|
|
+ this.checkList.shift()
|
|
|
+ }else{
|
|
|
+ this.$message.error(response.msg)
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
}
|
|
|
}, 50)
|
|
|
}
|
|
@@ -441,18 +465,23 @@ export default {
|
|
|
if (!this.timer) {
|
|
|
this.timer = setInterval(() => {
|
|
|
this.percentageVal += 1
|
|
|
- if (this.percentageVal == 100) {
|
|
|
- this.percentageVal=50
|
|
|
+ if (this.percentageVal == 98) {
|
|
|
clearInterval(this.timer)
|
|
|
this.timer = null
|
|
|
- this.dialogProgress = false
|
|
|
- this.dialogResult = true
|
|
|
- this.title = '地面诊断结果'
|
|
|
- this.showFlag=this.checkList[0]
|
|
|
- // 选择模型页面数据清空
|
|
|
- this.selectModelVal = ''
|
|
|
- // 删除数组中第一个元素
|
|
|
- this.checkList.shift()
|
|
|
+ beginModel(data).then(response => {
|
|
|
+ console.log("response",response);
|
|
|
+ this.percentageVal=50
|
|
|
+ // clearInterval(this.timer)
|
|
|
+ // this.timer = null
|
|
|
+ this.dialogProgress = false
|
|
|
+ this.dialogResult = true
|
|
|
+ this.title = '地面诊断结果'
|
|
|
+ this.showFlag=this.checkList[0]
|
|
|
+ // 选择模型页面数据清空
|
|
|
+ this.selectModelVal = ''
|
|
|
+ // 删除数组中第一个元素
|
|
|
+ this.checkList.shift()
|
|
|
+ })
|
|
|
}
|
|
|
}, 50)
|
|
|
}
|
|
@@ -475,23 +504,28 @@ export default {
|
|
|
if (!this.timer) {
|
|
|
this.timer = setInterval(() => {
|
|
|
this.percentageVal += 1
|
|
|
- if (this.percentageVal == 100) {
|
|
|
- this.percentageVal=50
|
|
|
+ if (this.percentageVal == 98) {
|
|
|
clearInterval(this.timer)
|
|
|
this.timer = null
|
|
|
- this.dialogProgress = false
|
|
|
- this.dialogResult = true
|
|
|
- this.title = '深度隔离结果'
|
|
|
- this.showFlag=this.checkList[0]
|
|
|
- // 选择模型页面数据清空
|
|
|
- this.selectModelVal = ''
|
|
|
- // 删除数组中第一个元素
|
|
|
- this.checkList.shift()
|
|
|
+ beginModel(data).then(response => {
|
|
|
+ console.log("response",response);
|
|
|
+ this.percentageVal=50
|
|
|
+ // clearInterval(this.timer)
|
|
|
+ // this.timer = null
|
|
|
+ this.dialogProgress = false
|
|
|
+ this.dialogResult = true
|
|
|
+ this.title = '深度隔离结果'
|
|
|
+ this.showFlag=this.checkList[0]
|
|
|
+ // 选择模型页面数据清空
|
|
|
+ this.selectModelVal = ''
|
|
|
+ // 删除数组中第一个元素
|
|
|
+ this.checkList.shift()
|
|
|
+ })
|
|
|
}
|
|
|
}, 50)
|
|
|
}
|
|
|
},
|
|
|
- falseAlarmResultNext() {
|
|
|
+ next() {
|
|
|
if(this.FABtnText === '完成'){
|
|
|
this.dialogResult = false
|
|
|
this.cancelSelectModel()
|