|
@@ -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");
|