|
@@ -42,7 +42,7 @@
|
|
|
:data="driverRanking.logistics_truck_driver_ranking" class="seamless-warp"
|
|
:data="driverRanking.logistics_truck_driver_ranking" class="seamless-warp"
|
|
|
style="height:800px;" :class-option="{
|
|
style="height:800px;" :class-option="{
|
|
|
step: 2, // 数值越大速度滚动越快
|
|
step: 2, // 数值越大速度滚动越快
|
|
|
- limitMoveNum: driverRanking.logistics_truck_driver_ranking.length, // 开始无缝滚动的数据量 this.dataList.length
|
|
|
|
|
|
|
+ limitMoveNum: 15, // 开始无缝滚动的数据量 this.dataList.length
|
|
|
hoverStop: true, // 是否开启鼠标悬停stop
|
|
hoverStop: true, // 是否开启鼠标悬停stop
|
|
|
direction: 1, // 0向下 1向上 2向左 3向右
|
|
direction: 1, // 0向下 1向上 2向左 3向右
|
|
|
openWatch: true, // 开启数据实时监控刷新dom
|
|
openWatch: true, // 开启数据实时监控刷新dom
|
|
@@ -53,7 +53,7 @@
|
|
|
<div class="tr flex"
|
|
<div class="tr flex"
|
|
|
v-for="(item, i) in driverRanking.logistics_truck_driver_ranking">
|
|
v-for="(item, i) in driverRanking.logistics_truck_driver_ranking">
|
|
|
<div class="td" style="width: 20%;padding-left: 10px;">{{ item.ranking
|
|
<div class="td" style="width: 20%;padding-left: 10px;">{{ item.ranking
|
|
|
- }}
|
|
|
|
|
|
|
+ }}
|
|
|
</div>
|
|
</div>
|
|
|
<div class="td" style="width: 36%">{{ item.task_no }}</div>
|
|
<div class="td" style="width: 36%">{{ item.task_no }}</div>
|
|
|
<div class="td" style="width: 24%">{{ item.license_plate }}
|
|
<div class="td" style="width: 24%">{{ item.license_plate }}
|
|
@@ -76,7 +76,7 @@
|
|
|
}">
|
|
}">
|
|
|
<div class="tr flex" v-for="(item, i) in driverRanking.driver_ranking">
|
|
<div class="tr flex" v-for="(item, i) in driverRanking.driver_ranking">
|
|
|
<div class="td" style="width: 20%;padding-left: 10px;">{{ item.ranking
|
|
<div class="td" style="width: 20%;padding-left: 10px;">{{ item.ranking
|
|
|
- }}
|
|
|
|
|
|
|
+ }}
|
|
|
</div>
|
|
</div>
|
|
|
<div class="td" style="width: 36%">{{ item.task_no }}</div>
|
|
<div class="td" style="width: 36%">{{ item.task_no }}</div>
|
|
|
<div class="td" style="width: 24%">{{ item.license_plate }}
|
|
<div class="td" style="width: 24%">{{ item.license_plate }}
|
|
@@ -113,7 +113,7 @@
|
|
|
<Charts :eOption="bing" v-if="bing" style="height:250px" />
|
|
<Charts :eOption="bing" v-if="bing" style="height:250px" />
|
|
|
</div>
|
|
</div>
|
|
|
<div class="leftdivitemchild">
|
|
<div class="leftdivitemchild">
|
|
|
- <Charts :eOption="bar" v-if="bar" style="height: 250px" />
|
|
|
|
|
|
|
+ <Charts :eOption="bar" v-if="bar" style="height: 250px;margin-top: 30px;" />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="leftdivitem " style="padding: 14px 30px;">
|
|
<div class="leftdivitem " style="padding: 14px 30px;">
|
|
@@ -131,7 +131,8 @@
|
|
|
<div class="topChart flex">
|
|
<div class="topChart flex">
|
|
|
<div class="toptitle">今日概况</div>
|
|
<div class="toptitle">今日概况</div>
|
|
|
<div class="num_item" v-for="(item, i) in topChartList" :key="i">
|
|
<div class="num_item" v-for="(item, i) in topChartList" :key="i">
|
|
|
- <div class="num_title">{{ item.title }}</div>
|
|
|
|
|
|
|
+ <div class="num_title"> <img src="../../assets/newimg/s.png" alt=""> {{ item.title
|
|
|
|
|
+ }}</div>
|
|
|
<div class="num_value">
|
|
<div class="num_value">
|
|
|
<div v-for="(obj, j) in item.value" :key="j" class="num fontFx">{{ obj }}</div>
|
|
<div v-for="(obj, j) in item.value" :key="j" class="num fontFx">{{ obj }}</div>
|
|
|
<div class="weight">{{ item.unit }}</div>
|
|
<div class="weight">{{ item.unit }}</div>
|
|
@@ -167,7 +168,7 @@
|
|
|
<div>
|
|
<div>
|
|
|
<p>{{ current2 == 1 ? statistics.month.material_ton :
|
|
<p>{{ current2 == 1 ? statistics.month.material_ton :
|
|
|
statistics.year.material_ton
|
|
statistics.year.material_ton
|
|
|
- }}</p>
|
|
|
|
|
|
|
+ }}</p>
|
|
|
<p>{{ current2 == 1 ? '月' : '年' }}出货量/吨</p>
|
|
<p>{{ current2 == 1 ? '月' : '年' }}出货量/吨</p>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -175,7 +176,7 @@
|
|
|
<div>
|
|
<div>
|
|
|
<p>{{ current2 == 1 ? statistics.month.order_count :
|
|
<p>{{ current2 == 1 ? statistics.month.order_count :
|
|
|
statistics.year.order_count
|
|
statistics.year.order_count
|
|
|
- }}</p>
|
|
|
|
|
|
|
+ }}</p>
|
|
|
<p>{{ current2 == 1 ? '月' : '年' }}派单量/单</p>
|
|
<p>{{ current2 == 1 ? '月' : '年' }}派单量/单</p>
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
@@ -223,7 +224,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="tbody">
|
|
<div class="tbody">
|
|
|
<vue-seamless-scroll :data="abnormal" class="seamless-warp"
|
|
<vue-seamless-scroll :data="abnormal" class="seamless-warp"
|
|
|
- style="height: 110px;" :class-option="{
|
|
|
|
|
|
|
+ style="height: 370px;" :class-option="{
|
|
|
step: 2, // 数值越大速度滚动越快
|
|
step: 2, // 数值越大速度滚动越快
|
|
|
limitMoveNum: abnormal.length, // 开始无缝滚动的数据量 this.dataList.length
|
|
limitMoveNum: abnormal.length, // 开始无缝滚动的数据量 this.dataList.length
|
|
|
hoverStop: true, // 是否开启鼠标悬停stop
|
|
hoverStop: true, // 是否开启鼠标悬停stop
|
|
@@ -246,17 +247,23 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="right">
|
|
|
|
|
+ <div class="right_content">
|
|
|
|
|
+
|
|
|
<div class="rightcontent2">
|
|
<div class="rightcontent2">
|
|
|
<div class="title2">过磅记录数据库</div>
|
|
<div class="title2">过磅记录数据库</div>
|
|
|
- <div class="list" style="overflow: hidden;">
|
|
|
|
|
|
|
+ <div class="list" style="overflow: hidden;margin-top: 17px;">
|
|
|
<vue-seamless-scroll :data="overweightRecord" class="seamless-warp"
|
|
<vue-seamless-scroll :data="overweightRecord" class="seamless-warp"
|
|
|
- style="height: 150px;" :class-option="{
|
|
|
|
|
|
|
+ style="height: 820px;" :class-option="{
|
|
|
step: 2, // 数值越大速度滚动越快
|
|
step: 2, // 数值越大速度滚动越快
|
|
|
limitMoveNum: overweightRecord.length, // 开始无缝滚动的数据量 this.dataList.length
|
|
limitMoveNum: overweightRecord.length, // 开始无缝滚动的数据量 this.dataList.length
|
|
|
hoverStop: true, // 是否开启鼠标悬停stop
|
|
hoverStop: true, // 是否开启鼠标悬停stop
|
|
|
direction: 1, // 0向下 1向上 2向左 3向右
|
|
direction: 1, // 0向下 1向上 2向左 3向右
|
|
|
openWatch: true, // 开启数据实时监控刷新dom
|
|
openWatch: true, // 开启数据实时监控刷新dom
|
|
|
- singleHeight: 104, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
|
|
|
|
|
|
|
+ singleHeight: 110, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
|
|
|
singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
|
|
singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
|
|
|
waitTime: 1000 // 单步运动停止的时间(默认值1000ms)
|
|
waitTime: 1000 // 单步运动停止的时间(默认值1000ms)
|
|
|
}">
|
|
}">
|
|
@@ -452,8 +459,11 @@ export default {
|
|
|
}, 2 * 60 * 1000)
|
|
}, 2 * 60 * 1000)
|
|
|
},
|
|
},
|
|
|
getApi2() {
|
|
getApi2() {
|
|
|
|
|
+
|
|
|
//地磅数据统计
|
|
//地磅数据统计
|
|
|
POST(`${this.$config.api}/large_screen/getTodayCompanyWbStatistics`).then(res => {
|
|
POST(`${this.$config.api}/large_screen/getTodayCompanyWbStatistics`).then(res => {
|
|
|
|
|
+ console.log(res);
|
|
|
|
|
+
|
|
|
this.topChartList = [
|
|
this.topChartList = [
|
|
|
{ title: '总入场车次/辆', value: this.numberSplit(res.data.total_arrival_vehicle_count) },
|
|
{ title: '总入场车次/辆', value: this.numberSplit(res.data.total_arrival_vehicle_count) },
|
|
|
{ title: '总出场车次/辆', value: this.numberSplit(res.data.total_departure_vehicle_count) },
|
|
{ title: '总出场车次/辆', value: this.numberSplit(res.data.total_departure_vehicle_count) },
|
|
@@ -461,9 +471,11 @@ export default {
|
|
|
{ title: '当前场内车辆/辆', value: this.numberSplit(res.data.current_field_vehicle_count) },
|
|
{ title: '当前场内车辆/辆', value: this.numberSplit(res.data.current_field_vehicle_count) },
|
|
|
{ title: '异常过磅/辆', value: this.numberSplit(res.data.exception_overweight_vehicle_count) },
|
|
{ title: '异常过磅/辆', value: this.numberSplit(res.data.exception_overweight_vehicle_count) },
|
|
|
]
|
|
]
|
|
|
|
|
+
|
|
|
pie.title[1].text = `${res.data.congestion_rate}%`
|
|
pie.title[1].text = `${res.data.congestion_rate}%`
|
|
|
pie.series[0].data = [res.data.congestion_rate]
|
|
pie.series[0].data = [res.data.congestion_rate]
|
|
|
this.pie = pie
|
|
this.pie = pie
|
|
|
|
|
+
|
|
|
pie2.title[1].text = `${res.data.exception_rate}%`
|
|
pie2.title[1].text = `${res.data.exception_rate}%`
|
|
|
pie2.series[0].data = [res.data.exception_rate]
|
|
pie2.series[0].data = [res.data.exception_rate]
|
|
|
this.pie2 = pie2
|
|
this.pie2 = pie2
|
|
@@ -539,9 +551,9 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
numberSplit(num) {
|
|
numberSplit(num) {
|
|
|
- const targetLength = 5; // 目标数组长度
|
|
|
|
|
- const digits = Array.from(String(num), Number); // [1, 2, 3]
|
|
|
|
|
- const zerosToAdd = targetLength - digits.length; // 需要补的 0 的数量
|
|
|
|
|
|
|
+ const targetLength = 6; // 目标数组长度
|
|
|
|
|
+ const digits = Array.from(String(num.toFixed(0)), Number); // [1, 2, 3]
|
|
|
|
|
+ const zerosToAdd =(targetLength > digits.length)? targetLength - digits.length : digits.length; // 需要补的 0 的数量
|
|
|
const result = Array(zerosToAdd).fill(0).concat(digits);
|
|
const result = Array(zerosToAdd).fill(0).concat(digits);
|
|
|
return result
|
|
return result
|
|
|
},
|
|
},
|
|
@@ -700,10 +712,11 @@ export default {
|
|
|
left: 0;
|
|
left: 0;
|
|
|
height: calc(100% - 20px);
|
|
height: calc(100% - 20px);
|
|
|
z-index: 1;
|
|
z-index: 1;
|
|
|
- width: calc(100% - 40px);
|
|
|
|
|
|
|
+ width: calc(100% - 120px);
|
|
|
background: url(../../assets/newimg/waikuang.png) no-repeat;
|
|
background: url(../../assets/newimg/waikuang.png) no-repeat;
|
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
|
- margin: 0 20px;
|
|
|
|
|
|
|
+ margin: 0 60px;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
|
|
|
.title1 {
|
|
.title1 {
|
|
|
width: 220px;
|
|
width: 220px;
|
|
@@ -795,7 +808,8 @@ export default {
|
|
|
|
|
|
|
|
.contain {
|
|
.contain {
|
|
|
margin-top: 122px;
|
|
margin-top: 122px;
|
|
|
- padding: 0 20px;
|
|
|
|
|
|
|
+ padding: 0 34px;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
|
|
|
.content_title {
|
|
.content_title {
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
@@ -937,7 +951,7 @@ export default {
|
|
|
|
|
|
|
|
.midMap {
|
|
.midMap {
|
|
|
width: 1546px;
|
|
width: 1546px;
|
|
|
- height: 1000px;
|
|
|
|
|
|
|
+ flex: 1;
|
|
|
background: url(../../assets/newimg/midbottom.png) no-repeat;
|
|
background: url(../../assets/newimg/midbottom.png) no-repeat;
|
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
|
position: relative;
|
|
position: relative;
|
|
@@ -966,7 +980,7 @@ export default {
|
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
|
height: 120px;
|
|
height: 120px;
|
|
|
- padding: 0 18px;
|
|
|
|
|
|
|
+ padding: 0 64px;
|
|
|
margin-bottom: 4px;
|
|
margin-bottom: 4px;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
@@ -985,12 +999,20 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.num_item {
|
|
.num_item {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ margin-top: 9px;
|
|
|
|
|
+
|
|
|
.num_title {
|
|
.num_title {
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
|
line-height: 18px;
|
|
line-height: 18px;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
|
|
+
|
|
|
|
|
+ img {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ top: 5px;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.num_value {
|
|
.num_value {
|
|
@@ -1090,20 +1112,24 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.right {
|
|
.right {
|
|
|
- width: 464px;
|
|
|
|
|
|
|
+ width: 601px;
|
|
|
|
|
+ height: 925px;
|
|
|
|
|
+ padding: 28px 45px;
|
|
|
|
|
+ background: url(../../assets/newimg/right2.png) no-repeat;
|
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ margin-left: 20px;
|
|
|
|
|
|
|
|
.rightcontent2 {
|
|
.rightcontent2 {
|
|
|
- width: 464px;
|
|
|
|
|
- height: 209px;
|
|
|
|
|
|
|
+
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
- background: url(../../assets/newimg/right2.png) no-repeat;
|
|
|
|
|
- background-size: 100% 100%;
|
|
|
|
|
|
|
+
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
- padding: 14px 30px;
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
.list {
|
|
.list {
|
|
|
.item {
|
|
.item {
|
|
|
- width: 400px;
|
|
|
|
|
|
|
+ width: 601px;
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
padding: 10px;
|
|
padding: 10px;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
@@ -1254,7 +1280,7 @@ export default {
|
|
|
|
|
|
|
|
.a1 {
|
|
.a1 {
|
|
|
top: 50px;
|
|
top: 50px;
|
|
|
- left: 50px;
|
|
|
|
|
|
|
+ left: 25px;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
|
|
|
|
@@ -1278,7 +1304,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
height: 98px;
|
|
height: 98px;
|
|
|
- width: 398px;
|
|
|
|
|
|
|
+ width: 100%;
|
|
|
background: url(../../assets/newimg/zhibiao2.png) no-repeat;
|
|
background: url(../../assets/newimg/zhibiao2.png) no-repeat;
|
|
|
background-size: 100%;
|
|
background-size: 100%;
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -1305,7 +1331,7 @@ export default {
|
|
|
.rightcontentitem1 {
|
|
.rightcontentitem1 {
|
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
|
height: 98px;
|
|
height: 98px;
|
|
|
- width: 398px;
|
|
|
|
|
|
|
+ width: 100%;
|
|
|
background: url(../../assets/newimg/zhibiao1.png) no-repeat;
|
|
background: url(../../assets/newimg/zhibiao1.png) no-repeat;
|
|
|
background-size: 100%;
|
|
background-size: 100%;
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -1331,11 +1357,9 @@ export default {
|
|
|
|
|
|
|
|
.rightcontent1 {
|
|
.rightcontent1 {
|
|
|
position: relative;
|
|
position: relative;
|
|
|
- width: 464px;
|
|
|
|
|
|
|
+ width: 100%;
|
|
|
height: 428px;
|
|
height: 428px;
|
|
|
- padding: 14px 30px;
|
|
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
- background: url(../../assets/newimg/right1.png) no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1492,6 +1516,7 @@ export default {
|
|
|
width: 601px !important;
|
|
width: 601px !important;
|
|
|
height: 925px !important;
|
|
height: 925px !important;
|
|
|
background: url('../../assets/newimg/newLeftBG.png') no-repeat !important;
|
|
background: url('../../assets/newimg/newLeftBG.png') no-repeat !important;
|
|
|
- background-size: 100% 100%;
|
|
|
|
|
|
|
+ background-size: 100% 100% !important;
|
|
|
|
|
+ box-sizing: border-box !important;
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|