...
|
...
|
@@ -47,8 +47,9 @@ $(function() { |
|
|
editable : false,
|
|
|
data: [
|
|
|
{"text" : "待审核", "value" : 1},
|
|
|
{"text" : "已通过", "value" : 2},
|
|
|
{"text" : "不通过", "value" : 3}
|
|
|
{"text" : "已上架", "value" : 2},
|
|
|
{"text" : "不通过", "value" : 3},
|
|
|
{"text" : "待上架", "value" : 4}
|
|
|
]
|
|
|
});
|
|
|
|
...
|
...
|
@@ -154,7 +155,7 @@ 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){
|
|
|
}else if(rowData.status==3){
|
|
|
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>";
|
...
|
...
|
@@ -186,7 +187,7 @@ function loadMainList(){ |
|
|
var id = $(this).attr("dataId");
|
|
|
$.post(contextPath + "/selfShelves/updateAuditInfoById", {
|
|
|
id : id,
|
|
|
status : 3
|
|
|
status : 1
|
|
|
}, function(data) {
|
|
|
if (data.code == 200) {
|
|
|
document.getElementById("btnList").style.display= "none";
|
...
|
...
|
|