Browse Source

fix issue

tags/v1.22.4.1^2
zhoupzh 4 years ago
parent
commit
8010b7423a
6 changed files with 18 additions and 5 deletions
  1. +1
    -0
      routers/repo/modelarts.go
  2. +4
    -0
      templates/custom/select_dataset_train.tmpl
  3. +1
    -0
      templates/repo/modelarts/inferencejob/new.tmpl
  4. +1
    -1
      templates/user/settings/organization.tmpl
  5. +7
    -0
      web_src/js/features/images.js
  6. +4
    -4
      web_src/less/openi.less

+ 1
- 0
routers/repo/modelarts.go View File

@@ -2040,6 +2040,7 @@ func InferenceJobNew(ctx *context.Context) {
}
func inferenceJobNewDataPrepare(ctx *context.Context) error {
ctx.Data["PageIsCloudBrain"] = true
ctx.Data["newInference"] = true

t := time.Now()
var displayJobName = cutString(ctx.User.Name, 5) + t.Format("2006010215") + strconv.Itoa(int(t.Unix()))[5:]


+ 4
- 0
templates/custom/select_dataset_train.tmpl View File

@@ -1,7 +1,11 @@

<div class="dataset-repolink" id="dataset-repolink-init" style="display: none;" data-repolink="{{.RepoLink}}" data-cloudranin-type="{{.cloudbraintype}}"></div>
<div class="inline required unite min_title field" id="dataset-base" style="margin-bottom: 0 !important;">
{{if .newInference}}
<label style="font-weight: normal;">{{.i18n.Tr "dataset.dataset"}}</label>&nbsp;&nbsp;&nbsp;&nbsp;
{{else}}
<label style="font-weight: normal;">{{.i18n.Tr "dataset.dataset"}}</label>&nbsp;&nbsp;&nbsp;
{{end}}
<input type="hidden" name="attachment" :value="dataset_uuid">
<input class="disabled" type="text" :value="dataset_name" required onfocus="this.blur();" style="width: 48.5%;">
<el-button type="text" @click="dialogVisible = true" icon="el-icon-plus" style="color: #0366d6;"> {{.i18n.Tr "dataset.select_dataset"}}</el-button>


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

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

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


+ 1
- 1
templates/user/settings/organization.tmpl View File

@@ -11,7 +11,7 @@
</div>
{{end}}
</h4>
<div class="ui attached segment orgs">
<div class="ui attached segment">
{{if .Orgs}}
<div class="ui middle aligned divided list">
{{range .Orgs}}


+ 7
- 0
web_src/js/features/images.js View File

@@ -40,7 +40,14 @@ export default async function initImage(){
$('#dropdown_image')
.dropdown({
allowAdditions: true,
forceSelection:false,
allowReselection:true,
selectOnKeydown:false,
showOnFocus:false,
onChange: function(value, text, $selectedItem) {
value=value.replace(/[, ]/g,'')
console.log(value,text,$selectedItem)
$('#course_label_item').empty()
}
})


+ 4
- 4
web_src/less/openi.less View File

@@ -969,10 +969,10 @@ display: block;
color: red;
}

.ui.list .list>.item>img.image+.content, .ui.list>.item>img.image+.content {
width: calc(100% - 4.0em);
margin-left: 0;
}
// .ui.list .list>.item>img.image+.content, .ui.list>.item>img.image+.content {
// width: calc(100% - 4.0em);
// margin-left: 0;
// }
.seach .ui.list .list>.item .header, .seach .ui.list>.item .header{
margin-bottom: 0.5em;


Loading…
Cancel
Save