Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5eb30c7e
authored
Dec 03, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
修复 job 在 IDEA 报错的问题
parent
85fe4ad8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
9 deletions
+15
-9
src/api/infra/jobLog/index.ts
+2
-2
src/views/infra/job/JobDetail.vue
+1
-1
src/views/infra/job/JobForm.vue
+8
-2
src/views/infra/job/index.vue
+3
-3
src/views/infra/job/logger/JobLogDetail.vue
+1
-1
No files found.
src/api/infra/jobLog/index.ts
View file @
5eb30c7e
...
@@ -7,8 +7,8 @@ export interface JobLogVO {
...
@@ -7,8 +7,8 @@ export interface JobLogVO {
handlerParam
:
string
handlerParam
:
string
cronExpression
:
string
cronExpression
:
string
executeIndex
:
string
executeIndex
:
string
beginTime
:
string
beginTime
:
Date
endTime
:
string
endTime
:
Date
duration
:
string
duration
:
string
status
:
number
status
:
number
createTime
:
string
createTime
:
string
...
...
src/views/infra/job/JobDetail.vue
View file @
5eb30c7e
...
@@ -51,7 +51,7 @@ defineOptions({ name: 'InfraJobDetail' })
...
@@ -51,7 +51,7 @@ defineOptions({ name: 'InfraJobDetail' })
const
dialogVisible
=
ref
(
false
)
// 弹窗的是否展示
const
dialogVisible
=
ref
(
false
)
// 弹窗的是否展示
const
detailLoading
=
ref
(
false
)
// 表单的加载中
const
detailLoading
=
ref
(
false
)
// 表单的加载中
const
detailData
=
ref
({})
// 详情数据
const
detailData
=
ref
({}
as
JobApi
.
JobVO
)
// 详情数据
const
nextTimes
=
ref
([])
// 下一轮执行时间的数组
const
nextTimes
=
ref
([])
// 下一轮执行时间的数组
/** 打开弹窗 */
/** 打开弹窗 */
...
...
src/views/infra/job/JobForm.vue
View file @
5eb30c7e
...
@@ -62,7 +62,10 @@ const formData = ref({
...
@@ -62,7 +62,10 @@ const formData = ref({
name
:
''
,
name
:
''
,
handlerName
:
''
,
handlerName
:
''
,
handlerParam
:
''
,
handlerParam
:
''
,
cronExpression
:
''
cronExpression
:
''
,
retryCount
:
undefined
,
retryInterval
:
undefined
,
monitorTimeout
:
undefined
})
})
const
formRules
=
reactive
({
const
formRules
=
reactive
({
name
:
[{
required
:
true
,
message
:
'任务名称不能为空'
,
trigger
:
'blur'
}],
name
:
[{
required
:
true
,
message
:
'任务名称不能为空'
,
trigger
:
'blur'
}],
...
@@ -124,7 +127,10 @@ const resetForm = () => {
...
@@ -124,7 +127,10 @@ const resetForm = () => {
name
:
''
,
name
:
''
,
handlerName
:
''
,
handlerName
:
''
,
handlerParam
:
''
,
handlerParam
:
''
,
cronExpression
:
''
cronExpression
:
''
,
retryCount
:
undefined
,
retryInterval
:
undefined
,
monitorTimeout
:
undefined
}
}
formRef
.
value
?.
resetFields
()
formRef
.
value
?.
resetFields
()
}
}
...
...
src/views/infra/job/index.vue
View file @
5eb30c7e
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
>
>
<Icon
icon=
"ep:download"
class=
"mr-5px"
/>
导出
<Icon
icon=
"ep:download"
class=
"mr-5px"
/>
导出
</el-button>
</el-button>
<el-button
type=
"info"
plain
@
click=
"handleJobLog"
v-hasPermi=
"['infra:job:query']"
>
<el-button
type=
"info"
plain
@
click=
"handleJobLog
()
"
v-hasPermi=
"['infra:job:query']"
>
<Icon
icon=
"ep:zoom-in"
class=
"mr-5px"
/>
执行日志
<Icon
icon=
"ep:zoom-in"
class=
"mr-5px"
/>
执行日志
</el-button>
</el-button>
</el-form-item>
</el-form-item>
...
@@ -292,8 +292,8 @@ const openDetail = (id: number) => {
...
@@ -292,8 +292,8 @@ const openDetail = (id: number) => {
}
}
/** 跳转执行日志 */
/** 跳转执行日志 */
const
handleJobLog
=
(
id
:
number
)
=>
{
const
handleJobLog
=
(
id
?
:
number
)
=>
{
if
(
id
>
0
)
{
if
(
id
&&
id
>
0
)
{
push
(
'/job/job-log?id='
+
id
)
push
(
'/job/job-log?id='
+
id
)
}
else
{
}
else
{
push
(
'/job/job-log'
)
push
(
'/job/job-log'
)
...
...
src/views/infra/job/logger/JobLogDetail.vue
View file @
5eb30c7e
...
@@ -40,7 +40,7 @@ defineOptions({ name: 'JobLogDetail' })
...
@@ -40,7 +40,7 @@ defineOptions({ name: 'JobLogDetail' })
const
dialogVisible
=
ref
(
false
)
// 弹窗的是否展示
const
dialogVisible
=
ref
(
false
)
// 弹窗的是否展示
const
detailLoading
=
ref
(
false
)
// 表单的加载中
const
detailLoading
=
ref
(
false
)
// 表单的加载中
const
detailData
=
ref
({})
// 详情数据
const
detailData
=
ref
({}
as
JobLogApi
.
JobLogVO
)
// 详情数据
/** 打开弹窗 */
/** 打开弹窗 */
const
open
=
async
(
id
:
number
)
=>
{
const
open
=
async
(
id
:
number
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment