Commit 5391b149 authored by 徐一鸣's avatar 徐一鸣

组织云资源详情状态fixed

parent d29a9c45
......@@ -443,11 +443,25 @@ export default {
align: "center",
type: "image-tooltip",
getImage(item) {
if (
(item.apply_type === 0 && item.approve_state === -1) ||
(item.apply_type === 1 && item.approve_update_state === -1)
) {
return require("@/assets/imgs/ic_cancel.png");
}
return item.state == 1
? require("@/assets/imgs/ic_true.png")
: require("@/assets/imgs/ic_failed.png");
},
getTooltip(item) {
if (
(item.apply_type === 0 && item.approve_state === -1) ||
(item.apply_type === 1 && item.approve_update_state === -1)
) {
return "审批未通过";
}
return item.state == 1 ? "运行中" : "该工作区域已被禁用";
},
},
......@@ -522,6 +536,12 @@ export default {
return item.state == 1 ? "禁用" : "启用";
},
callback: this.stateAction,
disabledRule(item) {
return (
(item.apply_type === 0 && item.approve_state === -1) ||
(item.apply_type === 1 && item.approve_update_state === -1)
);
},
},
{
label: "移除",
......
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