|
@@ -12,7 +12,7 @@
|
|
|
</el-icon>
|
|
|
</div>
|
|
|
<div class="flex_item" style="text-align: center;">
|
|
|
- <div style="line-height: 40px;color: #24fda3;">
|
|
|
+ <div style="line-height: 40px;color: green;">
|
|
|
<span style="font-size: 24px;font-weight: bold;">{{size}}</span>
|
|
|
<span style="font-size:20px;margin-left:5px">㎡</span>
|
|
|
</div>
|
|
@@ -30,7 +30,7 @@
|
|
|
</el-icon>
|
|
|
</div>
|
|
|
<div class="flex_item" style="text-align: center;">
|
|
|
- <div style="line-height: 40px;color: #24fda3;">
|
|
|
+ <div style="line-height: 40px;color: green;">
|
|
|
<span style="font-size: 24px;font-weight: bold;">{{count}}</span>
|
|
|
<span style="font-size:20px;margin-left:5px">户</span>
|
|
|
</div>
|
|
@@ -50,7 +50,7 @@
|
|
|
</el-icon>
|
|
|
</div>
|
|
|
<div class="flex_item" style="text-align: center;">
|
|
|
- <div style="line-height: 40px;color: #24fda3;">
|
|
|
+ <div style="line-height: 40px;color: green;">
|
|
|
<span style="font-size: 24px;font-weight: bold;">{{category}}</span>
|
|
|
<span style="font-size:20px;margin-left:5px">种</span>
|
|
|
</div>
|
|
@@ -68,7 +68,7 @@
|
|
|
</el-icon>
|
|
|
</div>
|
|
|
<div class="flex_item" style="text-align: center;">
|
|
|
- <div style="line-height: 40px;color: #24fda3;">
|
|
|
+ <div style="line-height: 40px;color: green;">
|
|
|
<span style="font-size: 24px;font-weight: bold;">{{cost}}</span>
|
|
|
<span style="font-size:20px;margin-left:5px">元</span>
|
|
|
</div>
|
|
@@ -91,7 +91,7 @@
|
|
|
</el-icon>
|
|
|
<span style="margin-left: 5px;">温度</span>
|
|
|
</div>
|
|
|
- <div style="line-height: 40px;color: #24fda3;">
|
|
|
+ <div style="line-height: 40px;color: yellow;">
|
|
|
<span style="font-size: 24px;font-weight: bold;">{{temp}}</span>
|
|
|
<span style="font-size:20px;margin-left:5px">℃</span>
|
|
|
</div>
|
|
@@ -105,7 +105,7 @@
|
|
|
</el-icon>
|
|
|
<span style="margin-left: 5px;">风速</span>
|
|
|
</div>
|
|
|
- <div style="line-height: 40px;color: #24fda3;">
|
|
|
+ <div style="line-height: 40px;color: yellow;">
|
|
|
<span style="font-size: 24px;font-weight: bold;">{{spedd}}</span>
|
|
|
<span style="font-size:20px;margin-left:5px">km/h</span>
|
|
|
</div>
|
|
@@ -119,7 +119,7 @@
|
|
|
</el-icon>
|
|
|
<span style="margin-left: 5px;">风向</span>
|
|
|
</div>
|
|
|
- <div style="line-height: 40px;color: #24fda3;">
|
|
|
+ <div style="line-height: 40px;color: yellow;">
|
|
|
<span style="font-size: 24px;font-weight: bold;">{{deriction}}</span>
|
|
|
<span style="font-size:20px;margin-left:5px"></span>
|
|
|
</div>
|
|
@@ -135,7 +135,7 @@
|
|
|
</el-icon>
|
|
|
<span style="margin-left: 5px;">湿度</span>
|
|
|
</div>
|
|
|
- <div style="line-height: 40px;color: #24fda3;">
|
|
|
+ <div style="line-height: 40px;color: yellow;">
|
|
|
<span style="font-size: 24px;font-weight: bold;">{{water}}</span>
|
|
|
<span style="font-size:20px;margin-left:5px">rh</span>
|
|
|
</div>
|
|
@@ -149,7 +149,7 @@
|
|
|
</el-icon>
|
|
|
<span style="margin-left: 5px;">光照</span>
|
|
|
</div>
|
|
|
- <div style="line-height: 40px;color: #24fda3;">
|
|
|
+ <div style="line-height: 40px;color: yellow;">
|
|
|
<span style="font-size: 24px;font-weight: bold;">{{lint}}</span>
|
|
|
<span style="font-size:20px;margin-left:5px">lx</span>
|
|
|
</div>
|
|
@@ -163,7 +163,7 @@
|
|
|
</el-icon>
|
|
|
<span style="margin-left: 5px;">降雨量</span>
|
|
|
</div>
|
|
|
- <div style="line-height: 40px;color: #24fda3;">
|
|
|
+ <div style="line-height: 40px;color: yellow;">
|
|
|
<span style="font-size: 24px;font-weight: bold;">{{wend}}</span>
|
|
|
<span style="font-size:20px;margin-left:5px">cm</span>
|
|
|
</div>
|
|
@@ -185,7 +185,7 @@
|
|
|
<div class="itemtitle flex" style="">
|
|
|
<div class="flex_item">物联网设备状况</div>
|
|
|
<div style="width: 250px;">
|
|
|
- <span class="device_status_item">
|
|
|
+ <span class="device_status_item" style="color: green">
|
|
|
正常({{device.status.ok}})
|
|
|
</span>
|
|
|
<span class="device_status_item" style="color:#FF8A26">
|
|
@@ -213,6 +213,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
@@ -332,24 +333,24 @@
|
|
|
pm2_5: 21,
|
|
|
pm10: 10,
|
|
|
tsp: 11,
|
|
|
- temp: 25,
|
|
|
+ temp: 31,
|
|
|
shidu: 30
|
|
|
}, {
|
|
|
name: '设备A00002',
|
|
|
status: '2',
|
|
|
pm2_5: 11,
|
|
|
- pm10: 1,
|
|
|
+ pm10: 31,
|
|
|
tsp: 11,
|
|
|
- temp: 25,
|
|
|
- shidu: 30
|
|
|
+ temp: 24,
|
|
|
+ shidu: 31
|
|
|
}, {
|
|
|
name: '设备A00003',
|
|
|
status: '1',
|
|
|
pm2_5: 11,
|
|
|
- pm10: 1,
|
|
|
+ pm10: 42,
|
|
|
tsp: 11,
|
|
|
- temp: 25,
|
|
|
- shidu: 30
|
|
|
+ temp: 11,
|
|
|
+ shidu: 20
|
|
|
}, {
|
|
|
name: '设备A00004',
|
|
|
status: '3',
|
|
@@ -361,35 +362,35 @@
|
|
|
}, {
|
|
|
name: '设备A00005',
|
|
|
status: '1',
|
|
|
- pm2_5: 11,
|
|
|
- pm10: 1,
|
|
|
+ pm2_5: 13,
|
|
|
+ pm10: 29,
|
|
|
tsp: 11,
|
|
|
- temp: 25,
|
|
|
- shidu: 30
|
|
|
+ temp: 27,
|
|
|
+ shidu: 32
|
|
|
}, {
|
|
|
name: '设备A00006',
|
|
|
status: '1',
|
|
|
- pm2_5: 11,
|
|
|
- pm10: 1,
|
|
|
+ pm2_5: 21,
|
|
|
+ pm10: 51,
|
|
|
tsp: 11,
|
|
|
- temp: 25,
|
|
|
- shidu: 30
|
|
|
+ temp: 21,
|
|
|
+ shidu: 19
|
|
|
}, {
|
|
|
name: '设备A00007',
|
|
|
status: '1',
|
|
|
- pm2_5: 11,
|
|
|
- pm10: 1,
|
|
|
+ pm2_5: 16,
|
|
|
+ pm10: 52,
|
|
|
tsp: 11,
|
|
|
- temp: 25,
|
|
|
- shidu: 30
|
|
|
+ temp: 33,
|
|
|
+ shidu: 31
|
|
|
}, {
|
|
|
name: '设备A00008',
|
|
|
status: '2',
|
|
|
- pm2_5: 11,
|
|
|
- pm10: 1,
|
|
|
+ pm2_5: 17,
|
|
|
+ pm10: 42,
|
|
|
tsp: 11,
|
|
|
- temp: 25,
|
|
|
- shidu: 30
|
|
|
+ temp: 31,
|
|
|
+ shidu: 29
|
|
|
}]
|
|
|
},
|
|
|
categorys:['玉米', '水稻', '小麦', '大豆', '青稞', '蔬菜', '水果', '花卉', '薯类', '药材', '蚕豆', '油籽', '蔓青', '大芥', '花生',
|
|
@@ -410,7 +411,7 @@
|
|
|
deriction: '东北',
|
|
|
water: (Math.random(100) * 50).toFixed(0),
|
|
|
lint: (Math.random(100) * 1000).toFixed(0),
|
|
|
- wend: (Math.random(100) * 1000).toFixed(0),
|
|
|
+ wend: (Math.random(40) * 1000).toFixed(0),
|
|
|
}
|
|
|
},
|
|
|
mounted: function() {
|
|
@@ -468,12 +469,12 @@
|
|
|
that.count = (Math.random(100) * 1000).toFixed(0);
|
|
|
that.category = (Math.random(100) * 1000).toFixed(0);
|
|
|
that.cost = (Math.random(100) * 1000).toFixed(0);
|
|
|
- that.temp = (Math.random(100) * 40).toFixed(0);
|
|
|
+ that.temp = (Math.random(40) * 40).toFixed(0);
|
|
|
that.spedd = (Math.random(100) * 100).toFixed(0);
|
|
|
that.deriction = '东南';
|
|
|
that.water = (Math.random(100) * 50).toFixed(0);
|
|
|
that.lint = (Math.random(100) * 1000).toFixed(0);
|
|
|
- that.wend = (Math.random(100) * 1000).toFixed(0);
|
|
|
+ that.wend = (Math.random(40) * 1000).toFixed(0);
|
|
|
//------------------------------
|
|
|
|
|
|
that.emvorromntchart.series[0].data = [(Math.random(100) * 1000).toFixed(0), (Math.random(
|
|
@@ -491,7 +492,7 @@
|
|
|
item.pm2_5 = (Math.random(100) * 100).toFixed(0);
|
|
|
item.pm10 = (Math.random(100) * 100).toFixed(0);
|
|
|
item.tsp = (Math.random(100) * 100).toFixed(0);
|
|
|
- item.temp = (Math.random(100) * 100).toFixed(0);
|
|
|
+ item.temp = (Math.random(40) * 40).toFixed(0);
|
|
|
item.shidu = (Math.random(100) * 100).toFixed(0);
|
|
|
});
|
|
|
//------------------------------
|
|
@@ -537,49 +538,27 @@
|
|
|
rotateEnable: true,
|
|
|
pitchEnable: true,
|
|
|
pitch: 45,
|
|
|
- // rotation: -45,
|
|
|
- // 3D模式,无论你使用的是1.x版本还是2.x版本,都建议开启此项以获得更好的渲染体验
|
|
|
viewMode: '3D',
|
|
|
- // 高德地图支持的初始化地图配置
|
|
|
- // 高德地图初始中心经纬度
|
|
|
center: [115.8540042,28.687547],
|
|
|
- // 高德地图初始缩放级别
|
|
|
zoom: 9,
|
|
|
- // 是否开启resize
|
|
|
resizeEnable: true,
|
|
|
- // 自定义地图样式主题
|
|
|
mapStyle: 'amap://styles/darkblue',
|
|
|
- // 移动过程中实时渲染 默认为true 如数据量较大 建议置为false
|
|
|
renderOnMoving: true,
|
|
|
- // ECharts 图层的 zIndex 默认 2000
|
|
|
- // 从 v1.9.0 起 此配置项已被弃用 请使用 `echartsLayerInteractive` 代替
|
|
|
echartsLayerZIndex: 2019,
|
|
|
- // 设置 ECharts 图层是否可交互 默认为 true
|
|
|
- // 设置为 false 可实现高德地图自身图层交互
|
|
|
- // 此配置项从 v1.9.0 起开始支持
|
|
|
echartsLayerInteractive: true,
|
|
|
- // 是否启用大数据模式 默认为 false
|
|
|
- // 此配置项从 v1.9.0 起开始支持
|
|
|
largeMode: false
|
|
|
- // 说明:如果想要添加卫星、路网等图层
|
|
|
- // 暂时先不要使用layers配置,因为存在Bug
|
|
|
- // 建议使用amap.add的方式,使用方式参见最下方代码
|
|
|
},
|
|
|
series: [{
|
|
|
type: 'effectScatter',
|
|
|
// 使用百度地图坐标系
|
|
|
coordinateSystem: 'amap',
|
|
|
- //设置图形 'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
|
|
|
- // symbol: 'image://http://localhost:3000/src/assets/video.png',
|
|
|
symbol: 'pin',
|
|
|
- // //标记的大小,可以设置成诸如 10 这样单一的数字,也可以用数组分开表示宽和高,例如 [20, 10] 表示标记宽为20,高为10
|
|
|
symbolSize: [20, 20],
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
- color: '#ee6666', //标志颜色
|
|
|
+ color: 'red', //标志颜色
|
|
|
}
|
|
|
},
|
|
|
- // 数据格式跟在 geo 坐标系上一样,每一项都是 [经度,纬度,数值大小,其它维度...]
|
|
|
data: values,
|
|
|
rippleEffect: {
|
|
|
scale: 6,
|
|
@@ -589,16 +568,9 @@
|
|
|
}]
|
|
|
}
|
|
|
|
|
|
- // 使用刚指定的配置项和数据显示图表。
|
|
|
mapchart.setOption(option);
|
|
|
|
|
|
- // // 获取百度地图实例,使用百度地图自带的控件
|
|
|
- // var bmap = myChart.getModel().getComponent('bmap').getBMap();
|
|
|
- // bmap.addControl(new BMap.MapTypeControl());
|
|
|
-
|
|
|
- // 获取 ECharts 高德地图组件
|
|
|
var amapComponent = mapchart.getModel().getComponent('amap');
|
|
|
- // 获取高德地图实例,使用高德地图自带的控件(需要在高德地图js API script标签手动引入)
|
|
|
var amap = amapComponent.getAMap();
|
|
|
// 添加控件
|
|
|
amap.addControl(new AMap.Scale());
|
|
@@ -613,19 +585,8 @@
|
|
|
depth: 2,
|
|
|
styles: {
|
|
|
'fill': function(properties) {
|
|
|
- // properties为可用于做样式映射的字段,包含
|
|
|
- // NAME_CHN:中文名称
|
|
|
- // adcode_pro
|
|
|
- // adcode_cit
|
|
|
- // adcode
|
|
|
- // console.log(properties)
|
|
|
var adcode = properties.adcode;
|
|
|
- // var colors = {};
|
|
|
- // if (!colors[adcode]) {
|
|
|
- // var gb = Math.random() * 155 + 50;
|
|
|
- // colors[adcode] = 'rgb(' + gb + ',' + gb + ',255)';
|
|
|
- // }
|
|
|
- // return colors[adcode];
|
|
|
+
|
|
|
var colors = ['#fac858', '#ee6666', '#91cc75', '#38cafb', '#4caff9', '#4adeca',
|
|
|
'#2aa7ee', '#0270f2', '#488cf7'
|
|
|
];
|
|
@@ -698,7 +659,7 @@
|
|
|
itemStyle: {
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
offset: 0,
|
|
|
- color: '#fac858ff',
|
|
|
+ color: 'green',
|
|
|
},
|
|
|
{
|
|
|
offset: 1,
|
|
@@ -737,8 +698,6 @@
|
|
|
type: "wordCloud",
|
|
|
// 网格大小,各项之间间距
|
|
|
gridSize: 20,
|
|
|
- // 形状 circle 圆,cardioid 心, diamond 菱形,
|
|
|
- // triangle-forward 、triangle 三角,star五角星
|
|
|
shape: 'circle',
|
|
|
// 字体大小范围
|
|
|
sizeRange: [12, 30],
|
|
@@ -831,7 +790,7 @@
|
|
|
}
|
|
|
|
|
|
.deviceitem .deviceitemerror {
|
|
|
- background: #FF5252aa;
|
|
|
+ background: #FF5252;
|
|
|
}
|
|
|
|
|
|
.newitem {
|