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

合并

parents a7e0ee4d fd012023
...@@ -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;
......
...@@ -109,7 +109,12 @@ export default { ...@@ -109,7 +109,12 @@ export default {
let action = (type) => { let action = (type) => {
this.$http this.$http
.put("/apaas/service/v3/resource/apply/approve", null, { .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 }) => { .then(({ data }) => {
if (data.success == 1) { if (data.success == 1) {
......
...@@ -921,11 +921,11 @@ export default { ...@@ -921,11 +921,11 @@ export default {
actionList: [ actionList: [
{ {
getLabel(item) { getLabel(item) {
return item.use_uid ? "已分配" : "分配"; return item.use_uid !== "" ? "已分配" : "分配";
}, },
callback: this.cloudAllot, callback: this.cloudAllot,
disabledRule(item) { disabledRule(item) {
return item.use_uid; return item.use_uid !== "";
}, },
}, },
], ],
......
...@@ -390,7 +390,10 @@ export default { ...@@ -390,7 +390,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