Browse Source

fix issue

tags/v1.21.12.2^2
zhoupzh 3 years ago
parent
commit
7377fdc4e0
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      templates/repo/debugjob/index.tmpl

+ 8
- 4
templates/repo/debugjob/index.tmpl View File

@@ -203,10 +203,10 @@
</div>
</div>

<div class="alert"></div>
<div class="repository release dataset-list view">
{{template "repo/header" .}}
<!-- {{template "base/alert" .}} -->
{{template "base/alert" .}}
<!-- 提示框 -->
<!-- 列表容器 -->
@@ -516,6 +516,7 @@
onApprove: function() {
document.getElementById(delId).submit()
flag = true
$('.alert').html('删除成功').removeClass('alert-success').addClass('alert-danger').show().delay(1500).fadeOut();
},
onHidden: function() {
if (flag == false) {
@@ -704,10 +705,13 @@

$("iframe[name=iframeContent]").on("load", function() {  
var responseText = $("iframe")[0].contentDocument.body.getElementsByTagName("pre")[0].innerHTML; 
console.log("responseText",responseText)
var json1 = JSON.parse(responseText)
$('#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") {
$('.alert').html('操作成功!').removeClass('alert-danger').addClass('alert-success').show().delay(1500).fadeOut();
} else {


Loading…
Cancel
Save