Bladeren bron

权限bug修改

psj 2 jaren geleden
bovenliggende
commit
ac44e32660
2 gewijzigde bestanden met toevoegingen van 8 en 8 verwijderingen
  1. 6 6
      src/views/electricCard/ElectricCard.vue
  2. 2 2
      src/views/home/Login.vue

+ 6 - 6
src/views/electricCard/ElectricCard.vue

@@ -456,13 +456,13 @@ export default {
               name:dataArr[i].LICENSE_NAME,
               unit:dataArr[i].BELONGING_DEPARTMENT,
               totalUseCount:dataArr[i].TOTAL_NUM,
-              first:dataArr[i].L0,
-              second:dataArr[i].L1,
-              third:dataArr[i].L2,
+              first:dataArr[i].L6,
+              second:dataArr[i].L5,
+              third:dataArr[i].L4,
               forth:dataArr[i].L3,
-              fifth:dataArr[i].L4,
-              sixth:dataArr[i].L5,
-              seventh:dataArr[i].L6,
+              fifth:dataArr[i].L2,
+              sixth:dataArr[i].L1,
+              seventh:dataArr[i].L0,
             }
             this.tableData.push(temp);
           }

+ 2 - 2
src/views/home/Login.vue

@@ -242,12 +242,12 @@
                     var userkeycode = rows[0]["TEMPUSERKEYCODE"];
                     var role_uuid = rows[0]["ROLE_UUID"];
 
-                    if(0 != role && 1 != role && 163 != role && 173 != role && 174 != role){
+/*                    if(0 != role && 1 != role && 163 != role && 173 != role && 174 != role && '183' != role && '5' != role ){
                         MessageBox.alert('当前用户无登录权限!', '提示', {
                             confirmButtonText: '确定'
                         });
                         return;
-                    }
+                    }*/
                     //保存用户信息
                     localStorage.setItem("ywtb_usercode", usercode);
                     localStorage.setItem("ywtb_username", username);