| @@ -273,7 +273,6 @@ | |||||
| $(document).ready(() => { | $(document).ready(() => { | ||||
| $('.ui.search.dropdown.job_type').dropdown({ | $('.ui.search.dropdown.job_type').dropdown({ | ||||
| onChange: function (value, text, $selectedItem) { | onChange: function (value, text, $selectedItem) { | ||||
| console.log(value, text) | |||||
| if (value === "BRAINSCORE") { | if (value === "BRAINSCORE") { | ||||
| $('#brainscore_child_type').css('display', 'block') | $('#brainscore_child_type').css('display', 'block') | ||||
| $('#benchmark_model_example').attr('href', 'https://git.openi.org.cn/BDIP/similarity2brain_ann') | $('#benchmark_model_example').attr('href', 'https://git.openi.org.cn/BDIP/similarity2brain_ann') | ||||
| @@ -267,7 +267,7 @@ | |||||
| <button class="ui create_train_job green button"> | <button class="ui create_train_job green button"> | ||||
| {{.i18n.Tr "repo.cloudbrain.new"}} | {{.i18n.Tr "repo.cloudbrain.new"}} | ||||
| </button> | </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> | </div> | ||||
| <!-- 模态框 --> | <!-- 模态框 --> | ||||
| </form> | </form> | ||||
| @@ -277,14 +277,10 @@ | |||||
| {{template "base/footer" .}} | {{template "base/footer" .}} | ||||
| <script> | <script> | ||||
| console.log({{.newInference}}) | |||||
| const RepoLink = {{.RepoLink}} | const RepoLink = {{.RepoLink}} | ||||
| const url_href = window.location.pathname.split('create')[0] | |||||
| let nameMap,nameList | let nameMap,nameList | ||||
| $(".ui.button").attr('href',url_href) | |||||
| // 获取模型列表和模型名称对应的模型版本 | // 获取模型列表和模型名称对应的模型版本 | ||||
| $.get(`${RepoLink}/modelmanage/query_model_for_predict?type=0`, (data) => { | $.get(`${RepoLink}/modelmanage/query_model_for_predict?type=0`, (data) => { | ||||
| console.log(data) | |||||
| nameMap = data.nameMap | nameMap = data.nameMap | ||||
| nameList = data.nameList | nameList = data.nameList | ||||
| let html = '' | let html = '' | ||||
| @@ -355,7 +351,6 @@ | |||||
| }) | }) | ||||
| }) | }) | ||||
| function loadCheckpointList(value){ | function loadCheckpointList(value){ | ||||
| console.log("-------------") | |||||
| return new Promise((resolve,reject)=>{ | return new Promise((resolve,reject)=>{ | ||||
| $.get(`${RepoLink}/modelmanage/query_modelfile_for_predict`,{ID:value}, (data) => { | $.get(`${RepoLink}/modelmanage/query_modelfile_for_predict`,{ID:value}, (data) => { | ||||
| resolve(data) | resolve(data) | ||||
| @@ -287,10 +287,7 @@ | |||||
| </div> | </div> | ||||
| {{template "base/footer" .}} | {{template "base/footer" .}} | ||||
| <script> | <script> | ||||
| console.log({{.WaitCount}}) | |||||
| let form = document.getElementById('form_id'); | let form = document.getElementById('form_id'); | ||||
| $('#messageInfo').css('display', 'none') | $('#messageInfo').css('display', 'none') | ||||
| function clearValue() { | function clearValue() { | ||||
| context = inputs[0] | context = inputs[0] | ||||
| @@ -271,9 +271,6 @@ | |||||
| {{template "base/footer" .}} | {{template "base/footer" .}} | ||||
| <script> | <script> | ||||
| console.log({{.WaitCount}}) | |||||
| //let url_href = window.location.pathname.split('create')[0] | |||||
| //$(".ui.button").attr('href',url_href) | |||||
| $('select.dropdown') | $('select.dropdown') | ||||
| .dropdown(); | .dropdown(); | ||||
| @@ -281,7 +281,6 @@ | |||||
| {{template "base/footer" .}} | {{template "base/footer" .}} | ||||
| <script> | <script> | ||||
| console.log({{.newInference}}) | |||||
| const RepoLink = {{.RepoLink}} | const RepoLink = {{.RepoLink}} | ||||
| const url_href = window.location.pathname.split('create')[0] | const url_href = window.location.pathname.split('create')[0] | ||||
| let nameMap,nameList | let nameMap,nameList | ||||
| @@ -105,7 +105,6 @@ | |||||
| {{template "base/footer" .}} | {{template "base/footer" .}} | ||||
| <script> | <script> | ||||
| console.log({{.WaitCount}}) | |||||
| // 判断必填选项是否填写正确 | // 判断必填选项是否填写正确 | ||||
| let form = document.getElementById('form_id'); | let form = document.getElementById('form_id'); | ||||
| @@ -289,7 +289,6 @@ | |||||
| {{template "base/footer" .}} | {{template "base/footer" .}} | ||||
| <script> | <script> | ||||
| console.log({{.WaitCount}}) | |||||
| let url_href = window.location.pathname.split('create')[0] | let url_href = window.location.pathname.split('create')[0] | ||||
| $(".ui.button").attr('href', url_href) | $(".ui.button").attr('href', url_href) | ||||
| $('select.dropdown') | $('select.dropdown') | ||||
| @@ -451,11 +451,8 @@ export default async function initCloudrain() { | |||||
| test.set(element.slice(0, -2), parseInt(element.slice(-1))); | test.set(element.slice(0, -2), parseInt(element.slice(-1))); | ||||
| } | } | ||||
| }); | }); | ||||
| console.log(test); | |||||
| $(".ui.search.dropdown.gpu-type").dropdown({ | $(".ui.search.dropdown.gpu-type").dropdown({ | ||||
| onChange: function (value, text, $selectedItem) { | onChange: function (value, text, $selectedItem) { | ||||
| console.log("=-------------", value); | |||||
| console.log("=-------------", test.get(value)); | |||||
| let gpuTypeNums = test.get(value); | let gpuTypeNums = test.get(value); | ||||
| let gpuTypeNumString = | let gpuTypeNumString = | ||||
| $(".cloudbrain-type").data("queue-start") + | $(".cloudbrain-type").data("queue-start") + | ||||