From 7325ed91d7bb0422bdf85c9e1d7c31701d712fe1 Mon Sep 17 00:00:00 2001 From: 18idc <993143799@qq.com> Date: Fri, 9 Apr 2021 21:50:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V1.0_20210409_2112_alter_sys_timers.sql | 2 ++ src/main/webapp/assets/modular/system/timers/timers.js | 1 + .../webapp/pages/modular/system/timers/timers_add.html | 8 +++++++- .../webapp/pages/modular/system/timers/timers_edit.html | 6 ++++++ 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/db/migration/V1.0_20210409_2112_alter_sys_timers.sql 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 @@