Commit 0bb84a58 authored by 徐一鸣's avatar 徐一鸣

查看镜像详情

parent 6cb436bf
...@@ -86,8 +86,7 @@ export default { ...@@ -86,8 +86,7 @@ export default {
}, },
}, },
methods: { methods: {
showDialog(image,id) { showDialog(image) {
image.id = id
this.image = image; this.image = image;
this.imageData = []; this.imageData = [];
this.getImageDetail(); this.getImageDetail();
...@@ -153,7 +152,7 @@ export default { ...@@ -153,7 +152,7 @@ export default {
}, },
getImageDetail() { getImageDetail() {
this.$http this.$http
.get(`/apaas/hubApi/image/imageDetails/${this.image.name}?app_id=${this.image.id}`) .get(`/apaas/hubApi/image/imageDetails/${this.image.name}?app_id=${this.image.app_id}`)
.then(({ data }) => { .then(({ data }) => {
this.imageData = data.data || []; this.imageData = data.data || [];
}) })
......
...@@ -597,7 +597,10 @@ export default { ...@@ -597,7 +597,10 @@ export default {
this.$refs.dialog.show(); this.$refs.dialog.show();
}, },
showImageDetail(item) { showImageDetail(item) {
this.$refs.imageDetail.showDialog(item); this.$refs.imageDetail.showDialog({
...item,
app_id: this.app_id
});
}, },
stepsDone() { stepsDone() {
this.done = true; this.done = true;
......
...@@ -343,7 +343,10 @@ export default { ...@@ -343,7 +343,10 @@ export default {
}, },
methods: { methods: {
showImageDetail(item) { showImageDetail(item) {
this.$refs.imageDetail.showDialog(item,this.$route.params.id); this.$refs.imageDetail.showDialog({
...item,
app_id: this.$route.params.id
});
}, },
getCurrentUser() { getCurrentUser() {
this.$api.user.getNowUser().then(({ data }) => { this.$api.user.getNowUser().then(({ data }) => {
......
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