| @@ -203,10 +203,10 @@ | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <div class="alert"></div> | |||||
| <div class="repository release dataset-list view"> | <div class="repository release dataset-list view"> | ||||
| {{template "repo/header" .}} | {{template "repo/header" .}} | ||||
| <!-- {{template "base/alert" .}} --> | |||||
| {{template "base/alert" .}} | |||||
| <!-- 提示框 --> | <!-- 提示框 --> | ||||
| <!-- 列表容器 --> | <!-- 列表容器 --> | ||||
| @@ -516,6 +516,7 @@ | |||||
| onApprove: function() { | onApprove: function() { | ||||
| document.getElementById(delId).submit() | document.getElementById(delId).submit() | ||||
| flag = true | flag = true | ||||
| $('.alert').html('删除成功').removeClass('alert-success').addClass('alert-danger').show().delay(1500).fadeOut(); | |||||
| }, | }, | ||||
| onHidden: function() { | onHidden: function() { | ||||
| if (flag == false) { | if (flag == false) { | ||||
| @@ -704,10 +705,13 @@ | |||||
| $("iframe[name=iframeContent]").on("load", function() { | $("iframe[name=iframeContent]").on("load", function() { | ||||
| var responseText = $("iframe")[0].contentDocument.body.getElementsByTagName("pre")[0].innerHTML; | var responseText = $("iframe")[0].contentDocument.body.getElementsByTagName("pre")[0].innerHTML; | ||||
| console.log("responseText",responseText) | |||||
| var json1 = JSON.parse(responseText) | var json1 = JSON.parse(responseText) | ||||
| $('#mask').css('display', 'none') | $('#mask').css('display', 'none') | ||||
| parent.location.href | |||||
| // parent.location.href | |||||
| console.log(json1) | |||||
| console.log(json1.result_code) | |||||
| console.log(json1.result_code === "0") | |||||
| if (json1.result_code === "0") { | if (json1.result_code === "0") { | ||||
| $('.alert').html('操作成功!').removeClass('alert-danger').addClass('alert-success').show().delay(1500).fadeOut(); | $('.alert').html('操作成功!').removeClass('alert-danger').addClass('alert-success').show().delay(1500).fadeOut(); | ||||
| } else { | } else { | ||||