Browse Source

Merge pull request '云脑1调试任务提交镜像成功后应有提示语' (#1186) from fix-1184 into V20211228

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/1186
Reviewed-by: wangjr <wangjr@pcl.ac.cn>
tags/v1.21.12.2^2
zhoupzh 3 years ago
parent
commit
f32178a8c5
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      templates/repo/debugjob/index.tmpl

+ 3
- 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-danger').addClass('alert-success').show().delay(1500).fadeOut();
},
onHidden: function() {
if (flag == false) {
@@ -706,8 +707,6 @@
var responseText = $("iframe")[0].contentDocument.body.getElementsByTagName("pre")[0].innerHTML; 
var json1 = JSON.parse(responseText)
$('#mask').css('display', 'none')
parent.location.href

if (json1.result_code === "0") {
$('.alert').html('操作成功!').removeClass('alert-danger').addClass('alert-success').show().delay(1500).fadeOut();
} else {


Loading…
Cancel
Save