|
@@ -109,7 +109,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="参数选择" v-if="!(selectModelVal==='')">
|
|
|
<el-transfer v-model="selectSortieParams" :props="{ key: 'value', label: 'desc' }" :data="parameterList"
|
|
|
- filterable filter-placeholder="请输入参数名称" :titles="['所有参数', '展示参数']">
|
|
|
+ filterable filter-placeholder="请输入参数名称" :titles="['所有参数', '处理参数']">
|
|
|
</el-transfer>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -121,9 +121,11 @@
|
|
|
</el-dialog>
|
|
|
<!-- 虚警抑制清单 -->
|
|
|
<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'" :resultText='groundDiagnosisResultText'/>
|
|
|
- <deepIsolationResult v-if="showFlag=='5'" :resultText='deepIsolationResultText'/>
|
|
|
+ <div style="max-height: 380px; overflow-y: auto; overflow-x: hidden;">
|
|
|
+ <falseAlarmResult v-if="showFlag=='3'" :resultList='falseAlarmResultList' :parameterData='parameterData' />
|
|
|
+ <groundDiagnosisResult v-if="showFlag=='4'" :resultText='groundDiagnosisResultText' />
|
|
|
+ <deepIsolationResult v-if="showFlag=='5'" :resultText='deepIsolationResultText' />
|
|
|
+ </div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="next">{{ FABtnText }}</el-button>
|
|
|
<el-button type="success" @click="reportHandel" v-if="showFlag==('4' && '5')">上报</el-button>
|
|
@@ -134,7 +136,12 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listSortie, getSortie, getSortieParams,getSortieDataByName } from '@/api/manage/sortie'
|
|
|
+import {
|
|
|
+ listSortie,
|
|
|
+ getSortie,
|
|
|
+ getSortieParams,
|
|
|
+ getSortieDataByName,
|
|
|
+} from '@/api/manage/sortie'
|
|
|
import {
|
|
|
beginModel,
|
|
|
listSortieParameterAll,
|
|
@@ -151,7 +158,7 @@ export default {
|
|
|
components: {
|
|
|
falseAlarmResult,
|
|
|
groundDiagnosisResult,
|
|
|
- deepIsolationResult
|
|
|
+ deepIsolationResult,
|
|
|
},
|
|
|
dicts: ['data_type'],
|
|
|
data() {
|
|
@@ -212,7 +219,7 @@ export default {
|
|
|
],
|
|
|
selectSortieId: '',
|
|
|
radio: '0',
|
|
|
- checkList: ['3','4','5'],
|
|
|
+ checkList: ['3', '4', '5'],
|
|
|
// 进度条是否显示弹出框
|
|
|
dialogProgress: false,
|
|
|
percentageVal: 50,
|
|
@@ -232,25 +239,25 @@ export default {
|
|
|
modelId: null,
|
|
|
batchNo: '',
|
|
|
// 虚警抑制结果的按钮
|
|
|
- FABtnText:'下一步',
|
|
|
- showFlag:'',
|
|
|
+ FABtnText: '下一步',
|
|
|
+ showFlag: '',
|
|
|
// 获取数据的参数数值
|
|
|
- parameterData:[],
|
|
|
+ parameterData: [],
|
|
|
// 模型运行结果
|
|
|
- falseAlarmResultList:[],
|
|
|
- groundDiagnosisResultText:'',
|
|
|
- deepIsolationResultText:''
|
|
|
+ falseAlarmResultList: [],
|
|
|
+ groundDiagnosisResultText: '',
|
|
|
+ deepIsolationResultText: '',
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
checkList: {
|
|
|
handler(newValue, oldValue) {
|
|
|
- if (newValue.length===0) {
|
|
|
+ if (newValue.length === 0) {
|
|
|
this.FABtnText = '完成'
|
|
|
}
|
|
|
},
|
|
|
deep: true,
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
created() {
|
|
|
this.getList()
|
|
@@ -293,7 +300,10 @@ export default {
|
|
|
this.title = '故障诊断信息'
|
|
|
})
|
|
|
listSortieParameterAll({ sortieNo: row.sortieNumber }).then(response => {
|
|
|
- this.sortieParameterAllList = response.data
|
|
|
+ this.sortieParameterAllList = response.data.filter(item => {
|
|
|
+ return item.type === 0 || item.type === 1 || item.type === 2
|
|
|
+ })
|
|
|
+ // this.sortieParameterAllList = response.data
|
|
|
this.loading = false
|
|
|
})
|
|
|
},
|
|
@@ -302,8 +312,7 @@ export default {
|
|
|
this.open = false
|
|
|
this.reset()
|
|
|
// this.radio = 0
|
|
|
- this.checkList=['3','4','5'],
|
|
|
- this.selectedSortieDataType = ''
|
|
|
+ ;(this.checkList = ['3', '4', '5']), (this.selectedSortieDataType = '')
|
|
|
this.batchNo = ''
|
|
|
},
|
|
|
cancelSelectModel() {
|
|
@@ -338,9 +347,9 @@ export default {
|
|
|
if (this.selectedSortieDataType === '') {
|
|
|
this.$message.error(`请选择架次数据`)
|
|
|
} else {
|
|
|
- this.checkList = this.checkList.map(str => parseInt(str, 10));
|
|
|
- console.log("checkList",this.checkList);
|
|
|
- console.log("checkList[0]",this.checkList[0]);
|
|
|
+ this.checkList = this.checkList.map(str => parseInt(str, 10))
|
|
|
+ console.log('checkList', this.checkList)
|
|
|
+ console.log('checkList[0]', this.checkList[0])
|
|
|
this.open = false
|
|
|
this.dialogSelectModel = true
|
|
|
if (this.checkList[0] === 3) {
|
|
@@ -387,7 +396,7 @@ export default {
|
|
|
},
|
|
|
begin() {
|
|
|
this.dialogResult = false
|
|
|
- this.checkList = this.checkList.map(str => parseInt(str, 10));
|
|
|
+ this.checkList = this.checkList.map(str => parseInt(str, 10))
|
|
|
if (this.checkList[0] === 3) {
|
|
|
this.falseAlarmBegin()
|
|
|
} else if (this.checkList[0] === 4) {
|
|
@@ -397,7 +406,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 虚警抑制模型执行
|
|
|
- falseAlarmBegin(){
|
|
|
+ falseAlarmBegin() {
|
|
|
this.dialogSelectModel = false
|
|
|
this.title = '虚警抑制模型执行中'
|
|
|
this.dialogProgress = true
|
|
@@ -411,13 +420,13 @@ export default {
|
|
|
dataParams: this.selectSortieParams,
|
|
|
}
|
|
|
console.log('data', data)
|
|
|
- const data1={
|
|
|
+ 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)
|
|
|
+ this.parameterData = JSON.parse(response.data)
|
|
|
+ console.log('this.parameterData', this.parameterData)
|
|
|
})
|
|
|
if (!this.timer) {
|
|
|
this.timer = setInterval(() => {
|
|
@@ -425,28 +434,20 @@ export default {
|
|
|
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){
|
|
|
+ if (response.code === 200) {
|
|
|
this.falseAlarmResultList = JSON.parse(response.data)
|
|
|
- this.$message.success("执行成功")
|
|
|
+ this.$message.success('执行成功')
|
|
|
this.dialogProgress = false
|
|
|
- this.percentageVal=50
|
|
|
+ this.percentageVal = 50
|
|
|
this.dialogResult = true
|
|
|
this.title = '虚警抑制结果'
|
|
|
// 选择模型页面数据清空
|
|
|
this.selectModelVal = ''
|
|
|
- this.showFlag=this.checkList[0]
|
|
|
+ this.showFlag = this.checkList[0]
|
|
|
// 删除数组中第一个元素
|
|
|
this.checkList.shift()
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.$message.error(response.msg)
|
|
|
}
|
|
|
})
|
|
@@ -455,7 +456,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 地面诊断模型执行
|
|
|
- groundDiagnosisBegin(){
|
|
|
+ groundDiagnosisBegin() {
|
|
|
this.dialogSelectModel = false
|
|
|
this.title = '地面诊断模型执行中'
|
|
|
this.dialogProgress = true
|
|
@@ -476,19 +477,19 @@ export default {
|
|
|
clearInterval(this.timer)
|
|
|
this.timer = null
|
|
|
beginModel(data).then(response => {
|
|
|
- if(response.code===200){
|
|
|
- this.$message.success("执行成功")
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.$message.success('执行成功')
|
|
|
this.groundDiagnosisResultText = response.data
|
|
|
- this.percentageVal=50
|
|
|
+ this.percentageVal = 50
|
|
|
this.dialogProgress = false
|
|
|
this.dialogResult = true
|
|
|
this.title = '地面诊断结果'
|
|
|
- this.showFlag=this.checkList[0]
|
|
|
+ this.showFlag = this.checkList[0]
|
|
|
// 选择模型页面数据清空
|
|
|
this.selectModelVal = ''
|
|
|
// 删除数组中第一个元素
|
|
|
this.checkList.shift()
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.$message.error(response.msg)
|
|
|
}
|
|
|
})
|
|
@@ -497,7 +498,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 深度隔离模型执行
|
|
|
- deepIsolationBegin(){
|
|
|
+ deepIsolationBegin() {
|
|
|
this.dialogSelectModel = false
|
|
|
this.title = '深度隔离模型执行中'
|
|
|
this.dialogProgress = true
|
|
@@ -518,19 +519,19 @@ export default {
|
|
|
clearInterval(this.timer)
|
|
|
this.timer = null
|
|
|
beginModel(data).then(response => {
|
|
|
- if(response.code===200){
|
|
|
- this.$message.success("执行成功")
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.$message.success('执行成功')
|
|
|
this.deepIsolationResultText = response.data
|
|
|
- this.percentageVal=50
|
|
|
+ this.percentageVal = 50
|
|
|
this.dialogProgress = false
|
|
|
this.dialogResult = true
|
|
|
this.title = '深度隔离结果'
|
|
|
- this.showFlag=this.checkList[0]
|
|
|
+ this.showFlag = this.checkList[0]
|
|
|
// 选择模型页面数据清空
|
|
|
this.selectModelVal = ''
|
|
|
// 删除数组中第一个元素
|
|
|
this.checkList.shift()
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.$message.error(response.msg)
|
|
|
}
|
|
|
})
|
|
@@ -539,18 +540,18 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
next() {
|
|
|
- if(this.FABtnText === '完成'){
|
|
|
+ if (this.FABtnText === '完成') {
|
|
|
this.dialogResult = false
|
|
|
this.cancelSelectModel()
|
|
|
this.FABtnText = '下一步'
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.submitForm()
|
|
|
}
|
|
|
},
|
|
|
// 上报
|
|
|
- reportHandel(){
|
|
|
- console.log("上报");
|
|
|
- }
|
|
|
+ reportHandel() {
|
|
|
+ console.log('上报')
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|