|
@@ -12,8 +12,8 @@
|
|
|
String basePath = request.getContextPath();
|
|
|
%>
|
|
|
<jsp:include page="../../../common/admin/modal_content_pre.jsp"><jsp:param name="modal_title" value="下架"/></jsp:include>
|
|
|
-<form id="unshelveresultFmt" action="<%=basePath%>/admin/data_supply_api/unshelve.action/" method="post" role="form">
|
|
|
- <input type="hidden" name="id" value="${id}"/>
|
|
|
+<form id="unshelveresultFmt" <%--action="<%=basePath%>/admin/data_supply_api/unshelve.action/"--%> method="post" role="form">
|
|
|
+ <input type="hidden"id="shabixiede" name="id" value="${id}"/>
|
|
|
<div class="form-group">
|
|
|
<label for="unshelvereason">下架原因:</label>
|
|
|
<textarea id="unshelvereason" name="unshelvereasons" style="width: 100%"></textarea>
|
|
@@ -28,22 +28,34 @@
|
|
|
</td>
|
|
|
<jsp:include page="../../../common/admin/modal_footer_post.jsp"></jsp:include>
|
|
|
|
|
|
-<script type="text/javascript">
|
|
|
- $("#btnUnshelve").click(function() {
|
|
|
- $('#unshelveresultFmt').ajaxSubmit(function (data) {
|
|
|
- console.log(data);
|
|
|
+ <%--<script type="text/javascript">
|
|
|
+ $("#btnUnshelve").click(function() {
|
|
|
+ $('#unshelveresultFmt').ajaxSubmit(function (data) {
|
|
|
+ console.log(data);
|
|
|
+ $(".close").click();
|
|
|
+ if(data!=undefined&&data!=null){
|
|
|
+ $.popBsPartial({url:"<%=basePath%>/admin/data_supply_api/unshelveresult/"+data.stateCode})
|
|
|
+ //window.parent.showunshelveresult(data.stateCode);
|
|
|
+ }else{
|
|
|
+ $.popBsPartial({url:"<%=basePath%>/admin/data_supply_api/unshelveresult/"+400})
|
|
|
+ //window.parent.showunshelveresult(400);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ $("#btnBack").click(function() {
|
|
|
$(".close").click();
|
|
|
- if(data!=undefined&&data!=null){
|
|
|
- $.popBsPartial({url:"<%=basePath%>/admin/data_supply_api/unshelveresult/"+data.stateCode})
|
|
|
- //window.parent.showunshelveresult(data.stateCode);
|
|
|
- }else{
|
|
|
- $.popBsPartial({url:"<%=basePath%>/admin/data_supply_api/unshelveresult/"+400})
|
|
|
- //window.parent.showunshelveresult(400);
|
|
|
- }
|
|
|
});
|
|
|
+ </script>--%>
|
|
|
+
|
|
|
+<script type="text/javascript">
|
|
|
+ $("#btnUnshelve").click(function() {
|
|
|
+ var id=$('#shabixiede').val()
|
|
|
+ $.get('<%=basePath%>/admin/data_supply_api/unshelve.action/'+id,function(data){
|
|
|
+ window.location.href="<%=basePath%>/admin/data_supply_api/index.htm"
|
|
|
+ })
|
|
|
});
|
|
|
$("#btnBack").click(function() {
|
|
|
$(".close").click();
|
|
|
});
|
|
|
</script>
|
|
|
-</script>
|
|
|
+</script>
|