diff --git a/src/main/resources/sql/20181016/alert_table_id_length.sql b/src/main/resources/sql/20181016/alert_table_id_length.sql index 6aaa88f79..563ba43e0 100644 --- a/src/main/resources/sql/20181016/alert_table_id_length.sql +++ b/src/main/resources/sql/20181016/alert_table_id_length.sql @@ -1,4 +1,4 @@ -alter table cfg_num_statistics modify column id bigint; -alter table request_num_statistics modify column id bigint; -alter table proc_exec_log modify column id bigint; -alter table sys_log modify column id bigint; \ No newline at end of file +alter table cfg_num_statistics modify column id bigint auto_increment; +alter table request_num_statistics modify column id bigint auto_increment; +alter table proc_exec_log modify column id bigint auto_increment; +alter table sys_log modify column id bigint auto_increment; \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp b/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp index 7a6b6ff19..a6db5dcff 100644 --- a/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp @@ -88,10 +88,14 @@ function hiddenlevel(){ var action=$("input[name='action']:checked").val(); if(action==16){ $(".leveL").addClass("hidden"); - $("select[name='level']").val(0); + $("select[name='level']").find("option").eq(0).attr("value","0"); + $("select[name='level']").val("0"); + $("select[name='level']").selectpicker("refresh"); }else { $(".leveL").removeClass("hidden"); - $("select[name='level']").val(0); + $("select[name='level']").find("option").eq(0).attr("value",""); + $("select[name='level']").val("100"); + $("select[name='level']").selectpicker("refresh"); } }