Commit 3ae689df by 罗绍泽

更新

parent ccd1b8a2
...@@ -88,3 +88,7 @@ function getOptionMenuCount(){ ...@@ -88,3 +88,7 @@ function getOptionMenuCount(){
function backRow(){ function backRow(){
window.location = 'fileGrapView_fileGrapTab'; window.location = 'fileGrapView_fileGrapTab';
} }
function refreshRow(){
$('#listFileData').datagrid('reload');
}
\ No newline at end of file
...@@ -328,6 +328,7 @@ function lookRow(index){ ...@@ -328,6 +328,7 @@ function lookRow(index){
is_row[0].OPETYPE = 'update'; is_row[0].OPETYPE = 'update';
if(is_row[0].STATUS!='SUCCESS'){ if(is_row[0].STATUS!='SUCCESS'){
$.messager.alert('提示',"该记录无数据!",'info'); $.messager.alert('提示',"该记录无数据!",'info');
$('#list').datagrid('clearSelections');
return; return;
} }
window.location = 'fileGrapView_fileGrapDataTab?savepath='+is_row[0].SAVE_PATH; window.location = 'fileGrapView_fileGrapDataTab?savepath='+is_row[0].SAVE_PATH;
...@@ -360,6 +361,7 @@ function statusRow(index){ ...@@ -360,6 +361,7 @@ function statusRow(index){
success:function(data){ success:function(data){
if(data.statusCode==200){ if(data.statusCode==200){
$.messager.alert('提示',"状态获取成功!",'info'); $.messager.alert('提示',"状态获取成功!",'info');
$('#list').datagrid('clearSelections');
} }
$('#list').datagrid('load',{}); $('#list').datagrid('load',{});
} }
......
...@@ -131,3 +131,7 @@ function getOptionMenuCount(){ ...@@ -131,3 +131,7 @@ function getOptionMenuCount(){
function backRow(){ function backRow(){
window.location = 'textGrapView_textGrapTab'; window.location = 'textGrapView_textGrapTab';
} }
function refreshRow(){
$('#listData').datagrid('reload');
}
\ No newline at end of file
...@@ -344,9 +344,9 @@ function lookRow(index){ ...@@ -344,9 +344,9 @@ function lookRow(index){
var is_row = $('#list').datagrid('getSelections'); var is_row = $('#list').datagrid('getSelections');
if(is_row[0].STATUS!='SUCCESS'){ if(is_row[0].STATUS!='SUCCESS'){
$.messager.alert('提示',"该记录无数据!",'info'); $.messager.alert('提示',"该记录无数据!",'info');
$('#list').datagrid('clearSelections');
return; return;
} }
$('#list').datagrid('clearSelections');
window.location = 'textGrapView_textGrapDataTab?tablename='+is_row[0].TABLE_NAME; window.location = 'textGrapView_textGrapDataTab?tablename='+is_row[0].TABLE_NAME;
} }
...@@ -365,6 +365,7 @@ function statusRow(index){ ...@@ -365,6 +365,7 @@ function statusRow(index){
map.FIELD_TASK_ID=is_row[0].TASK_ID; map.FIELD_TASK_ID=is_row[0].TASK_ID;
if(is_row[0].STATUS=='SUCCESS'){ if(is_row[0].STATUS=='SUCCESS'){
$.messager.alert('提示',"该记录已爬取成功!",'info'); $.messager.alert('提示',"该记录已爬取成功!",'info');
$('#list').datagrid('clearSelections');
return; return;
} }
$.ajax({ $.ajax({
...@@ -374,6 +375,7 @@ function statusRow(index){ ...@@ -374,6 +375,7 @@ function statusRow(index){
success:function(data){ success:function(data){
if(data.statusCode==200){ if(data.statusCode==200){
$.messager.alert('提示',"状态获取成功!",'info'); $.messager.alert('提示',"状态获取成功!",'info');
$('#list').datagrid('clearSelections');
} }
$('#list').datagrid('load',{}); $('#list').datagrid('load',{});
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment