|
@@ -1,7 +1,7 @@
|
|
|
<!-- 学生端工作台 -->
|
|
|
<template>
|
|
|
<view class="user-workbench" :style="{paddingTop:navHeight+'rpx'}">
|
|
|
- <nav-bar :title="title"></nav-bar>
|
|
|
+ <nav-bar :title="title"></nav-bar>
|
|
|
<img class="top-big-img" :src="homepageBanner">
|
|
|
<view class="min-icon-button-box">
|
|
|
<view @click="goPage('casuallyPat')">
|
|
@@ -82,7 +82,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
navHeight: uni.getStorageSync('navHeight'),
|
|
|
- title:'实验室安全智能监测与控制系统',
|
|
|
+ title:'实验室安全智能监测与控制系统',
|
|
|
hintType:false,
|
|
|
dataList:[],
|
|
|
violationData:{},
|
|
@@ -196,7 +196,7 @@ export default {
|
|
|
// uni.navigateTo({
|
|
|
// url: '/pages_manage/workbench/problemRectification/rectifyList',//安全检查
|
|
|
// });
|
|
|
-
|
|
|
+
|
|
|
}else if(type == 'gas'){//气瓶管理
|
|
|
uni.navigateTo({
|
|
|
url: '/pages_student/gasManage/gasManage',
|
|
@@ -262,22 +262,19 @@ export default {
|
|
|
const {data} = await getGentleIdentifier();
|
|
|
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
|
|
|
- }
|
|
|
+ // 如果是管理员 检查者和整改者
|
|
|
+ if(data.data.adminGentle || data.data.collegeGentle){//校级管理员
|
|
|
+ list.push({name:'管理员',pageType:1})
|
|
|
+ }
|
|
|
+ if(data.data.applyGentle ||data.data.myApplyGentle){
|
|
|
+ list.push({name:'检查者',pageType:2})
|
|
|
+ }
|
|
|
+ if(data.data.rectifyGentle){
|
|
|
+ list.push({name:'整改者',pageType:3})
|
|
|
+ }
|
|
|
+ if(!data.data.adminGentle && !data.data.applyGentle && !data.data.myApplyGentle && !data.data.rectifyGentle && !data.data.collegeGentle){
|
|
|
+
|
|
|
+ }
|
|
|
uni.setStorageSync('gentleIdentifier',pageType)
|
|
|
uni.setStorageSync('gentleIdentifierData',data.data)
|
|
|
if(pageType){
|