Sfoglia il codice sorgente

fix: 修改 问题

wanggaokun 1 anno fa
parent
commit
15bf416950

+ 1 - 1
pdaaphm-admin/src/main/java/com/pdaaphm/biz/controller/LogController.java

@@ -30,7 +30,7 @@ public class LogController {
 
     @Autowired
     private RedisCache redisCache;
-    @Log(title = "算法", businessType = BusinessType.UPDATE)
+
     @GetMapping(value = "/info/{taskId}")
     public AjaxResult getLogInfo(@PathVariable("taskId") String taskId) throws IOException {
         return success("成功", redisLogService.getLogInfo(taskId));

+ 2 - 2
pdaaphm-ui/src/views/algoManager/algorithm/algoRun.vue

@@ -63,12 +63,12 @@ export default {
       this.show = true
       const taskId = `TASK-${id}`
       runAlgorithms(id).then(res => {
-        this.timer = setInterval(this.getLogInfo, 1000, taskId)
+        this.timer = setInterval(this.getLogInfo, 3000, taskId)
       })
     },
     getLogInfo(taskId) {
       getLog(taskId).then(response => {
-        let logData = response.data || `<p style='color: #58e072'> INFO: [2023-10-23 15:00:14] -> 算法执行中...... </p>`
+        let logData = response.data
         console.log('response.data', logData);
         if (logData && logData.includes('任务执行完成')) {
           console.log("定时器销毁");