...
|
...
|
@@ -154,6 +154,8 @@ function loadMainList(){ |
|
|
var str = "";
|
|
|
if(rowData.status==0){
|
|
|
str = "<a role='audit' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;'>审核</a>" + str;
|
|
|
}else if(rowData.status==1){
|
|
|
str = "<a role='upperShelf' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #428bca !important;'>上架</a>";
|
|
|
}else{
|
|
|
str = "<a role='detail' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #428bca !important;'>查看</a>";
|
|
|
}
|
...
|
...
|
@@ -179,6 +181,25 @@ function loadMainList(){ |
|
|
window.open(auditUrl + "?id=" + id + "&ver=" + new Date().getTime()); }
|
|
|
});
|
|
|
|
|
|
$(this).datagrid("getPanel").find("a[role='upperShelf']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var id = $(this).attr("dataId");
|
|
|
$.post(contextPath + "/selfShelves/updateAuditInfoById", {
|
|
|
id : id,
|
|
|
status : 3
|
|
|
}, function(data) {
|
|
|
if (data.code == 200) {
|
|
|
document.getElementById("btnList").style.display= "none";
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "上架成功!"
|
|
|
});
|
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", "失败!", "error");
|
|
|
}
|
|
|
}); }
|
|
|
});
|
|
|
|
|
|
}
|
|
|
});
|
|
|
}
|
...
|
...
|
|