|
@@ -102,6 +102,42 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getStatus() {
|
|
|
|
+ let doingIds = this.getDoingId();
|
|
|
|
+ if (doingIds != "") {
|
|
|
|
+ this.$httpWithoutBar
|
|
|
|
+ .get(TASK_API + "/reportsCompute/getList?ids=" + doingIds)
|
|
|
|
+ .then(response => {
|
|
|
|
+ response.data.forEach(element => {
|
|
|
|
+ this.tableData.forEach(e => {
|
|
|
|
+ if (e.id == element.id) {
|
|
|
|
+ e.status = element.status;
|
|
|
|
+ e.statusName = element.statusName;
|
|
|
|
+ e.startTime = element.startTime;
|
|
|
|
+ e.endTime = element.endTime;
|
|
|
|
+ e.errorDesc = element.errorDesc;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.getStatus();
|
|
|
|
+ }, 5000);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ getDoingId() {
|
|
|
|
+ var tempData = [];
|
|
|
|
+ this.tableData.forEach(element => {
|
|
|
|
+ if (
|
|
|
|
+ element.status == "NONE" ||
|
|
|
|
+ element.status == "COMPUTING" ||
|
|
|
|
+ element.status == "STOPING"
|
|
|
|
+ ) {
|
|
|
|
+ tempData.push(element.id);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ return tempData.join(",");
|
|
|
|
+ },
|
|
back() {
|
|
back() {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: "/reports/overview"
|
|
path: "/reports/overview"
|
|
@@ -162,6 +198,7 @@ export default {
|
|
this.$nextTick(function() {
|
|
this.$nextTick(function() {
|
|
this.paginationShow = true;
|
|
this.paginationShow = true;
|
|
});
|
|
});
|
|
|
|
+ this.getStatus();
|
|
})
|
|
})
|
|
.finally(() => (this.loading = false));
|
|
.finally(() => (this.loading = false));
|
|
},
|
|
},
|