|
|
@ -277,7 +277,7 @@ export default { |
|
|
|
// 进出控制ID |进入-> enter_id 离开-> leave_id| |
|
|
|
let _cid = status === 1 ? enter_id : |
|
|
|
status === 0 ? leave_id : ''; |
|
|
|
return { |
|
|
|
let _data = { |
|
|
|
// hardware_id: switchInfo.id, |
|
|
|
name: 'gate', |
|
|
|
value: { |
|
|
@ -287,6 +287,12 @@ export default { |
|
|
|
is_delay: true, |
|
|
|
queue_group: 'gate' |
|
|
|
} |
|
|
|
// 20230731 门闸新增通电、断电 【id1001350】 |
|
|
|
if(status === 5 || status === 6){ |
|
|
|
_data['name'] = 'gate-switch'; |
|
|
|
_data['value']['op'] = status === 5 ? 'on' : 'off'; |
|
|
|
} |
|
|
|
return _data |
|
|
|
}, |
|
|
|
// |
|
|
|
refreshStatusBtn: util.debounce(function({switchInfo, index}){ |
|
|
@ -577,9 +583,18 @@ function getShowArr(key){ |
|
|
|
<style lang="scss"> |
|
|
|
@import '~style/public.scss'; |
|
|
|
page{ |
|
|
|
background:url(../../static/images/page_bg.jpg) repeat-y; |
|
|
|
background-size: 100%; |
|
|
|
background-attachment: fixed; |
|
|
|
&::after{ |
|
|
|
content: ''; |
|
|
|
display: block; |
|
|
|
position: fixed; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
background: url(../../static/images/page_bg.jpg) repeat-y; |
|
|
|
background-size: 100%; |
|
|
|
z-index: -1; |
|
|
|
} |
|
|
|
} |
|
|
|
.sm-tit{ |
|
|
|
padding-left: 40upx; |
|
|
@ -588,7 +603,7 @@ function getShowArr(key){ |
|
|
|
line-height: 60upx; |
|
|
|
font-size: 44upx; |
|
|
|
font-weight: 500; |
|
|
|
color: #333; |
|
|
|
color: #1A1A1A; |
|
|
|
@include textHide(1); |
|
|
|
} |
|
|
|
.sm-tip{ |
|
|
@ -609,6 +624,7 @@ function getShowArr(key){ |
|
|
|
flex-grow: 1; |
|
|
|
margin-bottom: 30upx; |
|
|
|
border-radius: 10upx; |
|
|
|
border: .5px solid #fff; |
|
|
|
box-shadow: 0 4upx 12upx 0 #00987454, inset 0 0 40upx 0 #ffffff80; |
|
|
|
background-image: linear-gradient(180deg, #eff6f44d 0%, #FFFFFF 100%); |
|
|
|
&.sl-limit{ |
|
|
@ -632,12 +648,12 @@ function getShowArr(key){ |
|
|
|
margin-bottom: 8upx; |
|
|
|
line-height: 44upx; |
|
|
|
font-size: 32upx; |
|
|
|
color: #333; |
|
|
|
color: #1A1A1A; |
|
|
|
@include textHide(1); |
|
|
|
} |
|
|
|
.sr-bot-router{ |
|
|
|
font-size: 20rpx; |
|
|
|
color: #9C9C9F; |
|
|
|
color: #fff; |
|
|
|
text{ |
|
|
|
margin-left: 15rpx; |
|
|
|
color: black; |
|
|
@ -686,7 +702,7 @@ function getShowArr(key){ |
|
|
|
padding-bottom: 30upx; |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
border-top: 2upx solid #F2F2F7; |
|
|
|
border-top: .5px solid #fff; |
|
|
|
>view{ |
|
|
|
flex-shrink: 0; |
|
|
|
flex-grow: 0; |
|
|
@ -724,7 +740,7 @@ function getShowArr(key){ |
|
|
|
text-align: center; |
|
|
|
font-size: 28upx; |
|
|
|
color: #333; |
|
|
|
border-top: 2upx solid #F2F2F7; |
|
|
|
border-top: .5px solid rgba($color: #82D7C1, $alpha: .50); |
|
|
|
>image{ |
|
|
|
margin-left: 10upx; |
|
|
|
width: 24upx; |
|
|
|