修复调度日志点击多次数据不变化的问题
This commit is contained in:
parent
c7fa74116c
commit
69a246ac8a
|
@ -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' }
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue