|
@@ -59,6 +59,7 @@ export default {
|
|
|
},
|
|
|
/** 运行算法按钮操作 */
|
|
|
handleRun(id) {
|
|
|
+ this.message = ''
|
|
|
this.show = true
|
|
|
const taskId = `TASK-${id}`
|
|
|
runAlgorithms(id).then(res => {
|
|
@@ -67,8 +68,9 @@ export default {
|
|
|
},
|
|
|
getLogInfo(taskId) {
|
|
|
getLog(taskId).then(response => {
|
|
|
- let logData = response.data
|
|
|
- if (!logData || (logData && logData.includes('任务执行完成')) ) {
|
|
|
+ let logData = response.data || `<p style='color: #58e072'> INFO: [2023-10-23 15:00:14] -> 算法执行中...... </p>`
|
|
|
+ console.log('response.data', logData);
|
|
|
+ if (logData && logData.includes('任务执行完成')) {
|
|
|
console.log("定时器销毁");
|
|
|
clearInterval(this.timer)
|
|
|
}
|