Commit 3d5c4c96 authored by 徐一鸣's avatar 徐一鸣

服务管理上下架操作

parent fe9f13c0
...@@ -283,7 +283,8 @@ export default { ...@@ -283,7 +283,8 @@ export default {
callback: this.deleteItem, callback: this.deleteItem,
class: "warn", class: "warn",
disabledRule(item) { disabledRule(item) {
return item.state != 2; // 只有下架状态可以删除
return item.state !== 1;
}, },
}, },
], ],
...@@ -1079,6 +1080,10 @@ export default { ...@@ -1079,6 +1080,10 @@ export default {
label: "删除", label: "删除",
class: "warn", class: "warn",
callback: this.deleteItem, callback: this.deleteItem,
disabledRule(item) {
// 只有非下架状态可以删除(上架,下架审核中)
return item.state == 1 || item.state == 3;
},
}, },
], ],
}, },
......
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