Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
a7e22ced
Commit
a7e22ced
authored
Jul 04, 2019
by
Elune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时任务加入漏掉的新增与编辑dialog
parent
6622ccdb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletions
+32
-1
src/views/system/timing/index.vue
+32
-1
No files found.
src/views/system/timing/index.vue
View file @
a7e22ced
...
...
@@ -12,7 +12,7 @@
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"dialog = true;
isAdd = true"
>
新增
</el-button>
@
click=
"dialog = true;isAdd = true"
>
新增
</el-button>
</div>
<!-- 任务日志 -->
<div
v-permission=
"['ADMIN','JOB_ALL','JOB_SELECT']"
style=
"display: inline-block;"
>
...
...
@@ -25,6 +25,37 @@
<Log
ref=
"log"
/>
</div>
</div>
<!--Form表单-->
<el-dialog
:visible
.
sync=
"dialog"
:title=
"isAdd ? '新增任务' : '编辑任务'"
append-to-body
width=
"600px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"100px"
>
<el-form-item
label=
"任务名称"
prop=
"jobName"
>
<el-input
v-model=
"form.jobName"
style=
"width: 460px;"
/>
</el-form-item>
<el-form-item
label=
"Bean名称"
prop=
"beanName"
>
<el-input
v-model=
"form.beanName"
style=
"width: 460px;"
/>
</el-form-item>
<el-form-item
label=
"执行方法"
prop=
"methodName"
>
<el-input
v-model=
"form.methodName"
style=
"width: 460px;"
/>
</el-form-item>
<el-form-item
label=
"参数内容"
>
<el-input
v-model=
"form.params"
style=
"width: 460px;"
/>
</el-form-item>
<el-form-item
label=
"Cron表达式"
prop=
"cronExpression"
>
<el-input
v-model=
"form.cronExpression"
style=
"width: 460px;"
/>
</el-form-item>
<el-form-item
label=
"任务状态"
>
<el-radio
v-model=
"form.isPause"
label=
"false"
>
启用
</el-radio>
<el-radio
v-model=
"form.isPause"
label=
"true"
>
暂停
</el-radio>
</el-form-item>
<el-form-item
label=
"任务描述"
>
<el-input
v-model=
"form.remark"
style=
"width: 460px;"
rows=
"2"
type=
"textarea"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"text"
@
click=
"cancel"
>
取消
</el-button>
<el-button
:loading=
"loading"
type=
"primary"
@
click=
"doSubmit"
>
确认
</el-button>
</div>
</el-dialog>
<!--表格渲染-->
<el-table
v-loading=
"loading"
:data=
"data"
size=
"small"
style=
"width: 100%;"
>
<el-table-column
:show-overflow-tooltip=
"true"
prop=
"jobName"
width=
"100px"
label=
"任务名称"
/>
...
...
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