@ -18,6 +18,8 @@
< el -option label = "产量异常" value = "production_anomaly" / >
< el -option label = "产量异常" value = "production_anomaly" / >
< el -option label = "未知设备" value = "unknown_device" / >
< el -option label = "未知设备" value = "unknown_device" / >
< el -option label = "服务错误" value = "service_error" / >
< el -option label = "服务错误" value = "service_error" / >
< el -option label = "产量跟踪异常" value = "production_error" / >
< el -option label = "日终汇总异常" value = "summary_error" / >
< / e l - s e l e c t >
< / e l - s e l e c t >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item label = "处理状态" >
< el -form -item label = "处理状态" >
@ -31,7 +33,7 @@
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item label = "机床" >
< el -form -item label = "机床" >
< el -select v-model ="query.machineId" filterable clearable placeholder="全部" >
< el -select v-model ="query.machineId" filterable clearable placeholder="全部" >
< el -option v -for = " m in machineList " :key ="m.id" :label ="m.name" :value =" m.id" / >
< el -option v -for = " m in machineList " : key = "(m as any).value ?? m.id" : label = "(m as any).label ?? m.name" : value = "(m as any).value ?? m.id" / >
< / e l - s e l e c t >
< / e l - s e l e c t >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item >
< el -form -item >
@ -146,6 +148,8 @@ function alertTypeTag(type: string): string {
production _anomaly : 'warning' ,
production _anomaly : 'warning' ,
unknown _device : 'info' ,
unknown _device : 'info' ,
service _error : 'danger' ,
service _error : 'danger' ,
production _error : 'danger' ,
summary _error : 'danger' ,
}
}
return map [ type ] || 'info'
return map [ type ] || 'info'
}
}
@ -157,6 +161,8 @@ function alertTypeLabel(type: string): string {
production _anomaly : '产量异常' ,
production _anomaly : '产量异常' ,
unknown _device : '未知设备' ,
unknown _device : '未知设备' ,
service _error : '服务错误' ,
service _error : '服务错误' ,
production _error : '产量跟踪异常' ,
summary _error : '日终汇总异常' ,
}
}
return map [ type ] || type
return map [ type ] || type
}
}