Commit 820d663d by zhangquan

bug修复

1 parent 13d5ac05
......@@ -42,18 +42,18 @@ export default {
drawBarLine() {
this.barLineOptions = {
grid: {
right: '19%',
left: '15%'
right: '5%',
left: `${this.linetype == 1 ? '13%' : '5%'}`
},
xAxis: {
type: 'category',
name: (this.linetype == 1 ? '周' : '天')+(this.lineChartsYear && '\n('+this.lineChartsYear + '年'+')'),
// name: (this.linetype == 1 ? '周' : '天')+(this.lineChartsYear && '\n('+this.lineChartsYear + '年'+')'),
// nameLocation: 'center',
// nameGap: 20,
nameTextStyle: {
fontSize: 10,
lineHeight: 16
},
// nameTextStyle: {
// fontSize: 10,
// lineHeight: 16
// },
boundaryGap: false,//坐标轴两边留白
data: this.xAxisData,
axisLabel: { //坐标轴刻度标签的相关设置。
......
......@@ -70,6 +70,7 @@
<!-- 用车行为分析 -->
<div class="use-car-box">
<div class="title">用车行为分析</div>
<div class="x-name"><span>{{ linetype== 1 ? '周' : '天' }}</span><span v-if="lineChartsYear">-{{ lineChartsYear }}年</span></div>
<div class="line-charts" v-if="xAxisDataList.length">
<LineCharts id="useCarCharts" ref="useCarChartsRef" height="250px" :linetype="linetype" :dataList="useCarData"
:xAxisData="xAxisDataList" :lineChartsYear="lineChartsYear"></LineCharts>
......@@ -353,6 +354,27 @@ export default {
</script>
<style lang="scss" scoped>
.analy-box, .detail-box{
/* 修改垂直滚动条 */
&::-webkit-scrollbar {
width: 2px; /* 修改宽度 */
}
/* 修改滚动条轨道背景色 */
&::-webkit-scrollbar-track {
background-color: #fff;
}
/* 修改滚动条滑块颜色 */
&::-webkit-scrollbar-thumb {
background-color: #181c36e6;
}
/* 修改滚动条滑块悬停时的颜色 */
&::-webkit-scrollbar-thumb:hover {
background-color: #181c36e6;
}
}
.main-container {
position: fixed;
width: calc(100% - 200px);
......@@ -642,7 +664,13 @@ export default {
padding: 16px;
box-shadow: 0 4px 6px 0 #00000014;
z-index: 9999;
position: relative;
.x-name{
color: #6e7079;
position: absolute;
right: 20px;
top: 30px;
}
.title {
font-weight: 500;
font-size: 14px;
......
......@@ -779,6 +779,7 @@ export default {
return false;
}
this.vidCode = list[0].vid;
localStorage.setItem('vehicleId', list && list[0] ? list[0].vid : null)
for (var i = 0, len = list.length; i < len; i++) {
_this.handleSelect(list[i]);
}
......@@ -821,6 +822,7 @@ export default {
id: item.id,
source: item.source === "有线" ? "1" : "0",
sourceType: item.source,
vid: item.vid
});
} else {
console.log("展开节点", item);
......
......@@ -534,7 +534,7 @@ MapService.prototype = {
riskBtn.classList.add('resident_btn_hidden');
}
riskBtn.onclick = function() {
let id = info.vidCode || localStorage.getItem('vehicleId');
let id = localStorage.getItem('vehicleId');
queryCode = `vehicleId=${id}`
mapService.openPage(`#/monitor/alarmAnalysis?${queryCode}`)
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!