|
@@ -12,8 +12,8 @@
|
|
<qiun-data-charts type="arcbar" :opts="opts" :chartData="chartData0" />
|
|
<qiun-data-charts type="arcbar" :opts="opts" :chartData="chartData0" />
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li-r">
|
|
<view class="chart-b-li-r">
|
|
- <text>60</text>
|
|
|
|
- <text>60%</text>
|
|
|
|
|
|
+ <text>{{dataList[0].appointNum}}</text>
|
|
|
|
+ <text>{{dataList[0].appointNum}}%</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li">
|
|
<view class="chart-b-li">
|
|
@@ -21,8 +21,8 @@
|
|
<qiun-data-charts type="arcbar" :opts="opts2" :chartData="chartData1" />
|
|
<qiun-data-charts type="arcbar" :opts="opts2" :chartData="chartData1" />
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li-r">
|
|
<view class="chart-b-li-r">
|
|
- <text>60</text>
|
|
|
|
- <text>60%</text>
|
|
|
|
|
|
+ <text>{{dataList[0].freeNum}}</text>
|
|
|
|
+ <text>{{dataList[0].freeRate}}%</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li">
|
|
<view class="chart-b-li">
|
|
@@ -30,8 +30,8 @@
|
|
<qiun-data-charts type="arcbar" :opts="opts3" :chartData="chartData2" />
|
|
<qiun-data-charts type="arcbar" :opts="opts3" :chartData="chartData2" />
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li-r">
|
|
<view class="chart-b-li-r">
|
|
- <text>60</text>
|
|
|
|
- <text>60%</text>
|
|
|
|
|
|
+ <text>{{dataList[0].appointNum}}</text>
|
|
|
|
+ <text>{{dataList[0].appointRate}}%</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li">
|
|
<view class="chart-b-li">
|
|
@@ -39,8 +39,8 @@
|
|
<qiun-data-charts type="arcbar" :opts="opts4" :chartData="chartData3" />
|
|
<qiun-data-charts type="arcbar" :opts="opts4" :chartData="chartData3" />
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li-r">
|
|
<view class="chart-b-li-r">
|
|
- <text>60</text>
|
|
|
|
- <text>60%</text>
|
|
|
|
|
|
+ <text>{{dataList[0].lockedNum}}</text>
|
|
|
|
+ <text>{{dataList[0].lockedNum}}%</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li">
|
|
<view class="chart-b-li">
|
|
@@ -48,8 +48,8 @@
|
|
<qiun-data-charts type="arcbar" :opts="opts5" :chartData="chartData4" />
|
|
<qiun-data-charts type="arcbar" :opts="opts5" :chartData="chartData4" />
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li-r">
|
|
<view class="chart-b-li-r">
|
|
- <text>60</text>
|
|
|
|
- <text>60%</text>
|
|
|
|
|
|
+ <text>{{dataList[0].killNum}}</text>
|
|
|
|
+ <text>{{dataList[0].killRate}}%</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li">
|
|
<view class="chart-b-li">
|
|
@@ -57,8 +57,8 @@
|
|
<qiun-data-charts type="arcbar" :opts="opts6" :chartData="chartData5" />
|
|
<qiun-data-charts type="arcbar" :opts="opts6" :chartData="chartData5" />
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li-r">
|
|
<view class="chart-b-li-r">
|
|
- <text>60</text>
|
|
|
|
- <text>60%</text>
|
|
|
|
|
|
+ <text>{{dataList[0].repairNum}}</text>
|
|
|
|
+ <text>{{dataList[0].repairRate}}%</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -74,8 +74,8 @@
|
|
<qiun-data-charts type="arcbar" :opts="opts" :chartData="chartDataTow0" />
|
|
<qiun-data-charts type="arcbar" :opts="opts" :chartData="chartDataTow0" />
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li-r">
|
|
<view class="chart-b-li-r">
|
|
- <text>60</text>
|
|
|
|
- <text>60%</text>
|
|
|
|
|
|
+ <text>{{dataList[0].appointNum}}</text>
|
|
|
|
+ <text>{{dataList[0].appointNum}}%</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li">
|
|
<view class="chart-b-li">
|
|
@@ -83,8 +83,8 @@
|
|
<qiun-data-charts type="arcbar" :opts="opts2" :chartData="chartDataTow1" />
|
|
<qiun-data-charts type="arcbar" :opts="opts2" :chartData="chartDataTow1" />
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li-r">
|
|
<view class="chart-b-li-r">
|
|
- <text>60</text>
|
|
|
|
- <text>60%</text>
|
|
|
|
|
|
+ <text>{{dataList[0].freeNum}}</text>
|
|
|
|
+ <text>{{dataList[0].freeRate}}%</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li">
|
|
<view class="chart-b-li">
|
|
@@ -92,8 +92,8 @@
|
|
<qiun-data-charts type="arcbar" :opts="opts3" :chartData="chartDataTow2" />
|
|
<qiun-data-charts type="arcbar" :opts="opts3" :chartData="chartDataTow2" />
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li-r">
|
|
<view class="chart-b-li-r">
|
|
- <text>60</text>
|
|
|
|
- <text>60%</text>
|
|
|
|
|
|
+ <text>{{dataList[0].appointNum}}</text>
|
|
|
|
+ <text>{{dataList[0].appointRate}}%</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li">
|
|
<view class="chart-b-li">
|
|
@@ -101,8 +101,8 @@
|
|
<qiun-data-charts type="arcbar" :opts="opts4" :chartData="chartDataTow3" />
|
|
<qiun-data-charts type="arcbar" :opts="opts4" :chartData="chartDataTow3" />
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li-r">
|
|
<view class="chart-b-li-r">
|
|
- <text>60</text>
|
|
|
|
- <text>60%</text>
|
|
|
|
|
|
+ <text>{{dataList[0].lockedNum}}</text>
|
|
|
|
+ <text>{{dataList[0].lockedNum}}%</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li">
|
|
<view class="chart-b-li">
|
|
@@ -110,8 +110,8 @@
|
|
<qiun-data-charts type="arcbar" :opts="opts5" :chartData="chartDataTow4" />
|
|
<qiun-data-charts type="arcbar" :opts="opts5" :chartData="chartDataTow4" />
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li-r">
|
|
<view class="chart-b-li-r">
|
|
- <text>60</text>
|
|
|
|
- <text>60%</text>
|
|
|
|
|
|
+ <text>{{dataList[0].killNum}}</text>
|
|
|
|
+ <text>{{dataList[0].killRate}}%</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li">
|
|
<view class="chart-b-li">
|
|
@@ -119,8 +119,8 @@
|
|
<qiun-data-charts type="arcbar" :opts="opts6" :chartData="chartDataTow5" />
|
|
<qiun-data-charts type="arcbar" :opts="opts6" :chartData="chartDataTow5" />
|
|
</view>
|
|
</view>
|
|
<view class="chart-b-li-r">
|
|
<view class="chart-b-li-r">
|
|
- <text>60</text>
|
|
|
|
- <text>60%</text>
|
|
|
|
|
|
+ <text>{{dataList[0].repairNum}}</text>
|
|
|
|
+ <text>{{dataList[0].repairRate}}%</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -320,6 +320,7 @@
|
|
chartTabIndexThree: 0,
|
|
chartTabIndexThree: 0,
|
|
type: 1, //1年2季度3月度
|
|
type: 1, //1年2季度3月度
|
|
totalAppointNum: 0,
|
|
totalAppointNum: 0,
|
|
|
|
+ dataList:[],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -329,25 +330,11 @@
|
|
|
|
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- this.getServerData()
|
|
|
|
this.reportAppletReportApiCageRateCageRateList()
|
|
this.reportAppletReportApiCageRateCageRateList()
|
|
this.reportAppletReportBsEquipDangerList()
|
|
this.reportAppletReportBsEquipDangerList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- getServerData() {
|
|
|
|
- //模拟从服务器获取数据时的延时
|
|
|
|
- setTimeout(() => {
|
|
|
|
- //模拟服务器返回数据,如果数据格式和标准格式不同,需自行按下面的格式拼接
|
|
|
|
- let res = {
|
|
|
|
- series: [{
|
|
|
|
- name: "总数",
|
|
|
|
- color: "#0183FA",
|
|
|
|
- data: 0.8
|
|
|
|
- }]
|
|
|
|
- };
|
|
|
|
- this.chartData = JSON.parse(JSON.stringify(res));
|
|
|
|
- }, 500);
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
//笼位A-B楼
|
|
//笼位A-B楼
|
|
async reportAppletReportApiCageRateCageRateList() {
|
|
async reportAppletReportApiCageRateCageRateList() {
|
|
let self = this;
|
|
let self = this;
|
|
@@ -355,25 +342,26 @@
|
|
data
|
|
data
|
|
} = await reportAppletReportApiCageRateCageRateList();
|
|
} = await reportAppletReportApiCageRateCageRateList();
|
|
if (data.code == 200) {
|
|
if (data.code == 200) {
|
|
|
|
+ self.dataList=data.data.reportBsCageRateList;
|
|
let nameList=['总数','空闲','预约','锁定','消杀','维修']
|
|
let nameList=['总数','空闲','预约','锁定','消杀','维修']
|
|
let colorList=['#0183FA','#16BF32','#03D8D0','#FF4800','#FF5F5F','#FF8C00']
|
|
let colorList=['#0183FA','#16BF32','#03D8D0','#FF4800','#FF5F5F','#FF8C00']
|
|
let numList=[
|
|
let numList=[
|
|
- data.data.reportBsCageRateList[0].appointNum,
|
|
|
|
- data.data.reportBsCageRateList[0].freeNum,
|
|
|
|
- data.data.reportBsCageRateList[0].appointRate,
|
|
|
|
- data.data.reportBsCageRateList[0].lockedNum,
|
|
|
|
- data.data.reportBsCageRateList[0].killNum,
|
|
|
|
- data.data.reportBsCageRateList[0].repairNum,
|
|
|
|
|
|
+ data.data.reportBsCageRateList[0].appointNum/100,
|
|
|
|
+ data.data.reportBsCageRateList[0].freeNum/100,
|
|
|
|
+ data.data.reportBsCageRateList[0].appointNum/100,
|
|
|
|
+ data.data.reportBsCageRateList[0].lockedNum/100,
|
|
|
|
+ data.data.reportBsCageRateList[0].killNum/100,
|
|
|
|
+ data.data.reportBsCageRateList[0].repairNum/100,
|
|
]
|
|
]
|
|
this.subName=data.data.reportBsCageRateList[0].buildName;
|
|
this.subName=data.data.reportBsCageRateList[0].buildName;
|
|
|
|
|
|
let numListTow=[
|
|
let numListTow=[
|
|
- data.data.reportBsCageRateList[1].appointNum,
|
|
|
|
- data.data.reportBsCageRateList[1].freeNum,
|
|
|
|
- data.data.reportBsCageRateList[1].appointRate,
|
|
|
|
- data.data.reportBsCageRateList[1].lockedNum,
|
|
|
|
- data.data.reportBsCageRateList[1].killNum,
|
|
|
|
- data.data.reportBsCageRateList[1].repairNum,
|
|
|
|
|
|
+ data.data.reportBsCageRateList[1].appointNum/100,
|
|
|
|
+ data.data.reportBsCageRateList[1].freeNum/100,
|
|
|
|
+ data.data.reportBsCageRateList[1].appointNum/100,
|
|
|
|
+ data.data.reportBsCageRateList[1].lockedNum/100,
|
|
|
|
+ data.data.reportBsCageRateList[1].killNum/100,
|
|
|
|
+ data.data.reportBsCageRateList[1].repairNum/100,
|
|
]
|
|
]
|
|
this.subNameTow=data.data.reportBsCageRateList[1].buildName;
|
|
this.subNameTow=data.data.reportBsCageRateList[1].buildName;
|
|
for(let i=0;i<6;i++){
|
|
for(let i=0;i<6;i++){
|