...
|
...
|
@@ -209,7 +209,7 @@ |
|
|
|
|
|
if(value == '' || value == null || value == undefined){
|
|
|
if(rowData.crawlerType == 2){
|
|
|
str = "短文章";
|
|
|
str = "笔记";
|
|
|
}else if(rowData.crawlerType == 1){
|
|
|
str = "长文章"
|
|
|
}
|
...
|
...
|
@@ -294,8 +294,14 @@ |
|
|
}else if(rowData.checkStatus == 2){
|
|
|
str += "<a role='updateStatus' class='btn-success' dataId='"+rowData.id+ "' dataAuthStatus='1' index='"+ rowIndex + "' style='margin-left:10px'>设为未审核</a>";
|
|
|
}
|
|
|
if(rowData.articleId != ''){
|
|
|
str = str + "<a role='showDetail' dataId='"+rowData.id+ "' index='"+ rowIndex + "' style='margin-left:10px'>编辑</a>";
|
|
|
if(rowData.articleId == '' || rowData.articleId == null){
|
|
|
if(rowData.checkStatus == 2){
|
|
|
str = str + "<a role='showDetail' dataId='"+rowData.id+ "' index='"+ rowIndex + "' style='margin-left:10px;'>编辑</a>";
|
|
|
}else{
|
|
|
str = str + "<a role='showDetail' dataId='"+rowData.id+ "' index='"+ rowIndex + "' style='margin-left:10px;display: none'>编辑</a>"
|
|
|
}
|
|
|
}else{
|
|
|
str = str + "<a role='showDetail' dataId='"+rowData.id+ "' index='"+ rowIndex + "' style='margin-left:10px;display: none'>编辑</a>"
|
|
|
}
|
|
|
return str;
|
|
|
}
|
...
|
...
|
@@ -349,7 +355,8 @@ |
|
|
var row = $("#activityListTable").datagrid('getData').rows[index];
|
|
|
var yhUid = row.yhUid;
|
|
|
var imgList = row.imgList;
|
|
|
getPublishDialog(yhUid , row.id , imgList);
|
|
|
var crawlerType = row.crawlerType;
|
|
|
getPublishDialog(yhUid , row.id , imgList , crawlerType);
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -358,7 +365,7 @@ |
|
|
|
|
|
|
|
|
function switchRecommend(id, status) {
|
|
|
$.post(serverContextPath + "/tblCrawlerArticle/modifyStatus?id=" + id + "&checkStatus=" + status, function (data) {
|
|
|
$.post(serverContextPath + "/tblCrawlerArticle/modifyTblCrawlerArticleStatus?id=" + id + "&checkStatus=" + status, function (data) {
|
|
|
if(data.code != 200){
|
|
|
alert(data.message);
|
|
|
}else{
|
...
|
...
|
@@ -369,12 +376,12 @@ |
|
|
});
|
|
|
|
|
|
// 审核 文章详情页
|
|
|
function getPublishDialog(yhUid , id){
|
|
|
function getPublishDialog(yhUid , id , imgList , crawlerType){
|
|
|
if(yhUid == undefined){
|
|
|
yhUid = "";
|
|
|
}
|
|
|
window.location.href=contextPath + "/html/grass/tblCrawlerInfoManage/crawlerInfoPublish.html?yhUid="+yhUid+"&id="
|
|
|
+id;
|
|
|
+id+"&crawlerType="+crawlerType;
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|