...
|
...
|
@@ -267,19 +267,19 @@ |
|
|
width: 50,
|
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
var str='';
|
|
|
|
|
|
if(rowData.authStatus==0){//待审核状态--允许审核通过 和 不通过
|
|
|
str += "<a role='switchR' class='btn-success' dataId='"+rowData.articleId+ "' index='"+ rowIndex + "' status='1' style='margin-left:10px'>审核通过</a>";
|
|
|
str += "<a role='switchR' class='btn-success' dataId='"+rowData.articleId+ "' index='"+ rowIndex + "' status='2' style='margin-left:10px'>不通过</a>";
|
|
|
}
|
|
|
if(rowData.authStatus==1){//审核通过了--允许驳回
|
|
|
str += "<a role='switchR' class='btn-success' dataId='"+rowData.articleId+ "' index='"+ rowIndex + "' status='2' style='margin-left:10px'>不通过</a>";
|
|
|
}
|
|
|
if(rowData.authStatus==2){//审核不通过的--允许通过
|
|
|
str += "<a role='switchR' class='btn-success' dataId='"+rowData.articleId+ "' index='"+ rowIndex + "' status='1' style='margin-left:10px'>审核通过</a>";
|
|
|
}
|
|
|
//还有一个编辑按钮
|
|
|
var str = "<a role='validateR' dataId='"+rowData.articleId+ "' style='margin-left:10px' class='btn-success' >审核</a>";
|
|
|
|
|
|
// if(rowData.authStatus==0){//待审核状态--允许审核通过 和 不通过
|
|
|
// str += "<a role='switchR' class='btn-success' dataId='"+rowData.articleId+ "' index='"+ rowIndex + "' status='1' style='margin-left:10px'>审核通过</a>";
|
|
|
// str += "<a role='switchR' class='btn-success' dataId='"+rowData.articleId+ "' index='"+ rowIndex + "' status='2' style='margin-left:10px'>不通过</a>";
|
|
|
// }
|
|
|
// if(rowData.authStatus==1){//审核通过了--允许驳回
|
|
|
// str += "<a role='switchR' class='btn-success' dataId='"+rowData.articleId+ "' index='"+ rowIndex + "' status='2' style='margin-left:10px'>不通过</a>";
|
|
|
// }
|
|
|
// if(rowData.authStatus==2){//审核不通过的--允许通过
|
|
|
// str += "<a role='switchR' class='btn-success' dataId='"+rowData.articleId+ "' index='"+ rowIndex + "' status='1' style='margin-left:10px'>审核通过</a>";
|
|
|
// }
|
|
|
// //还有一个编辑按钮
|
|
|
str += "<a role='deleteR' class='btn-success' dataId='"+rowData.articleId+ "' index='"+ rowIndex + "' style='margin-left:10px'>删除</a>";
|
|
|
return str;
|
|
|
}
|
...
|
...
|
@@ -325,6 +325,14 @@ |
|
|
});
|
|
|
|
|
|
|
|
|
$(this).datagrid("getPanel").find("a[role='validateR']").linkbutton({
|
|
|
iconCls : "icon-edit",
|
|
|
onClick: function () {
|
|
|
var dataId = $(this).attr("dataId");
|
|
|
window.open(contextPath+"/html/grass/articleAuthorizeManage/articleDetail.html?articleId="+dataId);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(this).datagrid("getPanel").find("a[role='deleteR']").linkbutton({
|
|
|
iconCls : "icon-edit",
|
|
|
onClick: function () {
|
...
|
...
|
|