...
|
...
|
@@ -578,7 +578,7 @@ |
|
|
onClick: function () {
|
|
|
var dataId = $(this).attr("dataId");
|
|
|
var authStatus = $(this).attr("dataAuthStatus");//取消屏蔽则恢复为审核通过状态
|
|
|
$.post(serverContextPath + "/grassArticle/updateArticle?articleId=" + dataId+"&authStatus="+authStatus+"&operateType=2", function (data) {
|
|
|
$.post(serverContextPath + "/grassArticle/updateArticle.do?articleId=" + dataId+"&authStatus="+authStatus+"&operateType=2", function (data) {
|
|
|
if(data.code != 200){
|
|
|
alert(data.message);
|
|
|
}else{
|
...
|
...
|
@@ -594,7 +594,7 @@ |
|
|
function switchRecommend(id, status) {
|
|
|
debugger
|
|
|
var switchStatus = status == 1 ? 0 : 1;
|
|
|
$.post(serverContextPath + "/grassArticle/updateArticle?articleId=" + id + "&isRecommend=" + switchStatus+ "&operateType=0", function (data) {
|
|
|
$.post(serverContextPath + "/grassArticle/updateArticle.do?articleId=" + id + "&isRecommend=" + switchStatus+ "&operateType=0", function (data) {
|
|
|
if(data.code != 200){
|
|
|
alert(data.message);
|
|
|
}else{
|
...
|
...
|
@@ -606,7 +606,7 @@ |
|
|
function switchTop(id, status) {
|
|
|
debugger
|
|
|
var switchStatus = status == 1 ? 0 : 1;
|
|
|
$.post(serverContextPath + "/grassArticle/updateArticle?articleId=" + id + "&isTop=" + switchStatus+ "&operateType=0", function (data) {
|
|
|
$.post(serverContextPath + "/grassArticle/updateArticle.do?articleId=" + id + "&isTop=" + switchStatus+ "&operateType=0", function (data) {
|
|
|
if(data.code != 200){
|
|
|
alert(data.message);
|
|
|
}else{
|
...
|
...
|
@@ -636,7 +636,7 @@ |
|
|
iconCls: "icon-cancel",
|
|
|
handler: function () {
|
|
|
//文章审核-通过
|
|
|
$.post(serverContextPath + "/grassArticle/updateArticle?articleId=" + articleId + "&authStatus=1&operateType=2", function (data) {
|
|
|
$.post(serverContextPath + "/grassArticle/updateArticle.do?articleId=" + articleId + "&authStatus=1&operateType=2", function (data) {
|
|
|
if (data.code == 200) {
|
|
|
$.messager.show({
|
|
|
title: "提示",
|
...
|
...
|
@@ -661,7 +661,7 @@ |
|
|
handler: function () {
|
|
|
//文章审核--不通过
|
|
|
//文章审核-通过
|
|
|
$.post(serverContextPath + "/grassArticle/updateArticle?articleId=" + articleId + "&authStatus=2&operateType=2", function (data) {
|
|
|
$.post(serverContextPath + "/grassArticle/updateArticle.do?articleId=" + articleId + "&authStatus=2&operateType=2", function (data) {
|
|
|
if (data.code == 200) {
|
|
|
$.messager.show({
|
|
|
title: "提示",
|
...
|
...
|
|