liuhj il y a 7 mois
Parent
commit
9632a325a2
1 fichiers modifiés avec 18 ajouts et 1 suppressions
  1. 18 1
      src/components/OP/OPgroup.vue

+ 18 - 1
src/components/OP/OPgroup.vue

@@ -37,7 +37,7 @@
                     <el-button @click="Inquireclick()" type="primary">查 询</el-button>
                 </div>
                 <div>
-                    <el-button @click="evocationdownload" type="primary">团组清单下载</el-button>
+                    <el-button v-if="evocationdownloadqx" @click="evocationdownload" type="primary">团组清单下载</el-button>
                     <el-button @click="addgroup()" type="primary">新增团组</el-button>
                 </div>
             </div>
@@ -233,6 +233,7 @@ export default {
                     }
                 }]
             },
+            evocationdownloadqx:false,
         }
     },
     
@@ -452,6 +453,22 @@ export default {
         }
     },
     mounted(){
+        //权限
+        let authData=JSON.parse(localStorage.getItem('userinif')).authData;
+        let Permissions=[];
+        for(let k=0;k<authData.length;k++){
+            for(let m=0;m<authData[k].pageList.length;m++){
+                if (authData[k].pageList[m].webUrl=='/OPgroup') {
+                    Permissions=authData[k].pageList[m].pageAuth;
+                }
+            }
+        }
+        for (let r = 0; r < Permissions.length; r++) {
+            if (Permissions[r].funid==12) {
+                this.evocationdownloadqx=true;
+            }
+        }
+
         this.token=JSON.parse(localStorage.getItem('userinif')).token;
         this.pageId=Number(localStorage.getItem('indexs').split('-')[1]);//页面id
         this.userid=JSON.parse(localStorage.getItem('userinif')).userInfo.userId;