Commit 7bd194d7 authored by 徐一鸣's avatar 徐一鸣

应用仓库删除

parent 35c560ac
......@@ -1142,7 +1142,7 @@ export default {
}, // 唤醒弹窗
deleteAction(item) {
if (this.cardType === 0) {
if (item.online_state != 2) {
if (item.online_state == 0 || (item.online_state == 2 && item.source=="apply")) {
this.dialogInfo.title = "";
this.dialogInfo.msg = "是否删除该条应用?";
this.dialogInfo.cancelText = "";
......@@ -1182,7 +1182,9 @@ export default {
this.dialogInfo.cancelText = "";
this.dialogInfo.sunbmitText = "";
this.dialogInfo.submit = () => {
if (item.up_deploy_status === 3) {
console.log(`${item.app_name}不能被删除...`);
/* if (item.up_deploy_status === 3) {
this.$message({
message: `${item.app_name}正在申请下架中.`,
type: "warning",
......@@ -1210,7 +1212,7 @@ export default {
type: "warning",
});
});
}
} */
};
}
} else if (this.cardType === 1) {
......
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