【修改】权限申请的带入条件修改

This commit is contained in:
zhoulingpo
2023-04-25 18:18:14 +08:00
parent a855fa8b2c
commit 2d1b10836a
+10 -2
View File
@@ -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',