...
|
...
|
@@ -59,6 +59,8 @@ |
|
|
</input>
|
|
|
<input class="easyui-combobox" id="recommendSort">
|
|
|
</input>
|
|
|
<input class="easyui-combobox" id="authStatus">
|
|
|
</input>
|
|
|
<a id="searchBtn" class="btn-info">筛选</a>
|
|
|
<!--<a id="addActivityBtn" class="btn-success">新增</a>-->
|
|
|
<a id="allBtn" class="btn-info">全部 </a>
|
...
|
...
|
@@ -90,7 +92,7 @@ |
|
|
$("#startTimeStr").datetimebox('setValue',"");
|
|
|
$("#endTimeStr").datetimebox('setValue',"");
|
|
|
$("#activityListTable").datagrid("load", {
|
|
|
authStatus: "1"
|
|
|
authStatus: "-1"
|
|
|
});
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -141,6 +143,15 @@ |
|
|
data:[{text:"选择推荐顺序",value:"0"},{text:"推荐降序",value:"desc"},{text:"推荐升序",value:"asc"}]
|
|
|
});
|
|
|
|
|
|
//是否屏蔽
|
|
|
$("#authStatus").combobox({
|
|
|
valueField : "value",
|
|
|
textField : "text",
|
|
|
required:false,
|
|
|
prompt: "请选择屏蔽状态",
|
|
|
data:[{text:"全部",value:"-1"},{text:"已屏蔽",value:"4"},{text:"未屏蔽",value:"1"}]
|
|
|
});
|
|
|
|
|
|
// 检索按钮
|
|
|
$("#searchBtn").linkbutton({
|
|
|
iconCls : "icon-search",
|
...
|
...
|
@@ -155,7 +166,7 @@ |
|
|
endTime = parseInt(new Date($("#endTimeStr").datetimebox('getValue')).getTime() );
|
|
|
}
|
|
|
$("#activityListTable").datagrid("load", {
|
|
|
authStatus: "1",
|
|
|
authStatus: $("#authStatus").combobox("getValue"),
|
|
|
publisher: $("#publisher").textbox("getValue"),
|
|
|
authorUid: $("#publisherUid").textbox("getValue"),
|
|
|
articleId: $("#articleId").textbox("getValue"),
|
...
|
...
|
@@ -180,7 +191,7 @@ |
|
|
articleId: $("#articleId").textbox("getValue"),
|
|
|
source: $("#source").textbox("getValue"),
|
|
|
recommendSort:$("#recommendSort").combobox("getValue"),
|
|
|
authStatus: "1"
|
|
|
authStatus: $("#authStatus").combobox("getValue")
|
|
|
},
|
|
|
url: serverContextPath + "/grassArticle/articleList",
|
|
|
method: 'POST',
|
...
|
...
|
@@ -356,6 +367,19 @@ |
|
|
}
|
|
|
},
|
|
|
{
|
|
|
title: "屏蔽状态",
|
|
|
field: "authStatus",
|
|
|
width: 25,
|
|
|
align: "left",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
if(rowData.authStatus == '4'){
|
|
|
return "已屏蔽";
|
|
|
}else{
|
|
|
return "未屏蔽";
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
title: "操作",
|
|
|
field: "ddg",
|
|
|
width: 50,
|
...
|
...
|
@@ -385,7 +409,11 @@ |
|
|
if(rowData.authStatus == 2){
|
|
|
str += "审核未通过"
|
|
|
}
|
|
|
|
|
|
if(rowData.authStatus == 4){
|
|
|
str += "<a role='shieldR' class='btn-success' dataId='"+rowData.articleId+ "' dataAuthStatus='1' index='"+ rowIndex + "' style='margin-left:10px'>取消屏蔽</a>";
|
|
|
}else{
|
|
|
str += "<a role='shieldR' class='btn-success' dataId='"+rowData.articleId+ "' dataAuthStatus='4' index='"+ rowIndex + "' style='margin-left:10px'>屏蔽</a>";
|
|
|
}
|
|
|
str += "<a role='deleteR' class='btn-success' dataId='"+rowData.articleId+ "' index='"+ rowIndex + "' style='margin-left:10px'>删除</a>";
|
|
|
return str;
|
|
|
}
|
...
|
...
|
@@ -484,9 +512,20 @@ |
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(this).datagrid("getPanel").find("a[role='shieldR']").linkbutton({
|
|
|
iconCls : "icon-edit",
|
|
|
onClick: function () {
|
|
|
var dataId = $(this).attr("dataId");
|
|
|
var authStatus = $(this).attr("dataAuthStatus");//取消屏蔽则恢复为审核通过状态
|
|
|
$.post(serverContextPath + "/grassArticle/updateArticle?articleId=" + dataId+"&authStatus="+authStatus+"&operateType=2", function (data) {
|
|
|
if(data.code != 200){
|
|
|
alert(data.message);
|
|
|
}else{
|
|
|
$("#activityListTable").datagrid("reload");
|
|
|
}
|
|
|
}, "json");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
|