Commit 6f382e65 authored by 张俊's avatar 张俊

合并

parents a7e0ee4d fd012023
......@@ -86,8 +86,7 @@ export default {
},
},
methods: {
showDialog(image,id) {
image.id = id
showDialog(image) {
this.image = image;
this.imageData = [];
this.getImageDetail();
......@@ -153,7 +152,7 @@ export default {
},
getImageDetail() {
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 }) => {
this.imageData = data.data || [];
})
......
......@@ -597,7 +597,10 @@ export default {
this.$refs.dialog.show();
},
showImageDetail(item) {
this.$refs.imageDetail.showDialog(item);
this.$refs.imageDetail.showDialog({
...item,
app_id: this.app_id
});
},
stepsDone() {
this.done = true;
......
......@@ -109,7 +109,12 @@ export default {
let action = (type) => {
this.$http
.put("/apaas/service/v3/resource/apply/approve", null, {
params: {},
params: {
apply_id: item.apply_id,
apply_type: item.apply_type,
cloud_id: item.id,
apply_state: type,
},
})
.then(({ data }) => {
if (data.success == 1) {
......
......@@ -921,11 +921,11 @@ export default {
actionList: [
{
getLabel(item) {
return item.use_uid ? "已分配" : "分配";
return item.use_uid !== "" ? "已分配" : "分配";
},
callback: this.cloudAllot,
disabledRule(item) {
return item.use_uid;
return item.use_uid !== "";
},
},
],
......
......@@ -390,7 +390,10 @@ export default {
},
methods: {
showImageDetail(item) {
this.$refs.imageDetail.showDialog(item, this.$route.params.id);
this.$refs.imageDetail.showDialog({
...item,
app_id: this.$route.params.id
});
},
getCurrentUser() {
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