Browse Source

增加公开私有两个属性

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.12.1^2
zouap 3 years ago
parent
commit
d2dcdc00da
3 changed files with 12 additions and 0 deletions
  1. +4
    -0
      templates/repo/cloudbrain/trainjob/show.tmpl
  2. +4
    -0
      templates/repo/grampus/trainjob/show.tmpl
  3. +4
    -0
      templates/repo/modelarts/trainjob/show.tmpl

+ 4
- 0
templates/repo/cloudbrain/trainjob/show.tmpl View File

@@ -866,6 +866,10 @@
}
let url_href = `/${userName}/${repoPath}/modelmanage/create_new_model`
let data = $("#formId").serialize()
var radio = document.getElementsByName("isPrivate");
if(radio == null || radio.length == 0){
data +="&isPrivate=true";
}
$("#mask").css({ "display": "block", "z-index": "9999" })
$.ajax({
url: url_href,


+ 4
- 0
templates/repo/grampus/trainjob/show.tmpl View File

@@ -927,6 +927,10 @@
}
let url_href = `/${userName}/${repoPath}/modelmanage/create_new_model`
let data = $("#formId").serialize()
var radio = document.getElementsByName("isPrivate");
if(radio == null || radio.length == 0){
data +="&isPrivate=true";
}
$("#mask").css({ "display": "block", "z-index": "9999" })
$.ajax({
url: url_href,


+ 4
- 0
templates/repo/modelarts/trainjob/show.tmpl View File

@@ -949,6 +949,10 @@
}
let url_href = `/${userName}/${repoPath}/modelmanage/create_new_model`
let data = $("#formId").serialize()
var radio = document.getElementsByName("isPrivate");
if(radio == null || radio.length == 0){
data +="&isPrivate=true";
}
$("#mask").css({ "display": "block", "z-index": "9999" })
$.ajax({
url: url_href,


Loading…
Cancel
Save