Browse Source

fix issue

tags/v1.22.6.2^2
zhoupzh 3 years ago
parent
commit
abb297619d
2 changed files with 11 additions and 3 deletions
  1. +1
    -0
      templates/repo/modelarts/trainjob/new.tmpl
  2. +10
    -3
      web_src/js/components/dataset/selectDataset.vue

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

@@ -100,6 +100,7 @@
<div class="repository">
{{template "repo/header" .}}
<div class="ui container">
<div class="cloudbrain-type" style="display: none;" data-cloudbrain-type="{{.cloudbraintype}}" data-repo-link="{{.RepoLink}}"></div>
{{template "base/alert" .}}
<h4 class="ui top attached header">
{{.i18n.Tr "repo.modelarts.train_job.new"}}


+ 10
- 3
web_src/js/components/dataset/selectDataset.vue View File

@@ -1,7 +1,10 @@
<template>
<div
class="inline required field"
:class="{ dataset_flex: confirmDatasetList && confirmFlag }"
class="inline field"
:class="{
dataset_flex: confirmDatasetList && confirmFlag,
required: required,
}"
>
<label
v-if="benchmarkNew"
@@ -456,6 +459,7 @@ export default {
imageAddress: "",
activeName: "first",
search: "",
required: true,

type: 0,
repoLink: "",
@@ -889,6 +893,9 @@ export default {
) {
this.benchmarkNew = true;
}
if (location.href.indexOf("modelarts/notebook/create") !== -1) {
this.required = false;
}
},
created() {},
};
@@ -1036,7 +1043,7 @@ export default {
align-items: center;
}

@media screen and (min-width: 1200px) and (max-width: 1400px) {
@media screen and (min-width: 1200px) and (max-width: 1600px) {
.dataset-search-vue {
top: -30px;
}


Loading…
Cancel
Save