Browse Source

fix issue 315 and 317

tags/v1.21.8^2
zhoupzh 4 years ago
parent
commit
6912372fcb
2 changed files with 4 additions and 2 deletions
  1. +1
    -1
      templates/repo/cloudbrain/new.tmpl
  2. +3
    -1
      web_src/js/components/Images.vue

+ 1
- 1
templates/repo/cloudbrain/new.tmpl View File

@@ -165,7 +165,7 @@

<div class="inline required field">
<label>镜像</label>
<input type="text" list="cloudbrain_image" placeholder="选择镜像" name="image" required autofocus maxlength="36">
<input type="text" list="cloudbrain_image" placeholder="选择镜像" name="image" required autofocus maxlength="255">
<datalist class="ui search" id="cloudbrain_image" style='width:385px;' name="image">
{{range .images}}
<option name="image" value="{{.Place}}">{{.PlaceView}}</option>


+ 3
- 1
web_src/js/components/Images.vue View File

@@ -69,7 +69,7 @@
prop="provider"
label="提供者"
width="120"
align="left"
align="letf"
sortable>
</el-table-column>
<el-table-column
@@ -362,10 +362,12 @@ export default {
searchName(){
if(this.activeName=='first'){
this.params.name = this.search
this.params.page = 1
this.getImageList()
}
if(this.activeName=='second'){
this.params1.name = this.search
this.params.page = 1
this.getImageList1()
}


Loading…
Cancel
Save