diff --git a/src/main/resources/db/migration/V1.0_20210409_2112_alter_sys_timers.sql b/src/main/resources/db/migration/V1.0_20210409_2112_alter_sys_timers.sql new file mode 100644 index 00000000..7dc2e525 --- /dev/null +++ b/src/main/resources/db/migration/V1.0_20210409_2112_alter_sys_timers.sql @@ -0,0 +1,2 @@ +alter table sys_timers + add params varchar(2000) null comment '参数' after cron; \ No newline at end of file diff --git a/src/main/webapp/assets/modular/system/timers/timers.js b/src/main/webapp/assets/modular/system/timers/timers.js index df78bee9..9e545f3c 100644 --- a/src/main/webapp/assets/modular/system/timers/timers.js +++ b/src/main/webapp/assets/modular/system/timers/timers.js @@ -17,6 +17,7 @@ layui.use(['table', 'admin', 'form', 'func', 'HttpRequest', 'dropdown'], functio {type: 'checkbox'}, {field: 'timerId', hide: true, title: '主键id'}, {field: 'timerName', sort: true, title: '任务名称'}, + {field: 'params', sort: true, title: '参数'}, {field: 'cron', sort: true, title: 'cron表达式'}, {field: 'actionClass', sort: true, title: '任务class'}, {field: 'remark', sort: true, title: '备注信息'}, diff --git a/src/main/webapp/pages/modular/system/timers/timers_add.html b/src/main/webapp/pages/modular/system/timers/timers_add.html index 090d5b05..605f7156 100644 --- a/src/main/webapp/pages/modular/system/timers/timers_add.html +++ b/src/main/webapp/pages/modular/system/timers/timers_add.html @@ -22,11 +22,17 @@