Commit 03ca1884 by 胡悦

Merge branch 'master' of 192.168.3.233:glsx-web/glsx-oss-insurance

2 parents 38d3853c da31288b
......@@ -822,28 +822,34 @@ export default {
// this.onMapBack(AMap,heatMapData)
// })
loadMap().then(AMap=>{
var map = new AMap.Map('map',{
loadMap().then(AMap => {
var map = new AMap.Map('map', {
resizeEnable: true,
center:[103.048078,36.383814],
center: [103.048078, 36.383814],
zoom: 3,
mapStyle: "amap://styles/darkblue"
mapStyle: 'amap://styles/darkblue',
zoomEnable: false,
dragEnable: false
})
var heatmap = new AMap.Heatmap(map, {
radius: 10, //给定半径
radius: 8, //给定半径
opacity: [0, 0.8]
})
request.req(devicesMethods.HeatMapIp).then(heatMapData=>{
request.req(devicesMethods.HeatMapIp).then(heatMapData => {
heatmap.setDataSet({
data: heatMapData,
max: 100
max: 100,
gradient: {
0.3: 'blue',
0.5: 'green',
0.7: 'yellow',
0.9: 'red'
}
})
})
})
},
onMapBack(AMap,heatMapData){
},
onMapBack(AMap, heatMapData) {},
onHeatMapDataBack(heatMapData) {
console.log(heatMapData)
},
......@@ -855,10 +861,14 @@ export default {
}
return day
})()
var yData = timeRangeData.map(item => item.sumLogin)
var yData = timeRangeData
.sort((a, b) => a.hour - b.hour)
.map(item => item.sumLogin)
// var yData = timeRangeData
this.initRange(xData, yData)
},
onTrandDataBack(trandData) {
trandData.sort((a, b) => a.day - b.day)
var xData = [],
yData = []
for (const item of trandData) {
......@@ -873,29 +883,30 @@ export default {
rangeChart.setOption({
backgroundColor: '#080b30',
grid: {
top: '15%',
left: '5%',
right: '5%',
bottom: '15%'
// containLabel: true
top: '10%',
left: '6%',
right: '6%',
bottom: '5%',
containLabel: true
},
xAxis: [
{
type: 'category',
axisLine: {
show: false,
lineStyle: {
color: '#999'
color: 'rgba(255, 129, 109,.1)',
width: 1 //这里是为了突出显示加上的
}
},
splitArea: {
// show: true,
color: '#999',
lineStyle: {
color: '#999'
axisTick: {
show: false
},
axisLabel: {
textStyle: {
color: '#999',
fontSize: 12
}
},
boundaryGap: false,
data: xData
}
],
......@@ -906,20 +917,22 @@ export default {
min: 0,
// max: 140,
splitNumber: 4,
splitLine: {
show: true,
lineStyle: {
color: 'rgba(255,255,255,0.1)'
}
},
axisLine: {
show: false,
show: false
},
axisLabel: {
show: false,
show: false
},
axisTick: {
show: false
},
splitLine: {
show: true,
lineStyle: {
color: 'rgba(255, 129, 109, 0.1)',
width: 0.2,
type: 'dashed'
}
}
}
],
......@@ -928,30 +941,30 @@ export default {
type: 'line',
smooth: true, //是否平滑
showAllSymbol: false,
// symbol: 'image://./static/images/guang-circle.png',
// symbol: 'circle',
// symbolSize: 10,
areaStyle: {
symbol: 'none',
itemStyle: {
normal: {
color: new echarts.graphic.LinearGradient(
0,
0,
0,
1,
[
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: 'rgba(108,80,243,0.3)'
color: 'red'
},
{
offset: 1,
color: 'rgba(108,80,243,0)'
color: '#08DFFE'
}
],
false
),
shadowColor: 'rgba(108,80,243, 0.9)',
shadowBlur: 20
global: false // 缺省为 false
}
},
emphasis: {
opacity: 1
}
},
data: yData
......@@ -964,10 +977,11 @@ export default {
trendChart.setOption({
backgroundColor: '#080b30',
grid: {
left: '12%',
top: '5%',
bottom: '12%',
right: '8%'
top: '10%',
left: '5%',
right: '5%',
bottom: '5%',
containLabel: true
},
xAxis: {
data: xData,
......@@ -1029,6 +1043,29 @@ export default {
fontSize: 12,
rotate: 45
},
areaStyle: {
normal: {
color: new echarts.graphic.LinearGradient(
0,
0,
0,
1,
[
{
offset: 0,
color: 'rgba(108,80,243,0.3)'
},
{
offset: 1,
color: 'rgba(108,80,243,0)'
}
],
false
),
shadowColor: 'rgba(108,80,243, 0.9)',
shadowBlur: 20
}
},
itemStyle: {
normal: {
color: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!