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

应用仓库删除

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