首页新增安全例会按钮
							parent
							
								
									0a0cfb6df3
								
							
						
					
					
						commit
						c1515f1b4f
					
				|  | @ -1,6 +1,7 @@ | ||||||
| <template name="basics"> | <template name="basics"> | ||||||
| 	<view> | 	<view> | ||||||
|     <yk-authpup ref="authpup" type="top" @changeAuth="$noMultipleClicks(scan)" :permissionID="permissionID"></yk-authpup> | 		<yk-authpup ref="authpup" type="top" @changeAuth="$noMultipleClicks(scan)" :permissionID="permissionID"> | ||||||
|  | 		</yk-authpup> | ||||||
| 
 | 
 | ||||||
| 		<cu-custom bgColor="bg-gradual-blueness" :isRingt="true"> | 		<cu-custom bgColor="bg-gradual-blueness" :isRingt="true"> | ||||||
| 			<block slot="content">秦安安全首页</block> | 			<block slot="content">秦安安全首页</block> | ||||||
|  | @ -16,8 +17,10 @@ | ||||||
| 			</block> | 			</block> | ||||||
| 		</cu-custom> | 		</cu-custom> | ||||||
| 
 | 
 | ||||||
|     <view class="answerico" v-if="this.SURVEY_ID !='' " style="position: fixed; right: 20px; box-shadow: 0 0 5px #ccc; border-radius: 100%; "> | 		<view class="answerico" v-if="this.SURVEY_ID !='' " | ||||||
|       <navigator class="swiper-item"  hover-class="none" :url="'/pages/questionnaire/questionnaire?SURVEY_ID=' + this.SURVEY_ID"> | 			style="position: fixed; right: 20px; box-shadow: 0 0 5px #ccc; border-radius: 100%; "> | ||||||
|  | 			<navigator class="swiper-item" hover-class="none" | ||||||
|  | 				:url="'/pages/questionnaire/questionnaire?SURVEY_ID=' + this.SURVEY_ID"> | ||||||
| 				<image src="../../static/icon-apps/wenjuan.png" mode="" style="width: 35px; height: 35px;"></image> | 				<image src="../../static/icon-apps/wenjuan.png" mode="" style="width: 35px; height: 35px;"></image> | ||||||
| 			</navigator> | 			</navigator> | ||||||
| 		</view> | 		</view> | ||||||
|  | @ -89,7 +92,8 @@ | ||||||
| 								<text>风险分布</text> | 								<text>风险分布</text> | ||||||
| 							</view> | 							</view> | ||||||
| 						</navigator> | 						</navigator> | ||||||
|             <navigator class="home-apps-item" hover-class="none" url="/pages/basics/study-files/study-files"> | 						<navigator class="home-apps-item" hover-class="none" | ||||||
|  | 							url="/pages/basics/study-files/study-files"> | ||||||
| 							<view class="home-apps-item-img"> | 							<view class="home-apps-item-img"> | ||||||
| 								<image src="../../static/icon-apps/home-fl.png" mode=""></image> | 								<image src="../../static/icon-apps/home-fl.png" mode=""></image> | ||||||
| 							</view> | 							</view> | ||||||
|  | @ -110,7 +114,8 @@ | ||||||
| 							</view> | 							</view> | ||||||
| 						</navigator> | 						</navigator> | ||||||
| 
 | 
 | ||||||
| 						<navigator class="home-apps-item" hover-class="none" url="/pages/application/key-project-management/index/index"> | 						<navigator class="home-apps-item" hover-class="none" | ||||||
|  | 							url="/pages/application/key-project-management/index/index"> | ||||||
| 							<view class="home-apps-item-img"> | 							<view class="home-apps-item-img"> | ||||||
| 								<image src="../../static/icon-apps/home-zdgcgl.jpg" mode=""></image> | 								<image src="../../static/icon-apps/home-zdgcgl.jpg" mode=""></image> | ||||||
| 							</view> | 							</view> | ||||||
|  | @ -138,11 +143,25 @@ | ||||||
| 							</view> | 							</view> | ||||||
| 						</navigator> | 						</navigator> | ||||||
| 
 | 
 | ||||||
|             <navigator class="home-apps-item" hover-class="none" url="/pages/application/safety-environmental-inspection/home"> | 
 | ||||||
|  | 						<!-- <navigator class="home-apps-item" hover-class="none" url="/pages/application/onlinexxks/face/index"> | ||||||
|  |               <view class="home-apps-item-img"> | ||||||
|  |                 <image src="../../static/icon-apps/home-study.png" mode=""></image> | ||||||
|  |               </view> | ||||||
|  |               <view class="text"> | ||||||
|  |                 <text>人脸识别</text> | ||||||
|  |               </view> | ||||||
|  |             </navigator> --> | ||||||
|  | 					</view> | ||||||
|  | 					<view class="home-apps-list"> | ||||||
|  | 						<navigator class="home-apps-item" hover-class="none" | ||||||
|  | 							url="/pages/application/safety-environmental-inspection/home"> | ||||||
| 
 | 
 | ||||||
| 							<view class="home-apps-item-img" style="position: relative;"> | 							<view class="home-apps-item-img" style="position: relative;"> | ||||||
| 								<image src="../../static/icon-apps/home-base.png" mode=""></image> | 								<image src="../../static/icon-apps/home-base.png" mode=""></image> | ||||||
|                 <view v-if="safetyEnvironmentalInspection>0" class="cu-tag badge">{{ safetyEnvironmentalInspection }}</view> | 								<view v-if="safetyEnvironmentalInspection>0" class="cu-tag badge"> | ||||||
|  | 									{{ safetyEnvironmentalInspection }} | ||||||
|  | 								</view> | ||||||
| 							</view> | 							</view> | ||||||
| 							<view class="text"> | 							<view class="text"> | ||||||
| 								<text>安全环保检查</text> | 								<text>安全环保检查</text> | ||||||
|  | @ -169,14 +188,15 @@ | ||||||
| 								<text>设备巡检</text> | 								<text>设备巡检</text> | ||||||
| 							</view> | 							</view> | ||||||
| 						</navigator> | 						</navigator> | ||||||
|             <!-- <navigator class="home-apps-item" hover-class="none" url="/pages/application/onlinexxks/face/index"> | 					<navigator class="home-apps-item" hover-class="none" url="/pages/application/speEquip/index"> | ||||||
| 							<view class="home-apps-item-img"> | 							<view class="home-apps-item-img"> | ||||||
|                 <image src="../../static/icon-apps/home-study.png" mode=""></image> | 								<image src="../../static/icon-apps/safetymeeting.png" mode=""></image> | ||||||
| 							</view> | 							</view> | ||||||
| 							<view class="text"> | 							<view class="text"> | ||||||
|                 <text>人脸识别</text> | 								<text>安全例会</text> | ||||||
| 							</view> | 							</view> | ||||||
|             </navigator> --> | 						</navigator> | ||||||
|  | 					 | ||||||
| 					</view> | 					</view> | ||||||
| 				</view> | 				</view> | ||||||
| 
 | 
 | ||||||
|  | @ -190,7 +210,8 @@ | ||||||
| 					</view> | 					</view> | ||||||
| 					<view class="work-list"> | 					<view class="work-list"> | ||||||
| 						<view class="work-box"> | 						<view class="work-box"> | ||||||
|               <navigator v-if="isRest=='1'" class="swiper-item" hover-class="none" url="../" @click="showRest()"> | 							<navigator v-if="isRest=='1'" class="swiper-item" hover-class="none" url="../" | ||||||
|  | 								@click="showRest()"> | ||||||
| 								<view class="job-list"> | 								<view class="job-list"> | ||||||
| 									<view class="job-list-img"> | 									<view class="job-list-img"> | ||||||
| 										<image src="../../static/icon-apps/jobico1.png" mode=""></image> | 										<image src="../../static/icon-apps/jobico1.png" mode=""></image> | ||||||
|  | @ -359,8 +380,8 @@ | ||||||
| 					</view> | 					</view> | ||||||
| 					<view class="main"> | 					<view class="main"> | ||||||
| 						<view> | 						<view> | ||||||
|               <maoScroll :data="rollData" :showNum="showNum" :lineHeight="lineHeight" :animationScroll="animationScroll" | 							<maoScroll :data="rollData" :showNum="showNum" :lineHeight="lineHeight" | ||||||
|                          :animation="animation"> | 								:animationScroll="animationScroll" :animation="animation"> | ||||||
| 								<template v-slot="{line}"> | 								<template v-slot="{line}"> | ||||||
| 									<view class="flex-line" @click="$noMultipleClicks(gotRectify,line.HIDDEN_ID)"> | 									<view class="flex-line" @click="$noMultipleClicks(gotRectify,line.HIDDEN_ID)"> | ||||||
| 										<view class="oline" v-if="line.HIDDENDESCR"> | 										<view class="oline" v-if="line.HIDDENDESCR"> | ||||||
|  | @ -587,7 +608,8 @@ import maoScroll from '@/components/mao-scroll/mao-scroll.vue'; | ||||||
| 	import ykAuthpup from "@/components/yk-authpup/yk-authpup"; | 	import ykAuthpup from "@/components/yk-authpup/yk-authpup"; | ||||||
| 	export default { | 	export default { | ||||||
| 		components: { | 		components: { | ||||||
|     maoScroll,ykAuthpup | 			maoScroll, | ||||||
|  | 			ykAuthpup | ||||||
| 		}, | 		}, | ||||||
| 		mixins: [MescrollMixin], // 使用mixin (在main.js注册全局组件) | 		mixins: [MescrollMixin], // 使用mixin (在main.js注册全局组件) | ||||||
| 		data() { | 		data() { | ||||||
|  | @ -683,9 +705,11 @@ export default { | ||||||
| 						}, | 						}, | ||||||
| 						success: (res) => { | 						success: (res) => { | ||||||
| 							if ("success" == res.data.result) { | 							if ("success" == res.data.result) { | ||||||
|               _this.safetyEnvironmentalInspection = res.data.confirmCount.confirmCount | 								_this.safetyEnvironmentalInspection = res.data.confirmCount | ||||||
|                   + res.data.checkedCount.checkedCount+ res.data.repulseCount.repulseCount | 									.confirmCount + | ||||||
|                   +res.data.repulseAndCheckCount.repulseAndCheckCount | 									res.data.checkedCount.checkedCount + res.data.repulseCount | ||||||
|  | 									.repulseCount + | ||||||
|  | 									res.data.repulseAndCheckCount.repulseAndCheckCount | ||||||
| 								resolve(); | 								resolve(); | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | @ -768,13 +792,16 @@ export default { | ||||||
| 									premissionList.set('commitment', true) | 									premissionList.set('commitment', true) | ||||||
| 									if (item.subMenu && item.subMenu.length > 0) { | 									if (item.subMenu && item.subMenu.length > 0) { | ||||||
| 										item.subMenu.map(child => { | 										item.subMenu.map(child => { | ||||||
|                     if (child.menu_NAME == '公司级承诺公告' && child.hasMenu) { | 											if (child.menu_NAME == '公司级承诺公告' && child | ||||||
|  | 												.hasMenu) { | ||||||
| 												premissionList.set('commitment-company', true) | 												premissionList.set('commitment-company', true) | ||||||
| 											} | 											} | ||||||
|                     if (child.menu_NAME == '车间级承诺公告' && child.hasMenu) { | 											if (child.menu_NAME == '车间级承诺公告' && child | ||||||
|  | 												.hasMenu) { | ||||||
| 												premissionList.set('commitment-workshop', true) | 												premissionList.set('commitment-workshop', true) | ||||||
| 											} | 											} | ||||||
|                     if (child.menu_NAME == '班组级承诺公告' && child.hasMenu) { | 											if (child.menu_NAME == '班组级承诺公告' && child | ||||||
|  | 												.hasMenu) { | ||||||
| 												premissionList.set('commitment-team', true) | 												premissionList.set('commitment-team', true) | ||||||
| 											} | 											} | ||||||
| 										}) | 										}) | ||||||
|  | @ -829,7 +856,9 @@ export default { | ||||||
| 							setCorpinfoId(null); | 							setCorpinfoId(null); | ||||||
| 							setDeptId(null); | 							setDeptId(null); | ||||||
| 							setloginUser(null); | 							setloginUser(null); | ||||||
|             uni.removeStorage({key: 'USER'}); | 							uni.removeStorage({ | ||||||
|  | 								key: 'USER' | ||||||
|  | 							}); | ||||||
| 							uni.reLaunch({ | 							uni.reLaunch({ | ||||||
| 								url: '/pages/login/home' | 								url: '/pages/login/home' | ||||||
| 							}); | 							}); | ||||||
|  | @ -983,8 +1012,7 @@ export default { | ||||||
| 					showCancel: false, | 					showCancel: false, | ||||||
| 					content: '您处于离岗状态,无需检查清单。', | 					content: '您处于离岗状态,无需检查清单。', | ||||||
| 					confirmText: "返回", // 确认按钮文字 | 					confirmText: "返回", // 确认按钮文字 | ||||||
|         success: (res) => { | 					success: (res) => {} | ||||||
|         } |  | ||||||
| 				}) | 				}) | ||||||
| 			}, | 			}, | ||||||
| 			getMonth() { | 			getMonth() { | ||||||
|  | @ -1148,7 +1176,9 @@ export default { | ||||||
| 							setCorpinfoId(null); | 							setCorpinfoId(null); | ||||||
| 							setDeptId(null); | 							setDeptId(null); | ||||||
| 							setloginUser(null); | 							setloginUser(null); | ||||||
|             uni.removeStorage({key: 'USER'}); | 							uni.removeStorage({ | ||||||
|  | 								key: 'USER' | ||||||
|  | 							}); | ||||||
| 							uni.navigateTo({ | 							uni.navigateTo({ | ||||||
| 								url: '/pages/login/home' | 								url: '/pages/login/home' | ||||||
| 							}); | 							}); | ||||||
|  | @ -1313,7 +1343,8 @@ export default { | ||||||
| 			//跳转事件 | 			//跳转事件 | ||||||
| 			gotRectify(e) { | 			gotRectify(e) { | ||||||
| 				uni.navigateTo({ | 				uni.navigateTo({ | ||||||
|         url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-detail?id=' + e, | 					url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-detail?id=' + | ||||||
|  | 						e, | ||||||
| 				}); | 				}); | ||||||
| 			}, | 			}, | ||||||
| 			// refresh() { | 			// refresh() { | ||||||
|  | @ -1372,7 +1403,10 @@ export default { | ||||||
| 							for (var i = 0; i < _this.totalList.length; i++) { | 							for (var i = 0; i < _this.totalList.length; i++) { | ||||||
| 								if (_this.totalList[i].LISTMANAGER_ID == listId) { | 								if (_this.totalList[i].LISTMANAGER_ID == listId) { | ||||||
| 									flag = true; | 									flag = true; | ||||||
|                 _this.goToList({listId: _this.totalList[i].LISTMANAGER_ID, listName: _this.totalList[i].NAME}); | 									_this.goToList({ | ||||||
|  | 										listId: _this.totalList[i].LISTMANAGER_ID, | ||||||
|  | 										listName: _this.totalList[i].NAME | ||||||
|  | 									}); | ||||||
| 									break; | 									break; | ||||||
| 								} | 								} | ||||||
| 							} | 							} | ||||||
|  | @ -1448,7 +1482,8 @@ export default { | ||||||
| 			//跳转事件 | 			//跳转事件 | ||||||
| 			goToList(e) { | 			goToList(e) { | ||||||
| 				uni.navigateTo({ | 				uni.navigateTo({ | ||||||
|         url: '/pages/application/hidden-trouble-investigation/hidden-trouble-app/hidden-trouble-spot?listId=' + e.listId + '&listName=' + e.listName | 					url: '/pages/application/hidden-trouble-investigation/hidden-trouble-app/hidden-trouble-spot?listId=' + | ||||||
|  | 						e.listId + '&listName=' + e.listName | ||||||
| 				}); | 				}); | ||||||
| 				// uni.navigateTo({ | 				// uni.navigateTo({ | ||||||
| 				// 	url: '/pages/application/hidden-trouble-investigation/hidden-trouble-app/check-items-list?listId='+e.listId+'&listName='+e.listName | 				// 	url: '/pages/application/hidden-trouble-investigation/hidden-trouble-app/check-items-list?listId='+e.listId+'&listName='+e.listName | ||||||
|  | @ -1562,7 +1597,10 @@ export default { | ||||||
| 		width: 70 px; | 		width: 70 px; | ||||||
| 		height: 70 px; | 		height: 70 px; | ||||||
| 	} | 	} | ||||||
| .cu-modal{ z-index: 999999999;} | 
 | ||||||
|  | 	.cu-modal { | ||||||
|  | 		z-index: 999999999; | ||||||
|  | 	} | ||||||
| 
 | 
 | ||||||
| 	.up-mainer { | 	.up-mainer { | ||||||
| 		position: fixed; | 		position: fixed; | ||||||
|  | @ -1576,12 +1614,14 @@ export default { | ||||||
| 
 | 
 | ||||||
| 		transform: translateY(-50%); | 		transform: translateY(-50%); | ||||||
| 	} | 	} | ||||||
|  | 
 | ||||||
| 	.up-mainer .title { | 	.up-mainer .title { | ||||||
| 		font-size: 16px; | 		font-size: 16px; | ||||||
| 		font-weight: bold; | 		font-weight: bold; | ||||||
| 		border-bottom: 1px solid #eee; | 		border-bottom: 1px solid #eee; | ||||||
| 		line-height: 40px; | 		line-height: 40px; | ||||||
| 	} | 	} | ||||||
|  | 
 | ||||||
| 	.up-info { | 	.up-info { | ||||||
| 		width: 100%; | 		width: 100%; | ||||||
| 		padding: 0 20px; | 		padding: 0 20px; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue