dedsudiyu месяцев назад: 10
Родитель
Сommit
0b000db406

+ 0 - 57
component/permissionsSlot.vue

@@ -1,57 +0,0 @@
-<!-- 
-
-			<permissionsSlot class="button-for-box" :hasPermi="'demo:demo:demo'"> 
-			</permissionsSlot>
-
- -->
-
-<template>
-	<view class="permissionsSlot" v-if='permissionType'>
-		<slot></slot>
-	</view>
-</template>
-
-<script>
-	export default {
-		name: "permissionsSlot",
-		props: {
-			hasPermi: '',
-		},
-		data() {
-			return {
-				permissionType: false,
-				objStore: uni.getStorageSync('permissions'),
-			}
-		},
-		created() {
-
-		},
-		mounted() {
-			this.permissionVerification();
-		},
-		methods: {
-			permissionVerification() {
-				let self = this;
-				// console.log('self.objStore',self.objStore)
-				// console.log('self.hasPermi',self.hasPermi)
-				if (this.objStore[0] == "*:*:*" || self.hasPermi === "") {
-					this.$set(self, 'permissionType', true);
-					return
-				}
-				for (let i = 0; i < self.objStore.length; i++) {
-					if (self.objStore[i] === self.hasPermi) {
-						this.$set(self, 'permissionType', true);
-						return
-					}
-				}
-			},
-		},
-	}
-</script>
-
-<style lang="stylus" scoped>
-	.permissionsSlot {
-		margin: 0;
-		padding: 0;
-	}
-</style>

+ 0 - 5
main.js

@@ -1,13 +1,8 @@
 import Vue from 'vue'
 import App from './App'
 
-// 权限组件
-import permissionsSlot from '@/component/permissionsSlot'
-
 Vue.config.productionTip = false
 
-Vue.component('permissionsSlot', permissionsSlot)
-
 App.mpType = 'app'
 
 const app = new Vue({

+ 0 - 448
pages/component/homeConfigurationSlot.vue

@@ -1,448 +0,0 @@
-<!--
- 首页按钮匹配组件
-	<homeConfigurationSlot v-if="homeConfigData[0]" :homeConfig="homeConfigData[0]"></homeConfigurationSlot>
-	<homeConfigurationSlot v-if="homeConfigData[1]" :homeConfig="homeConfigData[1]"></homeConfigurationSlot>
-	<homeConfigurationSlot v-if="homeConfigData[2]" :homeConfig="homeConfigData[2]"></homeConfigurationSlot>
-	<homeConfigurationSlot v-if="homeConfigData[3]" :homeConfig="homeConfigData[3]"></homeConfigurationSlot>
-
- 	import { homeConfigurationSlot } from '@/pages/component/homeConfigurationSlot'
-	import { getHomeConfig } from '@/utils/homeConfig.js'
-
-	components: {
-		homeConfigurationSlot,
-	},
-
-	homeConfigData: [],
-
-
-	async systemAppletLayoutSelect() {
-		const {data} = await systemAppletLayoutSelect({module:'home'})
-		if(data.code == 200){
-		  let list = JSON.parse(JSON.stringify(data.data))
-		  for(let i=0;i<list.length;i++){
-			list[i].layout = JSON.parse(list[i].layout);
-		  }
-		  this.$set(this,'homeConfigData',getHomeConfig(list));
-		}
-	},
- -->
-<template>
-	<view class="homeConfigurationSlot">
-		<!-- 小型按钮模块 -->
-		<view class="min-icon-button-box" v-if="homeConfig.type == 'minBox'">
-			<permissionsSlot v-for="(item,index) in homeConfig.layout" :key="index" :hasPermi="item.limits">
-				<view class="min-button-box" @click="buttonClick(item)">
-					<img :src="item.img">
-					<view>{{item.name}}</view>
-				</view>
-			</permissionsSlot>
-		</view>
-		<!-- 大型按钮模块 -->
-		<view class="big-icon-button-box" v-if="homeConfig.type == 'bigBox'">
-			<permissionsSlot class="imgBox" v-for="(item,index) in homeConfig.layout" :key="index" :hasPermi="item.limits">
-				<img :src="item.img" @click="buttonClick(item)">
-			</permissionsSlot>
-		</view>
-		<!-- 三格按钮 -->
-		<view class="three-big-icon-button-box" v-if="homeConfig.type == 'threeBox'">
-			<permissionsSlot class="imgBox" v-for="(item,index) in homeConfig.layout" :key="index" :hasPermi="item.limits">
-				<img v-if="index<3" :src="item.img" @click="buttonClick(item)">
-			</permissionsSlot>
-		</view>
-		<!-- 条型按钮 -->
-		<view v-if="homeConfig.type == 'stripBox'">
-			<permissionsSlot v-for="(item,index) in homeConfig.layout" :key="index" :hasPermi="item.limits">
-				<view class="grading">
-					<img class="grading_l" :src="item.img" />
-					<view class="grading_c">{{item.name}}</view>
-					<view class="grading_r" v-if="item.route === 'gradingControl'" @click="buttonClick(item)">
-						{{gradingCount>0?gradingCount+'项工作待完成':''}}
-						<img src="@/pages/images/icon_wdwg_gd.png" />
-					</view>
-				</view>
-			</permissionsSlot>
-		</view>
-	</view>
-</template>
-
-<script>
-	import {
-		outSubjectPhoto,
-		gradingControl,
-		getGentleIdentifier
-	} from '@/pages/api/index.js'
-	export default {
-		name: "homeConfigurationSlot",
-		props: {
-			homeConfig: {},
-		},
-		data() {
-			return {
-				gradingCount: 0, //分级管控未完成总数
-			}
-		},
-		created() {
-
-		},
-		mounted() {
-			this.initializeData();
-		},
-		methods: {
-			//初始化
-			initializeData() {
-				let self = this;
-				for (let i = 0; i < self.homeConfig.layout.length; i++) {
-					//分级管控
-					if (self.homeConfig.layout[i].route === 'grading') {
-						self.getGrading();
-					}
-				}
-			},
-			//按钮点击事件
-			buttonClick(item) {
-				if (item.buttonType === 'page') { //随手拍
-					if (item.route === 'snapshotManage') { //安全检查
-						uni.navigateTo({
-							url: item.routeUrl,
-						});
-					}
-					if (item.route === 'safetyExamine') { //安全检查
-						/* uni.navigateTo({
-							url: item.routeUrl,
-						}); */
-						this.getGentleIdentifier(item.routeUrl)
-					}
-					if (item.route === 'leaveInspection') { //离开检查
-						uni.navigateTo({
-							url: item.routeUrl,
-						});
-						//this.outSubjectPhoto(item.routeUrl);
-					}
-					if (item.route === 'accessQualification') { //准入审核
-						uni.navigateTo({
-							url: item.routeUrl,
-						});
-						//this.outSubjectPhoto(item.routeUrl);
-					}
-					if (item.route === 'gasBottle') { //气瓶管理
-						uni.navigateTo({
-							url: item.routeUrl,
-						});
-					}
-					if (item.route === 'warningRecording') { //安全报警
-						uni.navigateTo({
-							url: item.routeUrl,
-						});
-					}
-					if (item.route === 'emergencyEvacuation') { //应急处置
-						uni.navigateTo({
-							url: item.routeUrl,
-						});
-					}
-					if (item.route === 'gradingControl') { //分級管控
-						uni.navigateTo({
-							url: item.routeUrl,
-						});
-					}
-					//学生端------------------------
-					if (item.route === 'integralExchange') { //积分兑换
-						uni.navigateTo({
-							url: item.routeUrl,
-						});
-						//this.saoCode(item.routeUrl)
-					}
-					if (item.route === 'accessApplication') { //准入申请
-						uni.navigateTo({
-							url: item.routeUrl,
-						});
-					}
-					console.log('item',item)
-					if (item.route === 'meViolation') { //违规记录
-						uni.navigateTo({
-							url: item.routeUrl,
-						});
-					}
-					if (item.route === 'studentGasBottle') { //气瓶管理
-						uni.navigateTo({
-							url: item.routeUrl,
-						});
-					}
-
-
-
-
-				} else if (item.buttonType === 'button') {
-					if (item.route === 'photoInspection') {
-						this.outSubjectPhoto();
-					}
-				} else if (item.buttonType === 'none') {
-					uni.showToast({
-						title: '暂未开放',
-						icon: "none",
-						mask: true,
-						duration: 2000
-					});
-				}
-			},
-			//获取用户身份标识"adminGentle": false,   管理员身份 "rectifyGentle": false, 院级管理员collegeGentle   整改身份"applyGentle": false    检查者身份
-			async getGentleIdentifier(routeUrl) {
-				let self = this;
-				const {
-					data
-				} = await getGentleIdentifier();
-				if (data.code == 200) {
-					let pageType = null
-					// 如果是管理员 检查者和整改者
-					let list = [];
-					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', list)
-					uni.setStorageSync('gentleIdentifierData', data.data)
-					if (list.length > 0) {
-						uni.navigateTo({
-							url: routeUrl,
-						});
-					} else {
-						uni.showToast({
-							title: '没有相关权限',
-							icon: "none",
-							mask: true,
-							duration: 2000
-						});
-					}
-				}
-			},
-			//获取拍照检查配置
-			async outSubjectPhoto(routeUrl) {
-				const {
-					data
-				} = await outSubjectPhoto();
-				if (data.code == 200) {
-					if (data.data == null) {
-						//需要检查(重新填写)
-						let obj = {
-							sub: "实验室照片",
-							subUrl: "",
-							garbage: "垃圾桶清理后照片",
-							garbageUrl: "",
-							dangerous: "使用危险设备照片(选填)",
-							dangerousUrl: "",
-							sourceRisk: "危险源设备使用登记本照片(选填)",
-							sourceRiskUrl: "",
-						};
-						uni.navigateTo({
-							url: routeUrl + '?newData=' + encodeURIComponent(JSON.stringify(obj)),
-						});
-					} else if (data.data == false) {
-						//不需要检查
-						uni.showToast({
-							title: '暂无检查数据',
-							icon: "none",
-							mask: true,
-							duration: 2000
-						});
-					} else {
-						//需要检查(修改内容)
-						let obj = {
-							id: data.data.id,
-							sub: "实验室照片",
-							subUrl: data.data.subUrl,
-							garbage: "垃圾桶清理后照片",
-							garbageUrl: data.data.garbageUrl,
-							dangerous: "使用危险设备照片(选填)",
-							dangerousUrl: data.data.dangerousUrl,
-							sourceRisk: "危险源设备使用登记本照片(选填)",
-							sourceRiskUrl: data.data.sourceRiskUrl,
-						};
-						uni.navigateTo({
-							url: routeUrl + '?newData=' + encodeURIComponent(JSON.stringify(obj)),
-						});
-					}
-				}
-			},
-			//获取分级管控未完成总数
-			async getGrading() {
-				const {
-					data
-				} = await gradingControl({})
-				if (data.code == 200) {
-					this.$set(this, 'gradingCount', data.data.length);
-				}
-			},
-			//调用摄像头
-			saoCode(routeUrl) {
-				uni.scanCode({
-					onlyFromCamera: true,
-					success: function(res) {
-						uni.navigateTo({
-							url: routeUrl + '?q=' + encodeURIComponent(JSON
-								.stringify(res.result))
-						});
-					}
-				});
-			},
-		},
-	}
-</script>
-
-<style lang="stylus" scoped>
-	.homeConfigurationSlot {
-		margin: 0;
-		padding: 0;
-
-		.min-icon-button-box {
-			display flex;
-			justify-content: flex-start;
-			flex-wrap: wrap;
-			width: 710rpx;
-			margin: 20rpx;
-			background: #ffffff;
-			border-radius: 20rpx;
-			padding-bottom: 20rpx;
-
-			.min-button-box {
-				width: 176rpx;
-
-				img {
-					height: 75rpx;
-					width: 75rpx;
-					margin: 30rpx auto 10rpx;
-				}
-
-				view {
-					text-align: center;
-					font-size: 24rpx;
-				}
-			}
-		}
-
-		.big-icon-button-box {
-			margin: 10rpx 0 0 20rpx;
-
-			.imgBox {
-				display: inline-block;
-				width: 350rpx;
-				height: 150rpx;
-				margin: 10rpx 10rpx 0 0;
-			}
-
-			img {
-				width: 350rpx;
-				height: 150rpx;
-			}
-		}
-
-		.three-big-icon-button-box {
-			width: 710rpx;
-			height: 354rpx;
-			margin: 20rpx 20rpx 0;
-			background: #ffffff;
-			border-radius: 20rpx;
-			position: relative;
-
-			.imgBox:nth-child(1) {
-				position: absolute;
-				left: 13rpx;
-				top: 20rpx;
-				width: 310rpx;
-				height: 150rpx;
-				margin-bottom: 14rpx;
-
-				img {
-					width: 310rpx;
-					height: 150rpx;
-				}
-			}
-
-			.imgBox:nth-child(2) {
-				position: absolute;
-				left: 13rpx;
-				top: 180rpx;
-				width: 310rpx;
-				height: 150rpx;
-
-				img {
-					width: 310rpx;
-					height: 150rpx;
-				}
-			}
-
-			.imgBox:nth-child(3) {
-				position: absolute;
-				right: 13rpx;
-				top: 20rpx;
-				width: 362rpx;
-				height: 310rpx;
-
-				// margin: 22rpx 13rpx 22rpx 0;
-				img {
-					width: 362rpx;
-					height: 310rpx;
-				}
-			}
-		}
-
-		.grading {
-			width: 712rpx;
-			height: 80rpx;
-			background: #FFFFFF;
-			border-radius: 20rpx;
-			margin: 20rpx 0 20rpx 20rpx;
-			display: flex;
-			justify-content: flex-start;
-			align-items: center;
-
-			.grading_l {
-				width: 34rpx;
-				height: 34rpx;
-				margin-left: 16rpx;
-			}
-
-			.grading_c {
-				font-size: 28rpx;
-				font-family: PingFang SC;
-				font-weight: 500;
-				color: #333333;
-				margin-left: 16rpx;
-			}
-
-			.grading_r {
-				width: 504rpx;
-				height: 80rpx;
-				font-size: 26rpx;
-				font-family: PingFang SC;
-				font-weight: 500;
-				color: #EE3A3A;
-				display: flex;
-				justify-content: flex-end;
-				align-items: center;
-
-				>img {
-					width: 20rpx;
-					height: 20rpx;
-					margin-left: 20rpx;
-				}
-			}
-		}
-	}
-</style>

+ 0 - 213
pages/component/mineConfigurationSlot.vue

@@ -1,213 +0,0 @@
-<!--
- 个人中心按钮匹配组件
-	<mineConfigurationSlot :mineConfig="mineConfigData"></mineConfigurationSlot>
-
-	import { mineConfigurationSlot } from '@/pages/component/mineConfigurationSlot'
-	import { getMineConfig } from '@/utils/mineConfig'
-
-	components: {
-		mineConfigurationSlot,
-	},
-
-	mineConfigData: [],
-
-	//获取菜单配置
-	async systemAppletLayoutSelect() {
-		const {data} = await systemAppletLayoutSelect({module:'mine'})
-		if(data.code == 200){
-		  let list = JSON.parse(JSON.stringify(data.data))
-		  for(let i=0;i<list.length;i++){
-			list[i].layout = JSON.parse(list[i].layout);
-		  }
-		  this.$set(this,'mineConfigData',getMineConfig(list));
-		  console.log('mineConfigData',this.mineConfigData)
-		}
-	},
- -->
-<template>
-	<view class="mineConfigurationSlot">
-		<view class="button-max-big-box">
-			<permissionsSlot class="button-for-box" v-for="(item,index) in mineConfig.layout" :key="item.id"
-				:hasPermi="item.limits">
-				<view class="button-max-box" @click="buttonClick(index)">
-					<img class="left-img" :src="item.img">
-					<view>{{item.name}}</view>
-					<view class="view-three-one" v-if="item.route === 'mineWarningRecording' && securityAlertNum>0">
-						{{securityAlertNum}}</view>
-					<view class="view-three-two" v-if="item.route === 'laboratory' && adminSubCount>0">{{adminSubCount}}</view>
-					<view class="view-three-two" v-if="item.route === 'PlanExecuteRecord' && wranDoCount>0">{{wranDoCount}}</view>
-					<view class="view-three-type" v-if="item.route === 'faceImage'"
-						:class="ifFaceFeature==''?'colorA':'marginType'">
-						{{ifFaceFeature==''?'去认证':'已认证'}}
-					</view>
-					<img class="right-img" src="@/pages/images/icon_04.png">
-				</view>
-			</permissionsSlot>
-		</view>
-	</view>
-</template>
-
-<script>
-	import {
-		fingerprintQueryList
-	} from '@/pages/api/index.js'
-	export default {
-		name: "mineConfigurationSlot",
-		props: {
-			mineConfig: {},
-			// 人脸
-			ifFaceFeature: "",
-			//签名
-			isUpload: "",
-			Quantity: 0, //指纹录取数量
-			//用户签名
-			signatureUrl: "",
-			//预案执行记录
-			wranDoCount: 10,
-			//我的实验室
-			adminSubCount: 0,
-			//预警记录
-			securityAlertNum: 10,
-		},
-		data() {
-			return {}
-		},
-		created() {
-			// this.$set(this, 'ifFaceFeature', data.data.faceImg)
-		},
-		mounted() {
-
-		},
-		methods: {
-			//按钮点击事件
-			buttonClick(index) {
-				if (this.mineConfig.layout[index].buttonType === 'page') {
-					if (this.mineConfig.layout[index].route === 'mineWarningRecording') { //预警记录
-						uni.navigateTo({
-							url: this.mineConfig.layout[index].routeUrl,
-						});
-					}
-					if (this.mineConfig.layout[index].route === 'laboratory') { //我的实验室
-						uni.navigateTo({
-							url: this.mineConfig.layout[index].routeUrl,
-						});
-					}
-					if (this.mineConfig.layout[index].route === 'PlanExecuteRecord') { //预案执行记录
-						uni.navigateTo({
-							url: this.mineConfig.layout[index].routeUrl,
-						});
-					}
-					if (this.mineConfig.layout[index].route === 'faceImage') { //身份验证
-						uni.navigateTo({
-							url: this.mineConfig.layout[index].routeUrl,
-						});
-					}
-					if (this.mineConfig.layout[index].route === 'empowerOpen') { //授权开门
-						uni.navigateTo({
-							url: this.mineConfig.layout[index].routeUrl,
-						});
-					}
-					if (this.mineConfig.layout[index].route === 'remoteOpen') { //远程开门
-						uni.navigateTo({
-							url: this.mineConfig.layout[index].routeUrl,
-						});
-					}
-					
-					
-
-				} else if (this.mineConfig.layout[index].buttonType === 'button') {
-
-				} else if (this.mineConfig.layout[index].buttonType === 'none') {
-					uni.showToast({
-						title: '暂未开放',
-						icon: "none",
-						mask: true,
-						duration: 2000
-					});
-				}
-			},
-		},
-	}
-</script>
-
-<style lang="stylus" scoped>
-	.mineConfigurationSlot {
-		margin: 0;
-		background: #fff;
-		padding: 0 20rpx;
-		margin-top: 30rpx;
-
-		.button-for-box:last-of-type {
-			.button-max-box {
-				border: none !important;
-			}
-		}
-
-		.button-max-box {
-			height: 100rpx;
-			display flex;
-			border-bottom: 1px solid #e0e0e0;
-
-			.left-img {
-				height: 30rpx;
-				width: 30rpx;
-				margin: 34rpx 44rpx 0 0;
-			}
-
-			view {
-				line-height: 100rpx;
-			}
-
-			view:nth-child(2) {
-				flex: 1;
-				color: #333333;
-				font-size: 30rpx;
-			}
-
-			.right-img {
-				height: 24rpx;
-				width: 12rpx;
-				margin: 39rpx 0 0 0;
-			}
-
-			.colorA {
-				color: #E45656 !important;
-			}
-
-			.marginType {
-				margin-right: 12rpx;
-			}
-
-			.view-three-one {
-				width: 30rpx;
-				height: 30rpx;
-				text-align center;
-				background #FF4552;
-				border-radius: 50%;
-				font-size: 20rpx;
-				line-height: 30rpx;
-				color: #fff;
-				margin: 36rpx 20rpx;
-			}
-
-			.view-three-two {
-				width: 30rpx;
-				height: 30rpx;
-				text-align center;
-				border-radius: 50%;
-				font-size: 20rpx;
-				line-height: 30rpx;
-				color: #999;
-				margin: 36rpx 20rpx;
-
-			}
-
-			.view-three-type {
-				width: 120rpx;
-				text-align center;
-				color: #CCCCCC;
-				font-size: 26rpx;
-			}
-		}
-	}
-</style>

+ 0 - 303
pages/views/home/manageWorkbench.vue

@@ -1,303 +0,0 @@
-<!-- 管理端工作台 -->
-<template>
-  <view class="manage-workbench" :style="{paddingTop:navHeight+'rpx'}">
-    <nav-bar :title="title"></nav-bar>
-    <top-warn></top-warn>
-    <homeConfigurationSlot v-for="(item,index) in homeConfigData" :key="index" :homeConfig="item"></homeConfigurationSlot>
-    <tab-bar></tab-bar>
-  </view>
-</template>
-
-<script>
-  import {getSafeWarnList, laboratoryAppletSubList,
-    systemAppletLayoutSelect,laboratoryAppletGetSubDetailInfo
-  } from '@/pages/api/index.js'
-  import {getHomeConfig} from '@/utils/homeConfig'
-	// #ifdef MP-WEIXIN
-	import {tabBar} from '@/pages/component/tabBar.vue'
-	import {topWarn} from '@/pages/component/topWarn.vue'
-	import {navBar} from '@/pages/component/navbar.vue'
-	import {homeConfigurationSlot} from '@/pages/component/homeConfigurationSlot'
-	// #endif
-  export default {
-    name: 'manageWorkbench',
-		// #ifdef MP-WEIXIN
-    components: {
-      tabBar,
-      topWarn,
-      navBar,
-      homeConfigurationSlot,
-    },
-		// #endif
-		// #ifdef H5
-		components: {
-			"tabBar": () => import('@/pages/component/tabBar.vue'),
-			"topWarn": () => import('@/pages/component/topWarn.vue'),
-			"navBar": () => import('@/pages/component/navbar.vue'),
-			"homeConfigurationSlot": () => import('@/pages/component/homeConfigurationSlot.vue'),
-		},
-		// #endif
-    data() {
-      return {
-        homeConfigData: [],
-        navHeight: uni.getStorageSync('navHeight'),
-        title: '实验室安全智能监测与控制系统',
-        //banner图片
-        homepageBanner: uni.getStorageSync('homepageBanner'),
-        subject_classData: [],
-        securityAlertNum: "",
-        //安全报警
-        alarmList: [{
-			subDiyVo:{
-				levelName:'三大法师的',
-				name:'111111',
-				typeName:'sdfasfasd',
-				subAddrrStr:'111111111111'
-			},
-			sensorSet:[
-				'voc监测数值异常'
-			]
-		}],
-        //实验室数据
-        dataList: [],
-        fanList: [],//控制记录触发方式
-        // 查询参数
-        queryParams: {
-          page: 1,
-          pageSize: 20,
-        },
-        safeWarnQueryParams:{
-          page: 1,
-          pageSize: 20,
-          count: 0,
-          groupStatus: 1,
-        }
-      }
-    },
-    created() {
-
-    },
-    mounted() {
-      this.systemAppletLayoutSelect();
-      this.laboratoryAppletSubList();
-      //this.getSafeWarnList();
-    },
-    methods: {
-      //获取菜单配置
-      async systemAppletLayoutSelect() {
-        const {data} = await systemAppletLayoutSelect({module: 'home'})
-        if (data.code == 200) {
-          let list = JSON.parse(JSON.stringify(data.data))
-          for (let i = 0; i < list.length; i++) {
-            list[i].layout = JSON.parse(list[i].layout);
-          }
-          this.$set(this, 'homeConfigData', getHomeConfig(list));
-        }
-      },
-      //获取实验室列表
-      async laboratoryAppletSubList() {
-        let self = this;
-        const {data} = await laboratoryAppletSubList(this.queryParams);
-        if (data.code == 200) {
-          this.$set(this,'dataList',data.data.records);
-        }
-      },
-      //获取报警信息列表
-      async getSafeWarnList() {
-        const {data} = await getSafeWarnList(this.safeWarnQueryParams);
-        if (data.code == 200) {
-          this.alarmList = data.rows;
-          if (data.rows[0]) {
-            this.securityAlertNum = data.rows[0].todayHappenCount;
-          } else {
-            this.securityAlertNum = 0;
-          }
-        }
-      },
-	   tableButton(type,row){
-        let self = this;
-        if(type == 'subDetail'){
-          //实验室详情
-		  this.laboratoryAppletGetSubDetailInfo(row.infoId)
-
-        }
-      },
-	  //获取实验室详情
-	  async laboratoryAppletGetSubDetailInfo(infoId) {
-	    const {data} = await laboratoryAppletGetSubDetailInfo({infoId:infoId});
-	    if (data.code == 200) {
-			uni.navigateTo({
-				url: '/pages_manage/views/laboratory/infoPage?infoData='+encodeURIComponent(JSON.stringify(data.data))
-			});
-	    }
-	  },
-    },
-    beforeDestroy() {
-
-    }
-  }
-</script>
-
-<style lang="stylus" scoped>
-.manage-workbench {
-  height: 100%;
-  width: 100%;
-  overflow-y: scroll;
-  box-sizing: border-box;
-  .top-big-img {
-    height: 342 rpx;
-    width: 750 rpx;
-  }
-  /*安全报警和我的实验室头部*/
-  .for-title-p{
-    border-top-left-radius 20rpx
-    border-top-right-radius 20rpx
-    background #fff
-    padding-left:25rpx;
-    display flex
-    margin:0 20rpx;
-    border-bottom:1rpx solid #e0e0e0;
-    .left-img{
-      height:34rpx;
-      width:34rpx;
-      margin:22rpx 10rpx 0 0;
-    }
-    .name-view{
-      line-height:77rpx;
-      font-size:30rpx;
-      color:#333;
-    }
-    .num-view{
-      width:28rpx;
-      height:28rpx;
-      font-size:20rpx;
-      background:#EE3A3A;
-      border-radius:50%;
-      text-align :center;
-      line-height:24rpx;
-      color:#fff;
-      margin:26rpx 0 0 10rpx;
-    }
-    .null-view{
-      flex:1;
-    }
-    .right-img{
-      height:20rpx;
-      width:10rpx;
-      margin:28rpx 19rpx 0 0;
-    }
-  }
-  /*我的实验室*/
-  .for-max-box{
-    margin:0 20rpx 120rpx;
-    background: #fff
-    overflow: hidden
-    border-bottom-left-radius 20rpx
-    border-bottom-right-radius 20rpx
-    .null-img{
-      display block
-      width:276rpx;
-      height:321rpx;
-      margin:40rpx auto;
-    }
-    .for-box:nth-child(1){
-      border-top:none;
-    }
-    .for-box{
-      border-top:4rpx solid #dedede;
-      overflow hidden
-      background #ffffff
-      margin-bottom:20rpx;
-
-      .title-box{
-        margin:20rpx 20rpx 0;
-        display flex
-        view:nth-child(1){
-          height:40rpx;
-          line-height:40rpx;
-          font-size:20rpx;
-          border-radius:10rpx;
-          padding:0 20rpx;
-          color:#fff;
-          margin-right:20rpx;
-        }
-        view:nth-child(2){
-          line-height:42rpx;
-          font-size:30rpx;
-          color:#333;
-          max-width:600rpx;
-          flex:1;
-        }
-        img{
-          width:12rpx;
-          height:20rpx;
-          margin-top:11rpx;
-        }
-        .colorA{
-          background:#aa2315;
-        }
-        .colorB{
-          background:#ff9b09;
-        }
-        .colorC{
-          background:#3ea3e9;
-        }
-        .colorD{
-          background:#3ea34c;
-        }
-
-      }
-      .address-box{
-        margin:20rpx 20rpx;
-        font-size:26rpx;
-        color:#999999;
-        span{
-          margin-right:60rpx;
-        }
-      }
-      .address-box-two{
-        display flex
-        margin:0 20rpx 20rpx 20rpx;
-        img{
-          width:28rpx;
-          height:30rpx;
-          margin-right:18rpx;
-        }
-        view{
-          line-height:30rpx;
-          font-size:24rpx;
-          color:#999999;
-        }
-      }
-      /*安全报警*/
-      .for-img-box{
-        border-top:1rpx solid #e0e0e0;
-        margin:0 20rpx;
-        .for-img-min-box{
-          display flex
-          img{
-            width:30rpx;
-            height:27rpx;
-            margin-top:24rpx;
-            margin-right:10rpx;
-          }
-          view{
-            line-height:74rpx;
-            text-align center
-            font-size:28rpx;
-            color:#EE3A3A;
-          }
-        }
-      }
-      .button-view{
-        margin:0 20rpx;
-        border-top:1rpx dashed #e0e0e0;
-        line-height:90rpx;
-        text-align :center;
-        font-size:26rpx;
-        color:#333;
-      }
-    }
-  }
-}
-</style>

+ 0 - 510
pages/views/home/studentWorkbench.vue

@@ -1,510 +0,0 @@
-<!-- 学生端工作台 -->
-<template>
-  <view class="user-workbench" :style="{paddingTop:navHeight+'rpx'}">
-	<nav-bar :title="title"></nav-bar>
-    <img class="top-big-img" :src="homepageBanner">
-
-    <homeConfigurationSlot v-for="(item,index) in homeConfigData" :key="index" :homeConfig="item"></homeConfigurationSlot>
-
-    <view class="bottom-max-box">
-      <view class="bottom-title" @click="meCertificateClick()">
-        <img src="@/pages/images/icon_sy_wdzs.png">
-        <view>我的证书</view>
-      </view>
-      <view class="bottom-big-box">
-        <view class="bottom-for-box" v-for="(item,index) in dataList" :key="index">
-          <view class="bottom-top-box">{{item.certTitle}}</view>
-          <view class="bottom-bottom-box">
-            <view class="bottom-right-box">{{item.createTime}}获得</view>
-            <view class="bottom-right-box">到期时间:{{item.expirationTime}}</view>
-          </view>
-        </view>
-        <view class="null-view" v-if="!dataList[0]">暂无数据</view>
-      </view>
-    </view>
-    <tab-bar></tab-bar>
-  </view>
-</template>
-
-<script>
-import { myViolationCount,queryMyCert,outSubjectPhoto,gradingControl,getGentleIdentifier,systemAppletLayoutSelect} from '@/pages/api/index.js'
-import { tabBar } from '@/pages/component/tabBar.vue'
-import { navBar } from '@/pages/component/navbar.vue'
-import { homeConfigurationSlot } from '@/pages/component/homeConfigurationSlot'
-import { getHomeConfig } from '@/utils/homeConfig'
-export default {
-  components: {
-    tabBar,
-	navBar,
-	homeConfigurationSlot,
-  },
-  data() {
-    return {
-		homeConfigData: [],
-		navHeight: uni.getStorageSync('navHeight'),
-	    title:'实验室安全智能监测与控制系统',
-		hintType:false,
-		dataList:[],
-		violationData:{},
-		gradingCount:0,
-		homepageBanner:uni.getStorageSync('homepageBanner'),
-    }
-  },
-  created() {
-
-  },
-  mounted(){
-	this.systemAppletLayoutSelect();
-    this.myViolationCount();
-    this.getGrading();
-
-    this.queryMyCert();
-  },
-  methods: {
-	//获取菜单配置
-	async systemAppletLayoutSelect() {
-			const {data} = await systemAppletLayoutSelect({module:'home'})
-			if(data.code == 200){
-			  let list = JSON.parse(JSON.stringify(data.data))
-			  for(let i=0;i<list.length;i++){
-				list[i].layout = JSON.parse(list[i].layout);
-			  }
-			  this.$set(this,'homeConfigData',getHomeConfig(list));
-			}
-	},
-    //获取分级管控未完成总数
-    async getGrading(){
-      let obj = {
-
-      }
-      const {data} = await gradingControl(obj)
-      if(data.code==200){
-        this.gradingCount=data.count;
-      }
-
-    },
-    //暂无提示
-    goNull(){
-      uni.showToast({
-        title: '暂未开放',
-        mask:true,
-        icon:"none",
-        duration: 2000
-      });
-    },
-
-    //调用摄像头
-    saoCode(){
-      uni.scanCode({
-        onlyFromCamera: true,
-        success: function (res) {
-          uni.navigateTo({
-            url: '/pages_student/views/mine/codeSuccess?q='+encodeURIComponent(JSON.stringify(res.result))
-          });
-        }
-      });
-    },
-    // 查询违规记录列表 (用户端)
-    async myViolationCount(){
-      let self = this;
-      let {data} = await myViolationCount()
-      if(data.code == 200){
-        this.violationData = data.data;
-      }
-    },
-    // 查询证书列表 (用户端)
-    async queryMyCert(){
-      let self = this;
-      let {data} = await queryMyCert({})
-      if(data.code == 200){
-        let list = [];
-        for(let i=0;i<data.rows.length;i++){
-          let timeOne = (new Date(data.rows[i].createTime)).getTime();
-          let timeTwo = (new Date(data.rows[i].expirationTime)).getTime();
-          data.rows[i].createTime = self.formatDate(timeOne);
-          data.rows[i].expirationTime = self.formatDate(timeTwo);
-        }
-        this.dataList = data.rows;
-      }
-    },
-    formatDate(date) {
-      let newDate = new Date(date);
-      let YY = newDate.getFullYear() + '-';
-      let MM = (newDate.getMonth() + 1 < 10 ? '0' + (newDate.getMonth() + 1) : newDate.getMonth() + 1) + '-';
-      let DD = (newDate.getDate() < 10 ? '0' + (newDate.getDate()) : newDate.getDate());
-      return YY + MM + DD;
-    },
-	meCertificateClick(){
-		uni.navigateTo({
-		  url: '/pages_student/views/meCertificate',
-		});
-	},
-    //页面跳转
-    goPage(type){
-      if(type == 'meViolation'){//我的违规
-        uni.navigateTo({
-          url: '/pages_student/views/views/workbench/meViolation',
-        });
-      }else if(type == 'photoInspection'){//离开检查
-        this.outSubjectPhoto();
-      }else if(type == 'resultInquiry'){//成绩查询
-        uni.navigateTo({
-          url: '/pages_student/views/workbench/resultInquiry',
-        });
-      }else if(type == 'casuallyPat'){//随手拍
-        uni.navigateTo({
-          url: '/pages/views/casuallyPat',//随手拍
-        });
-      }else if(type == 'safeAccess'){//安全准入
-        uni.navigateTo({
-          url: '/pages_student/views/views/workbench/safeAccess/safeAccess',
-        });
-      }else if(type == 'examList'){//在线考试
-        uni.navigateTo({
-          url: '/pages_student/views/workbench/exam/examList',
-        });
-      }else if(type == 'grading'){
-        uni.navigateTo({
-          url: '/pages_student/views/gradingControl/gradingControl',//分级管控
-        });
-      }else if(type == 'safetyInspect'){//安全检查
-
-		this.getGentleIdentifier();
-        // uni.navigateTo({
-        //   url: '/pages_manage/views/workbench/problemRectification/rectifyList',//安全检查
-        // });
-
-      }else if(type == 'gas'){//气瓶管理
-        uni.navigateTo({
-          url: '/pages_student/views/gasManage/gasManage',
-        });
-      }else if(type == 'none'){
-		  uni.showToast({
-		    title: '暂未开放',
-		    icon:"none",
-		    mask:true,
-		    duration: 2000
-		  });
-	  }
-    },
-    //获取拍照检查配置
-    async outSubjectPhoto(){
-      const {data} = await outSubjectPhoto();
-      if(data.code == 200){
-        if(data.data == null){
-          //需要检查(重新填写)
-          let obj = {
-            sub:"实验室照片",
-            subUrl:"",
-            garbage:"垃圾桶清理后照片",
-            garbageUrl:"",
-            dangerous:"使用危险设备照片(选填)",
-            dangerousUrl:"",
-            sourceRisk:"危险源设备使用登记本照片(选填)",
-            sourceRiskUrl:"",
-          };
-          uni.navigateTo({
-            url: '/pages_student/views/workbench/photoInspection?newData='+encodeURIComponent(JSON.stringify(obj)),
-          });
-        }else if(data.data == false){
-          //不需要检查
-          uni.showToast({
-            title: '暂无检查数据',
-            icon:"none",
-            mask:true,
-            duration: 2000
-          });
-        }else{
-          //需要检查(修改内容)
-          let obj = {
-            id:data.data.id,
-            sub:"实验室照片",
-            subUrl:data.data.subUrl,
-            garbage:"垃圾桶清理后照片",
-            garbageUrl:data.data.garbageUrl,
-            dangerous:"使用危险设备照片(选填)",
-            dangerousUrl:data.data.dangerousUrl,
-            sourceRisk:"危险源设备使用登记本照片(选填)",
-            sourceRiskUrl:data.data.sourceRiskUrl,
-          };
-          uni.navigateTo({
-            url: '/pages_student/views/workbench/photoInspection?newData='+encodeURIComponent(JSON.stringify(obj)),
-          });
-        }
-      }
-    },
-	//获取用户身份标识"adminGentle": false,   管理员身份 "rectifyGentle": false,   整改身份"applyGentle": false    检查者身份
-	async getGentleIdentifier(){
-		let self = this;
-		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
-		  }
-		  uni.setStorageSync('gentleIdentifier',pageType)
-		  uni.setStorageSync('gentleIdentifierData',data.data)
-		  if(pageType){
-			  uni.navigateTo({
-			    url: '/pages/views/safetyExamineWorkbench',
-			  });
-		  }else{
-			  uni.showToast({
-				title: '没有相关权限',
-				icon:"none",
-				mask:true,
-				duration: 2000
-			  });
-		  }
-		}
-	},
-  }
-}
-</script>
-
-<style lang="stylus" scoped>
-.user-workbench{
-  height:100%;
-  flex:1;
-  box-sizing: border-box;
-  .top-big-img{
-    height:342rpx;
-    width:750rpx;
-    background :#ffffff;
-  }
-  .min-icon-button-box{
-    display flex;
-    justify-content: flex-start;
-    flex-wrap: wrap;
-    width:710rpx;
-    margin:20rpx;
-    background :#ffffff;
-    border-radius:20rpx;
-    padding-bottom: 20rpx;
-    view{
-      width: 176rpx;
-      img{
-        height:75rpx;
-        width:75rpx;
-        margin:30rpx auto 10rpx;
-      }
-      view{
-        text-align center
-        font-size:24rpx;
-      }
-    }
-  }
-  /* 分级管控 */
-  .grading{
-    width :712rpx;
-    height :80rpx;
-    background: #FFFFFF;
-    border-radius: 20rpx;
-    margin-left:20rpx;
-    margin-bottom :20rpx;
-    display:flex;
-    justify-content :flex-start;
-    align-items :center;
-    .grading_l{
-      width :34rpx;
-      height :34rpx;
-      margin-left:16rpx;
-    }
-    .grading_c{
-      font-size: 28rpx;
-      font-family: PingFang SC;
-      font-weight: 500;
-      color: #333333;
-      margin-left:16rpx;
-    }
-    .grading_r{
-      width :504rpx;
-      height :80rpx;
-      font-size: 26rpx;
-      font-family: PingFang SC;
-      font-weight: 500;
-      color: #EE3A3A;
-      display :flex;
-      justify-content :flex-end;
-      align-items: center;
-      >img{
-        width: 20rpx;
-        height: 20rpx;
-        margin-left :20rpx;
-        margin-top :8rpx;
-      }
-    }
-  }
-
-  .big-icon-button-box{
-    width:710rpx;
-    height:354rpx;
-    margin:0 20rpx 20rpx;
-    background :#ffffff;
-    border-radius:20rpx;
-    display flex
-    .left-box{
-      width:310rpx;
-      height:310rpx;
-      margin:22rpx 10rpx 22rpx 15rpx;
-      .left-top-img{
-        width:310rpx;
-        height:150rpx;
-        margin-bottom:14rpx;
-      }
-      .left-bottom-img{
-        width:310rpx;
-        height:150rpx;
-      }
-    }
-    .right-img{
-      width:362rpx;
-      height:310rpx;
-      margin:22rpx 13rpx 22rpx 0;
-    }
-  }
-  .top-max-box{
-    height:119rpx;
-    background #fff
-    overflow hidden
-    .top-big-box{
-      height:60rpx;
-      width:649rpx;
-      background: #F5F5F5;
-      border-radius: 30px;
-      margin:30rpx auto;
-      padding:0 30rpx;
-    }
-    .top-big-one-type{
-      color:#F95F5F;
-      line-height:60rpx;
-      font-size: 26rpx;
-    }
-    .top-big-two-type{
-      line-height:60rpx;
-      font-size: 26rpx;
-      display flex
-      .left-view{
-        flex:1;
-        display flex
-        color:#333;
-        .left-min-view{
-          color:#e45656;
-        }
-      }
-      .left-button-view{
-        color:#0183fa;
-      }
-    }
-  }
-  .button-max-box{
-    /*height:446rpx;*/
-    background #fff
-    margin-bottom:20rpx;
-    .button-title{
-      line-height:100rpx;
-      border-bottom:1rpx solid #E0E0E0;
-      padding-left:20rpx;
-    }
-    .button-max-box{
-      /*height:345rpx;*/
-      .button-min-box{
-        width:250rpx;
-        height:172rpx;
-        display inline-block
-        img{
-          width:80rpx;
-          height:80rpx;
-          margin:34rpx auto 0;
-        }
-        view{
-          line-height:50rpx;
-          text-align center;
-          font-size:28rpx;
-          color: #333;
-        }
-      }
-    }
-  }
-  .bottom-max-box{
-    flex:1;
-    background #fff
-    margin:0 20rpx 100rpx;
-    border-radius:20rpx;
-    display flex
-    flex-direction column
-    overflow-y hidden
-    .bottom-title{
-      display flex
-      border-bottom:1rpx solid #E0E0E0;
-      img{
-        width:34rpx;
-        height:34rpx;
-        margin:35rpx 16rpx 0 10rpx;
-      }
-      view{
-        line-height:100rpx;
-      }
-    }
-    .bottom-big-box{
-      flex:1;
-      overflow-y scroll
-      .bottom-for-box:nth-child(1){
-        border:none;
-      }
-      .bottom-for-box{
-        height:154rpx;
-        margin:0 20rpx;
-        border-top:1rpx solid #E0E0E0;
-        overflow hidden
-        .bottom-top-box{
-          font-size:28rpx;
-          line-height:28rpx;
-          color:#333;
-          display:block;
-          overflow:hidden;
-          text-overflow:ellipsis;
-          white-space:nowrap;
-          margin:36rpx 0 30rpx;
-        }
-        .bottom-bottom-box{
-          display flex
-          view{
-            flex:1;
-            line-height:48rpx;
-            font-size: 28rpx;
-            color: #999999;
-            display:block;
-            overflow:hidden;
-            text-overflow:ellipsis;
-            white-space:nowrap;
-          }
-          view:nth-child(2){
-            text-align right
-          }
-
-        }
-      }
-      .null-view{
-        text-align center;
-        color:#999;
-        line-height:80rpx;
-        font-size:28rpx;
-      }
-    }
-  }
-}
-</style>

+ 0 - 445
pages/views/home/supplierWorkbench.vue

@@ -1,445 +0,0 @@
-<!-- 整改列表 -->
-<template>
-  <view class="supplier" style="display: flex;flex-direction: column;flex: 1;">
-    <view v-if="pageType==0">
-      <view class="supplier_h" @click="handleClick('mine')">
-        <img src="@/pages/images/img_gysglpt_bg.png">
-        <img src="@/pages/images/img_gysglpt_icom.png">
-        <img src="@/pages/images/icon_04.png">
-        <view>{{form.companyName}}</view>
-      </view>
-      <view class="supplier_tab">
-        <view class="supplier_tab_li" @click="handleClick('people')">
-          <text>{{form.peopleSum}}</text>
-          <text>运输人员</text>
-        </view>
-        <view class="supplier_tab_line"></view>
-        <view class="supplier_tab_li" @click="handleClick('car')">
-          <text>{{form.carSum}}</text>
-          <text>运输车辆</text>
-        </view>
-        <view class="supplier_tab_line"></view>
-        <view class="supplier_tab_li" @click="handleClick('bottle')">
-          <text>{{form.bottleSum}}</text>
-          <text>气瓶管理</text>
-        </view>
-      </view>
-      <scroll-view scroll-y @scrolltolower="scrollGet" class="for-max-box">
-        <view class="for-big-box">
-          <view class="backlog" @click="handleClick('backlog')">
-            <img class="backlog_l" src="@/pages/images/icon_glpt_dbqd.png">
-            <view class="backlog_c">待办清单</view>
-            <img class="backlog_r"  src="@/pages/images/icon_wdwg_gd.png">
-          </view>
-          <view class="for-box" @click="goInfo(item)" v-for="(item,index) in dataList" :key="index">
-            <view class="for-title-box">
-              <view v-if="item.remark=='gq'"  class="viewColor1">供气</view>
-              <view v-if="item.remark=='hs'" class="viewColor3">回收</view>
-              <view v-if="item.remark=='wt'" class="viewColor2">问题</view>
-              <view v-if="item.remark=='hs' || item.remark=='wt'">{{item.airName}}-{{item.configName}}</view>
-              <view  v-if="item.remark=='gq'" ><text v-for="(item2,index2) in item.detailListVO" :key="index2" v-if="index2<2">{{item2.airName}}-{{item2.configName}}*{{item2.bottleNumber}}<text>{{index2<1?' ':'...'}}</text></text></view>
-            </view>
-            <view class="for-address-box">
-              <img src="@/pages/images/icon_wtzg_xx.png">
-              <view >{{item.campus}}-{{item.building}}-{{item.room}}</view>
-            </view>
-            <view class="for-time-box">
-              <img src="@/pages/images/icon_wtzg_sj.png">
-              <view>{{item.createTime}}</view>
-            </view>
-          </view>
-        </view>
-        <img class="null-img" v-if="!dataList[0]" src="@/pages/images/null-data-1.png">
-      </scroll-view>
-      <img class="supernatant"  @click="handleClick('recycle')"  src="@/pages/images/icon_glpt_gqhsjl.png">
-    </view>
-    <view class="empty" v-if="emptyList==4 && pageType==0">
-      <img class="for-back-img" src="@/pages/images/img_ysrygl_zwsj.png">
-      <view>暂无数据</view>
-    </view>
-    <hasten-page v-if="pageType==1"></hasten-page>
-    <reject-page v-if="pageType==2" :infoData="infoData"></reject-page>
-    <forbidden-page v-if="pageType==3"></forbidden-page>
-  </view>
-
-</template>
-
-<script>
-import { config } from '@/api/request/config.js'
-import { supplierDetail,storageListTaskIndex} from '@/pages/api/index.js'
-import { hastenPage } from '@/pages/views/supplier/hasten.vue'
-import { rejectPage } from '@/pages/views/supplier/reject.vue'
-import { forbiddenPage } from '@/pages/views/supplier/forbidden.vue'
-export default {
-  name: "rectifyList",
-  components: {
-    hastenPage,//供应商正在审核
-    rejectPage,//供应商驳回
-    forbiddenPage,//供应商停用
-  },
-  data() {
-    return {
-      emptyList:0,
-      pageType:4,
-      dataList:[],
-      //列表请求参数
-      getData:{
-        pageNum:1,
-        pageSize:5,
-      },
-      form:{
-        companyName:'',//企业名称
-        peopleSum:'0',//人员数量总数
-        carSum:'0',//运输车辆总数
-        bottleSum:'0',//气瓶数量总数
-      },
-      infoData:'',//驳回原因
-      state:'',
-    }
-  },
-  onLoad() {
-
-  },
-  onShow() {
-
-    this.infoList=[];
-
-  },
-  mounted(){
-    this.getInfo();
-    this.getList();
-  },
-  methods: {
-    //滚动加载事件
-    scrollGet(){
-      if(this.getData.getType){
-        this.getData.page += 1;
-        this.getList();
-      }
-    },
-    goInfo(d){
-      if(d.remark=='gq'){
-        uni.navigateTo({
-          url:'/pages_supplier/views/backlogManage/backlogManageAirDetail?item='+encodeURIComponent(JSON.stringify(d))
-        });
-      }else if(d.remark=='hs'){
-        uni.navigateTo({
-          url:'/pages_supplier/views/backlogManage/backlogManageRecycleDetail?item='+encodeURIComponent(JSON.stringify(d))
-        });
-      }else if(d.remark=='wt'){
-        uni.navigateTo({
-          url:'/pages_supplier/views/backlogManage/backlogManageIssueDetail?item='+encodeURIComponent(JSON.stringify(d))
-        });
-      }
-
-    },
-    handleClick(doType) {
-      if(doType=='people'){
-        uni.navigateTo({
-          url:'/pages_supplier/views/transportPerson/transportPerson'
-        });
-      }else if(doType=='car'){
-        uni.navigateTo({
-          url:'/pages_supplier/views/transportCar/transportCar'
-        });
-      }else if(doType=='bottle'){
-        uni.navigateTo({
-          url:'/pages_supplier/views/gasManage/gasManage'
-        });
-      }else if(doType=='mine'){
-        uni.navigateTo({
-          url: '/pages_supplier/views/mine/mine?state='+this.state
-        });
-      }else if(doType=='backlog'){//待办清单
-        uni.navigateTo({
-          url:'/pages_supplier/views/backlogManage/backlogManage'
-        });
-      }else if(doType=='recycle'){//供气回收
-        uni.navigateTo({
-          url:'/pages_supplier/views/gasRecycle/gasRecycle'
-        });
-      }
-
-
-    },
-    //获取首页详情
-    async getInfo(){
-      let _this = this;
-      const {data} = await supplierDetail()
-      let res=data.data
-      if(data.code==200){
-        this.state=res.state;
-        if(res.state==0){//审核状态(0:未审核,1:审核通过,2:审核未通过)
-          this.pageType=1;
-        }else if(res.state==1){
-          this.pageType=0;
-        }else if(res.state==2){
-          this.pageType=2;
-          this.infoData=res.audit.auditContent//驳回原因
-        }
-        this.form.companyName=res.companyName
-        this.form.peopleSum=res.peopleSum
-        this.form.carSum=res.carSum
-        this.form.bottleSum=res.bottleSum
-
-      }else if(data.code==500){//资格状态status(0:启用,1:停用)
-        this.pageType=3;
-      }
-    },
-    //获取列表数据
-    async getList(){
-      let _this = this;
-      const {data} = await storageListTaskIndex(_this.getData);
-      if(data.code==200){
-        let res=data.rows;
-        _this.dataList=res;
-        if(_this.dataList.length<=0){
-          _this.emptyList=4
-        }
-      }
-    },
-  }
-}
-</script>
-
-<style lang="stylus" scoped>
-.empty{
-  text-align: center;
-  margin-top: 116rpx;
-  >img{
-    width: 336rpx;
-    height: 222rpx;
-    margin-left: 208rpx;
-  }
-  >view{
-    font-size: 30rpx;
-    font-family: PingFang SC;
-    font-weight: 500;
-    color: #E0E0E0;
-    line-height: 30rpx;
-    margin-top: 48rpx;
-  }
-}
-.supplier{
-  .supplier_h{
-    width: 750rpx;
-    height: 200rpx;
-    position: relative;
-    >img:nth-child(1){
-      width: 750rpx;
-      height: 200rpx;
-      position: absolute;
-      left: 0;
-      top: 0;
-    }
-    >img:nth-child(2){
-      width: 110rpx;
-      height: 110rpx;
-      position: absolute;
-      left: 18rpx;
-      top: 44rpx;
-    }
-    >img:nth-child(3){
-      width: 12rpx;
-      height: 24rpx;
-      position: absolute;
-      left: 716rpx;
-      top: 92rpx;
-    }
-    >view{
-      width: 550rpx;
-      font-size: 30rpx;
-      font-family: PingFang SC;
-      font-weight: 500;
-      color: #FFFFFF;
-      line-height: 30rpx;
-      position: absolute;
-      left: 164rpx;
-      top: 84rpx;
-    }
-  }
-  .supplier_tab{
-    width: 710rpx;
-    height: 180rpx;
-    background: #FFFFFF;
-    border-radius: 10rpx;
-    display: flex;
-    justify-content: space-between;
-    align-items: center;
-    margin: 20rpx 20rpx 0;
-    .supplier_tab_line{
-      width: 2rpx;
-      height: 30rpx;
-      background: #E0E0E0;
-    }
-    .supplier_tab_li{
-      flex: 1;
-      text-align: center;
-      >text{
-        display: block;
-      }
-      >text:nth-child(1){
-        font-size: 30rpx;
-        font-family: PingFang SC;
-        font-weight: 500;
-        color: #0183FA;
-        line-height: 30rpx;
-      }
-      >text:nth-child(2){
-        font-size: 30rpx;
-        font-family: PingFang SC;
-        font-weight: 500;
-        color: #333333;
-        line-height: 30rpx;
-        margin-top: 36rpx;
-      }
-    }
-  }
-  /* 列表 */
-  .for-max-box{
-    flex:1;
-    overflow-y scroll;
-    .for-big-box{
-      background:#fff;
-      border-radius:20rpx;
-      margin:20rpx;
-      .backlog{
-        height: 100rpx;
-        display: flex;
-        justify-content: flex-start;
-        align-items: center;
-        .backlog_l{
-          width: 34rpx;
-          height: 32rpx;
-          margin-left:20rpx;
-        }
-        .backlog_c{
-          font-size: 30rpx;
-          font-family: PingFang SC;
-          font-weight: 500;
-          color: #333333;
-          line-height: 30rpx;
-          margin-left:16rpx;
-        }
-        .backlog_r{
-          width: 24rpx;
-          height: 24rpx;
-          margin-left:472rpx;
-        }
-
-      }
-      .for-box:nth-child(1){
-        .for-title-box{
-          border:none;
-        }
-      }
-      .for-box{
-        overflow hidden
-        .for-title-box{
-          display:flex;
-          margin:0 26rpx 0;
-          border-top:1rpx solid #dedede;
-          padding-top:45rpx;
-          view:nth-child(1){
-            width:98rpx;
-            line-height:38rpx;
-            height:38rpx;
-            border-radius:6rpx;
-            font-size:20rpx;
-            text-align center;
-            margin-right:10rpx;
-          }
-          view:nth-child(2){
-            flex:1;
-            font-size:30rpx;
-            color:#333;
-            height:36rpx;
-            lin-height:36rpx;
-            margin-right:10rpx;
-            display:block;
-            overflow:hidden;
-            text-overflow:ellipsis;
-            white-space:nowrap;
-          }
-          view:nth-child(3){
-            font-size:30rpx;
-            color:#333;
-            height:36rpx;
-            lin-height:36rpx;
-            color:#D80000;
-          }
-          .viewColor1{
-            background #ffe6e6;
-            color:#ff5555;
-          }
-          .viewColor2{
-            background #fef2dd;
-            color:#f6a71d;
-          }
-          .viewColor3{
-            background #e0f1e2;
-            color:#30a23d;
-          }
-          .viewColor4{
-            background #f2dddd;
-            color:#a51919;
-          }
-          .viewColor5{
-            background #e2f6f8;
-            color:#3ac3d3;
-          }
-          .viewColor6{
-            background #d9edfe;
-            color:#0183fa;
-          }
-        }
-        .for-address-box{
-          display:flex;
-          margin:33rpx 26rpx 0;
-          img{
-            width:28rpx;
-            height:28rpx;
-            margin-right:20rpx;
-          }
-          view{
-            font-size:28rpx;
-            line-height:28rpx;
-            color:#666;
-          }
-        }
-        .for-time-box{
-          display:flex;
-          margin:26rpx 26rpx 0;
-          padding-bottom:32rpx;
-          img{
-            width:28rpx;
-            height:28rpx;
-            margin-right:20rpx;
-          }
-          view{
-            font-size:28rpx;
-            line-height:28rpx;
-            color:#666;
-          }
-        }
-      }
-    }
-    .null-img{
-      display block
-      width:276rpx;
-      height:321rpx;
-      position absolute
-      top:100rpx;
-      left:274rpx;
-    }
-  }
-  /* 供求回收记录 */
-  .supernatant{
-    width: 152rpx;
-    height: 152rpx;
-    position: fixed;
-    right: 0rpx;
-    bottom: 60rpx;
-  }
-}
-</style>

+ 0 - 185
utils/homeConfig.js

@@ -1,185 +0,0 @@
-let routeDataList = [
-	//原教职工
-	{
-		name: "随手拍",
-		limits:"",
-		route: "snapshotManage",
-		routeUrl: "/pages_safetyExamine/views/snapshotManage/snapshotAdd",
-		img: require('@/images/commonality/icon_sy_ssp.png'),
-		buttonType:"page",
-	},
-	{
-		name: "安全检查",
-		limits:"",
-		route: "safetyExamine",
-		routeUrl: "/pages_safetyExamine/views/safetyExamineWorkbench",
-		img: require('@/images/commonality/icon_sy_aqjc.png'),
-		buttonType:"page",
-	},
-	{
-		name: "离开检查",
-		limits:"",
-		route: "leaveInspection",
-		routeUrl: "/pages_basics/views/photoInspection",
-		img: require('@/images/commonality/icon_dzt_pzjc.png'),
-		buttonType:"page",
-	},
-	{
-		name: "准入审核",
-		limits:"",
-		route: "accessQualification",
-		routeUrl: "/pages_manage/views/accessQualification/accessQualification",
-		img: require('@/images/commonality/icon_sy_zrsq.png'),
-		buttonType:"page",
-	},
-	{
-		name: "气瓶管理",
-		limits:"",
-		route: "gasBottle",
-		routeUrl: "/pages_manage/views/gasBottle/gasManage/gasManage",
-		img: require('@/images/commonality/icon_sy_qpgl.png'),
-		buttonType:"page",
-	},
-	{
-		name: "化学品管理",
-		limits:"",
-		route: "chemicalsManage",
-		routeUrl: "",
-		img: require('@/images/commonality/icon_sy_hxp.png'),
-		buttonType:"none",
-	},
-	{
-		name: "特种设备",
-		limits:"",
-		route: "specialEquipment",
-		routeUrl: "",
-		img: require('@/images/commonality/icon_sy_tzsb.png'),
-		buttonType:"none",
-	},
-	{
-		name: "安全档案",
-		limits:"",
-		route: "safeArchives",
-		routeUrl: "",
-		img: require('@/images/commonality/icon_sy_aqxx.png'),
-		buttonType:"none",
-	},
-	{
-		name: "安全报警",
-		limits:"",
-		route: "warningRecording",
-		routeUrl: "/pages_basics/views/earlyWarningManage/earlyWarningList",
-		img: require('@/images/commonality/button_1.png'),
-		buttonType:"page",
-	},
-	{
-		name: "应急疏散",
-		limits:"",
-		route: "emergencyEvacuation",
-		routeUrl: "/pages_manage/views/emergencyEvacuationBig",
-		img: require('@/images/commonality/button_2.png'),
-		buttonType:"page",
-	},
-	{
-		name: "分级管控",
-		limits:"",
-		route: "gradingControl",
-		routeUrl: "/pages_manage/views/gradingControl/gradingControl",
-		img: require('@/images/commonality/icon_sy_fjgk.png'),
-		buttonType:"page",
-	},
-	//原学生
-	{
-		name: "积分兑换",
-		limits:"",
-		route: "integralExchange",
-		routeUrl: "/pages_student/views/integralManage/codeSuccess",
-		img: require('@/images/commonality/btn_wd_jfdh.png'),
-		buttonType:"page",
-	},
-	{
-		name: "准入申请",
-		limits:"",
-		route: "accessApplication",
-		routeUrl: "/pages_student/views/accessApplication/safeAccess",
-		img: require('@/images/commonality/icon_sy_zrsq.png'),
-		buttonType:"page",
-	},
-	{
-		name: "气瓶管理",
-		limits:"",
-		route: "studentGasBottle",
-		routeUrl: "/pages_student/views/gasBottle/gasManage/gasManage",
-		img: require('@/images/commonality/icon_sy_qpgl.png'),
-		buttonType:"page",
-	},
-	{
-		name: "安全检查",
-		limits:"",
-		route: "studentSafetyInspect",
-		routeUrl: "/pages_manage/views/workbench/problemRectification/rectifyList",
-		img: require('@/images/commonality/icon_sy_aqjc.png'),
-		buttonType:"page",
-	},
-	{
-		name: "分级管控",
-		limits:"",
-		route: "studentGrading",
-		routeUrl: "/pages_student/views/gradingControl/gradingControl",
-		img: require('@/images/commonality/icon_sy_qpgl.png'),
-		buttonType:"page",
-	},
-	{
-		name: "成绩查询",
-		limits:"",
-		route: "cjcx",
-		routeUrl: "",
-		img: require('@/images/commonality/img_bg_cjcx.png'),
-		buttonType:"none",
-	},
-	{
-		name: "违规记录",
-		limits:"",
-		route: "meViolation",
-		routeUrl: "/pages_student/views/meViolation/meViolation",
-		img: require('@/images/commonality/img_bg_wgjl.png'),
-		buttonType:"page",
-	},
-	{
-		name: "积分明细",
-		limits:"",
-		route: "jfmx",
-		routeUrl: "",
-		img: require('@/images/commonality/img_bg_jfmx.png'),
-		buttonType:"none",
-	},
-];
-
-export function getHomeConfig(data) {
-	let list = JSON.parse(JSON.stringify(data));
-	let homeList = [];
-	for(let i=0 ; i<list.length; i++){
-		let bigObj = {
-			type:list[i].type,
-			layout:[],
-		};
-		for(let l=0 ; l<list[i].layout.length; l++){
-			for(let o=0 ; o<routeDataList.length; o++){
-				if(list[i].layout[l].path === routeDataList[o].route){
-					bigObj.layout.push({
-						limits:routeDataList[o].limits,
-						route:routeDataList[o].route,
-						routeUrl:routeDataList[o].routeUrl,
-						name:routeDataList[o].name,
-						img:routeDataList[o].img,
-						buttonType:routeDataList[o].buttonType,
-					})
-				}
-			}
-		}
-		if(bigObj.layout[0]){
-			homeList.push(bigObj);
-		}
-	}
-  return homeList;
-}

+ 0 - 84
utils/mineConfig.js

@@ -1,84 +0,0 @@
-let routeDataList = [{
-		id: '1',
-		name: "预警记录",
-		limits: "",
-		route: "mineWarningRecording",
-		routeUrl: "/pages_basics/views/earlyWarningManage/earlyWarningList",
-		img: require('@/images/commonality/icon_003.png'),
-		buttonType: "page",
-	},
-	{
-		id: '2',
-		name: "我的实验室",
-		limits: "",
-		route: "laboratory",
-		routeUrl: "/pages_manage/views/laboratory/meLaboratory",
-		img: require('@/images/commonality/icon_002.png'),
-		buttonType: "page",
-	},
-	{
-		id: '3',
-		name: "预案执行记录",
-		limits: "",
-		route: "PlanExecuteRecord",
-		routeUrl: "/pages_manage/views/plan/planList",
-		img: require('@/images/commonality/icon_004.png'),
-		buttonType: "page",
-	},
-	{
-		id: '4', //id
-		name: "身份验证", //名称
-		limits: "", //权限字段
-		route: "faceImage", //路由名称
-		routeUrl: "/pages_basics/views/faceImage", //组件地址
-		img: require('@/images/commonality/icon_001.png'), //图片
-		buttonType: "page", //类型
-	},
-	{
-		id: '5', //id
-		name: "授权开门", //名称
-		limits: "", //权限字段
-		route: "empowerOpen", //路由名称
-		routeUrl: "/pages_manage/views/accessControl/empowerOpen", //组件地址
-		img: require('@/images/commonality/icon_001.png'), //图片
-		buttonType: "page", //类型
-	},
-	{
-		id: '6', //id
-		name: "远程开门", //名称
-		limits: "", //权限字段
-		route: "remoteOpen", //路由名称
-		routeUrl: "/pages_manage/views/accessControl/remoteOpen", //组件地址
-		img: require('@/images/commonality/icon_001.png'), //图片
-		buttonType: "page", //类型
-	}
-];
-
-export function getMineConfig(data) {
-	let list = JSON.parse(JSON.stringify(data));
-	let mineList = [];
-	for (let i = 0; i < list.length; i++) {
-		let bigObj = {
-			type: list[i].type,
-			layout: [],
-		};
-		for (let l = 0; l < list[i].layout.length; l++) {
-			for (let o = 0; o < routeDataList.length; o++) {
-				if (list[i].layout[l].path === routeDataList[o].route) {
-					bigObj.layout.push({
-						limits: routeDataList[o].limits,
-						route: routeDataList[o].route,
-						routeUrl: routeDataList[o].routeUrl,
-						name: routeDataList[o].name,
-						img: routeDataList[o].img,
-						buttonType: routeDataList[o].buttonType,
-					})
-				}
-			}
-		}
-		if (bigObj.layout[0]) {
-			mineList.push(bigObj);
-		}
-	}
-	return mineList;
-}