|
@@ -75,10 +75,10 @@
|
|
<view class="td td3">
|
|
<view class="td td3">
|
|
|
|
|
|
<view class="td td4">公共车位<span
|
|
<view class="td td4">公共车位<span
|
|
- class="body1pie-num colorEF8132">{{body1data.data1.type1}}</span>台
|
|
|
|
|
|
+ class="body1pie-num colorEF8132">{{body1data.data.publicNum}}</span>台
|
|
</view>
|
|
</view>
|
|
<view class="td td4">私家车位<span
|
|
<view class="td td4">私家车位<span
|
|
- class="body1pie-num colorDC4441">{{body1data.data1.type2}}</span>台
|
|
|
|
|
|
+ class="body1pie-num colorDC4441">{{body1data.data.privateNum}}</span>台
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -139,7 +139,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="statistics " v-show="companyId">
|
|
|
|
|
|
+ <view class="statistics " v-show="1||companyId">
|
|
<view class="title">
|
|
<view class="title">
|
|
<view class="icon">
|
|
<view class="icon">
|
|
<image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
|
|
<image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
|
|
@@ -163,25 +163,34 @@
|
|
<!--
|
|
<!--
|
|
-->
|
|
-->
|
|
<view class="item-title">
|
|
<view class="item-title">
|
|
- {{item.name}}
|
|
|
|
-
|
|
|
|
- </view>
|
|
|
|
- <view class="item-tags">
|
|
|
|
- <view class="tag " :class="'tag'+item.type">
|
|
|
|
- {{item.typeN}}
|
|
|
|
-
|
|
|
|
- </view>
|
|
|
|
- <view class="tag" :class="'statusN'+item.status">
|
|
|
|
- {{item.statusN}}
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ <view class="item-name">
|
|
|
|
+ {{item.name}}
|
|
</view>
|
|
</view>
|
|
- <view class="tag" :class="'lockStatus lockStatus'+item.lockStatus">
|
|
|
|
- {{item.lockStatusN}}
|
|
|
|
|
|
+ <view class="item-tags">
|
|
|
|
+ <view class="tag " :class="'tag'+item.type">
|
|
|
|
+ {{item.typeN}}
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <view class="tag" :class="'lockStatus lockStatus'+item.lockStatus">
|
|
|
|
+ {{item.lockStatusN}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="item-body">
|
|
|
|
+ 编号:{{item.lockNo}}
|
|
|
|
+ </view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
- <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
|
|
|
|
|
|
+ <view class="goto">
|
|
|
|
+ <view :class="'statusN statusN'+item.status">
|
|
|
|
+ {{item.statusN}}
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+ <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
<u-divider border-color="#CFD2D5" @click="gotoDeviceList()"
|
|
<u-divider border-color="#CFD2D5" @click="gotoDeviceList()"
|
|
v-if="equipmentList.length==10">最多显示10条,点击查看更多</u-divider>
|
|
v-if="equipmentList.length==10">最多显示10条,点击查看更多</u-divider>
|
|
@@ -190,6 +199,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ </jpContent>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <view class="statistics " v-show="1||companyId">
|
|
|
|
+ <view class="title">
|
|
|
|
+ <view class="icon">
|
|
|
|
+ <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ <view>停车记录</view>
|
|
|
|
+
|
|
|
|
+ <view class="check-all" @click="gotoUrl('/pages/record/parkingRecord?compamyId='+companyId+'&parkingId='+parkingId)">查看全部<u-icon name="arrow-right"></u-icon>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <view class="contentBody">
|
|
|
|
+ <jpContent :status="jpContentMap.body8">
|
|
|
|
+ <view class="body8main">
|
|
|
|
+ <view class="line" v-for="(item,index) in parkingRecord"
|
|
|
|
+ @click="gotoUrl('/pages/record/parkingInfo?id='+item.id)" :key="index">
|
|
|
|
+
|
|
|
|
+ <view class="data">
|
|
|
|
+
|
|
|
|
+ <view class="view3">
|
|
|
|
+ <u-icon name="clock"></u-icon>
|
|
|
|
+ {{showTime(item.startTime)}}
|
|
|
|
+ <template v-if="item.status!=0">
|
|
|
|
+ {{item.endTime?'-'+showTime(item.endTime):'-当前'}}
|
|
|
|
+ </template>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+ <view class="view1">
|
|
|
|
+ {{item.parkingName}} {{item.lockName}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="goto " :class="'status'+item.status">
|
|
|
|
+ {{item.status==2?getTime(item):''}}
|
|
|
|
+ {{item.status==1?'使用中':''}}
|
|
|
|
+ {{item.status==0?'启动中':''}}
|
|
|
|
+
|
|
|
|
+ <u-icon name="arrow-right" size="24" style="margin-left: 8rpx;" color="#BBBBBB"></u-icon>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+ <u-divider border-color="#CFD2D5" @click="gotoUrl('/pages/record/parkingRecord?compamyId='+companyId+'&parkingId='+parkingId)"
|
|
|
|
+ v-if="parkingRecord.length==5">最多显示5条,点击查看更多</u-divider>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
</jpContent>
|
|
</jpContent>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -402,8 +468,9 @@
|
|
//companyListIndex:0,
|
|
//companyListIndex:0,
|
|
companyId: "",
|
|
companyId: "",
|
|
parkingId: "",
|
|
parkingId: "",
|
|
- echartsList: {},
|
|
|
|
- equipmentList: [{}],
|
|
|
|
|
|
+ echartsList: {},
|
|
|
|
+ parkingRecord:[],
|
|
|
|
+ equipmentList: [],
|
|
abnormalRecordsList: [{
|
|
abnormalRecordsList: [{
|
|
level: 1,
|
|
level: 1,
|
|
content: "1111111",
|
|
content: "1111111",
|
|
@@ -526,7 +593,39 @@
|
|
return sz
|
|
return sz
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- methods: {
|
|
|
|
|
|
+ methods: {
|
|
|
|
+
|
|
|
|
+ showTime(time){
|
|
|
|
+ if(time){
|
|
|
|
+ return time.substr(5).replace('-','.')
|
|
|
|
+ }else{
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ getTime(item){
|
|
|
|
+ if(item.startTime&&item.endTime){
|
|
|
|
+ var stime=newDate(item.startTime)
|
|
|
|
+ var etime=newDate(item.endTime)
|
|
|
|
+ //etime=new Date()
|
|
|
|
+ var k=(etime.getTime()-stime.getTime())/1000/60
|
|
|
|
+
|
|
|
|
+ var H=k/60
|
|
|
|
+ var fen=k%(60)
|
|
|
|
+ var str="";
|
|
|
|
+ if(k>60){
|
|
|
|
+ str+=parseInt(H)+'小时'
|
|
|
|
+ }
|
|
|
|
+ if(fen==0&&str!=''){
|
|
|
|
+
|
|
|
|
+ }else{
|
|
|
|
+ str+=parseInt(fen)+'分钟'
|
|
|
|
+ }
|
|
|
|
+ return str
|
|
|
|
+ }else{
|
|
|
|
+ return '已完成'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
gotoDeviceList() {
|
|
gotoDeviceList() {
|
|
if (this.companyId) {
|
|
if (this.companyId) {
|
|
this.gotoUrl('/pages/deviceTab/deviceList?companyId=' + this.companyId)
|
|
this.gotoUrl('/pages/deviceTab/deviceList?companyId=' + this.companyId)
|
|
@@ -556,6 +655,33 @@
|
|
|
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+ },
|
|
|
|
+ getParkingRecordList() {
|
|
|
|
+ this.jpContentMap.body8 = 0
|
|
|
|
+
|
|
|
|
+ API.parkingRecordList({
|
|
|
|
+ companyId: this.companyId,
|
|
|
|
+ parkingId: this.parkingId,
|
|
|
|
+ pageSize: 5
|
|
|
|
+ }).then((response) => {
|
|
|
|
+
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+ if (response.data.totalPage) {
|
|
|
|
+ this.jpContentMap.body8 = 2
|
|
|
|
+ this.parkingRecord = response.data.data
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ this.jpContentMap.body8 = 1
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }).catch(error => {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: error,
|
|
|
|
+ icon: "none"
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+
|
|
},
|
|
},
|
|
getfloorlockList() {
|
|
getfloorlockList() {
|
|
this.jpContentMap.body7 = 0
|
|
this.jpContentMap.body7 = 0
|
|
@@ -570,18 +696,7 @@
|
|
if (response.data.totalPage) {
|
|
if (response.data.totalPage) {
|
|
this.jpContentMap.body7 = 2
|
|
this.jpContentMap.body7 = 2
|
|
this.equipmentList = response.data.data
|
|
this.equipmentList = response.data.data
|
|
- var num1 = 0
|
|
|
|
- var num2 = 0
|
|
|
|
- this.equipmentList.forEach(item => {
|
|
|
|
- if (item.type == 1) {
|
|
|
|
- num1 += 1
|
|
|
|
- }
|
|
|
|
- if (item.type == 2) {
|
|
|
|
- num2 += 1
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- this.body1data.data1.type1 = num1
|
|
|
|
- this.body1data.data1.type2 = num2
|
|
|
|
|
|
+
|
|
|
|
|
|
} else {
|
|
} else {
|
|
this.jpContentMap.body7 = 1
|
|
this.jpContentMap.body7 = 1
|
|
@@ -612,7 +727,7 @@
|
|
this.occupancyByTimeBar(1);
|
|
this.occupancyByTimeBar(1);
|
|
this.occupancyByDay(1);
|
|
this.occupancyByDay(1);
|
|
this.durationDistribution();
|
|
this.durationDistribution();
|
|
-
|
|
|
|
|
|
+ this.getParkingRecordList()
|
|
if (this.parkingId == "") {
|
|
if (this.parkingId == "") {
|
|
|
|
|
|
} else {
|
|
} else {
|
|
@@ -1796,7 +1911,8 @@
|
|
.check-all {
|
|
.check-all {
|
|
margin-left: auto;
|
|
margin-left: auto;
|
|
color: rgba(131, 131, 131, 1);
|
|
color: rgba(131, 131, 131, 1);
|
|
- font-size: 24rpx;
|
|
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ font-weight: 400;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1940,19 +2056,49 @@
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
margin-bottom: 24rpx;
|
|
margin-bottom: 24rpx;
|
|
-
|
|
|
|
|
|
+ .goto{
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ }
|
|
|
|
+ .item-body{
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
.item-title {
|
|
.item-title {
|
|
color: rgba(51, 51, 51, 1);
|
|
color: rgba(51, 51, 51, 1);
|
|
- font-size: 28rpx;
|
|
|
|
-
|
|
|
|
|
|
+ font-size: 28rpx;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ .item-name{
|
|
|
|
+ margin-right: 8rpx;
|
|
|
|
+ font-size: 32rpx;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .statusN{
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ padding: 2rpx 8rpx;
|
|
|
|
+ margin-right: 8rpx;
|
|
|
|
+ }
|
|
|
|
+ .statusN1 {
|
|
|
|
+
|
|
|
|
+ color: rgba(0,185,98,1);
|
|
|
|
+ border: 1px solid rgba(0,185,98,1);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .statusN0 {
|
|
|
|
+ color: rgba(51,51,51,1);
|
|
|
|
+ border: 1px solid rgba(119,119,119,1);
|
|
|
|
+
|
|
}
|
|
}
|
|
-
|
|
|
|
.item-tags {
|
|
.item-tags {
|
|
display: flex;
|
|
display: flex;
|
|
|
|
|
|
.tag {
|
|
.tag {
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
-
|
|
|
|
|
|
+ white-space: pre;
|
|
background-color: rgba(39, 177, 72, 1);
|
|
background-color: rgba(39, 177, 72, 1);
|
|
color: rgba(255, 255, 255, 1);
|
|
color: rgba(255, 255, 255, 1);
|
|
font-size: 20rpx;
|
|
font-size: 20rpx;
|
|
@@ -1967,12 +2113,8 @@
|
|
.tag2 {
|
|
.tag2 {
|
|
background-color: rgba(129, 97, 255, 1);
|
|
background-color: rgba(129, 97, 255, 1);
|
|
}
|
|
}
|
|
-
|
|
|
|
- .statusN1 {}
|
|
|
|
-
|
|
|
|
- .statusN0 {
|
|
|
|
- background-color: rgba(153, 153, 153, 1);
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
.lockStatus {
|
|
.lockStatus {
|
|
|
|
|
|
@@ -1984,5 +2126,46 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ .body8main{
|
|
|
|
+
|
|
|
|
+ .line{
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ align-items: center;
|
|
|
|
+ background: #fff;
|
|
|
|
+ padding:16rpx 0rpx;
|
|
|
|
+ border-top: 1px solid rgba(232,232,232,1);
|
|
|
|
+ .data{
|
|
|
|
+ .view1{
|
|
|
|
+ color: rgba(16,16,16,1);
|
|
|
|
+ font-size: 32rpx;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ }
|
|
|
|
+ .view3{
|
|
|
|
+ color: rgba(119,119,119,1);
|
|
|
|
+ font-size: 28rpx;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .goto{
|
|
|
|
+ display: flex;
|
|
|
|
+ font-size: 32rpx;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .status1{
|
|
|
|
+ color:#FF5100
|
|
|
|
+ }
|
|
|
|
+ .status2{
|
|
|
|
+ color: rgba(22,119,255,1);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .line:first-child{
|
|
|
|
+ border-top: 0px ;
|
|
|
|
+ padding-top: 0px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|