|
@@ -454,10 +454,10 @@
|
|
|
{{if eq (session "auth") 1}}
|
|
|
if(state=="2" || state=="0"){
|
|
|
var reason={{.T.lua.reason}};
|
|
|
- if(reason!=""&&reason!=null){
|
|
|
- $("#errortips").text("打回信息:"+reason);
|
|
|
- $("#errortips").removeClass("hide");
|
|
|
- }
|
|
|
+ if(reason!=""&&reason!=null){
|
|
|
+ $("#errortips").text("打回信息:"+reason);
|
|
|
+ $("#errortips").removeClass("hide");
|
|
|
+ }
|
|
|
}else if(state=="4"){
|
|
|
var disablereason="{{.T.lua.disablereason}}";
|
|
|
if(disablereason!=""){
|
|
@@ -527,13 +527,13 @@
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
- function submitrepair(code,info,restate){
|
|
|
- if(restate==1 && !issave){
|
|
|
+ function submitrepair(code,info,restate){
|
|
|
+ if(restate==1 && !issave){
|
|
|
alert("请保存爬虫!")
|
|
|
return
|
|
|
- }
|
|
|
- showConfirm("确定"+info+"?", function() {
|
|
|
- $.ajax({
|
|
|
+ }
|
|
|
+ showConfirm("确定"+info+"?", function() {
|
|
|
+ $.ajax({
|
|
|
url:"/center/errorData/updateRestate",
|
|
|
type:"post",
|
|
|
data:{"code":code,"restate":restate},
|
|
@@ -544,10 +544,10 @@
|
|
|
//}
|
|
|
}
|
|
|
})
|
|
|
- });
|
|
|
- }
|
|
|
- //编辑js
|
|
|
- function editJs(step) {
|
|
|
+ });
|
|
|
+ }
|
|
|
+ //编辑js
|
|
|
+ function editJs(step) {
|
|
|
if (step == "list"){//list
|
|
|
$("#Step2_js_pre").removeClass("hide")
|
|
|
$("#Step3_js_pre").addClass("hide")
|
|
@@ -565,9 +565,9 @@
|
|
|
}
|
|
|
$("#savejs").attr("step",step)
|
|
|
common.spider.editjs(step);
|
|
|
- }
|
|
|
- //保存js
|
|
|
- function saveJs() {
|
|
|
+ }
|
|
|
+ //保存js
|
|
|
+ function saveJs() {
|
|
|
var step = $("#savejs").attr("step");
|
|
|
var jstext = ""
|
|
|
if (step == "list"){
|
|
@@ -603,9 +603,9 @@
|
|
|
}, 1000);
|
|
|
}
|
|
|
})
|
|
|
- }
|
|
|
- //添加chrome动作
|
|
|
- function addChromeAction(a,actionType){
|
|
|
+ }
|
|
|
+ //添加chrome动作
|
|
|
+ function addChromeAction(a,actionType){
|
|
|
// return [{name:'切换IP(changeip)',value:'changeip'},{name:'链接地址(navigate)',value:'navigate'},{name:'点击(click)',value:'click'},{name:'元素加载完毕(waitready)',value:'waitready'},{name:'元素可见(waitvisible)',value:'waitvisible'},{name:'等待休息(wait)',value:'wait'},{name:'执行JS(evaluate)',value:'evaluate'},{name:'获取HTML(outerhtml)',value:'outerhtml'},{name:'匹配列表链接(listhref)',value:'listhref'},{name:'获取列表HTML(listhtml)',value:'listhtml'}];
|
|
|
var actionData = [{name:'切换IP(changeip)',value:'changeip'},{name:'链接地址(navigate)',value:'navigate'},{name:'点击(click)',value:'click'},{name:'元素加载完毕(waitready)',value:'waitready'},{name:'等待休息(wait)',value:'wait'},{name:'执行JS(evaluate)',value:'evaluate'},{name:'获取HTML(outerhtml)',value:'outerhtml'}];
|
|
|
var actionMap = baseActionHtmlMap;
|