#2297 解决下拉框选择问题。

Merged
lewis merged 3 commits from zouap into V20220616 1 year ago
  1. +5
    -5
      templates/repo/modelmanage/index.tmpl

+ 5
- 5
templates/repo/modelmanage/index.tmpl View File

@@ -1,8 +1,8 @@
<!-- 头部导航栏 -->
{{template "base/head" .}}
<style>
.defaulttext{
color: rgba(0,0,0,.87)
.text{
color: rgba(0,0,0,.87)!important
}
</style>
<!-- 弹窗 -->
@@ -140,7 +140,7 @@
<label>模型框架</label>
<div class="ui dropdown selection search width70" id="choice_Engine">
<input type="hidden" id="Engine" name="Engine" required>
<div class="default defaulttext">选择模型框架</div>
<div class="default text">选择模型框架</div>
<i class="dropdown icon"></i>
<div class="menu" id="job-Engine">
@@ -321,7 +321,7 @@
}
itemHtml += "<option class=\"item\" data-value=\"3\">Other</option>"
$('#choice_Engine .default.defaulttext').text(selectedText)
$('#choice_Engine .default.text').text(selectedText)
$('#choice_Engine input[name="Engine"]').val(selectedValue)
$("#job-Engine").append(itemHtml);
$("#choice_Engine").addClass('disabled')
@@ -330,7 +330,7 @@
itemHtml += "<option class=\"item\" data-value=\"1\">TensorFlow</option>"
itemHtml += "<option class=\"item\" data-value=\"2\">MindSpore</option>"
itemHtml += "<option class=\"item\" data-value=\"3\">Other</option>"
$('#choice_Engine .default.defaulttext').text("Pytorch");
$('#choice_Engine .default.text').text("Pytorch");
$('#choice_Engine input[name="Engine"]').val(0)
$("#job-Engine").append(itemHtml);
$("#choice_Engine").removeClass('disabled');


Loading…
Cancel
Save