Browse Source

fix issue

tags/v1.22.7.1
zhoupzh 3 years ago
parent
commit
7d35a28498
8 changed files with 1 additions and 19 deletions
  1. +0
    -1
      templates/repo/cloudbrain/benchmark/new.tmpl
  2. +1
    -6
      templates/repo/cloudbrain/inference/new.tmpl
  3. +0
    -3
      templates/repo/cloudbrain/new.tmpl
  4. +0
    -3
      templates/repo/cloudbrain/trainjob/new.tmpl
  5. +0
    -1
      templates/repo/modelarts/inferencejob/new.tmpl
  6. +0
    -1
      templates/repo/modelarts/notebook/new.tmpl
  7. +0
    -1
      templates/repo/modelarts/trainjob/new.tmpl
  8. +0
    -3
      web_src/js/features/cloudrbanin.js

+ 0
- 1
templates/repo/cloudbrain/benchmark/new.tmpl View File

@@ -273,7 +273,6 @@
$(document).ready(() => {
$('.ui.search.dropdown.job_type').dropdown({
onChange: function (value, text, $selectedItem) {
console.log(value, text)
if (value === "BRAINSCORE") {
$('#brainscore_child_type').css('display', 'block')
$('#benchmark_model_example').attr('href', 'https://git.openi.org.cn/BDIP/similarity2brain_ann')


+ 1
- 6
templates/repo/cloudbrain/inference/new.tmpl View File

@@ -267,7 +267,7 @@
<button class="ui create_train_job green button">
{{.i18n.Tr "repo.cloudbrain.new"}}
</button>
<a class="ui button" href="/">{{.i18n.Tr "repo.cloudbrain.cancel"}}</a>
<a class="ui button" href="{{.RepoLink}}/modelarts/inference-job">{{.i18n.Tr "repo.cloudbrain.cancel"}}</a>
</div>
<!-- 模态框 -->
</form>
@@ -277,14 +277,10 @@
{{template "base/footer" .}}

<script>
console.log({{.newInference}})
const RepoLink = {{.RepoLink}}
const url_href = window.location.pathname.split('create')[0]
let nameMap,nameList
$(".ui.button").attr('href',url_href)
// 获取模型列表和模型名称对应的模型版本
$.get(`${RepoLink}/modelmanage/query_model_for_predict?type=0`, (data) => {
console.log(data)
nameMap = data.nameMap
nameList = data.nameList
let html = ''
@@ -355,7 +351,6 @@
})
})
function loadCheckpointList(value){
console.log("-------------")
return new Promise((resolve,reject)=>{
$.get(`${RepoLink}/modelmanage/query_modelfile_for_predict`,{ID:value}, (data) => {
resolve(data)


+ 0
- 3
templates/repo/cloudbrain/new.tmpl View File

@@ -287,10 +287,7 @@
</div>
{{template "base/footer" .}}
<script>
console.log({{.WaitCount}})
let form = document.getElementById('form_id');


$('#messageInfo').css('display', 'none')
function clearValue() {
context = inputs[0]


+ 0
- 3
templates/repo/cloudbrain/trainjob/new.tmpl View File

@@ -271,9 +271,6 @@
{{template "base/footer" .}}

<script>
console.log({{.WaitCount}})
//let url_href = window.location.pathname.split('create')[0]
//$(".ui.button").attr('href',url_href)
$('select.dropdown')
.dropdown();



+ 0
- 1
templates/repo/modelarts/inferencejob/new.tmpl View File

@@ -281,7 +281,6 @@
{{template "base/footer" .}}

<script>
console.log({{.newInference}})
const RepoLink = {{.RepoLink}}
const url_href = window.location.pathname.split('create')[0]
let nameMap,nameList


+ 0
- 1
templates/repo/modelarts/notebook/new.tmpl View File

@@ -105,7 +105,6 @@
{{template "base/footer" .}}

<script>
console.log({{.WaitCount}})
// 判断必填选项是否填写正确
let form = document.getElementById('form_id');



+ 0
- 1
templates/repo/modelarts/trainjob/new.tmpl View File

@@ -289,7 +289,6 @@
{{template "base/footer" .}}

<script>
console.log({{.WaitCount}})
let url_href = window.location.pathname.split('create')[0]
$(".ui.button").attr('href', url_href)
$('select.dropdown')


+ 0
- 3
web_src/js/features/cloudrbanin.js View File

@@ -451,11 +451,8 @@ export default async function initCloudrain() {
test.set(element.slice(0, -2), parseInt(element.slice(-1)));
}
});
console.log(test);
$(".ui.search.dropdown.gpu-type").dropdown({
onChange: function (value, text, $selectedItem) {
console.log("=-------------", value);
console.log("=-------------", test.get(value));
let gpuTypeNums = test.get(value);
let gpuTypeNumString =
$(".cloudbrain-type").data("queue-start") +


Loading…
Cancel
Save