Commit 03936697 authored by 黎博's avatar 黎博

修改新增服务页面,获取镜像接口返回的参数名

parent 488471ca
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="14"> <el-col :span="14">
<el-select v-model="tagName" filterable clearable class="elSelect" placeholder="请选择镜像,支持模糊搜索"> <el-select v-model="tagName" filterable clearable class="elSelect" placeholder="请选择镜像,支持模糊搜索">
<el-option v-for="(item,index) in tagOptions" :key="index" :label="item.TagName" :value="item.TagName" /> <el-option v-for="(item,index) in tagOptions" :key="index" :label="item.tagName" :value="item.tagName" />
</el-select> </el-select>
</el-col> </el-col>
</el-row> </el-row>
...@@ -480,8 +480,8 @@ export default { ...@@ -480,8 +480,8 @@ export default {
// 根据repoName获取镜像列表 // 根据repoName获取镜像列表
getTag() { getTag() {
getImageList({ repoName: this.reponame }).then((resp) => { getImageList({ repoName: this.reponame }).then((resp) => {
this.tagOptions = resp.data.data.TagInfo this.tagOptions = resp.data.data.tagInfo
this.tagName = resp.data.data.TagInfo[0].TagName this.tagName = resp.data.data.tagInfo[0].tagName
}) })
getDockerProjectDetail({ projectName: this.reponame.split('/')[1] }).then( getDockerProjectDetail({ projectName: this.reponame.split('/')[1] }).then(
(resp) => { (resp) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment