maxiaoshan 3 年之前
父节点
当前提交
a560e2e9d3
共有 1 个文件被更改,包括 25 次插入25 次删除
  1. 25 25
      src/web/templates/index.html

+ 25 - 25
src/web/templates/index.html

@@ -506,7 +506,30 @@ $(function(){
 			$("#spider td input[type=checkbox]").prop("checked",false);
 		}
 	}
-
+  function spidercopy(){
+      $("#modal-spidercopy").modal("show");
+  } 
+  //复制爬虫
+  function comfirm_spidercopy(){
+    var code = $("#spidercopy").val();
+    if(code != ""){
+      $.ajax({
+				url:"/center/spider/copy",
+				type:"post",
+				data:{"code": code},
+				success: function(r){
+				  if(r&&r.success){
+            $("#modal-spidercopy").modal("hide");
+            window.open("/center/spider/edit/"+r.encode+"__")
+          }else{
+            alert(r.text)
+          }
+				}
+			})
+    }else{
+      alert("爬虫不能为空!")
+    }
+  }
 {{if gt (session "auth") 1}}	
 	function refuse(me){
 		var $r=window.prompt("确定打回?请输入打回原因")
@@ -543,9 +566,7 @@ $(function(){
 	//		})
 	//	});
     //}
-  function spidercopy(){
-    $("#modal-spidercopy").modal("show");
-  }  
+   
     
 	function assign(){
 		var names=[];
@@ -593,27 +614,6 @@ $(function(){
 	function disables(){
 		$("#modal-disables").modal("show");
 	}
-  //复制爬虫
-  function comfirm_spidercopy(){
-    var code = $("#spidercopy").val();
-    if(code != ""){
-      $.ajax({
-				url:"/center/spider/copy",
-				type:"post",
-				data:{"code": code},
-				success: function(r){
-				  if(r&&r.success){
-            $("#modal-spidercopy").modal("hide");
-            window.open("/center/spider/edit/"+r.encode+"__")
-          }else{
-            alert(r.text)
-          }
-				}
-			})
-    }else{
-      alert("爬虫不能为空!")
-    }
-  }
 	//确认作废
 	function comfirm_disables(){
 		$("#modal-disables").modal("hide");