修复调度日志点击多次数据不变化的问题
This commit is contained in:
@ -137,7 +137,7 @@ export const dynamicRoutes = [
|
|||||||
permissions: ['monitor:job:list'],
|
permissions: ['monitor:job:list'],
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'index',
|
path: 'index/:jobId(\\d+)',
|
||||||
component: () => import('@/views/monitor/job/log'),
|
component: () => import('@/views/monitor/job/log'),
|
||||||
name: 'JobLog',
|
name: 'JobLog',
|
||||||
meta: { title: '调度日志', activeMenu: '/monitor/job' }
|
meta: { title: '调度日志', activeMenu: '/monitor/job' }
|
||||||
|
@ -448,7 +448,7 @@ function crontabFill(value) {
|
|||||||
/** 任务日志列表查询 */
|
/** 任务日志列表查询 */
|
||||||
function handleJobLog(row) {
|
function handleJobLog(row) {
|
||||||
const jobId = row.jobId || 0;
|
const jobId = row.jobId || 0;
|
||||||
router.push({ path: "/monitor/job-log/index", query: { jobId: jobId } });
|
router.push('/monitor/job-log/index/' + jobId)
|
||||||
}
|
}
|
||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
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) {
|
if (jobId !== undefined && jobId != 0) {
|
||||||
getJob(jobId).then(response => {
|
getJob(jobId).then(response => {
|
||||||
queryParams.value.jobName = response.data.jobName;
|
queryParams.value.jobName = response.data.jobName;
|
||||||
|
Reference in New Issue
Block a user