Authored by 张帅

页面优化

... ... @@ -907,6 +907,10 @@ public class GrassArticleServiceImpl implements IGrassArticleService{
rspBo.setAuthStatus(grassArticle.getAuthStatus());
rspBo.setSource(grassArticle.getArticleType());
rspBo.setSourceStr(ArticleTypeEnum.getNameByValue(grassArticle.getArticleType()));
//是否已发布 Y 已经发布 N 还没发布 //只有authtime =1 的时候 字段才有效
String isPublished = grassArticle.getCreateTime() >= System.currentTimeMillis() ? "N" : "Y";
rspBo.setPublishTime(isPublished);
//1)文章内容
List<GrassArticleBlock> grassArticleContentList = grassArticleBlockDao.selectByArticleId(articleId);
List<String> imageList = new ArrayList<>();
... ...
... ... @@ -202,9 +202,11 @@
if (authStatus == null || authStatus == '0') {
authStatusStr = "待审核";
// $("#authBtn").attr("style", "display:block");
} else if (authStatus == '1') {
} else if (authStatus == '1' ) {
authStatusStr = "已通过";
$("#cancelBtn").attr("style", "display:block");
if(detailInfo.publishTime == 'N'){
$("#cancelBtn").attr("style", "display:block");
}
} else if (authStatus == '2') {
authStatusStr = "未通过";
// $("#authBtn").attr("style", "display:block");
... ... @@ -293,7 +295,7 @@
alert(data.message);
}else{
$.messager.alert("操作成功", "操作成功", "info");
location = contextPath+"/html/grass/article/draftArticleList.html";
location .reload();
}
}, "json");
}
... ... @@ -306,7 +308,7 @@
alert(data.message);
}else{
$.messager.alert("操作成功", "发布成功", "info");
location = contextPath+"/html/grass/article/draftArticleList.html";
location .reload();
}
}, "json");
}
... ...