Browse Source

修改权限判断

caojunjie 3 years ago
parent
commit
215e85689c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/views/index.vue

+ 1 - 2
src/views/index.vue

@@ -1055,7 +1055,7 @@ export default {
     }
     getUserProfile().then(res=>{
       for (let item in res.data.roles){
-        if (res.data.roles[item].roleKey == "wealthStatistics"){
+        if (res.data.roles[item].roleKey == "wealthStatistics" || res.data.roles[item].roleKey =="admin"){
           getFeeStatistics().then(res=>{
             this.financeLine(res.data)
           })
@@ -1070,7 +1070,6 @@ export default {
   methods: {
     // 船名航次
     oceanVessel() {
-      console.log(this.profitData.xData)
       let myChart = this.$echarts.init(document.getElementById("voyage"));
       const color = ['#EE6666', '#7DD2F3']
       myChart.setOption({