Browse Source

Merge branch 'zouap_static' of https://git.openi.org.cn/OpenI/aiforge into zouap_static

pull/3035/head
zouap 2 years ago
parent
commit
7202d112e3
2 changed files with 5 additions and 2 deletions
  1. +3
    -0
      templates/repo/modelsafety/show.tmpl
  2. +2
    -2
      web_src/js/standalone/cloudbrainNew.js

+ 3
- 0
templates/repo/modelsafety/show.tmpl View File

@@ -819,6 +819,9 @@
$(`[vvalue="${key}"]`).val(res[key]);
$(`[vdatajobid="${key}"]`).attr('data-jobid', res[key]);
}
$(`[vfield="Description"]`).text(res['Description'] || '--');
$(`[vfield="Parameters"]`).text(res['Parameters'] || '--');

var imageName = res['Image'] || res['EngineName'];
$(`[vimagetitle="Image"] span`).hide();


+ 2
- 2
web_src/js/standalone/cloudbrainNew.js View File

@@ -89,7 +89,7 @@
identifier: "job_name",
rules: [
{
type: "regExp[/^[a-zA-Z0-9-_]{1,36}$/]",
type: "regExp[/^[a-z0-9][a-z0-9-_]{1,34}[a-z0-9-]$/]",
},
],
},
@@ -97,7 +97,7 @@
identifier: "display_job_name",
rules: [
{
type: "regExp[/^[a-zA-Z0-9-_]{1,36}$/]",
type: "regExp[/^[a-z0-9][a-z0-9-_]{1,34}[a-z0-9-]$/]",
},
],
},


Loading…
Cancel
Save