|
@@ -1,11 +1,11 @@
|
|
<!-- 学生端工作台 -->
|
|
<!-- 学生端工作台 -->
|
|
<template>
|
|
<template>
|
|
<view class="user-workbench" :style="{paddingTop:navHeight+'rpx'}">
|
|
<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">
|
|
<img class="top-big-img" :src="homepageBanner">
|
|
-
|
|
|
|
|
|
+
|
|
<homeConfigurationSlot v-for="(item,index) in homeConfigData" :key="index" :homeConfig="item"></homeConfigurationSlot>
|
|
<homeConfigurationSlot v-for="(item,index) in homeConfigData" :key="index" :homeConfig="item"></homeConfigurationSlot>
|
|
-
|
|
|
|
|
|
+
|
|
<view class="big-icon-button-box">
|
|
<view class="big-icon-button-box">
|
|
<view class="left-box">
|
|
<view class="left-box">
|
|
<img class="left-top-img" @click="goNull" src="@/images/basicsModules/img_bg_cjcx.png">
|
|
<img class="left-top-img" @click="goNull" src="@/images/basicsModules/img_bg_cjcx.png">
|
|
@@ -35,7 +35,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { myViolationCount,queryMyCert,outSubjectPhoto,gradingControl,getGentleIdentifier,systemAppletLayoutSelect} from '@/api/basicsModules/index.js'
|
|
import { myViolationCount,queryMyCert,outSubjectPhoto,gradingControl,getGentleIdentifier,systemAppletLayoutSelect} from '@/api/basicsModules/index.js'
|
|
-import { tabBar } from '@/component/tabBar.vue'
|
|
|
|
|
|
+import { tabBar } from '@/components/tabBar.vue'
|
|
import { navBar } from '@/component/navbar.vue'
|
|
import { navBar } from '@/component/navbar.vue'
|
|
import { homeConfigurationSlot } from '@/component/homeConfigurationSlot'
|
|
import { homeConfigurationSlot } from '@/component/homeConfigurationSlot'
|
|
import { getHomeConfig } from '@/utils/homeConfig'
|
|
import { getHomeConfig } from '@/utils/homeConfig'
|
|
@@ -49,7 +49,7 @@ export default {
|
|
return {
|
|
return {
|
|
homeConfigData: [],
|
|
homeConfigData: [],
|
|
navHeight: uni.getStorageSync('navHeight'),
|
|
navHeight: uni.getStorageSync('navHeight'),
|
|
- title:'实验室安全智能监测与控制系统',
|
|
|
|
|
|
+ title:'实验室安全智能监测与控制系统',
|
|
hintType:false,
|
|
hintType:false,
|
|
dataList:[],
|
|
dataList:[],
|
|
violationData:{},
|
|
violationData:{},
|
|
@@ -61,7 +61,7 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
- this.systemAppletLayoutSelect();
|
|
|
|
|
|
+ this.systemAppletLayoutSelect();
|
|
this.myViolationCount();
|
|
this.myViolationCount();
|
|
this.getGrading();
|
|
this.getGrading();
|
|
|
|
|
|
@@ -78,7 +78,7 @@ export default {
|
|
}
|
|
}
|
|
this.$set(this,'homeConfigData',getHomeConfig(list));
|
|
this.$set(this,'homeConfigData',getHomeConfig(list));
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ },
|
|
//获取分级管控未完成总数
|
|
//获取分级管控未完成总数
|
|
async getGrading(){
|
|
async getGrading(){
|
|
let obj = {
|
|
let obj = {
|
|
@@ -175,7 +175,7 @@ export default {
|
|
// uni.navigateTo({
|
|
// uni.navigateTo({
|
|
// url: '/pages_manage/workbench/problemRectification/rectifyList',//安全检查
|
|
// url: '/pages_manage/workbench/problemRectification/rectifyList',//安全检查
|
|
// });
|
|
// });
|
|
-
|
|
|
|
|
|
+
|
|
}else if(type == 'gas'){//气瓶管理
|
|
}else if(type == 'gas'){//气瓶管理
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/pages_student/gasManage/gasManage',
|
|
url: '/pages_student/gasManage/gasManage',
|
|
@@ -241,7 +241,7 @@ export default {
|
|
const {data} = await getGentleIdentifier();
|
|
const {data} = await getGentleIdentifier();
|
|
if(data.code==200){
|
|
if(data.code==200){
|
|
let pageType = null
|
|
let pageType = null
|
|
- // 如果是管理员 检查者和整改者
|
|
|
|
|
|
+ // 如果是管理员 检查者和整改者
|
|
if(data.data.adminGentle && (data.data.applyGentle || data.data.myApplyGentle) && data.data.rectifyGentle){
|
|
if(data.data.adminGentle && (data.data.applyGentle || data.data.myApplyGentle) && data.data.rectifyGentle){
|
|
pageType=1
|
|
pageType=1
|
|
}else if(data.data.adminGentle && (data.data.applyGentle || data.data.myApplyGentle) && !data.data.rectifyGentle){
|
|
}else if(data.data.adminGentle && (data.data.applyGentle || data.data.myApplyGentle) && !data.data.rectifyGentle){
|