Преглед на файлове

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

RuoYi преди 3 години
родител
ревизия
a9938302f0
променени са 3 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      ruoyi-ui/src/router/index.js
  2. 1 1
      ruoyi-ui/src/views/monitor/job/index.vue
  3. 1 1
      ruoyi-ui/src/views/monitor/job/log.vue

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

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

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

@@ -454,7 +454,7 @@ export default {
454 454
     /** 任务日志列表查询 */
455 455
     handleJobLog(row) {
456 456
       const jobId = row.jobId || 0;
457
-      this.$router.push({ path: '/monitor/job-log/index', query: { jobId: jobId } })
457
+      this.$router.push('/monitor/job-log/index/' + jobId)
458 458
     },
459 459
     /** 新增按钮操作 */
460 460
     handleAdd() {

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

@@ -217,7 +217,7 @@ export default {
217 217
     };
218 218
   },
219 219
   created() {
220
-    const jobId = this.$route.query.jobId;
220
+    const jobId = this.$route.params && this.$route.params.jobId;
221 221
     if (jobId !== undefined && jobId != 0) {
222 222
       getJob(jobId).then(response => {
223 223
         this.queryParams.jobName = response.data.jobName;