|
@@ -27,20 +27,21 @@
|
|
<el-table-column prop="exeStatus" label='执行状态' width="80px">
|
|
<el-table-column prop="exeStatus" label='执行状态' width="80px">
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
<el-tag v-if="row.exeStatus == '1'" type="info">待执行</el-tag>
|
|
<el-tag v-if="row.exeStatus == '1'" type="info">待执行</el-tag>
|
|
- <el-tag v-if="row.exeStatus == '2'" type="success">执行中</el-tag>
|
|
|
|
- <el-tag v-else >已完成</el-tag>
|
|
|
|
|
|
+ <el-tag v-if="row.exeStatus == '2'" type="primary">执行中</el-tag>
|
|
|
|
+ <el-tag v-else type="success">已完成</el-tag>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="sendStatus" label='是否下发' width="80px">
|
|
<el-table-column prop="sendStatus" label='是否下发' width="80px">
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
- <el-tag v-if="row.sendStatus == '1'">已下发</el-tag>
|
|
|
|
<el-tag v-if="row.sendStatus == '0'" type="info">未下发</el-tag>
|
|
<el-tag v-if="row.sendStatus == '0'" type="info">未下发</el-tag>
|
|
|
|
+ <el-tag v-if="row.sendStatus == '1'" type="primary">已下发</el-tag>
|
|
|
|
+ <el-tag v-if="row.sendStatus == '2'" type="success">已返回</el-tag>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="exeResult" label='执行结果' width="80px">
|
|
<el-table-column prop="exeResult" label='执行结果' width="80px">
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
- <el-tag v-if="row.exeResult == '1'" >成功</el-tag>
|
|
|
|
- <el-tag v-if="row.exeResult == '0'" >失败</el-tag>
|
|
|
|
|
|
+ <el-tag v-if="row.exeResult == '1'" type="success">成功</el-tag>
|
|
|
|
+ <el-tag v-if="row.exeResult == '0'" type="danger">失败</el-tag>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="feedback" label='运行时信息' width="160px" show-tooltip-when-overflow></el-table-column>
|
|
<el-table-column prop="feedback" label='运行时信息' width="160px" show-tooltip-when-overflow></el-table-column>
|
|
@@ -55,7 +56,7 @@
|
|
<el-button v-if="(row.taskNodeName ==='人工上料' || row.taskNodeName ==='人工下料') && row.exeStatus === '2' && row.sendStatus == 0" size="mini" type="info" >需要人工操作物料</el-button>
|
|
<el-button v-if="(row.taskNodeName ==='人工上料' || row.taskNodeName ==='人工下料') && row.exeStatus === '2' && row.sendStatus == 0" size="mini" type="info" >需要人工操作物料</el-button>
|
|
<el-button v-if="row.taskNodeName !='人工上料' && row.taskNodeName !='人工下料' && row.exeStatus === '2' && row.sendStatus == 0" size="mini" type="danger" @click="resendCommand(row)">指令重发</el-button>
|
|
<el-button v-if="row.taskNodeName !='人工上料' && row.taskNodeName !='人工下料' && row.exeStatus === '2' && row.sendStatus == 0" size="mini" type="danger" @click="resendCommand(row)">指令重发</el-button>
|
|
<!-- <el-button v-if="row.exeStatus === '1'" type="primary" size="mini" @click="cancelTaskNodeLog(row)">取消任务</el-button> -->
|
|
<!-- <el-button v-if="row.exeStatus === '1'" type="primary" size="mini" @click="cancelTaskNodeLog(row)">取消任务</el-button> -->
|
|
- <el-button v-if="row.exeStatus === '2' && row.sendStatus == 1 && row.exeResult != 1" type="warning" size="mini" @click="taskNodeCallback(row)">模拟回调</el-button>
|
|
|
|
|
|
+ <el-button v-if="(row.exeStatus === '2' && row.sendStatus == 1 && row.exeResult != 1) || (row.exeStatus === '2' && row.sendStatus == 2 && row.exeResult != 1)" type="warning" size="mini" @click="taskNodeCallback(row)">模拟回调</el-button>
|
|
|
|
|
|
<el-tooltip
|
|
<el-tooltip
|
|
class="item"
|
|
class="item"
|
|
@@ -453,6 +454,7 @@ export default {
|
|
this.getLog();
|
|
this.getLog();
|
|
}, 2000);
|
|
}, 2000);
|
|
}else{
|
|
}else{
|
|
|
|
+ this.getLog();
|
|
this.$message({
|
|
this.$message({
|
|
message:'模拟回调失败:' + res.msg,
|
|
message:'模拟回调失败:' + res.msg,
|
|
type: "error"
|
|
type: "error"
|
|
@@ -460,8 +462,9 @@ export default {
|
|
}
|
|
}
|
|
}).catch(e=>{
|
|
}).catch(e=>{
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
|
+ this.getLog();
|
|
this.$message({
|
|
this.$message({
|
|
- message:'取消指令失败:' + e.message,
|
|
|
|
|
|
+ message:'错误:' + e.message,
|
|
type: "error"
|
|
type: "error"
|
|
});
|
|
});
|
|
})
|
|
})
|
|
@@ -570,10 +573,6 @@ export default {
|
|
this.loading = false
|
|
this.loading = false
|
|
if(res.isSuccess){
|
|
if(res.isSuccess){
|
|
this.tableData = res.data
|
|
this.tableData = res.data
|
|
- this.$message({
|
|
|
|
- message:'成功',
|
|
|
|
- type: "success"
|
|
|
|
- });
|
|
|
|
}else{
|
|
}else{
|
|
this.$message({
|
|
this.$message({
|
|
message:'查询失败',
|
|
message:'查询失败',
|