|
|
@@ -42,7 +42,7 @@ |
|
|
|
{{ scope.$index + 1 }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="计划名称" align="center" prop="planName" width="200" > |
|
|
|
<el-table-column label="计划名称" align="center" prop="planName" width="200"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-popover trigger="hover" placement="top"> |
|
|
|
<p>{{ scope.row.planName }}</p> |
|
|
@@ -60,7 +60,8 @@ |
|
|
|
<span v-if="scope.row.outParam != null && !scope.row.outParam.includes('.xlsx')">{{ scope.row.outParam |
|
|
|
}}</span> |
|
|
|
<span v-if="scope.row.outParam == null"> 没有文件</span> |
|
|
|
<el-tag v-if="scope.row.excType == '2'" :type="''" effect="dark" style='cursor:pointer;margin-left: 10px;' @click="showLog(scope.row.id)"> |
|
|
|
<el-tag v-if="scope.row.excType == '2'" :type="''" effect="dark" style='cursor:pointer;margin-left: 10px;' |
|
|
|
@click="showLog(scope.row.id)"> |
|
|
|
更多 |
|
|
|
</el-tag> |
|
|
|
</template> |
|
|
@@ -149,19 +150,22 @@ |
|
|
|
<el-button size="mini" v-if="scope.row.taskStatus == 'await_create'" type="text" icon="el-icon-setting" |
|
|
|
v-hasPermi="['business:ctApplyPlan:edit']">启用</el-button> |
|
|
|
</router-link> --> |
|
|
|
<el-button size="mini" |
|
|
|
v-if="(scope.row.taskStatus == 'await_create' || scope.row.taskStatus == 'finish' || scope.row.taskStatus == 'stopped' || scope.row.taskStatus == 'error' || scope.row.taskStatus == 'skipped' || scope.row.taskStatus == 'cancel') |
|
|
|
&& (scope.row.excType == '1' || scope.row.excType == '2')" |
|
|
|
type="text" icon="el-icon-date" @click="updateParams(scope.row)" |
|
|
|
v-hasPermi="['business:ctApplyPlan:updateFile']">修改文件</el-button> |
|
|
|
<el-button size="mini" v-if="(scope.row.taskStatus == 'await_create' || scope.row.taskStatus == 'finish' || scope.row.taskStatus == 'stopped' || scope.row.taskStatus == 'error' || scope.row.taskStatus == 'skipped' || scope.row.taskStatus == 'cancel') |
|
|
|
&& (scope.row.excType == '1' || scope.row.excType == '2')" type="text" icon="el-icon-date" |
|
|
|
@click="updateParams(scope.row)" v-hasPermi="['business:ctApplyPlan:updateFile']">修改文件</el-button> |
|
|
|
<el-button size="mini" |
|
|
|
v-if="((scope.row.excType == '1' && scope.row.taskStatus == 'await_create') || scope.row.excType == '2')" |
|
|
|
type="text" icon="el-icon-date" @click="updateRunTime(scope.row)" |
|
|
|
v-hasPermi="['business:ctApplyPlan:updateRunTime']">设置执行时间</el-button> |
|
|
|
<el-button size="mini" |
|
|
|
v-if="scope.row.taskStatus == 'stopped' || scope.row.taskStatus == 'error' || scope.row.taskStatus == 'cancel'" |
|
|
|
type="text" icon="el-icon-refresh" @click="appRetry(scope.row)" |
|
|
|
v-hasPermi="['business:ctApplyPlan:appRetry']">重新运行</el-button> |
|
|
|
|
|
|
|
<el-popconfirm confirm-button-text='新参数运行' cancel-button-text='旧参数运行' v-hasPermi="['business:ctApplyPlan:appRetry']" |
|
|
|
title="请选择使用的参数" @confirm="appRetry(scope.row,true)" @cancel="appRetry(scope.row,true)" v-if="scope.row.taskStatus == 'stopped' || scope.row.taskStatus == 'error' || scope.row.taskStatus == 'cancel'"> |
|
|
|
<el-button size="mini" type="text" icon="el-icon-refresh-right" slot="reference">重新运行</el-button> |
|
|
|
</el-popconfirm> |
|
|
|
|
|
|
|
<!-- <el-button size="mini" |
|
|
|
type="text" icon="el-icon-refresh" @click="" |
|
|
|
>重新运行</el-button> --> |
|
|
|
<el-button size="mini" v-if="scope.row.taskStatus == 'running' || scope.row.taskStatus == 'waiting'" |
|
|
|
type="text" icon="el-icon-video-pause" @click="stopRun(scope.row)" |
|
|
|
v-hasPermi="['business:ctApplyPlan:stopRun']">停止运行</el-button> |
|
|
@@ -365,7 +369,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { listCtApplyPlan, getCtApplyPlan, delCtApplyPlan, addCtApplyPlan, updateCtApplyPlan, stopRun, appRetry, stopOrStart,updateRunTime } from "@/api/business/ctApplyPlan"; |
|
|
|
import { listCtApplyPlan, getCtApplyPlan, delCtApplyPlan, addCtApplyPlan, updateCtApplyPlan, stopRun, appRetry, stopOrStart, updateRunTime } from "@/api/business/ctApplyPlan"; |
|
|
|
import { listCtApplyPlanLogAll } from "@/api/business/ctApplyPlanLog"; |
|
|
|
import { listByAppId, updateBatch } from "@/api/business/ctResourceLibrary"; |
|
|
|
import { listRebotAll } from "@/api/business/ctRebot"; |
|
|
@@ -454,6 +458,7 @@ export default { |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getList(); |
|
|
|
this.listApplyAll(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
/** 显示执行日志 */ |
|
|
@@ -554,8 +559,8 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
/** 重新运行 */ |
|
|
|
appRetry(row) { |
|
|
|
appRetry(row.taskUuid).then(res => { |
|
|
|
appRetry(row,newData) { |
|
|
|
appRetry(row.taskUuid,newData).then(res => { |
|
|
|
this.$modal.msgSuccess("操作成功"); |
|
|
|
this.getList(); |
|
|
|
}); |
|
|
|