|
@@ -138,7 +138,15 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
prop: 'modelType',
|
|
|
- label: '模型类型'
|
|
|
+ label: '模型类型',
|
|
|
+ render: (h, params) => {
|
|
|
+ const matchedItem = this.$enumData.agloModelList.find((item) => params.row.modelType === item.key)
|
|
|
+ if (matchedItem) {
|
|
|
+ return h('span', matchedItem.name)
|
|
|
+ } else {
|
|
|
+ return h('span', {}, '')
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
prop: 'param',
|
|
@@ -158,7 +166,14 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
prop: 'status',
|
|
|
- label: '状态'
|
|
|
+ label: '状态',
|
|
|
+ render: (h, params) => {
|
|
|
+ if (params.row.status == 0) {
|
|
|
+ return h('span', { class: 'warning-state' }, '失败')
|
|
|
+ } else {
|
|
|
+ return h('span', { class: 'success-state' }, '成功')
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
button: true,
|
|
@@ -461,7 +476,14 @@ export default {
|
|
|
},
|
|
|
|
|
|
checkResultList(row) {
|
|
|
- this.form = deepClone(row)
|
|
|
+ if (row.status === '0') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '执行失败,无法查看结果!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ // this.getPreProcessingAPI({ falseAlarmId: row.id })
|
|
|
this.resultVisible = true
|
|
|
},
|
|
|
executeAglo(row) {
|
|
@@ -516,6 +538,7 @@ export default {
|
|
|
async sortieNoSelection(val) {
|
|
|
this.executeForm.ossId = val.ossId
|
|
|
this.executeForm.sortieNo = val.sortieNo
|
|
|
+
|
|
|
if (val.ossId) {
|
|
|
const res = await getColumnDataAPI(val.ossId)
|
|
|
if (res.code === 200) {
|
|
@@ -526,6 +549,9 @@ export default {
|
|
|
label: item
|
|
|
})
|
|
|
})
|
|
|
+ if (this.executeForm.modelId) {
|
|
|
+ this.changeModelId(this.executeForm.modelId)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|