提交者
Gitee
修复调度日志点击多次数据不变化的问题
Signed-off-by: 也曾为你像超人 <1553592282@qq.com>
正在显示
3 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -141,7 +141,7 @@ export const dynamicRoutes = [ | @@ -141,7 +141,7 @@ export const dynamicRoutes = [ | ||
| 141 | permissions: ['monitor:job:list'], | 141 | permissions: ['monitor:job:list'], |
| 142 | children: [ | 142 | children: [ |
| 143 | { | 143 | { |
| 144 | - path: 'index', | 144 | + path: 'index/:jobId(\\d+)', |
| 145 | component: () => import('@/views/monitor/job/log'), | 145 | component: () => import('@/views/monitor/job/log'), |
| 146 | name: 'JobLog', | 146 | name: 'JobLog', |
| 147 | meta: { title: '调度日志', activeMenu: '/monitor/job' } | 147 | meta: { title: '调度日志', activeMenu: '/monitor/job' } |
| @@ -454,7 +454,7 @@ export default { | @@ -454,7 +454,7 @@ export default { | ||
| 454 | /** 任务日志列表查询 */ | 454 | /** 任务日志列表查询 */ |
| 455 | handleJobLog(row) { | 455 | handleJobLog(row) { |
| 456 | const jobId = row.jobId || 0; | 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 | handleAdd() { | 460 | handleAdd() { |
| @@ -217,7 +217,7 @@ export default { | @@ -217,7 +217,7 @@ export default { | ||
| 217 | }; | 217 | }; |
| 218 | }, | 218 | }, |
| 219 | created() { | 219 | created() { |
| 220 | - const jobId = this.$route.query.jobId; | 220 | + const jobId = this.$route.params && this.$route.params.jobId; |
| 221 | if (jobId !== undefined && jobId != 0) { | 221 | if (jobId !== undefined && jobId != 0) { |
| 222 | getJob(jobId).then(response => { | 222 | getJob(jobId).then(response => { |
| 223 | this.queryParams.jobName = response.data.jobName; | 223 | this.queryParams.jobName = response.data.jobName; |
-
请 注册 或 登录 后发表评论