|
|
|
@@ -73,15 +73,60 @@ function displayResult(tableName,page,jsonResult,onlyReturnNum,keyword){ |
|
|
|
} else if (tableName == "issue") { |
|
|
|
displayIssueResult(page,jsonResult,onlyReturnNum,keyword); |
|
|
|
} else if (tableName == "user") { |
|
|
|
|
|
|
|
displayUserResult(page,jsonResult,onlyReturnNum,keyword); |
|
|
|
} else if (tableName == "org") { |
|
|
|
|
|
|
|
displayOrgResult(page,jsonResult,onlyReturnNum,keyword); |
|
|
|
} else if (tableName == "dataset") { |
|
|
|
|
|
|
|
displayDataSetResult(page,jsonResult,onlyReturnNum,keyword); |
|
|
|
} else if (tableName == "pr") { |
|
|
|
|
|
|
|
displayPrResult(page,jsonResult,onlyReturnNum,keyword); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function displayPrResult(page,jsonResult,onlyReturnNum,keyword){ |
|
|
|
var data = jsonResult.Result; |
|
|
|
var total = jsonResult.Total; |
|
|
|
$('#pr_total').text(total); |
|
|
|
if(!onlyReturnNum){ |
|
|
|
$('#keyword_desc').text(keyword); |
|
|
|
$('#obj_desc').text("合并请求"); |
|
|
|
$('#child_total').text(total); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function displayDataSetResult(page,jsonResult,onlyReturnNum,keyword){ |
|
|
|
var data = jsonResult.Result; |
|
|
|
var total = jsonResult.Total; |
|
|
|
$('#dataset_total').text(total); |
|
|
|
if(!onlyReturnNum){ |
|
|
|
$('#keyword_desc').text(keyword); |
|
|
|
$('#obj_desc').text("数据集"); |
|
|
|
$('#child_total').text(total); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function displayOrgResult(page,jsonResult,onlyReturnNum,keyword){ |
|
|
|
var data = jsonResult.Result; |
|
|
|
var total = jsonResult.Total; |
|
|
|
$('#org_total').text(total); |
|
|
|
if(!onlyReturnNum){ |
|
|
|
$('#keyword_desc').text(keyword); |
|
|
|
$('#obj_desc').text("组织"); |
|
|
|
$('#child_total').text(total); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function displayUserResult(page,jsonResult,onlyReturnNum,keyword){ |
|
|
|
var data = jsonResult.Result; |
|
|
|
var total = jsonResult.Total; |
|
|
|
$('#user_total').text(total); |
|
|
|
if(!onlyReturnNum){ |
|
|
|
$('#keyword_desc').text(keyword); |
|
|
|
$('#obj_desc').text("用户"); |
|
|
|
$('#child_total').text(total); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function displayIssueResult(page,jsonResult,onlyReturnNum,keyword){ |
|
|
|
var data = jsonResult.Result; |
|
|
|
var total = jsonResult.Total; |
|
|
|
|