|
@@ -263,24 +263,19 @@ export default {
|
|
|
if(data.code==200){
|
|
|
let pageType = null
|
|
|
// 如果是管理员 检查者和整改者
|
|
|
- if(data.data.adminGentle && (data.data.applyGentle || data.data.myApplyGentle) && data.data.rectifyGentle){
|
|
|
- pageType=1
|
|
|
- }else if(data.data.adminGentle && (data.data.applyGentle || data.data.myApplyGentle) && !data.data.rectifyGentle){
|
|
|
- pageType=1
|
|
|
- }else if(data.data.adminGentle && !data.data.applyGentle && data.data.rectifyGentle){
|
|
|
- pageType=1
|
|
|
- }else if(!data.data.adminGentle && (data.data.applyGentle || data.data.myApplyGentle) && data.data.rectifyGentle){
|
|
|
- pageType=2
|
|
|
- }else if(data.data.adminGentle && !data.data.applyGentle && !data.data.rectifyGentle){
|
|
|
- pageType=1
|
|
|
- }else if(!data.data.adminGentle && (data.data.applyGentle || data.data.myApplyGentle) && !data.data.rectifyGentle){
|
|
|
- pageType=2
|
|
|
- }else if(!data.data.adminGentle && !data.data.applyGentle && data.data.rectifyGentle){
|
|
|
- pageType=3
|
|
|
+ let list=[];
|
|
|
+ if(data.data.adminGentle){
|
|
|
+ list.push({name:'管理员',pageType:1})
|
|
|
}
|
|
|
- uni.setStorageSync('gentleIdentifier',pageType)
|
|
|
+ if(data.data.applyGentle ||data.data.myApplyGentle){
|
|
|
+ list.push({name:'检查者',pageType:2})
|
|
|
+ }
|
|
|
+ if(data.data.rectifyGentle){
|
|
|
+ list.push({name:'整改者',pageType:3})
|
|
|
+ }
|
|
|
+ uni.setStorageSync('gentleIdentifier',list)
|
|
|
uni.setStorageSync('gentleIdentifierData',data.data)
|
|
|
- if(pageType){
|
|
|
+ if(list.length>0){
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/safetyExamineWorkbench',
|
|
|
});
|