diff --git a/src/views/Report/ReportList.vue b/src/views/Report/ReportList.vue index 886fe5e..fde6b7f 100644 --- a/src/views/Report/ReportList.vue +++ b/src/views/Report/ReportList.vue @@ -330,12 +330,20 @@ export default { }) }, permissionApp () { + if(this.checkList.length <1){ + this.$message.warning("至少选择一条报告进行权限申请") + return + } // 有预览权限的时候是否还让继续申请 let temp=this.checkList.filter(item =>{ - if(item.power == 1 || item.power == 2){ - return item + if(+item.power == 1 || +item.power == 2){ + return item.name } }) + if(temp.length>0) { + this.$message.warning("当前选择的"+temp.toString()+"已经有权限,无须申请!") + return + } this.$router.push({ path: '/permission/launch',