Commit fd012023 authored by 徐一鸣's avatar 徐一鸣

云资源管理fixed

parent de393661
...@@ -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 !== "";
}, },
}, },
], ],
......
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