|
@@ -150,7 +150,9 @@
|
|
<el-table-column label="操作" slot="cgInfos" align="center">
|
|
<el-table-column label="操作" slot="cgInfos" align="center">
|
|
<template v-slot="scope">
|
|
<template v-slot="scope">
|
|
<i
|
|
<i
|
|
- @click="viewRow(scope.row.id)"
|
|
|
|
|
|
+ @click="
|
|
|
|
+ viewRow(scope.row.id, scope.row.projectName)
|
|
|
|
+ "
|
|
class="el-icon-view elIcon"
|
|
class="el-icon-view elIcon"
|
|
title="查看"
|
|
title="查看"
|
|
></i>
|
|
></i>
|
|
@@ -163,15 +165,33 @@
|
|
class="el-icon-edit-outline elIcon"
|
|
class="el-icon-edit-outline elIcon"
|
|
title="编辑"
|
|
title="编辑"
|
|
></i>
|
|
></i>
|
|
|
|
+ <!-- 10待执行 20执行中 30已完成 40已中止 -->
|
|
|
|
+ <i
|
|
|
|
+ v-if="scope.row.nowRunState === '10'"
|
|
|
|
+ @click="
|
|
|
|
+ runRow(
|
|
|
|
+ scope.row.id,
|
|
|
|
+ scope.row.parallelism,
|
|
|
|
+ scope.row.nowRunState
|
|
|
|
+ )
|
|
|
|
+ "
|
|
|
|
+ class="el-icon-refresh-right elIcon"
|
|
|
|
+ title="运行"
|
|
|
|
+ ></i>
|
|
<i
|
|
<i
|
|
v-if="
|
|
v-if="
|
|
- scope.row.nowRunState === '10' ||
|
|
|
|
scope.row.nowRunState === '30' ||
|
|
scope.row.nowRunState === '30' ||
|
|
scope.row.nowRunState === '40'
|
|
scope.row.nowRunState === '40'
|
|
"
|
|
"
|
|
- @click="runRow(scope.row.id, scope.row.parallelism)"
|
|
|
|
|
|
+ @click="
|
|
|
|
+ runRow(
|
|
|
|
+ scope.row.id,
|
|
|
|
+ scope.row.parallelism,
|
|
|
|
+ scope.row.nowRunState
|
|
|
|
+ )
|
|
|
|
+ "
|
|
class="el-icon-refresh-right elIcon"
|
|
class="el-icon-refresh-right elIcon"
|
|
- title="运行"
|
|
|
|
|
|
+ title="重新运行"
|
|
></i>
|
|
></i>
|
|
<i
|
|
<i
|
|
v-if="scope.row.nowRunState === '20'"
|
|
v-if="scope.row.nowRunState === '20'"
|
|
@@ -355,7 +375,11 @@ export default {
|
|
createEndDate = `${this.searchParams.createEndDate} 23:59:59`;
|
|
createEndDate = `${this.searchParams.createEndDate} 23:59:59`;
|
|
}
|
|
}
|
|
|
|
|
|
- if (createStartDate && createEndDate && createStartDate > createEndDate) {
|
|
|
|
|
|
+ if (
|
|
|
|
+ createStartDate &&
|
|
|
|
+ createEndDate &&
|
|
|
|
+ createStartDate > createEndDate
|
|
|
|
+ ) {
|
|
this.$message.error("结束时间不能早于开始时间");
|
|
this.$message.error("结束时间不能早于开始时间");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -370,7 +394,11 @@ export default {
|
|
finishDateEnd = `${this.searchParams.finishDateEnd} 23:59:59`;
|
|
finishDateEnd = `${this.searchParams.finishDateEnd} 23:59:59`;
|
|
}
|
|
}
|
|
|
|
|
|
- if (finishDateStart && finishDateEnd && finishDateStart > finishDateEnd) {
|
|
|
|
|
|
+ if (
|
|
|
|
+ finishDateStart &&
|
|
|
|
+ finishDateEnd &&
|
|
|
|
+ finishDateStart > finishDateEnd
|
|
|
|
+ ) {
|
|
this.$message.error("结束时间不能早于开始时间");
|
|
this.$message.error("结束时间不能早于开始时间");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -425,8 +453,13 @@ export default {
|
|
},
|
|
},
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- runRow(id, parallelism) {
|
|
|
|
- this.$confirm("确认是否运行?", "提示", {
|
|
|
|
|
|
+ runRow(id, parallelism, nowRunState) {
|
|
|
|
+ let str = "确认是否运行?";
|
|
|
|
+ if (nowRunState === "30" || nowRunState === "40") {
|
|
|
|
+ str = "确认是否重新运行?";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ this.$confirm(str, "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
type: "warning",
|
|
type: "warning",
|
|
@@ -519,7 +552,11 @@ export default {
|
|
this.delRow(arr.join(","));
|
|
this.delRow(arr.join(","));
|
|
},
|
|
},
|
|
|
|
|
|
- viewRow(id) {
|
|
|
|
|
|
+ viewRow(id, name) {
|
|
|
|
+ // 修改项目详情的tabname
|
|
|
|
+ this.$store.commit("getProjectInfoTabname", name);
|
|
|
|
+ localStorage.setItem("projectInfoTabname", name);
|
|
|
|
+
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: "/manualRunProjectList/projectInfo",
|
|
path: "/manualRunProjectList/projectInfo",
|
|
query: { id, projectType: "1" },
|
|
query: { id, projectType: "1" },
|