Browse Source

fix issue

tags/v1.22.4.1^2
zhoupzh 3 years ago
parent
commit
25111a5fa2
5 changed files with 6 additions and 37 deletions
  1. +1
    -1
      templates/custom/select_dataset.tmpl
  2. +2
    -2
      templates/repo/modelarts/inferencejob/index.tmpl
  3. +0
    -14
      web_src/js/components/images/Images.vue
  4. +1
    -4
      web_src/js/components/images/adminImages.vue
  5. +2
    -16
      web_src/js/components/images/selectImages.vue

+ 1
- 1
templates/custom/select_dataset.tmpl View File

@@ -8,7 +8,7 @@
{{else}}
<input class="disabled" type="text" :value="dataset_name" placeholder="{{.i18n.Tr "cloudbrain.select_dataset"}}">
{{end}}
<el-button type="text" @click="dialogVisible = true" icon="el-icon-plus"> {{.i18n.Tr "dataset.select_dataset"}}</el-button>
<el-button type="text" @click="dialogVisible = true" icon="el-icon-plus" style="color: #0366d6;"> {{.i18n.Tr "dataset.select_dataset"}}</el-button>
<el-dialog
title="{{.i18n.Tr "dataset.select_dataset"}}"
:visible.sync="dialogVisible"


+ 2
- 2
templates/repo/modelarts/inferencejob/index.tmpl View File

@@ -112,8 +112,8 @@
</div>
<!-- 模型版本 -->
<!-- href="{{$.RepoLink}}/modelmanage/show_model_info?name={{.ModelName}}" -->
<div class="three wide column text center padding0">
<a id="{{.JobName}}" class="goto_modelmanage" href="javascript:void(0);" data-variation="inverted" data-position="top center" data-content="{{$.i18n.Tr "repo.modelarts.infer_job.tooltip"}}" data-jobname={{.JobName}} data-modelname={{.ModelName}} data-version={{.ModelVersion}} data-repopath="{{$.RepoLink}}">{{.ModelName}}&nbsp;</a>&nbsp;<span style="font-size: 12px;">{{.ModelVersion}}</span>
<div class="three wide column text center padding0" style="display: flex;">
<a id="{{.JobName}}" class="goto_modelmanage nowrap" title="{{.ModelName}}" href="javascript:void(0);" data-variation="inverted" data-position="top center" data-content="{{$.i18n.Tr "repo.modelarts.infer_job.tooltip"}}" data-jobname={{.JobName}} data-modelname={{.ModelName}} data-version={{.ModelVersion}} data-repopath="{{$.RepoLink}}">{{.ModelName}}&nbsp;</a>&nbsp;<span style="font-size: 12px;">{{.ModelVersion}}</span>
</div>
<!-- 任务状态 -->
<div class="two wide column text center padding0" >


+ 0
- 14
web_src/js/components/images/Images.vue View File

@@ -692,20 +692,6 @@ export default {
},
},
watch:{
search(val){
if(this.activeName=='first'){
this.paramsPublic.q = val
this.getImageListPublic()
}
if(this.activeName=='second'){
this.paramsCustom.q = val
this.getImageListCustom()
}
if(this.activeName=='third'){
this.paramsStar.q = val
this.getImageListStar()
}
},
checked(val){
this.paramsPublic.page = 1
this.paramsPublic.recommend = val


+ 1
- 4
web_src/js/components/images/adminImages.vue View File

@@ -326,11 +326,8 @@ export default {
},
},
watch:{
search(val){
this.paramsCustom.q = val
this.getImageListCustom()
},
checked(val){
this.paramsPublic.page = 1
this.paramsCustom.recommend = val
this.getImageListCustom()
}


+ 2
- 16
web_src/js/components/images/selectImages.vue View File

@@ -14,7 +14,7 @@
>
<div class="ui icon input" style="z-index: 9999;position: absolute;right: 50px;height:30px;">
<i class="search icon" style="cursor: pointer;pointer-events:auto" @click="searchName()"></i>
<input type="text" placeholder="搜镜像Tag/描述/标签..." v-model="search" @keyup.enter="searchName()">
<input type="text" placeholder="搜镜像Tag/描述/标签..." v-model="search" @keyup.enter.prevent="searchName()">
</div>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="公开镜像" name="first" v-loading="loadingPublic">
@@ -278,27 +278,13 @@ export default {
},
selectImages(place){
console.log("================")
this.imageAddress = place
this.dialogVisible = false
},

},
watch:{
search(val){
if(this.activeName=='first'){
this.paramsPublic.q = val
this.getImageListPublic()
}
if(this.activeName=='second'){
this.paramsCustom.q = val
this.getImageListCustom()
}
if(this.activeName=='third'){
this.paramsStar.q = val
this.getImageListStar()
}
}

},
mounted() {
this.getImageListPublic()


Loading…
Cancel
Save