|
@@ -4,142 +4,91 @@
|
|
|
<img
|
|
|
src="@/assets/images/main/cont_title_bg.png"
|
|
|
/>
|
|
|
- <div class="title">公务用车信息概况</div>
|
|
|
+ <div class="title">成本管理</div>
|
|
|
</div>
|
|
|
<div class="dialog-cont">
|
|
|
<div class="dialog-left">
|
|
|
<div class="dialog-list">
|
|
|
- <div class="dialog-item wid100">
|
|
|
- <div class="content-title">
|
|
|
- <span class="title">公务用车数据概况</span>
|
|
|
+ <div class="dialog-item wid100" style="margin: 10px 0">
|
|
|
+ <div class="content-title" style="width: 100%;">
|
|
|
+ <span class="title" style="transform: translate(0,-4px);">成本概况</span>
|
|
|
</div>
|
|
|
- <div class="data-list">
|
|
|
- <div
|
|
|
- v-for="(item, index) in dataList"
|
|
|
- :key="index"
|
|
|
- class="data-item"
|
|
|
- >
|
|
|
- <div class="title-format flex-row align-items-center">
|
|
|
- <img
|
|
|
- src="@/assets/images/main/blue.png"
|
|
|
- class="icon"
|
|
|
- alt=""
|
|
|
- />
|
|
|
- <div class="title-info">
|
|
|
- <span>{{ item.name }}</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="data-detail">
|
|
|
- <div class="data">{{ item.data }}</div>
|
|
|
- <div class="unit">{{ item.unit }}</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="dialog-list">
|
|
|
- <div class="dialog-item wid100">
|
|
|
- <div class="content-left flex-row space-between wid100">
|
|
|
+ <div style="display: flex;justify-content: space-between;color: #00fdeb;width: 100%">
|
|
|
<div>
|
|
|
- <div class="content-title">
|
|
|
- <span class="title">用车单位分布</span>
|
|
|
+ <div style="display: flex;align-items: center;justify-content: center;font-size: 12px">
|
|
|
+ <img src="@/assets/camera/car_cost.png" width="45">公务车总成本
|
|
|
</div>
|
|
|
- <div class="content">
|
|
|
- <div class="charts-cont">
|
|
|
- <pie-chart
|
|
|
- :chart-data="pieData"
|
|
|
- :legend="pieLegend"
|
|
|
- :center="pieCenter"
|
|
|
- width="220px"
|
|
|
- height="150px"
|
|
|
- />
|
|
|
- </div>
|
|
|
+ <div style="font-size: 40px;font-family: 'electronicFont';text-align: center">
|
|
|
+ 56
|
|
|
+ <span style="font-size: 10px;">万元</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <div class="content-title">
|
|
|
- <span class="title">各类车型比例</span>
|
|
|
+ <div style="display: flex;align-items: center;justify-content: center;font-size: 12px">
|
|
|
+ <img src="@/assets/camera/car_cost.png" width="45">单车平均成本
|
|
|
</div>
|
|
|
- <div class="content">
|
|
|
- <div class="charts-cont">
|
|
|
- <pie-chart
|
|
|
- :chart-data="totalPieData"
|
|
|
- :legend="totalPieLegend"
|
|
|
- :center="totalCenter"
|
|
|
- position="left"
|
|
|
- width="220px"
|
|
|
- height="150px"
|
|
|
- />
|
|
|
- </div>
|
|
|
+ <div style="font-size: 40px;font-family: 'electronicFont';text-align: center">
|
|
|
+ 56
|
|
|
+ <span style="font-size: 10px;">万元</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="dialog-list">
|
|
|
- <div class="dialog-item wid100">
|
|
|
- <div class="content-left flex-row space-between wid100">
|
|
|
<div>
|
|
|
- <div class="content-title">
|
|
|
- <span class="title">车辆类型比例</span>
|
|
|
+ <div style="display: flex;align-items: center;justify-content: center;font-size: 12px">
|
|
|
+ <img src="@/assets/camera/car_cost.png" width="45">单车最高成本
|
|
|
</div>
|
|
|
- <div class="content">
|
|
|
- <div class="charts-cont">
|
|
|
- <pie-chart
|
|
|
- :chart-data="catePieData"
|
|
|
- :legend="catePieLegend"
|
|
|
- :center="catePieCenter"
|
|
|
- width="220px"
|
|
|
- height="150px"
|
|
|
- />
|
|
|
- </div>
|
|
|
+ <div style="font-size: 40px;font-family: 'electronicFont';text-align: center">
|
|
|
+ 56
|
|
|
+ <span style="font-size: 10px;">万元</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <div class="content-title">
|
|
|
- <span class="title">各车型数据分析</span>
|
|
|
+ <div style="display: flex;align-items: center;justify-content: center;font-size: 12px">
|
|
|
+ <img src="@/assets/camera/car_cost.png" width="45">单车最低成本
|
|
|
</div>
|
|
|
- <div class="content">
|
|
|
- <div class="charts-cont">
|
|
|
- <bar-chart
|
|
|
- :chart-data="carTypeBarData"
|
|
|
- :x-axis="carTypeBarAxis"
|
|
|
- :yAxis="carTypeBarYAxis"
|
|
|
- :legend="carTypeBarLegend"
|
|
|
- :grid="barGrid"
|
|
|
- y-color="#FFF"
|
|
|
- l-color="#FFF"
|
|
|
- width="220px"
|
|
|
- height="180px"
|
|
|
- />
|
|
|
- </div>
|
|
|
+ <div style="font-size: 40px;font-family: 'electronicFont';text-align: center">
|
|
|
+ 56
|
|
|
+ <span style="font-size: 10px;">万元</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
- <div class="dialog-list">
|
|
|
- <div class="dialog-item wid100">
|
|
|
- <div class="content-title">
|
|
|
- <span class="title">各单位的公务车用车总量</span>
|
|
|
+
|
|
|
+ <div class="dialog-item wid100" style="margin: 40px 0">
|
|
|
+ <div class="content-title" style="width: 100%;">
|
|
|
+ <span class="title" style="transform: translate(0,-4px);">车辆总成本费用分布</span>
|
|
|
</div>
|
|
|
- <div class="content">
|
|
|
- <div class="charts-cont">
|
|
|
- <bar-chart
|
|
|
- :chart-data="carTotalData"
|
|
|
- :x-axis="carTotalAxis"
|
|
|
- :yAxis="carTotalYAxis"
|
|
|
- :legend="carTotalLegend"
|
|
|
- :grid="barGrid"
|
|
|
- y-color="#FFF"
|
|
|
- l-color="#FFF"
|
|
|
- width="550px"
|
|
|
- height="180px"
|
|
|
- />
|
|
|
- </div>
|
|
|
+ <div style="display: flex;width: 100%;align-items: center;justify-content: center">
|
|
|
+ <pie-chart
|
|
|
+ :chart-data="pieData"
|
|
|
+ :legend="pieLegend"
|
|
|
+ :title="pieTitle"
|
|
|
+ width="220px"
|
|
|
+ height="180px"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="dialog-item wid100" style="margin: 10px 0">
|
|
|
+ <div class="content-title" style="width: 100%;">
|
|
|
+ <span class="title" style="transform: translate(0,-4px);">单位成本分布情况</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="overflow: auto;width: 100%;display: flex;flex-direction: column">
|
|
|
+ <div style="background: url('../../../assets/images/building_guarantee/img_11.png') no-repeat;width: 750px;display: flex;justify-content: space-between;color: #00FFFF;margin-bottom: 20px">
|
|
|
+ <div class="row"><span style=" width: 2px;margin-right: 8px;"></span>配置使用单位</div>
|
|
|
+ <div class="row">总车辆数</div>
|
|
|
+ <div class="row">总成本</div>
|
|
|
+ <div class="row">单车平均成本</div>
|
|
|
+ <div class="row">单位使用数量</div>
|
|
|
+ <div class="row">操作</div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;justify-content: space-between;color: white;margin-bottom: 10px" v-for="(item,index) in dataList" :key="index" @click="choose()">
|
|
|
+ <div class="row"><span class="said"></span>{{item.a}}</div>
|
|
|
+ <div class="row">{{item.b}}</div>
|
|
|
+ <div class="row">{{item.c}}</div>
|
|
|
+ <div class="row">{{item.d}}</div>
|
|
|
+ <div class="row">{{item.e}}</div>
|
|
|
+ <div class="row">{{item.f}}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -166,43 +115,26 @@ export default {
|
|
|
return {
|
|
|
// 公务用车资源情况
|
|
|
dataList: [
|
|
|
- {
|
|
|
- name: "公司车辆总量",
|
|
|
- data: "56",
|
|
|
- unit: "辆",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "企业负责人用车量",
|
|
|
- data: "30",
|
|
|
- unit: "辆",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "其他企业用车量",
|
|
|
- data: "26",
|
|
|
- unit: "辆",
|
|
|
- },
|
|
|
+ {a:1,b:1,c:1,d:1,f:1,e:1},
|
|
|
+ {a:1,b:1,c:1,d:1,f:1,e:1},
|
|
|
+ {a:1,b:1,c:1,d:1,f:1,e:1},
|
|
|
+ {a:1,b:1,c:1,d:1,f:1,e:1},
|
|
|
+ {a:1,b:1,c:1,d:1,f:1,e:1},
|
|
|
+ {a:1,b:1,c:1,d:1,f:1,e:1},
|
|
|
+ {a:1,b:1,c:1,d:1,f:1,e:1},
|
|
|
+ {a:1,b:1,c:1,d:1,f:1,e:1},
|
|
|
],
|
|
|
pieData: [
|
|
|
- {
|
|
|
- value: 30,
|
|
|
- name: "企业负责人用车",
|
|
|
- itemStyle: {
|
|
|
- color: "#00FFFF",
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- value: 26,
|
|
|
- name: "企业用车",
|
|
|
- itemStyle: {
|
|
|
- color: "#2F82FE",
|
|
|
- },
|
|
|
- },
|
|
|
+ { value: 110, name: "燃油费" },
|
|
|
+ { value: 120, name: "年检费" },
|
|
|
+ { value: 130, name: "清洗费" },
|
|
|
+ { value: 140, name: "保险费" },
|
|
|
+ { value: 150, name: "修理费" },
|
|
|
+ { value: 150, name: "过路过桥费" },
|
|
|
],
|
|
|
- pieCenter: ["27%", "50%"],
|
|
|
- pieRadius: ["50%", "60%"],
|
|
|
pieLegend: {
|
|
|
+ top: 8,
|
|
|
orient: "vertical",
|
|
|
- top: 60,
|
|
|
right: 0,
|
|
|
itemWidth: 8, // 设置图例标记的宽度
|
|
|
itemHeight: 8, // 设置图例标记的高度
|
|
@@ -210,6 +142,7 @@ export default {
|
|
|
color: "#FFF",
|
|
|
},
|
|
|
},
|
|
|
+ pieTitle: {},
|
|
|
//各类车型
|
|
|
totalPieData: [
|
|
|
{ value: 110, name: "商务车" },
|
|
@@ -370,6 +303,10 @@ export default {
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
|
|
|
+ choose(){
|
|
|
+ this.$emit('choose')
|
|
|
+ },
|
|
|
+
|
|
|
//鼠标移出
|
|
|
leaveFun(){
|
|
|
setTimeout(()=>{
|
|
@@ -385,6 +322,17 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
+.row{
|
|
|
+ flex: 1; /* 每一列均分可用空间 */
|
|
|
+ text-align: left; /* 左对齐文本 */
|
|
|
+}
|
|
|
+
|
|
|
+.said{
|
|
|
+ width: 2px;
|
|
|
+ margin-right: 8px;
|
|
|
+ height: 16px;
|
|
|
+ background-color: #00FFFF;
|
|
|
+}
|
|
|
.car-warning-dialog-area {
|
|
|
overflow: hidden;
|
|
|
width: 580px;
|
|
@@ -438,7 +386,6 @@ export default {
|
|
|
|
|
|
.dialog-list {
|
|
|
width: 100%;
|
|
|
- display: flex;
|
|
|
justify-content: space-between !important;
|
|
|
margin-bottom: 20px;
|
|
|
|