|
@@ -31,7 +31,8 @@
|
|
{{kWhList[0].name}}
|
|
{{kWhList[0].name}}
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
- {{childList.length==1?companyInfo.name : childInfo.name}}
|
|
|
|
|
|
+ <!-- {{childList.length==1? : childInfo.name}} -->
|
|
|
|
+ {{companyInfo.name}}
|
|
</template>
|
|
</template>
|
|
</span>
|
|
</span>
|
|
<span style="padding-left: 4px;" v-if="companyList.length==1">
|
|
<span style="padding-left: 4px;" v-if="companyList.length==1">
|
|
@@ -96,9 +97,20 @@
|
|
|
|
|
|
<view class="main electronicMonitoring-123" v-show="kWhList.length==1" style="padding:32rpx 0;">
|
|
<view class="main electronicMonitoring-123" v-show="kWhList.length==1" style="padding:32rpx 0;">
|
|
|
|
|
|
|
|
+ <view class="electronicMonitoring-title3"
|
|
|
|
+ v-if="companyType==5"
|
|
|
|
+ v-show="childList&&childList.length>1" >
|
|
|
|
+ <view style="padding:0 32rpx;">
|
|
|
|
+ <u-tabs-one height="60" v-if="utabsone&&childList&&childList.length"
|
|
|
|
+ :currentIndexBl="true" bg-color="#f2f4f6" key="B" :showBar="false"
|
|
|
|
+ :list="childList" :is-scroll="false" :current="current2" @change="change2"></u-tabs-one>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
<view class="electronicMonitoring-title"
|
|
<view class="electronicMonitoring-title"
|
|
@click="titleCk"
|
|
@click="titleCk"
|
|
- v-if="childList&&childList.length>0" >
|
|
|
|
|
|
+ v-else-if="childList&&childList.length>0" >
|
|
<view>
|
|
<view>
|
|
{{childListName}}
|
|
{{childListName}}
|
|
</view>
|
|
</view>
|
|
@@ -128,8 +140,9 @@
|
|
<view class="electronicMonitoring-title2"
|
|
<view class="electronicMonitoring-title2"
|
|
v-else
|
|
v-else
|
|
v-show="childList&&childList.length>1" >
|
|
v-show="childList&&childList.length>1" >
|
|
- <u-tabs-one height="60" v-if="childList&&childList.length"
|
|
|
|
- :currentIndexBl="true" bg-color="#f2f4f6"
|
|
|
|
|
|
+
|
|
|
|
+ <u-tabs-one height="60" :showBar="false" v-if="utabsone&&childList&&childList.length"
|
|
|
|
+ :currentIndexBl="true" bg-color="#f2f4f6" key="A"
|
|
:list="childList" :is-scroll="false" :current="current2" @change="change2"></u-tabs-one>
|
|
:list="childList" :is-scroll="false" :current="current2" @change="change2"></u-tabs-one>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -207,7 +220,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="" v-show="companyId==''&&companyList.length>1&&datacompanyInfo.type=='2'">
|
|
|
|
|
|
+ <view class="" v-show="getPlatformRevenueBl()">
|
|
<!-- 电表运行情况 -->
|
|
<!-- 电表运行情况 -->
|
|
<view class="statistics-1 statistics statistics-3" >
|
|
<view class="statistics-1 statistics statistics-3" >
|
|
<view class="title">
|
|
<view class="title">
|
|
@@ -220,6 +233,20 @@
|
|
|
|
|
|
</view>
|
|
</view>
|
|
<view class=" contractList" >
|
|
<view class=" contractList" >
|
|
|
|
+ <view class="content"
|
|
|
|
+ style="display: flex;justify-content: center;margin: 40px 0;"
|
|
|
|
+ v-if="!getPlatformRevenueReady">
|
|
|
|
+
|
|
|
|
+ <div class="uni-toast" style="display: flex;font-size: 60rpx; color: rgb(192, 196, 204);" >
|
|
|
|
+ <i class="uni-icon_toast uni-loading"
|
|
|
|
+ style="
|
|
|
|
+ width: 80rpx;
|
|
|
|
+ height: 80rpx;
|
|
|
|
+
|
|
|
|
+ "
|
|
|
|
+ ></i><p class="uni-toast__content"> </p>加载中...</div>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
<!-- @click="gotoUrl('/pages/tenantList/contractList?query=1')" -->
|
|
<!-- @click="gotoUrl('/pages/tenantList/contractList?query=1')" -->
|
|
<view class="contractListClass" v-for="(item,i) in platformRevenueList" :key="i"
|
|
<view class="contractListClass" v-for="(item,i) in platformRevenueList" :key="i"
|
|
>
|
|
>
|
|
@@ -251,7 +278,7 @@
|
|
|
|
|
|
</view>
|
|
</view>
|
|
<view class=" contractList">
|
|
<view class=" contractList">
|
|
- <view class="contractListClass" @click="gotoUrl('/pages/tenantList/contractList?query=1')">
|
|
|
|
|
|
+ <view class="contractListClass" @click="gotoUrl('/pages/tenantList/contractList?query=1&companyId='+companyId)">
|
|
<view class="contractListClass1">
|
|
<view class="contractListClass1">
|
|
<image class="img" src="@/assets/img/riLine-wallet-2-line.svg"></image>
|
|
<image class="img" src="@/assets/img/riLine-wallet-2-line.svg"></image>
|
|
账户余额不足 <span class="tenantListNum">{{tenantListNum1}}</span> 家
|
|
账户余额不足 <span class="tenantListNum">{{tenantListNum1}}</span> 家
|
|
@@ -261,7 +288,7 @@
|
|
<u-icon name="arrow-right" size="24" color="#838383"></u-icon>
|
|
<u-icon name="arrow-right" size="24" color="#838383"></u-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="contractListClass" @click="gotoUrl('/pages/tenantList/contractList?query=2')">
|
|
|
|
|
|
+ <view class="contractListClass" @click="gotoUrl('/pages/tenantList/contractList?query=2&companyId='+companyId)">
|
|
<view class="contractListClass1">
|
|
<view class="contractListClass1">
|
|
<!-- <image class="img" src="@/assets/img/riLine-time-line2.svg"></image> -->
|
|
<!-- <image class="img" src="@/assets/img/riLine-time-line2.svg"></image> -->
|
|
<u-icon name="warning" class="img" size="32" color="#ef8132"></u-icon>
|
|
<u-icon name="warning" class="img" size="32" color="#ef8132"></u-icon>
|
|
@@ -272,7 +299,7 @@
|
|
<u-icon name="arrow-right" size="24" color="#838383"></u-icon>
|
|
<u-icon name="arrow-right" size="24" color="#838383"></u-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="contractListClass" @click="gotoUrl('/pages/tenantList/contractList?query=3')">
|
|
|
|
|
|
+ <view class="contractListClass" @click="gotoUrl('/pages/tenantList/contractList?query=3&companyId='+companyId)">
|
|
<view class="contractListClass1">
|
|
<view class="contractListClass1">
|
|
<image class="img" src="@/assets/img/riLine-time-line2.svg"></image>
|
|
<image class="img" src="@/assets/img/riLine-time-line2.svg"></image>
|
|
租赁费催缴提醒 <span class="tenantListNum">{{tenantListNum3}}</span> 家<span>(已到期)</span>
|
|
租赁费催缴提醒 <span class="tenantListNum">{{tenantListNum3}}</span> 家<span>(已到期)</span>
|
|
@@ -367,7 +394,7 @@
|
|
指定时间:{{tabsFrom.show2Text}}
|
|
指定时间:{{tabsFrom.show2Text}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="incomeExpenditureClass" v-show="companyType!=4&&homePageManageObj.showPark" >
|
|
|
|
|
|
+ <view class="incomeExpenditureClass" v-show="childInfo.type!=4" >
|
|
<view class="incomeRow" >
|
|
<view class="incomeRow" >
|
|
<view class="income1">
|
|
<view class="income1">
|
|
<view class="income11">
|
|
<view class="income11">
|
|
@@ -410,7 +437,7 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
- <view class="chat-box" id="barEcharts-statistics" v-show="companyType!=4&&homePageManageObj.showPark">
|
|
|
|
|
|
+ <view class="chat-box" id="barEcharts-statistics" v-show="childInfo.type!=4">
|
|
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -648,7 +675,8 @@
|
|
kWhListHome: [],
|
|
kWhListHome: [],
|
|
codes: '', // 判断:reading用电量 detector设备数据检测
|
|
codes: '', // 判断:reading用电量 detector设备数据检测
|
|
merchantList1: [], // 商户
|
|
merchantList1: [], // 商户
|
|
- merchantList2: [],
|
|
|
|
|
|
+ merchantList2: [],
|
|
|
|
+ companyListMain: [],
|
|
companyList: [],
|
|
companyList: [],
|
|
datacompanyInfo:{},
|
|
datacompanyInfo:{},
|
|
companyInfotypeCurrent:1,
|
|
companyInfotypeCurrent:1,
|
|
@@ -745,7 +773,8 @@
|
|
childInfo:{},
|
|
childInfo:{},
|
|
companyInfo:{},
|
|
companyInfo:{},
|
|
month:0,
|
|
month:0,
|
|
- platformRevenueList:[],
|
|
|
|
|
|
+ platformRevenueList:[],
|
|
|
|
+ getPlatformRevenueReady:false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -792,6 +821,8 @@
|
|
return this.childInfo.name;
|
|
return this.childInfo.name;
|
|
},
|
|
},
|
|
companyType(){
|
|
companyType(){
|
|
|
|
+
|
|
|
|
+
|
|
return this.companyInfo.type;
|
|
return this.companyInfo.type;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -873,7 +904,10 @@
|
|
// uni.showLoading({
|
|
// uni.showLoading({
|
|
// title: "加载中",
|
|
// title: "加载中",
|
|
// mask: true,
|
|
// mask: true,
|
|
- // })
|
|
|
|
|
|
+ // })
|
|
|
|
+ this.tenantListNum1=0
|
|
|
|
+ this.tenantListNum2=0
|
|
|
|
+ this.tenantListNum3=0
|
|
API_tenantList.tenantContractList({
|
|
API_tenantList.tenantContractList({
|
|
companyId:this.companyId
|
|
companyId:this.companyId
|
|
}).then((response) => {
|
|
}).then((response) => {
|
|
@@ -1153,11 +1187,11 @@
|
|
|
|
|
|
}else{
|
|
}else{
|
|
this.kWhList=[]
|
|
this.kWhList=[]
|
|
- this.getDeviceStatus()
|
|
|
|
|
|
+
|
|
this.getPlatformRevenue()
|
|
this.getPlatformRevenue()
|
|
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ this.getDeviceStatus()
|
|
},
|
|
},
|
|
companyInfotypeChange(index){
|
|
companyInfotypeChange(index){
|
|
if(index!=this.companyInfotypeCurrent){
|
|
if(index!=this.companyInfotypeCurrent){
|
|
@@ -1254,6 +1288,11 @@
|
|
API.deviceCompanyList().then((response) => {
|
|
API.deviceCompanyList().then((response) => {
|
|
//uni.hideLoading();
|
|
//uni.hideLoading();
|
|
var list = response.data.companyInfoList;
|
|
var list = response.data.companyInfoList;
|
|
|
|
+ this.companyListMain=response.data.companyInfoList;
|
|
|
|
+ if(list.length==1&&list[0].childList&&list[0].childList.length){
|
|
|
|
+ list=list[0].childList
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
var mList1 = [];
|
|
var mList1 = [];
|
|
var mList2 = [];
|
|
var mList2 = [];
|
|
@@ -1368,8 +1407,8 @@
|
|
//console.log(this.meterList)
|
|
//console.log(this.meterList)
|
|
this.homePageManageObj = response.data;
|
|
this.homePageManageObj = response.data;
|
|
//this.$forceUpdate()
|
|
//this.$forceUpdate()
|
|
- if(this.companyType!=4&&this.homePageManageObj.showPark){
|
|
|
|
-
|
|
|
|
|
|
+ if(this.childInfo.type!=4){
|
|
|
|
+ //&&this.homePageManageObj.showPark
|
|
this.myBarChart=null;
|
|
this.myBarChart=null;
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
this.getBarCharts()
|
|
this.getBarCharts()
|
|
@@ -1451,7 +1490,7 @@
|
|
this.kWhList = response.data.data;
|
|
this.kWhList = response.data.data;
|
|
|
|
|
|
if(this.kWhList.length==1){
|
|
if(this.kWhList.length==1){
|
|
- this.utabsone=true
|
|
|
|
|
|
+
|
|
var item=this.kWhList[0];
|
|
var item=this.kWhList[0];
|
|
this.$refs['refMyEm'+companyId].init({
|
|
this.$refs['refMyEm'+companyId].init({
|
|
id:item.id,
|
|
id:item.id,
|
|
@@ -1459,20 +1498,31 @@
|
|
companyId:item.companyId,
|
|
companyId:item.companyId,
|
|
|
|
|
|
ref:1,
|
|
ref:1,
|
|
- })
|
|
|
|
|
|
+ })
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
+ this.utabsone=true
|
|
|
|
+ })
|
|
|
|
+ },200)
|
|
|
|
+
|
|
}else{
|
|
}else{
|
|
this.getHomePageManage(1)
|
|
this.getHomePageManage(1)
|
|
- this.getDeviceStatus()
|
|
|
|
|
|
+
|
|
this.getAbnormalAlarmRecord();
|
|
this.getAbnormalAlarmRecord();
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
- this.utabsone=true
|
|
|
|
|
|
+
|
|
this.kWhListHome= response.data.data;
|
|
this.kWhListHome= response.data.data;
|
|
if (!interval) {
|
|
if (!interval) {
|
|
this.startInterval(); // 组件挂载后开始间隔
|
|
this.startInterval(); // 组件挂载后开始间隔
|
|
}else{
|
|
}else{
|
|
this.intervalReady=true
|
|
this.intervalReady=true
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
+ this.utabsone=true
|
|
|
|
+ })
|
|
|
|
+ },200)
|
|
}
|
|
}
|
|
|
|
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
@@ -1481,18 +1531,24 @@
|
|
icon: "none"
|
|
icon: "none"
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ getPlatformRevenueBl(){
|
|
|
|
+ console.log("getPlatformRevenueBl",this.datacompanyInfo)
|
|
|
|
+ return this.companyId==''&&this.companyList.length>1&&this.datacompanyInfo.type=='2'
|
|
},
|
|
},
|
|
getPlatformRevenue(){
|
|
getPlatformRevenue(){
|
|
- if(this.companyId==''&&this.companyList.length>1&&this.datacompanyInfo.type=='2'){
|
|
|
|
|
|
+ if(this.getPlatformRevenueBl()){
|
|
|
|
|
|
}else{
|
|
}else{
|
|
|
|
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ this.getPlatformRevenueReady=false
|
|
var queryDate =parseUnixTime(new Date(), '{y}-{m}-1');
|
|
var queryDate =parseUnixTime(new Date(), '{y}-{m}-1');
|
|
API.platformRevenue({
|
|
API.platformRevenue({
|
|
queryDate:queryDate
|
|
queryDate:queryDate
|
|
}).then((response) => {
|
|
}).then((response) => {
|
|
|
|
+ this.getPlatformRevenueReady=true
|
|
this.platformRevenueList=response.data.companyInfoList
|
|
this.platformRevenueList=response.data.companyInfoList
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -1507,7 +1563,12 @@
|
|
API.deviceStatus({
|
|
API.deviceStatus({
|
|
companyId: this.companyId
|
|
companyId: this.companyId
|
|
}).then((response) => {
|
|
}).then((response) => {
|
|
- this.utabsone=true
|
|
|
|
|
|
+
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
+ this.utabsone=true
|
|
|
|
+ })
|
|
|
|
+ },200)
|
|
this.alarmsForm = response.data;
|
|
this.alarmsForm = response.data;
|
|
if (this.alarmsForm.okNum != 0) {
|
|
if (this.alarmsForm.okNum != 0) {
|
|
this.alarmsPercent = this.alarmsForm.okNum / (this.alarmsForm.okNum + this.alarmsForm
|
|
this.alarmsPercent = this.alarmsForm.okNum / (this.alarmsForm.okNum + this.alarmsForm
|
|
@@ -1758,7 +1819,8 @@
|
|
/deep/.u-tab-item:first-child {
|
|
/deep/.u-tab-item:first-child {
|
|
width: 20% !important;
|
|
width: 20% !important;
|
|
flex: none !important;
|
|
flex: none !important;
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// /deep/.u-tab-item2 {
|
|
// /deep/.u-tab-item2 {
|
|
@@ -1812,7 +1874,7 @@
|
|
// 标签
|
|
// 标签
|
|
.tabs-box {
|
|
.tabs-box {
|
|
padding: 32rpx 0;
|
|
padding: 32rpx 0;
|
|
- margin-top: 88rpx;
|
|
|
|
|
|
+ margin-top: 66rpx;
|
|
padding-right: 32rpx;
|
|
padding-right: 32rpx;
|
|
background-color: rgba(22, 119, 255, 1);
|
|
background-color: rgba(22, 119, 255, 1);
|
|
display: flex;
|
|
display: flex;
|
|
@@ -2501,6 +2563,9 @@
|
|
}
|
|
}
|
|
.electronicMonitoring-title2{
|
|
.electronicMonitoring-title2{
|
|
margin-bottom: 16rpx;
|
|
margin-bottom: 16rpx;
|
|
|
|
+ }
|
|
|
|
+ .electronicMonitoring-title3{
|
|
|
|
+
|
|
}
|
|
}
|
|
.electronicMonitoring-title{
|
|
.electronicMonitoring-title{
|
|
display: flex;
|
|
display: flex;
|