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

云资源管理fixed

parent 3b0f5cc9
...@@ -912,6 +912,7 @@ export default { ...@@ -912,6 +912,7 @@ export default {
label: "用户申请时间", label: "用户申请时间",
prop: "apply_time", prop: "apply_time",
align: "center", align: "center",
width: 180,
}, },
{ {
label: "操作", label: "操作",
...@@ -921,11 +922,15 @@ export default { ...@@ -921,11 +922,15 @@ export default {
actionList: [ actionList: [
{ {
getLabel(item) { getLabel(item) {
return item.approve_state === 1 && item.use_uid !== "" ? "已分配" : "分配"; if (item.approve_state !== 1) {
return "";
}
return (item.approve_state === 1 && item.use_uid === "") ? "分配" : "已分配";
}, },
callback: this.cloudAllot, callback: this.cloudAllot,
disabledRule(item) { disabledRule(item) {
return item.approve_state === 1 && item.use_uid !== ""; return !(item.approve_state === 1 && 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