...
|
...
|
@@ -157,6 +157,7 @@ function loadMainList(){ |
|
|
str = "<a role='audit' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;'>审核</a>" + str;
|
|
|
}else if(rowData.status==3){
|
|
|
str = "<a role='upperShelf' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #428bca !important;'>上架</a>";
|
|
|
str += "<a role='reject' 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>";
|
|
|
}
|
...
|
...
|
@@ -198,7 +199,28 @@ function loadMainList(){ |
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", "失败!", "error");
|
|
|
}
|
|
|
}); }
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(this).datagrid("getPanel").find("a[role='reject']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var id = $(this).attr("dataId");
|
|
|
$.post(contextPath + "/selfShelves/updateAuditInfoById", {
|
|
|
id : id,
|
|
|
status : 2
|
|
|
}, function(data) {
|
|
|
if (data.code == 200) {
|
|
|
$("#mainListTable").datagrid("reload");
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "驳回成功!"
|
|
|
});
|
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", "失败!", "error");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
}
|
...
|
...
|
|