zouyuxuan 5 lat temu
rodzic
commit
cdf81fc72e
1 zmienionych plików z 1 dodań i 5 usunięć
  1. 1 5
      src/web/templates/private/customer_history.html

+ 1 - 5
src/web/templates/private/customer_history.html

@@ -364,7 +364,6 @@
         })
     }
     function showDepart() {
-        console.log("history_id",history_id)
         if (history_id != ""){
             var send_mode = document.getElementById("pushModelSelect").selectedIndex;
             var push_type = document.getElementById("pushTypeSelect").selectedIndex;
@@ -380,15 +379,12 @@
                 data: {"send_mode":send_mode,"push_type":push_type,"expand_type":expand_type,"s_name":s_name,"salename":salename,"s_customername":s_customername,"i_updatetime":i_updatetime,"history_id":history_id,"c_id":c_id},
                 success: function (r) {
                     if (r.rep) {
-                        history_id = r.history_id
-                        // window.location.replace("/service/cuser/rule/history/edit?hid="+history_id+"&id="+c_id)
+                        window.location.replace("/service/cuser/rule/history/edit?hid="+history_id+"&id="+c_id)
                     } else {
                         showTip("保存失败", 500);
                     }
                 }
             })
-        }else{
-            window.location.replace("/service/cuser/rule/history/edit?hid="+history_id+"&id="+c_id)
         }
 
     }