From 2d1b10836aaa7d305d9f41f1eeb5e6f8d19d3b95 Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Tue, 25 Apr 2023 18:18:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E6=9D=83?= =?UTF-8?q?=E9=99=90=E7=94=B3=E8=AF=B7=E7=9A=84=E5=B8=A6=E5=85=A5=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Report/ReportList.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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',