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"> <div class="inline required field">
<label>镜像</label> <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"> <datalist class="ui search" id="cloudbrain_image" style='width:385px;' name="image">
{{range .images}} {{range .images}}
<option name="image" value="{{.Place}}">{{.PlaceView}}</option> <option name="image" value="{{.Place}}">{{.PlaceView}}</option>


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

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


Loading…
Cancel
Save