فهرست منبع

路由跳转问题

Rmengdi 1 سال پیش
والد
کامیت
8a7c4bce16

+ 1 - 1
pdaaphm-ui/src/router/index.js

@@ -96,7 +96,7 @@ export const constantRoutes = [
     children: [
       {
         path: 'algoRun/:algoID',
-        component: () => import('@/views/algoManager/algorithm/algoRun'),
+        component: () => import('@/views/algoManager/algorithm/algoRun.vue'),
         name: 'AlgoRun',
         meta: { title: '算法运行', icon: 'user' }
       }

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

@@ -59,7 +59,6 @@ export default {
       this.loading = true
       let id = this.$route.params.algoID
       getAlgorithm(id).then(response => {
-        console.log('response', response)
         this.info = response.data
         if(this.info.status==='2'){
           this.isOK=false
@@ -82,7 +81,6 @@ export default {
     getLogInfo(taskId) {
       getLog(taskId).then(response => {
         let logData = response.data
-        console.log('response.data', logData);
         if (logData && logData.includes('任务执行完成')) {
           console.log("定时器销毁");
           clearInterval(this.timer)

+ 1 - 4
pdaaphm-ui/src/views/algoManager/algorithm/index.vue

@@ -369,10 +369,7 @@ export default {
     handleRun(row) {
       const id = row.id || this.ids
       this.$router.push({
-        name: 'AlgoRun',
-        params: {
-          algoID: id,
-        },
+        path:`/algoManager/algoRun/${id}`,
       })
     },
 

+ 1 - 4
pdaaphm-ui/src/views/algoManager/algorithm2/index.vue

@@ -470,10 +470,7 @@ export default {
     handleRun(row) {
       const id = row.id || this.ids
       this.$router.push({
-        name: 'AlgoRun',
-        params: {
-          algoID: id,
-        },
+        path:`/algoManager/algoRun/${id}`,
       })
     },
 

+ 1 - 5
pdaaphm-ui/src/views/algoManager/algorithm3/index.vue

@@ -364,7 +364,6 @@ export default {
       getAlgoSubOption().then((resp) => {
         this.algorithmSubList = resp.data;
         this.createTypeMap();
-        console.info(resp);
       });
     },
 
@@ -495,10 +494,7 @@ export default {
       const id = row.id || this.ids
       // debugger
       this.$router.push({
-        name: 'AlgoRun',
-        params: {
-          algoID: id,
-        },
+        path:`/algoManager/algoRun/${id}`,
       })
     },