|
@@ -112,14 +112,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
|
|
- v-if="
|
|
|
|
- scope.row.nowRunState === '10' ||
|
|
|
|
- scope.row.nowRunState === '30' ||
|
|
|
|
- scope.row.nowRunState === '40'
|
|
|
|
- "
|
|
|
|
- @click="runRow(scope.row.id, scope.row.parallelism)"
|
|
|
|
- class="el-icon-video-play elIcon"
|
|
|
|
- title="运行"
|
|
|
|
|
|
+ @click="viewRow(scope.row.id)"
|
|
|
|
+ class="el-icon-view elIcon"
|
|
|
|
+ title="查看"
|
|
></i>
|
|
></i>
|
|
<i
|
|
<i
|
|
v-if="
|
|
v-if="
|
|
@@ -131,14 +126,19 @@
|
|
title="编辑"
|
|
title="编辑"
|
|
></i>
|
|
></i>
|
|
<i
|
|
<i
|
|
- @click="viewRow(scope.row.id)"
|
|
|
|
- class="el-icon-view elIcon"
|
|
|
|
- title="查看"
|
|
|
|
|
|
+ v-if="
|
|
|
|
+ scope.row.nowRunState === '10' ||
|
|
|
|
+ scope.row.nowRunState === '30' ||
|
|
|
|
+ scope.row.nowRunState === '40'
|
|
|
|
+ "
|
|
|
|
+ @click="runRow(scope.row.id, scope.row.parallelism)"
|
|
|
|
+ class="el-icon-refresh-right elIcon"
|
|
|
|
+ title="运行"
|
|
></i>
|
|
></i>
|
|
<i
|
|
<i
|
|
v-if="scope.row.nowRunState === '20'"
|
|
v-if="scope.row.nowRunState === '20'"
|
|
@click="stopRow(scope.row.id)"
|
|
@click="stopRow(scope.row.id)"
|
|
- class="el-icon-video-pause elIcon"
|
|
|
|
|
|
+ class="myIconPause elIcon"
|
|
title="中止"
|
|
title="中止"
|
|
></i>
|
|
></i>
|
|
<i
|
|
<i
|
|
@@ -286,6 +286,7 @@ export default {
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
curRow: {}, // 当前row
|
|
curRow: {}, // 当前row
|
|
downDisabled: false, // 用于判断是否可下载工作报告
|
|
downDisabled: false, // 用于判断是否可下载工作报告
|
|
|
|
+ timer: null,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -317,6 +318,12 @@ export default {
|
|
finishDateEnd: this.searchParams.finishDateEnd,
|
|
finishDateEnd: this.searchParams.finishDateEnd,
|
|
};
|
|
};
|
|
this.refreshList(pageMap);
|
|
this.refreshList(pageMap);
|
|
|
|
+
|
|
|
|
+ if (this.timer) clearInterval(this.timer);
|
|
|
|
+
|
|
|
|
+ this.timer = setInterval(() => {
|
|
|
|
+ if (this.$refs["table"]) this.doSearch();
|
|
|
|
+ }, 1000 * 60);
|
|
},
|
|
},
|
|
//刷新table
|
|
//刷新table
|
|
refreshList(param) {
|
|
refreshList(param) {
|
|
@@ -515,12 +522,22 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
async mounted() {
|
|
async mounted() {
|
|
|
|
+ if (this.timer) clearInterval(this.timer);
|
|
|
|
+
|
|
|
|
+ this.timer = setInterval(() => {
|
|
|
|
+ if (this.$refs["table"]) this.doSearch();
|
|
|
|
+ }, 1000 * 60);
|
|
|
|
+
|
|
// console.log(666);
|
|
// console.log(666);
|
|
await this.$dicsListsInit({
|
|
await this.$dicsListsInit({
|
|
nowRunStateList: "projectRunState",
|
|
nowRunStateList: "projectRunState",
|
|
evaluationLevelList: "evaluationLevel",
|
|
evaluationLevelList: "evaluationLevel",
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ beforeDestroy() {
|
|
|
|
+ clearInterval(this.timer);
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|