|
@@ -19,8 +19,8 @@
|
|
|
style="width: 100%">
|
|
|
<el-table-column align="center" prop="ttaskId" label="任务id"></el-table-column>
|
|
|
<el-table-column align="center" prop="ttaskName" label="名称"></el-table-column>
|
|
|
- <el-table-column align="center" prop="ttaskStatus" label="状态"></el-table-column>
|
|
|
- <el-table-column align="center" prop="tcreateTime" label="创建时间"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="ttaskStatus" label="状态" :formatter="formatPtaskStatus"></el-table-column>
|
|
|
+ <el-table-column align="center" prop="tcreateTime" label="创建时间" :formatter="formatCreateTime"></el-table-column>
|
|
|
<el-table-column align="center" prop="tcronExpression" label="定时任务"></el-table-column>
|
|
|
<el-table-column align="center" prop="tanalysisReport" label="报告分析" width="100">
|
|
|
<template slot-scope="{row}">
|
|
@@ -250,9 +250,9 @@
|
|
|
<el-dialog
|
|
|
title="运行信息"
|
|
|
:visible.sync="dialogInfoVisible"
|
|
|
- width="30%"
|
|
|
+ width="50%"
|
|
|
>
|
|
|
- <div>
|
|
|
+ <div class="runInfoBox">
|
|
|
{{ info }}
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
@@ -269,6 +269,7 @@ import modelTestForm from './modelTestForm.vue'
|
|
|
import processingForm from './processingForm.vue'
|
|
|
import reportForm from './reportForm.vue'
|
|
|
import {addTask, deleteId, queryTasks, updateTask} from "@/api/xvji/training";
|
|
|
+import {formatDateTime} from "@/utils/dateUtil";
|
|
|
|
|
|
export default {
|
|
|
components: {modelForm, modelTestForm, dataCleanForm, powerRationingForm, processingForm, reportForm},
|
|
@@ -601,13 +602,35 @@ export default {
|
|
|
this.dialogVisible = false
|
|
|
},
|
|
|
// 预览报告文件
|
|
|
- viewReport() {
|
|
|
-
|
|
|
+ viewReport(row) {
|
|
|
+ if(row.tanalysisReport !==null){
|
|
|
+ window.open(row.tanalysisReport)
|
|
|
+ // window.open('http://192.168.1.29:11111/J00001_1758852448094_3865.html')
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '暂无报告文件'
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
// 运行信息
|
|
|
viewInfo(row) {
|
|
|
- this.info = row.tRunInfo
|
|
|
- this.dialogInfoVisible = true
|
|
|
+ if(row.trunInfo !==null){
|
|
|
+ this.info = row.tRunInfo
|
|
|
+ this.dialogInfoVisible = true
|
|
|
+ }else{
|
|
|
+ this.info = null
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '暂无运行信息'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ formatCreateTime(row){
|
|
|
+ return formatDateTime(new Date(row.tcreateTime))
|
|
|
+ },
|
|
|
+ formatPtaskStatus(row){
|
|
|
+ return row.ptaskStatus === 0?'失败':row.ptaskStatus === 1?'成功':'运行'
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -679,5 +702,7 @@ export default {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+.runInfoBox{
|
|
|
+ line-height: 25px;
|
|
|
+}
|
|
|
</style>
|