已加上删除判断

This commit is contained in:
daihh
2022-11-09 16:15:13 +08:00
parent fccb4b4cc0
commit c1c7cc6c0b
4 changed files with 26 additions and 8 deletions

View File

@@ -78,6 +78,10 @@
}, },
methods:{ methods:{
jumpDetail(item){ jumpDetail(item){
if(item.deleted){
this.$message.warning("此内容已删除");
return;
}
this.$router.push('/qa/answer?id='+item.contentId) this.$router.push('/qa/answer?id='+item.contentId)
}, },
emitHide(id) { emitHide(id) {

View File

@@ -124,6 +124,13 @@
if(code==''|| code==undefined){return '';} if(code==''|| code==undefined){return '';}
return this.orgDomainMap.get(code); return this.orgDomainMap.get(code);
}, },
jumpDetail(item){
if(item.info.deleted){
this.$message.warning("此案例已删除");
return;
}
this.$router.push('/case/detail?id='+item.contentId)
},
} }
} }
</script> </script>

View File

@@ -74,6 +74,10 @@
}, },
methods:{ methods:{
jumpDetail(item){ jumpDetail(item){
if(item.info.deleted){
this.$message.warning("此笔记已删除");
return;
}
this.$router.push('/course/detail?id='+item.info.courseId) this.$router.push('/course/detail?id='+item.info.courseId)
}, },
emitHide(id) { emitHide(id) {

View File

@@ -76,6 +76,10 @@
if(!data.id){ if(!data.id){
return; return;
} }
if(item.info.deleted){
this.$message.warning("此问题已删除");
return;
}
this.$router.push({ path: '/qa/answer', query: { id: data.id } }); this.$router.push({ path: '/qa/answer', query: { id: data.id } });
}, },
@@ -115,4 +119,3 @@
} }
</style> </style>