|
@@ -52,7 +52,11 @@
|
|
|
<div class="text">平均熏蒸时长</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="bio-content-right">
|
|
|
+ <div class="bio-content-right"
|
|
|
+ v-loading="carLoading"
|
|
|
+ element-loading-text="拼命加载中"
|
|
|
+ element-loading-spinner="el-icon-loading"
|
|
|
+ element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
|
<swiper style="height: 100%; margin-top: auto; margin-bottom: auto;" class="swiper" :options="swiperOption">
|
|
|
<swiper-slide v-for="(item, i) in carListContent" :key="i">
|
|
|
<div class="case" @click="open(item, 1)">
|
|
@@ -85,7 +89,11 @@
|
|
|
</swiper>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="bio-content">
|
|
|
+ <div class="bio-content"
|
|
|
+ v-loading="carsLoading"
|
|
|
+ element-loading-text="拼命加载中"
|
|
|
+ element-loading-spinner="el-icon-loading"
|
|
|
+ element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
|
<chart-bar :data="carList"></chart-bar>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -114,7 +122,10 @@
|
|
|
<div class="text">今日违规次数</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="bio-content-right">
|
|
|
+ <div class="bio-content-right" v-loading="personLoading"
|
|
|
+ element-loading-text="拼命加载中"
|
|
|
+ element-loading-spinner="el-icon-loading"
|
|
|
+ element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
|
<swiper style="height: 100%; margin-top: auto; margin-bottom: auto;" class="swiper" :options="swiperOption">
|
|
|
<swiper-slide v-for="(item, i) in personList" :key="i">
|
|
|
<div class="case" @click="open(item, 2)">
|
|
@@ -149,7 +160,10 @@
|
|
|
</swiper>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="bio-content">
|
|
|
+ <div class="bio-content" v-loading="personChartLoading"
|
|
|
+ element-loading-text="拼命加载中"
|
|
|
+ element-loading-spinner="el-icon-loading"
|
|
|
+ element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
|
<chart-bar :data="data1"></chart-bar>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -197,7 +211,10 @@
|
|
|
<div class="bio-title-center">车辆烘干</div>
|
|
|
<div class="bio-title-right"></div>
|
|
|
</div>
|
|
|
- <div class="bio-vertical">
|
|
|
+ <div class="bio-vertical" v-loading="hgLoading"
|
|
|
+ element-loading-text="拼命加载中"
|
|
|
+ element-loading-spinner="el-icon-loading"
|
|
|
+ element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
|
<chart-bar :data="data3"></chart-bar>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -228,11 +245,14 @@
|
|
|
<div class="content-img content-img-3"></div>
|
|
|
<div style="color: white; font-size: 14px">
|
|
|
<p>最近抓取时间</p>
|
|
|
- <span><strong style="font-size: 22px; font-weight: 600">{{value3}}</strong></span>
|
|
|
+ <span><strong style="font-size: 22px; font-weight: 600">{{(value3).slice(5,16)}}</strong></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="bio-vertical-right">
|
|
|
+ <div class="bio-vertical-right" v-loading="sizhuLoading"
|
|
|
+ element-loading-text="拼命加载中"
|
|
|
+ element-loading-spinner="el-icon-loading"
|
|
|
+ element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
|
<swiper style="height: 100%; margin-top: auto; margin-bottom: auto;" class="swiper" :options="swiperOption">
|
|
|
<swiper-slide v-for="(item, i) in sizhuList" :key="i">
|
|
|
<div class="case case1" @click="open(item, 3)">
|
|
@@ -333,7 +353,13 @@ export default {
|
|
|
type: 1,
|
|
|
personList: [],
|
|
|
sizhuList: [],
|
|
|
- token: ''
|
|
|
+ token: '',
|
|
|
+ carLoading: true,
|
|
|
+ carsLoading: true,
|
|
|
+ personLoading: true,
|
|
|
+ personChartLoading: true,
|
|
|
+ sizhuLoading: true,
|
|
|
+ hgLoading: true,
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -344,20 +370,23 @@ export default {
|
|
|
getRecord({})
|
|
|
]).then(axios.spread(function (res1, res2){
|
|
|
if(res1.code === 10000) {
|
|
|
+
|
|
|
that.carList.time = [];
|
|
|
that.carList.data = [];
|
|
|
- that.data1.time = [];
|
|
|
- that.data1.data = [];
|
|
|
res1.data.forEach(item => {
|
|
|
that.carList.time.push(item.time);
|
|
|
that.carList.data.push(item.value);
|
|
|
})
|
|
|
+ that.carsLoading = false
|
|
|
}
|
|
|
if(res2.code === 10000) {
|
|
|
+ that.data1.time = [];
|
|
|
+ that.data1.data = [];
|
|
|
res2.data.forEach(item => {
|
|
|
that.data1.time.push(item.time);
|
|
|
that.data1.data.push(item.value);
|
|
|
})
|
|
|
+ that.personChartLoading = false;
|
|
|
}
|
|
|
}))
|
|
|
getSizhu({}).then(res => {
|
|
@@ -370,6 +399,7 @@ export default {
|
|
|
// 车辆管理列表
|
|
|
getCarList({pageNum:1,pageSize: 21}).then(res => {
|
|
|
if(res.code == 200) {
|
|
|
+ that.carLoading = false;
|
|
|
const result = JSON.parse(res.result);
|
|
|
this.carListContent = result.data.pageData;
|
|
|
this.carListContent.forEach((item) => {
|
|
@@ -395,7 +425,7 @@ export default {
|
|
|
item.channelName = item.channelName.split("人脸门禁")[0];
|
|
|
item.recordImage = `https://36.26.62.70:447/evo-pic/${item.recordImage}?token=${token}&oss_addr=172.16.3.223:8925`;
|
|
|
});
|
|
|
-
|
|
|
+ that.personLoading = false;
|
|
|
let queryParams = {
|
|
|
pageNum: 1,
|
|
|
pageSize: 21,
|
|
@@ -472,6 +502,7 @@ export default {
|
|
|
dbType: 0,
|
|
|
};
|
|
|
await getSizhuList(queryParams).then( res => {
|
|
|
+ that.sizhuLoading = false;
|
|
|
const result = JSON.parse(res.result);
|
|
|
this.sizhuList = result.data.pageData;
|
|
|
this.sizhuList.forEach((item) => {
|
|
@@ -487,6 +518,7 @@ export default {
|
|
|
this.data3.time.push(item.time);
|
|
|
this.data3.data.push(item.value);
|
|
|
})
|
|
|
+ this.hgLoading = false;
|
|
|
}
|
|
|
})
|
|
|
|