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

云资源管理fixed

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