|
@@ -84,10 +84,8 @@
|
|
</view>
|
|
</view>
|
|
<view class="position-button-box">
|
|
<view class="position-button-box">
|
|
<view class="position-button-p-null"></view>
|
|
<view class="position-button-p-null"></view>
|
|
- <view class="position-button-p-1">检查</view>
|
|
|
|
- <view class="position-button-p-2">整改</view>
|
|
|
|
- <view class="position-button-p-3">复查</view>
|
|
|
|
- <view class="position-button-p-4">随手拍</view>
|
|
|
|
|
|
+ <view class="position-button-p-1" @click="goPage('securityCheck')">安全检查</view>
|
|
|
|
+ <view class="position-button-p-4" @click="goPage('snapshot')">随手拍</view>
|
|
<view class="position-button-p-null"></view>
|
|
<view class="position-button-p-null"></view>
|
|
</view>
|
|
</view>
|
|
<!-- 物联控制 -->
|
|
<!-- 物联控制 -->
|
|
@@ -99,6 +97,9 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+ import {
|
|
|
|
+ pageRestrictVerify
|
|
|
|
+ } from '@/utils/index'
|
|
import {
|
|
import {
|
|
iotControl
|
|
iotControl
|
|
} from '@/pages_manage/views/laboratory/iotControl.vue'
|
|
} from '@/pages_manage/views/laboratory/iotControl.vue'
|
|
@@ -141,19 +142,8 @@
|
|
safeUserList: [],
|
|
safeUserList: [],
|
|
labInfoBrandModels: [],
|
|
labInfoBrandModels: [],
|
|
},
|
|
},
|
|
- //语音广播弹窗
|
|
|
|
- broadcastPage: false,
|
|
|
|
- //空调弹窗
|
|
|
|
- conditioningPage: false,
|
|
|
|
- // 查询参数
|
|
|
|
- queryParams: {
|
|
|
|
- page: 1,
|
|
|
|
- pageSize: 20,
|
|
|
|
- },
|
|
|
|
subjectData: null,
|
|
subjectData: null,
|
|
- // 空调弹窗
|
|
|
|
- airConditioningData: null,
|
|
|
|
- saoCodeType: false,
|
|
|
|
|
|
+ identityData: uni.getStorageSync('identityData'),
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -189,18 +179,12 @@
|
|
methods: {
|
|
methods: {
|
|
//展开/收起操作
|
|
//展开/收起操作
|
|
unfoldPackUp(type, index) {
|
|
unfoldPackUp(type, index) {
|
|
- console.log('type', type)
|
|
|
|
- console.log('item', index)
|
|
|
|
if (type == 'subAdminShowType') {
|
|
if (type == 'subAdminShowType') {
|
|
- console.log('1')
|
|
|
|
this.$set(this.newData, 'subAdminShowType', !this.newData.subAdminShowType);
|
|
this.$set(this.newData, 'subAdminShowType', !this.newData.subAdminShowType);
|
|
} else if (type == 'adminShowType') {
|
|
} else if (type == 'adminShowType') {
|
|
- console.log('2')
|
|
|
|
this.$set(this.newData, 'adminShowType', !this.newData.adminShowType);
|
|
this.$set(this.newData, 'adminShowType', !this.newData.adminShowType);
|
|
} else if (type == 'list') {
|
|
} else if (type == 'list') {
|
|
- console.log('3')
|
|
|
|
- this.$set(this.newData.labInfoBrandModels[index], 'showType', !this.newData.labInfoBrandModels[index]
|
|
|
|
- .showType);
|
|
|
|
|
|
+ this.$set(this.newData.labInfoBrandModels[index], 'showType', !this.newData.labInfoBrandModels[index].showType);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//顶部tab点击
|
|
//顶部tab点击
|
|
@@ -209,42 +193,38 @@
|
|
this.$set(this, 'pageType', index);
|
|
this.$set(this, 'pageType', index);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- goVideoPage() {
|
|
|
|
- console.log('视频')
|
|
|
|
- let obj = {
|
|
|
|
- type: 4,
|
|
|
|
- subId: this.newData.subId
|
|
|
|
|
|
+ goPage(type){
|
|
|
|
+ if (!pageRestrictVerify(type)) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '没有相关权限,请联系管理员',
|
|
|
|
+ icon: "none",
|
|
|
|
+ mask: true,
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
|
|
+ return
|
|
}
|
|
}
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pages_manage/views/laboratory/videoPlayer?item=' + encodeURIComponent(JSON.stringify(
|
|
|
|
- obj))
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- getIotControlData() {
|
|
|
|
- this.$refs['iotControl'].iotAppHardwareFindByType();
|
|
|
|
- },
|
|
|
|
- buttonClick(type, row) {
|
|
|
|
- let self = this;
|
|
|
|
- if (type == 'subDetail') {
|
|
|
|
- //实验室详情
|
|
|
|
- } else if (type == 'broadcastOpen') {
|
|
|
|
- //语音弹窗开启
|
|
|
|
- this.$set(this, 'broadcastPage', true);
|
|
|
|
- } else if (type == 'broadcastClose') {
|
|
|
|
- //语音弹窗关闭
|
|
|
|
- this.$set(this, 'broadcastPage', false);
|
|
|
|
- } else if (type == 'conditioningOpen') {
|
|
|
|
- //空调弹窗开启
|
|
|
|
- this.$set(this, 'airConditioningData', row);
|
|
|
|
- this.$set(this, 'conditioningPage', true);
|
|
|
|
- } else if (type == 'conditioningClose') {
|
|
|
|
- //空调弹窗关闭
|
|
|
|
- this.$set(this, 'conditioningPage', false);
|
|
|
|
- } else if (type == 'back') {
|
|
|
|
- this.$set(this, 'pageType', 2);
|
|
|
|
|
|
+ if (type == 'securityCheck') {
|
|
|
|
+ //安全检查
|
|
|
|
+ if(this.identityData){
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: "/pages_safetyCheck/views/safetyCheck",
|
|
|
|
+ });
|
|
|
|
+ }else{
|
|
|
|
+ uni.showToast({
|
|
|
|
+ mask: true,
|
|
|
|
+ icon: "none",
|
|
|
|
+ position: "center",
|
|
|
|
+ title: '您不是校/院级管理员或督导组成员,无法使用该功能.',
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ } else if (type == 'snapshot') {
|
|
|
|
+ //随手拍
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: "/pages_safetyCheck/views/snapshotManage/snapshotList",
|
|
|
|
+ });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -255,6 +235,7 @@
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
|
+
|
|
#fontColor-A {
|
|
#fontColor-A {
|
|
color: #00DEDE;
|
|
color: #00DEDE;
|
|
}
|
|
}
|
|
@@ -354,11 +335,13 @@
|
|
|
|
|
|
/* 安全信息牌 */
|
|
/* 安全信息牌 */
|
|
.safetyCard {
|
|
.safetyCard {
|
|
- flex:1;
|
|
|
|
|
|
+ flex: 1;
|
|
overflow-y: scroll;
|
|
overflow-y: scroll;
|
|
- padding-bottom:150rpx;
|
|
|
|
|
|
+ padding-bottom: 150rpx;
|
|
|
|
+
|
|
.lab-info {
|
|
.lab-info {
|
|
background: #FFFFFF;
|
|
background: #FFFFFF;
|
|
|
|
+
|
|
.lab-info-t {
|
|
.lab-info-t {
|
|
width: 750rpx;
|
|
width: 750rpx;
|
|
height: 80rpx;
|
|
height: 80rpx;
|
|
@@ -643,51 +626,59 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .position-button-box{
|
|
|
|
- position:absolute;
|
|
|
|
- bottom:25rpx;
|
|
|
|
- left:60rpx;
|
|
|
|
- width:640rpx;
|
|
|
|
- height:100rpx;
|
|
|
|
|
|
+
|
|
|
|
+ .position-button-box {
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 25rpx;
|
|
|
|
+ left: 60rpx;
|
|
|
|
+ width: 640rpx;
|
|
|
|
+ height: 100rpx;
|
|
display: flex;
|
|
display: flex;
|
|
- color:#fff;
|
|
|
|
|
|
+ color: #fff;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
- view:nth-child(2){
|
|
|
|
- border-top-left-radius: 10rpx
|
|
|
|
- border-bottom-left-radius: 10rpx
|
|
|
|
|
|
+
|
|
|
|
+ view:nth-child(2) {
|
|
|
|
+ border-top-left-radius: 10rpx;
|
|
|
|
+ border-bottom-left-radius: 10rpx;
|
|
}
|
|
}
|
|
- view:nth-last-child(2){
|
|
|
|
- border-top-right-radius: 10rpx
|
|
|
|
- border-bottom-right-radius: 10rpx
|
|
|
|
|
|
+
|
|
|
|
+ view:nth-last-child(2) {
|
|
|
|
+ border-top-right-radius: 10rpx;
|
|
|
|
+ border-bottom-right-radius: 10rpx;
|
|
}
|
|
}
|
|
- .position-button-p-null{
|
|
|
|
- flex:1;
|
|
|
|
|
|
+
|
|
|
|
+ .position-button-p-null {
|
|
|
|
+ flex: 1;
|
|
}
|
|
}
|
|
- .position-button-p-1{
|
|
|
|
- width:160rpx;
|
|
|
|
- line-height:100rpx;
|
|
|
|
- font-size: 30rpx
|
|
|
|
|
|
+
|
|
|
|
+ .position-button-p-1 {
|
|
|
|
+ width: 160rpx;
|
|
|
|
+ line-height: 100rpx;
|
|
|
|
+ font-size: 30rpx;
|
|
text-align: center;
|
|
text-align: center;
|
|
background-color: #0183FA;
|
|
background-color: #0183FA;
|
|
}
|
|
}
|
|
- .position-button-p-2{
|
|
|
|
- width:160rpx;
|
|
|
|
- line-height:100rpx;
|
|
|
|
- font-size: 30rpx
|
|
|
|
|
|
+
|
|
|
|
+ .position-button-p-2 {
|
|
|
|
+ width: 160rpx;
|
|
|
|
+ line-height: 100rpx;
|
|
|
|
+ font-size: 30rpx;
|
|
text-align: center;
|
|
text-align: center;
|
|
background-color: #16B531;
|
|
background-color: #16B531;
|
|
}
|
|
}
|
|
- .position-button-p-3{
|
|
|
|
- width:160rpx;
|
|
|
|
- line-height:100rpx;
|
|
|
|
- font-size: 30rpx
|
|
|
|
|
|
+
|
|
|
|
+ .position-button-p-3 {
|
|
|
|
+ width: 160rpx;
|
|
|
|
+ line-height: 100rpx;
|
|
|
|
+ font-size: 30rpx;
|
|
text-align: center;
|
|
text-align: center;
|
|
background-color: #00DEDE;
|
|
background-color: #00DEDE;
|
|
}
|
|
}
|
|
- .position-button-p-4{
|
|
|
|
- width:160rpx;
|
|
|
|
- line-height:100rpx;
|
|
|
|
- font-size: 30rpx
|
|
|
|
|
|
+
|
|
|
|
+ .position-button-p-4 {
|
|
|
|
+ width: 160rpx;
|
|
|
|
+ line-height: 100rpx;
|
|
|
|
+ font-size: 30rpx;
|
|
text-align: center;
|
|
text-align: center;
|
|
background-color: #FF8C00;
|
|
background-color: #FF8C00;
|
|
}
|
|
}
|