Authored by liangyi.chen@yoho.cn

页面bug修复

... ... @@ -58,6 +58,8 @@
<div region="center" id="labelGroupList" style="margin-left: 20px;width: 100%">
<div id="tt" class="easyui-layout" style="overflow-y: scroll;overflow-x: auto;">
<form name="publishArticleForm" id="publishArticleForm" method="post" >
<input type="hidden" name="crawlerId" id="crawlerId" />
<input type="hidden" name="sort" id="sort" />
<div style="margin-top: 20px;margin-left: 30px">
<table border="0" style="width:95%;margin-top:5px;line-height:30px;" id="tab">
... ... @@ -178,7 +180,7 @@
var imgList ;
var contentText;
var articleUid ;
var id;
var crawlerId;
$(function () {
$("#content").emojioneArea({
... ... @@ -662,7 +664,16 @@
theRequest[ strs[ i ].split( "=" )[ 0 ] ] = ( strs[ i ].split( "=" )[ 1 ] );
}
articleUid = theRequest.yhUid;
id= theRequest.id;
crawlerId= theRequest.id;
var sort;
debugger;
if(theRequest.crawlerType == 1){
sort = 2;
}else if(theRequest.crawlerType == 2){
sort = 1;
}
$("#crawlerId").val(crawlerId);
$("#sort").val(sort);
}
if (articleUid != null && articleUid != undefined)
{
... ... @@ -671,7 +682,7 @@
$.ajax({
async: false,
type: "GET",
url: serverContextPath + "/tblCrawlerArticle/queryTblCrawlerInfoById?id="+id, //提交到后端的url
url: serverContextPath + "/tblCrawlerArticle/queryTblCrawlerInfoById?id="+crawlerId, //提交到后端的url
success: function (result) {
if(result.code == 200) {
if(result.data !=null && result.data !='') {
... ...
... ... @@ -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;
}
... ...