Browse Source

fix issue

tags/v1.22.12.1^2
zhoupzh 3 years ago
parent
commit
35c605cbda
3 changed files with 0 additions and 38 deletions
  1. +0
    -2
      templates/repo/grampus/notebook/npu/new.tmpl
  2. +0
    -33
      templates/repo/modelarts/notebook/new.tmpl
  3. +0
    -3
      templates/repo/modelarts/notebook/show.tmpl

+ 0
- 2
templates/repo/grampus/notebook/npu/new.tmpl View File

@@ -184,8 +184,6 @@
document.getElementById("mask").style.display = "none" document.getElementById("mask").style.display = "none"
} }
} }

$(document).ready(function(){ $(document).ready(function(){
$('input[name="image"]').val($('.cloudbrain_image').dropdown('get text')) $('input[name="image"]').val($('.cloudbrain_image').dropdown('get text'))
$('.cloudbrain_image.ui.search.dropdown') $('.cloudbrain_image.ui.search.dropdown')


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

@@ -1,10 +1,4 @@
{{template "base/head" .}} {{template "base/head" .}}
<style>
.inline.required.field.cloudbrain_benchmark {
display: none;
}
</style>

{{template "custom/global_mask" .}} {{template "custom/global_mask" .}}
<div class="repository"> <div class="repository">
{{template "repo/header" .}} {{template "repo/header" .}}
@@ -75,24 +69,6 @@
<div id="select-multi-dataset"> <div id="select-multi-dataset">


</div> </div>

<!--<div class="inline required field">
<label>工作环境</label>
<input name="de" id="cloudbrain_de" value="{{.env}}" tabindex="3" disabled autofocus required maxlength="255" readonly="readonly">
</div>
<div class="inline required field">
<label>类型</label>
<input name="job_type" id="cloudbrain_job_type" value="{{.notebook_type}}" tabindex="3" disabled autofocus required maxlength="255" readonly="readonly">
</div> -->
<!--<div class="inline required field">
<label>{{.i18n.Tr "cloudbrain.specification"}}</label>
<select id="cloudbrain_flavor" class="ui search dropdown" placeholder="选择规格" style='width:385px' name="flavor">
{{range .flavors}}
<option name="flavor" value="{{.Value}}">{{.Desc}}</option>

{{end}}
</select>
</div>-->
<div class="inline required field"> <div class="inline required field">
<label>{{.i18n.Tr "cloudbrain.specification"}}</label> <label>{{.i18n.Tr "cloudbrain.specification"}}</label>
<select id="__specs__" class="ui search dropdown" ovalue="{{.spec_id}}" <select id="__specs__" class="ui search dropdown" ovalue="{{.spec_id}}"
@@ -110,10 +86,6 @@
</div> </div>
{{end}} {{end}}
</div> </div>
<!--<div class="inline required field">
<label>数据集存放路径</label>
<input name="dataset_path" id="cloudbrain_dataset_path" value="{{.dataset_path}}" tabindex="3" disabled autofocus required maxlength="255" readonly="readonly">
</div> -->
<div class="inline field"> <div class="inline field">
<label>{{.i18n.Tr "cloudbrain.description"}}</label> <label>{{.i18n.Tr "cloudbrain.description"}}</label>
<input name="description" id="cloudbrain_description" tabindex="3" autofocus maxlength="255"> <input name="description" id="cloudbrain_description" tabindex="3" autofocus maxlength="255">
@@ -135,9 +107,7 @@
<script> <script>
// 判断必填选项是否填写正确 // 判断必填选项是否填写正确
let form = document.getElementById('form_id'); let form = document.getElementById('form_id');

$('#messageInfo').css('display','none') $('#messageInfo').css('display','none')

var isValidate = false; var isValidate = false;
function validate(){ function validate(){
$('.ui.form').form({ $('.ui.form').form({
@@ -190,9 +160,6 @@
document.getElementById("mask").style.display = "none" document.getElementById("mask").style.display = "none"
} }
} }
$('select.dropdown')
.dropdown();

$(document).ready(function(){ $(document).ready(function(){
$(document).keydown(function(event){ $(document).keydown(function(event){
if(event.keyCode==13){ if(event.keyCode==13){


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

@@ -507,11 +507,8 @@
</table> </table>
{{end}} {{end}}
</div> </div>
</div> </div>
</div> </div>


</div> </div>
</div> </div>
</div> </div>


Loading…
Cancel
Save