Browse Source

修复调度日志点击多次数据不变化的问题

RuoYi 2 years ago
parent
commit
69a246ac8a
3 changed files with 3 additions and 3 deletions
  1. 1 1
      src/router/index.js
  2. 1 1
      src/views/monitor/job/index.vue
  3. 1 1
      src/views/monitor/job/log.vue

+ 1 - 1
src/router/index.js

@@ -137,7 +137,7 @@ export const dynamicRoutes = [
     permissions: ['monitor:job:list'],
     children: [
       {
-        path: 'index',
+        path: 'index/:jobId(\\d+)',
         component: () => import('@/views/monitor/job/log'),
         name: 'JobLog',
         meta: { title: '调度日志', activeMenu: '/monitor/job' }

+ 1 - 1
src/views/monitor/job/index.vue

@@ -448,7 +448,7 @@ function crontabFill(value) {
 /** 任务日志列表查询 */
 function handleJobLog(row) {
   const jobId = row.jobId || 0;
-  router.push({ path: "/monitor/job-log/index", query: { jobId: jobId } });
+  router.push('/monitor/job-log/index/' + jobId)
 }
 /** 新增按钮操作 */
 function handleAdd() {

+ 1 - 1
src/views/monitor/job/log.vue

@@ -266,7 +266,7 @@ function handleExport() {
 }
 
 (() => {
-  const jobId = route.query.jobId;
+  const jobId = route.params && route.params.jobId;
   if (jobId !== undefined && jobId != 0) {
     getJob(jobId).then(response => {
       queryParams.value.jobName = response.data.jobName;