|
@@ -82,16 +82,18 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="position-button-box">
|
|
|
- <view class="position-button-p-null"></view>
|
|
|
+ <view class="position-button-box" v-if="pageType == 0">
|
|
|
<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-2" @click="goPage('snapshot')">随手拍</view>
|
|
|
</view>
|
|
|
<!-- 物联控制 -->
|
|
|
<iotControl ref="iotControl" v-if="pageType == 1" :subjectData="subjectData"></iotControl>
|
|
|
<!-- 进出记录 -->
|
|
|
<accessRecord v-if="pageType == 2" :subjectData="subjectData"></accessRecord>
|
|
|
+ <!-- 语音广播弹窗 -->
|
|
|
+ <voiceBroadcast v-if="broadcastPage" :subjectData="subjectData"></voiceBroadcast>
|
|
|
+ <!-- 空调弹窗 -->
|
|
|
+ <airConditioning v-if="conditioningPage" :airConditioningData="airConditioningData"></airConditioning>
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
@@ -106,6 +108,12 @@
|
|
|
import {
|
|
|
accessRecord
|
|
|
} from '@/pages_manage/views/laboratory/accessRecord.vue'
|
|
|
+ import {
|
|
|
+ voiceBroadcast
|
|
|
+ } from '@/pages_manage/views/laboratory/voiceBroadcast.vue'
|
|
|
+ import {
|
|
|
+ airConditioning
|
|
|
+ } from '@/pages_manage/views/laboratory/airConditioning.vue'
|
|
|
import {
|
|
|
config
|
|
|
} from '@/api/request/config.js'
|
|
@@ -117,6 +125,8 @@
|
|
|
components: {
|
|
|
iotControl,
|
|
|
accessRecord,
|
|
|
+ voiceBroadcast,
|
|
|
+ airConditioning,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -144,6 +154,13 @@
|
|
|
},
|
|
|
subjectData: null,
|
|
|
identityData: uni.getStorageSync('identityData'),
|
|
|
+ //语音广播弹窗
|
|
|
+ broadcastPage: false,
|
|
|
+ //空调弹窗
|
|
|
+ conditioningPage: false,
|
|
|
+ // 空调弹窗
|
|
|
+ airConditioningData: null,
|
|
|
+ saoCodeType:false,
|
|
|
|
|
|
}
|
|
|
},
|
|
@@ -177,6 +194,46 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ //拨打电话
|
|
|
+ callPhone(tel){
|
|
|
+ uni.makePhoneCall({
|
|
|
+ phoneNumber: tel
|
|
|
+ })
|
|
|
+ },
|
|
|
+ goVideoPage(){
|
|
|
+ console.log('视频')
|
|
|
+ let obj = {
|
|
|
+ type:4,
|
|
|
+ subId:this.newData.subId
|
|
|
+ }
|
|
|
+ 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);
|
|
|
+ }
|
|
|
+ },
|
|
|
//展开/收起操作
|
|
|
unfoldPackUp(type, index) {
|
|
|
if (type == 'subAdminShowType') {
|
|
@@ -231,10 +288,7 @@
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
.safetyCardScan {
|
|
|
- height: 100%;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- overflow: hidden;
|
|
|
+ height:100%;
|
|
|
|
|
|
#fontColor-A {
|
|
|
color: #00DEDE;
|
|
@@ -249,6 +303,7 @@
|
|
|
}
|
|
|
|
|
|
.header {
|
|
|
+ height:192rpx;
|
|
|
width: 100%;
|
|
|
// position: fixed;
|
|
|
// top: 0rpx;
|
|
@@ -335,10 +390,7 @@
|
|
|
|
|
|
/* 安全信息牌 */
|
|
|
.safetyCard {
|
|
|
- flex: 1;
|
|
|
- overflow-y: scroll;
|
|
|
padding-bottom: 150rpx;
|
|
|
-
|
|
|
.lab-info {
|
|
|
background: #FFFFFF;
|
|
|
|
|
@@ -628,59 +680,30 @@
|
|
|
}
|
|
|
|
|
|
.position-button-box {
|
|
|
- position: absolute;
|
|
|
+ position: fixed;
|
|
|
bottom: 25rpx;
|
|
|
- left: 60rpx;
|
|
|
- width: 640rpx;
|
|
|
+ left: 30rpx;
|
|
|
+ width: 690rpx;
|
|
|
height: 100rpx;
|
|
|
display: flex;
|
|
|
color: #fff;
|
|
|
overflow: hidden;
|
|
|
-
|
|
|
- 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;
|
|
|
- }
|
|
|
-
|
|
|
- .position-button-p-null {
|
|
|
- flex: 1;
|
|
|
- }
|
|
|
+ border-radius: 50rpx;
|
|
|
|
|
|
.position-button-p-1 {
|
|
|
- width: 160rpx;
|
|
|
+ width: 345rpx;
|
|
|
line-height: 100rpx;
|
|
|
font-size: 30rpx;
|
|
|
text-align: center;
|
|
|
- background-color: #0183FA;
|
|
|
+ background-color: #FF8C00;
|
|
|
}
|
|
|
|
|
|
.position-button-p-2 {
|
|
|
- width: 160rpx;
|
|
|
- line-height: 100rpx;
|
|
|
- font-size: 30rpx;
|
|
|
- text-align: center;
|
|
|
- background-color: #16B531;
|
|
|
- }
|
|
|
-
|
|
|
- .position-button-p-3 {
|
|
|
- width: 160rpx;
|
|
|
+ width: 345rpx;
|
|
|
line-height: 100rpx;
|
|
|
font-size: 30rpx;
|
|
|
text-align: center;
|
|
|
- background-color: #00DEDE;
|
|
|
- }
|
|
|
-
|
|
|
- .position-button-p-4 {
|
|
|
- width: 160rpx;
|
|
|
- line-height: 100rpx;
|
|
|
- font-size: 30rpx;
|
|
|
- text-align: center;
|
|
|
- background-color: #FF8C00;
|
|
|
+ background-color: #0183FA;
|
|
|
}
|
|
|
}
|
|
|
}
|