xuzhiheng 5 years ago
parent
commit
5ba8879a9d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/web/templates/private/historylog_list.html

+ 2 - 2
src/web/templates/private/historylog_list.html

@@ -324,7 +324,7 @@
     function historyWork(obj){
         var ok = confirm("是否确定执行?");
         if (ok){
-            $(obj).removeClass("btn-default").addClass("btn-info");
+            $(obj).removeClass("btn-default").addClass("btn-info").attr("onclick","");
             $(obj).text("进行");
             var ishistory = $("#showHistory").hasClass("active")
             var val = $(obj).attr("eid");
@@ -337,7 +337,7 @@
                         $(obj).text("完成");
                     },
                     error: function (r) {
-                        $(obj).removeClass("btn-info").addClass("btn-danger");
+                        $(obj).removeClass("btn-info").addClass("btn-danger").attr("disabled","disabled");
                         $(obj).text("失败");
                     }
                 })