|
@@ -19,11 +19,21 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="selt">
|
|
|
|
+ <a-select style="width: 160px" placeholder="请选择" v-model="selt">
|
|
|
|
+ <a-select-option v-for="(d, index) in typeList" :key="index" :value="d.value">{{
|
|
|
|
+ d.lable
|
|
|
|
+ }}</a-select-option>
|
|
|
|
+ </a-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="yh-info">
|
|
|
|
+ <RefuelingStatistics :itemsTime="itemsTime" :selt="selt" />
|
|
|
|
+ </div>
|
|
<div class="main">
|
|
<div class="main">
|
|
<div class="right-box">
|
|
<div class="right-box">
|
|
- <FuelRanking />
|
|
|
|
|
|
+ <FuelRanking :itemsTime="itemsTime" :selt="selt" />
|
|
<div>
|
|
<div>
|
|
- <FuelRegistration />
|
|
|
|
|
|
+ <FuelRegistration :itemsTime="itemsTime" :selt="selt" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="main-box">
|
|
<div class="main-box">
|
|
@@ -38,10 +48,10 @@
|
|
<div class="main-tab">
|
|
<div class="main-tab">
|
|
<img class="tab-left" src="../../assets/vehicle/left.png" alt="" @click="changeTab('油卡分配')" />
|
|
<img class="tab-left" src="../../assets/vehicle/left.png" alt="" @click="changeTab('油卡分配')" />
|
|
<span class="tab-text">{{ text }}</span>
|
|
<span class="tab-text">{{ text }}</span>
|
|
- <img class="tab-right" src="../../assets/vehicle/right.png" alt="" @click="changeTab('消防车辆分配')" />
|
|
|
|
|
|
+ <img class="tab-right" src="../../assets/vehicle/right.png" alt="" @click="changeTab('消防车辆分配')" />
|
|
</div>
|
|
</div>
|
|
- <unit3D v-if="text=='油卡分配'" :fierList="fierList" />
|
|
|
|
- <unit3Ds v-else-if="text=='消防车辆分配'" :carsList2="carsList2"/>
|
|
|
|
|
|
+ <unit3D v-if="text == '油卡分配'" :fierList="fierList" />
|
|
|
|
+ <unit3Ds v-else-if="text == '消防车辆分配'" :carsList2="carsList2" />
|
|
<div class="right-car">
|
|
<div class="right-car">
|
|
<div style="display: flex; justify-content: space-around; margin-top: 8px">
|
|
<div style="display: flex; justify-content: space-around; margin-top: 8px">
|
|
<span style="color: #70fffd; font-size: 20px">消防车辆分配</span>
|
|
<span style="color: #70fffd; font-size: 20px">消防车辆分配</span>
|
|
@@ -58,6 +68,12 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="can-set">
|
|
|
|
+ <div @click="changeTime('CURRENT_WEEK')" :class="addChangeTime('CURRENT_WEEK')">本周</div>
|
|
|
|
+ <div @click="changeTime('CURRENT_MONTH')" :class="addChangeTime('CURRENT_MONTH')">本月</div>
|
|
|
|
+ <div @click="changeTime('CURRENT_YEAR')" :class="addChangeTime('CURRENT_YEAR')">本年</div>
|
|
|
|
+ <div @click="changeTime('ALL')" :class="addChangeTime('ALL')">全部</div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -74,7 +90,13 @@ import unit3D from './components/unit3D'
|
|
import cardDistribution from './components/cardDistribution'
|
|
import cardDistribution from './components/cardDistribution'
|
|
import VehicleCarAllocation from './components/VehicleCarAllocation'
|
|
import VehicleCarAllocation from './components/VehicleCarAllocation'
|
|
import unit3Ds from './unit3Ds'
|
|
import unit3Ds from './unit3Ds'
|
|
-import {getAllocationForCar,getTypeProportionForCar,getDistributionForFuelCard,getDistributionForCar} from '@/api/vehicle.js'
|
|
|
|
|
|
+import RefuelingStatistics from './components/RefuelingStatistics.vue'
|
|
|
|
+import {
|
|
|
|
+ getAllocationForCar,
|
|
|
|
+ getTypeProportionForCar,
|
|
|
|
+ getDistributionForFuelCard,
|
|
|
|
+ getDistributionForCar,
|
|
|
|
+} from '@/api/vehicle.js'
|
|
export default {
|
|
export default {
|
|
mixins: [drawMixin],
|
|
mixins: [drawMixin],
|
|
components: {
|
|
components: {
|
|
@@ -85,7 +107,8 @@ export default {
|
|
unit3D,
|
|
unit3D,
|
|
cardDistribution,
|
|
cardDistribution,
|
|
VehicleCarAllocation,
|
|
VehicleCarAllocation,
|
|
- unit3Ds
|
|
|
|
|
|
+ unit3Ds,
|
|
|
|
+ RefuelingStatistics,
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -94,14 +117,29 @@ export default {
|
|
dateDay: null,
|
|
dateDay: null,
|
|
weekday: ['周日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
|
|
weekday: ['周日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
|
|
loading: true,
|
|
loading: true,
|
|
- fierList: [
|
|
|
|
|
|
+ fierList: [],
|
|
|
|
+ carsList2: [],
|
|
|
|
+ text: '消防车辆分配',
|
|
|
|
+ allocationList: [],
|
|
|
|
+ carTypeLists: [],
|
|
|
|
+ yCardList: [],
|
|
|
|
+ dataList: [],
|
|
|
|
+ typeList: [
|
|
|
|
+ {
|
|
|
|
+ lable: '全部',
|
|
|
|
+ value: 3,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ lable: '消防车',
|
|
|
|
+ value: 1,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ lable: '公务车',
|
|
|
|
+ value: 2,
|
|
|
|
+ },
|
|
],
|
|
],
|
|
- carsList2:[],
|
|
|
|
- text:'消防车辆分配',
|
|
|
|
- allocationList:[],
|
|
|
|
- carTypeLists:[],
|
|
|
|
- yCardList:[],
|
|
|
|
- dataList:[],
|
|
|
|
|
|
+ selt:3,
|
|
|
|
+ itemsTime:'CURRENT_WEEK'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -119,13 +157,13 @@ export default {
|
|
this.dateWeek = this.weekday[new Date().getDay()]
|
|
this.dateWeek = this.weekday[new Date().getDay()]
|
|
}, 1000)
|
|
}, 1000)
|
|
},
|
|
},
|
|
- changeTab(val){
|
|
|
|
- if(val=='油卡分配'){
|
|
|
|
- this.fierList=this.yCardList
|
|
|
|
- }else if(val=='消防车辆分配'){
|
|
|
|
- this.carsList2=this.allocationList
|
|
|
|
- }
|
|
|
|
- this.text=val
|
|
|
|
|
|
+ changeTab(val) {
|
|
|
|
+ if (val == '油卡分配') {
|
|
|
|
+ this.fierList = this.yCardList
|
|
|
|
+ } else if (val == '消防车辆分配') {
|
|
|
|
+ this.carsList2 = this.allocationList
|
|
|
|
+ }
|
|
|
|
+ this.text = val
|
|
},
|
|
},
|
|
cancelLoading() {
|
|
cancelLoading() {
|
|
setTimeout(() => {}, 500)
|
|
setTimeout(() => {}, 500)
|
|
@@ -133,37 +171,43 @@ export default {
|
|
toManage() {
|
|
toManage() {
|
|
this.$router.push({ path: '/cardiot' })
|
|
this.$router.push({ path: '/cardiot' })
|
|
},
|
|
},
|
|
- funAllocationForCar(){
|
|
|
|
- getAllocationForCar().then(res=>{
|
|
|
|
|
|
+ funAllocationForCar() {
|
|
|
|
+ getAllocationForCar().then((res) => {
|
|
// console.log('--------油卡分配',res);
|
|
// console.log('--------油卡分配',res);
|
|
- this.allocationList=res.data
|
|
|
|
-
|
|
|
|
- this.carsList2=this.allocationList
|
|
|
|
|
|
+ this.allocationList = res.data
|
|
|
|
+
|
|
|
|
+ this.carsList2 = this.allocationList
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- funTypeProportionForCar(){
|
|
|
|
- getTypeProportionForCar().then(res=>{
|
|
|
|
- this.carTypeLists=res.data
|
|
|
|
|
|
+ funTypeProportionForCar() {
|
|
|
|
+ getTypeProportionForCar().then((res) => {
|
|
|
|
+ this.carTypeLists = res.data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- funDistributionForFuelCard(){
|
|
|
|
- getDistributionForFuelCard().then(res=>{
|
|
|
|
- this.yCardList=res.data
|
|
|
|
- this.fierList=this.yCardList
|
|
|
|
|
|
+ funDistributionForFuelCard() {
|
|
|
|
+ getDistributionForFuelCard().then((res) => {
|
|
|
|
+ this.yCardList = res.data
|
|
|
|
+ this.fierList = this.yCardList
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- funDistributionForCar(){
|
|
|
|
- getDistributionForCar().then(res=>{
|
|
|
|
- this.dataList=res.data
|
|
|
|
|
|
+ funDistributionForCar() {
|
|
|
|
+ getDistributionForCar().then((res) => {
|
|
|
|
+ this.dataList = res.data
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ changeTime(val){
|
|
|
|
+ this.itemsTime=val
|
|
|
|
+ },
|
|
|
|
+ addChangeTime(ev){
|
|
|
|
+ return this.itemsTime==ev?'active':''
|
|
|
|
+ },
|
|
},
|
|
},
|
|
- created(){
|
|
|
|
|
|
+ created() {
|
|
this.funAllocationForCar()
|
|
this.funAllocationForCar()
|
|
this.funTypeProportionForCar()
|
|
this.funTypeProportionForCar()
|
|
this.funDistributionForFuelCard()
|
|
this.funDistributionForFuelCard()
|
|
this.funDistributionForCar()
|
|
this.funDistributionForCar()
|
|
- }
|
|
|
|
|
|
+ },
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -306,5 +350,57 @@ export default {
|
|
height: 980px;
|
|
height: 980px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .selt {
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 65%;
|
|
|
|
+ top: 11%;
|
|
|
|
+ z-index: 999999;
|
|
|
|
+ /deep/.ant-select-selection--single {
|
|
|
|
+ width: 180px;
|
|
|
|
+ stroke-width: 1px;
|
|
|
|
+ background: rgba(0, 163, 255, 0.3);
|
|
|
|
+ height: 45px;
|
|
|
|
+ color: #70fffd;
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+ /deep/.ant-select-arrow .ant-select-arrow-icon {
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ color: #70fffd;
|
|
|
|
+ }
|
|
|
|
+ /deep/.ant-select-selection__rendered {
|
|
|
|
+ left: 55px;
|
|
|
|
+ line-height: 39px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .yh-info {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 16%;
|
|
|
|
+ left: 26%;
|
|
|
|
+ }
|
|
|
|
+ .can-set {
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 10%;
|
|
|
|
+ left: 70%;
|
|
|
|
+ text-align: center;
|
|
|
|
+ text-shadow: 0px 2px 6px #001751;
|
|
|
|
+ font-family: '仿宋';
|
|
|
|
+ font-size: 22px;
|
|
|
|
+ font-style: normal;
|
|
|
|
+ font-weight: 600;
|
|
|
|
+ line-height: 38px; /* 172.727% */
|
|
|
|
+ letter-spacing: 0.88px;
|
|
|
|
+ color: #cae2ff;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+.active{
|
|
|
|
+ width: 107px;
|
|
|
|
+ height: 51px;
|
|
|
|
+ background: url('../../assets/vehicle/xz-btn.png') no-repeat;
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ text-align: center;
|
|
|
|
+ color: rgba(252, 255, 126, 0.95);
|
|
|
|
+ line-height: 51px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|