dedsudiyu před 2 měsíci
rodič
revize
6f21b48577
1 změnil soubory, kde provedl 18 přidání a 2 odebrání
  1. 18 2
      pages/views/login/ssoCertification.vue

+ 18 - 2
pages/views/login/ssoCertification.vue

@@ -14,6 +14,7 @@
 		configInfo,
 		getConfigByType,
 		systemAppletRolePermission,
+		systemSubjectCheckIsAdminOrSafeUser,
 		securityDataStatisticsGetUserIdentity
 	} from '@/pages/api/index.js'
 	import {
@@ -72,7 +73,9 @@
 						//获取权限字段
 						this.systemAppletRolePermission(),
 						//查询身份
-						this.securityDataStatisticsGetUserIdentity()
+						this.securityDataStatisticsGetUserIdentity(),
+						//查询是否是管理员/安全员
+						this.systemSubjectCheckIsAdminOrSafeUser(),
 					]).then((result) => {
 						if (uni.getStorageSync('codeData')) {
 							uni.redirectTo({
@@ -115,7 +118,20 @@
 					});
 				}
 			},
-			
+			//查询是否是管理员/安全员
+			async systemSubjectCheckIsAdminOrSafeUser(){
+				let self = this;
+				const {
+					data
+				} = await systemSubjectCheckIsAdminOrSafeUser();
+				if (data.code == 200) {
+					if(data.data.isSafe || data.data.isAdmin){
+						uni.setStorageSync('subAdmin','1');
+					}else{
+						uni.setStorageSync('subAdmin','0');
+					}
+				}
+			},
 			//查询公共配置
 			async getConfigInfo() {
 				const {