فهرست منبع

测报灯完成

yf_zd 5 سال پیش
والد
کامیت
a555def4c3

+ 93 - 33
bigdata2/src/pages/forecasting/cbd/Cbd.vue

@@ -1,5 +1,5 @@
 <template>
-	<div>
+	<div v-loading="pageLoading">
 		<el-breadcrumb separator-class="el-icon-arrow-right">
 			<el-breadcrumb-item>虫情测报</el-breadcrumb-item>
 		</el-breadcrumb>
@@ -9,12 +9,7 @@
 				<el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="6" v-for="item in equipList" :key="item.imei">
 					<el-card class="box-card">
 						<equip-item :is_online="item.device_status">
-							<span
-								v-show="userType==1"
-								slot="set"
-								class="superOperate el-icon-setting"
-								@click="equipOperation(item.d_id)"
-							></span>
+							
 							<span slot="title">虫情测报</span>
 							<div slot="content" class="content">
 								<p>
@@ -42,9 +37,10 @@
 								<p class="btns">
 									<i class="iconfont icon-yemiancaozuo"></i>
 									<el-button size="mini" type="info" @click="viewPhotoDialog(item.device_id,item.d_id)">查看图片</el-button>
-									<el-button size="mini" type="warning" @click="EquipControl(item.d_id)">设备控制</el-button>
-									<el-button size="mini" type="success" @click="showTimeControlDialog(item.device_id)">害虫统计</el-button>
-									<el-button size="mini" type="danger" @click="dataDetails(item.device_id,item.d_id)">数据详情</el-button>
+									<el-button size="mini" type="warning" @click="EquipControl(item.device_id)">设备控制</el-button>
+									<!-- <el-button size="mini" type="success" v-if="item.disc==1" @click="showTimeControlDialog(item.device_id)">害虫统计</el-button> -->
+									<el-button size="mini" type="success" @click="showTimeControlDialog(item.device_id,item.device_name,item.address)">害虫统计</el-button>
+									<el-button size="mini" type="danger" @click="dataDetails(item.device_id,item.device_name,item.address)">数据详情</el-button>
 								</p>
 							</div>
 						</equip-item>
@@ -78,12 +74,12 @@
 							<el-button
 								size="mini"
 								type="success"
-								@click="showTimeControlDialog(scope.row.device_id)"
+								@click="showTimeControlDialog(scope.row.device_id,scope.row.device_name,scope.row.address)"
 							>害虫统计</el-button>
 							<el-button
 								size="mini"
 								type="danger"
-								@click="dataDetails(scope.row.device_id,scope.row.d_id)"
+								@click="dataDetails(scope.row.device_id,scope.row.device_name,scope.row.address)"
 							>数据详情</el-button>
 						</template>
 					</el-table-column>
@@ -252,7 +248,9 @@ export default {
 			equipList: [],
 			// 设备加载loading
 			tableLoading : true,
+			pageLoading:false,
 			device_id: '',
+			currid:'',//选中配置设备id
 			ws: 0, //工作模式
 			equipContrlForm: {
 				st: '',
@@ -342,9 +340,9 @@ export default {
 			this.getEquipList()
 		},
 		// 数据详情
-		dataDetails(e_id, d_id) {
+		dataDetails(e_id, name,address) {
 			this.device_id = e_id
-			this.$router.push(`/index/cbdDataDetails/${e_id}/${d_id}`)
+			this.$router.push({path:`/index/cbdDataDetails`,query:{id:e_id,name,address}})
 		},
 		// 查看图片
 		viewPhotoDialog(id,d_id) {
@@ -352,38 +350,98 @@ export default {
 			this.$router.push({path:`/index/cbdDataPhotos/${id}`,query: {d_id:d_id}})
 		},
 		//设备控制
-		EquipControl(d_id) {
-			this.d_id = d_id
+		EquipControl(id) {
+			this.currid = id;
+			this.pageLoading = true;
 			this.$axios({
 				method: 'POST',
 				url:
-					'/api/api_gateway?method=forecast.send_control.device_control_info',
-				data: this.qs.stringify({ d_id, get_type: 1 })
+					'/api/cbd_mqtt',
+				data: this.qs.stringify({ 
+					req: 'read',
+					topicid: id,
+					kind: 'paramconf',
+				})
 			}).then((res) => {
-				if (Object.keys(res.data.data).length > 0) {
-					let data = res.data.data
-					this.equipContrlForm = data
+				if(res.data == 0){
+					setTimeout(() => {
+						this.$axios({
+							method: 'POST',
+							url:
+								'/api/equipmanage_cbd',
+							data: this.qs.stringify({
+								req: 'paramconf',
+								id: id,
+							})
+						}).then((res) => {
+							this.pageLoading = false;
+							if(res.data.paramconf){
+								this.equipContrlForm =  eval('('+res.data.paramconf+')')
+							}else{
+								this.equipContrlForm = {
+									collt: 10,
+									datt: 20,
+									et: 6,
+									hst: 85,
+									htim: 10,
+									shake: 0,
+									shake_sec: 1,
+									st: 20,
+									tph: 70,
+									tpl: 5,
+									ts: 1,
+									tt: 8,
+									imgres:1
+								 }
+							}
+							this.equipControlDialogVisible = true
+							
+						},error => {
+							this.pageLoading = false;
+							this.$message({
+								type: 'error',
+								message: '请求失败'
+							})
+						})
+						
+					},3000)
 				}
-				this.equipControlDialogVisible = true
+			},error => {
+				this.pageLoading = false;
+				this.$message({
+					type: 'error',
+					message: '请求失败'
+				})
 			})
 		},
 		//设备控制提交
 		equipControlSubm() {
+			var dat = {
+				dropTime:this.equipContrlForm.collt,
+				dataUpTime:this.equipContrlForm.datt,
+				end:this.equipContrlForm.et,
+				calefactionTemperature:this.equipContrlForm.hst,
+				calefactionTime:this.equipContrlForm.htim,
+				begin:this.equipContrlForm.st,
+				highLimit:this.equipContrlForm.tph,
+				lowLimit:this.equipContrlForm.tpl,
+				timing:this.equipContrlForm.ts,
+				timingLength:this.equipContrlForm.tt,
+				imgres:this.equipContrlForm.imgres,
+				id:this.currid,
+				req:'set'
+			}
 			this.$axios({
 				method: 'POST',
-				url: '/api/api_gateway?method=forecast.send_control.device_control',
-				data: this.qs.stringify({
-					device_type_id: 3,
-					d_id: this.d_id,
-					config: JSON.stringify(this.equipContrlForm)
-				})
+				url: '/api/cbd_mqtt',
+				data: this.qs.stringify(dat)
 			}).then((res) => {
-				if (res.data.data) {
+				if (res.data==0) {
 					this.$message.success('设备控制修改成功')
+					this.equipControlDialogVisible = false
 				} else {
-					his.$message.error('设备控制修改失败')
+					this.$message.error('设备控制修改失败')
 				}
-				this.equipControlDialogVisible = false
 			})
 		},
 		resetEquipControlDialogClosed() {
@@ -391,9 +449,11 @@ export default {
 			this.ws = 0
 		},
 		//害虫统计
-		showTimeControlDialog(id) {
+		showTimeControlDialog(id,name,address) {
 			this.device_id = id
-			this.$router.push(`/index/pestsStats/${id}`)
+			console.log(name)
+			console.log(address)
+			this.$router.push({path:'/index/pestsStats/',query:{id:id,name:name,address:address}})
 		},
 		//设备控制->工作模式切换
 		wsChange() {

+ 150 - 210
bigdata2/src/pages/forecasting/cbd/DataDetails.vue

@@ -7,15 +7,15 @@
 		</el-breadcrumb>
 		<div class="equipInfo">
 			<div class="equipMsg">
-				<span>设备ID:{{this.$route.params.e_id}}</span>
-				<span>设备名称:{{equipStatus.device_name || '无'}}</span>
-				<span>位置:{{equipStatus.address || "无"}}</span>
+				<span>设备ID:{{this.$route.query.id}}</span>
+				<span>设备名称:{{this.$route.query.name || '无'}}</span>
+				<span>位置:{{this.$route.query.address || "无"}}</span>
 			</div>
 			<DateSearch @dateChange="dateChange"></DateSearch>
 		</div>
 		<div class="ctrl-check">
 			<el-button type="primary" size="mini" @click="refresh">刷新</el-button>
-			<el-button type="primary" size="mini" @click="lookSIMCode('sim')">SIM 卡</el-button>
+			<!-- <el-button type="primary" size="mini" @click="lookSIMCode('sim')">SIM 卡</el-button> -->
 		</div>
 		<!-- 统计图 -->
 		<el-row :gutter="10">
@@ -26,7 +26,7 @@
 							<highcharts :options="options"></highcharts>
 						</template>
 						<template v-else>
-							<div style="text-align:center;font-size:20px;line-height:450px">暂无数据</div>
+							<div style="text-align:center;font-size:20px;line-height:360px">暂无数据</div>
 						</template>
 					</div>
 				</el-card>
@@ -92,17 +92,6 @@
 						<el-col :xs="12" :sm="12" :md="6" :lg="12">
 							<div class="equipStatus">
 								<div class="equipIcon">
-									<img src="@/assets/images/forecasting/cbd/staticIcon6.png" alt />
-								</div>
-								<div class="equipParams">
-									<strong>{{equipStatus.dpds?"打开":"关闭"}}</strong>
-									<p>下仓门</p>
-								</div>
-							</div>
-						</el-col>
-						<el-col :xs="12" :sm="12" :md="6" :lg="12">
-							<div class="equipStatus">
-								<div class="equipIcon">
 									<img src="@/assets/images/forecasting/cbd/staticIcon7.png" alt />
 								</div>
 								<div class="equipParams">
@@ -122,35 +111,13 @@
 								</div>
 							</div>
 						</el-col>
-						<el-col :xs="12" :sm="12" :md="6" :lg="12">
-							<div class="equipStatus">
-								<div class="equipIcon">
-									<img src="@/assets/images/forecasting/cbd/staticIcon9.png" alt />
-								</div>
-								<div class="equipParams">
-									<strong>{{equipStatus.tph}}</strong>
-									<p>高温限值</p>
-								</div>
-							</div>
-						</el-col>
-						<el-col :xs="12" :sm="12" :md="6" :lg="12">
-							<div class="equipStatus">
-								<div class="equipIcon">
-									<img src="@/assets/images/forecasting/cbd/staticIcon10.png" alt />
-								</div>
-								<div class="equipParams">
-									<strong>{{equipStatus.tpl}}</strong>
-									<p>低温限值</p>
-								</div>
-							</div>
-						</el-col>
 					</el-row>
 				</el-card>
 			</el-col>
 		</el-row>
 		<div class="dataTableSearch">
 			<div>
-				<el-button type="primary" size="mini">导出</el-button>
+				<!-- <el-button type="primary" size="mini">导出</el-button> -->
 			</div>
 		</div>
 		<el-card class="box-card" v-if="showControl">
@@ -323,8 +290,7 @@ export default {
 				['雨控状态', 'rps'],
 				['温控状态', 'tps'],
 				['光控状态', 'lps'],
-				['灯管状态', 'blbs'],
-				['信号强度', 'csq'],
+				['电池电压(V)', 'vbat'],
 				['上报时间', 'addtime']
 			],
 			// 表格数据
@@ -333,8 +299,7 @@ export default {
 			queryInfo: {
 				begin: '',
 				end: '',
-				e_id: this.$route.params.e_id,
-				d_id: this.$route.params.d_id,
+				e_id: this.$route.query.e_id,
 				page: 1
 			},
 			//图表实时否有数据
@@ -403,159 +368,142 @@ export default {
 		getChartLine() {
 			this.$axios({
 				method: 'POST',
-				url: '/api/api_gateway?method=forecast.worm_lamp.device_polyline_data',
+				url: '/api/cbd_report_detail_chart',
 				data: this.qs.stringify({
-					device_type_id: 3,
-					// device_id: this.queryInfo.e_id,
-					d_id: this.queryInfo.e_id,
-					start_time: this.queryInfo.begin,
-					end_time: this.queryInfo.end
+					req: 'filter',
+					begin: this.queryInfo.begin,
+					end: this.queryInfo.end,
+					id: this.$route.query.id
 				})
 			}).then((res) => {
-				if (res.data.message == '') {
-					var ChartData = [
-						{
-							name: '温度(°C)',
-							dat: []
-						},
-						{
-							name: '湿度(%)',
-							dat: []
-						},
-						{
-							name: '加热仓温度(°C)',
-							dat: []
-						}
-					]
-					var data = res.data.data
-					this.options = {}
-					if (data.length > 0) {
-						for (let item of data) {
-							ChartData[0].dat.unshift([
-								item.addtime * 1000 + 8 * 3600000,
-								Number(item.temperature)
-							])
-							ChartData[1].dat.unshift([
-								item.addtime * 1000 + 8 * 3600000,
-								Number(item.humidity)
-							])
-							ChartData[2].dat.unshift([
-								item.addtime * 1000 + 8 * 3600000,
-								Number(item.others)
-							])
-						}
-						this.options = {
-							chart: {
-								zoomType: 'x'
-							},
-							title: {
-								text: '环境温湿度',
-								align: 'left'
-							},
-							subtitle: {
-								text: ''
-							},
-							xAxis: {
-								crosshair: true, //十字基准线
-								type: 'datetime',
-								dateTimeLabelFormats: {
-									//根据时间间距X轴自动显示哪种格式
-									millisecond: '%H:%M:%S.%L',
-									second: '%H:%M:%S',
-									minute: '%H:%M',
-									hour: '%H:%M',
-									day: '%m-%d',
-									week: '%m-%d',
-									month: '%Y-%m',
-									year: '%Y'
-								}
-							},
-							yAxis: {
+				if(res.data.length>0){
+					var at = [],ah = [];
+					for(var i = 0;i<res.data.length;i++){
+						at.push([this.returnTime(res.data[i].tim),res.data[i].at])
+						ah.push([this.returnTime(res.data[i].tim),res.data[i].ah])
+						if(i == res.data.length-1){
+							this.options = {
+								chart: {
+									zoomType: 'x',
+									height: 360,
+								},
 								title: {
+									text: '环境温湿度',
+									align: 'left'
+								},
+								subtitle: {
 									text: ''
-								}
-							},
-							legend: {
-								// layout: 'vertical',
-								align: 'right',
-								verticalAlign: 'top'
-							},
-							plotOptions: {
-								series: {
-									label: {
-										connectorAllowed: false
-									},
-									pointStart: 2010
-								}
-							},
-							series: [
-								{
-									name: ChartData[0].name,
-									data: ChartData[0].dat
 								},
-								{
-									name: ChartData[1].name,
-									data: ChartData[1].dat
+								xAxis: {
+									crosshair: true, //十字基准线
+									type: 'datetime',
+									dateTimeLabelFormats: {
+										//根据时间间距X轴自动显示哪种格式
+										millisecond: '%H:%M:%S.%L',
+										second: '%H:%M:%S',
+										minute: '%H:%M',
+										hour: '%H:%M',
+										day: '%m-%d',
+										week: '%m-%d',
+										month: '%Y-%m',
+										year: '%Y'
+									}
 								},
-								{
-									name: ChartData[2].name,
-									data: ChartData[2].dat
-								}
-							],
-							colors: ['#00e29d', '#6cbbff', '#ff3f3f'],
-							credits: {
-								//去掉默认的highcharts.com
-								enabled: false
-							},
-							tooltip: {
-								// crosshairs: true,
-								shared: true, //折线共享
-								headerFormat: '<b>{point.x:%Y-%m-%e %H:%M:%S}</b><br>'
-							},
-							responsive: {
-								rules: [
-									{
-										condition: {
-											maxWidth: 500
+								yAxis: {
+									title: {
+										text: ''
+									}
+								},
+								legend: {
+									// layout: 'vertical',
+									align: 'right',
+									verticalAlign: 'top'
+								},
+								plotOptions: {
+									series: {
+										label: {
+											connectorAllowed: false
 										},
-										chartOptions: {
-											legend: {
-												layout: 'horizontal',
-												align: 'center',
-												verticalAlign: 'bottom'
+										pointStart: 2010
+									}
+								},
+								series: [
+									{
+										name: '环境湿度',
+										data: ah
+									},
+									{
+										name: '环境温度',
+										data: at
+									}
+								],
+								colors: ['#00e29d', '#6cbbff', '#ff3f3f'],
+								credits: {
+									//去掉默认的highcharts.com
+									enabled: false
+								},
+								tooltip: {
+									// crosshairs: true,
+									shared: true, //折线共享
+									headerFormat: '<b>{point.x:%Y-%m-%e %H:%M:%S}</b><br>'
+								},
+								responsive: {
+									rules: [
+										{
+											condition: {
+												maxWidth: 500
+											},
+											chartOptions: {
+												legend: {
+													layout: 'horizontal',
+													align: 'center',
+													verticalAlign: 'bottom'
+												}
 											}
 										}
-									}
-								]
+									]
+								}
 							}
 						}
 					}
+				}else{
+					this.options = {};
 				}
 			})
 		},
+		// 返回时间戳
+		returnTime(time) {
+			var thisTime = time.replace(/-/g, '/');
+			var time = new Date(thisTime);
+			var timestamp = time.getTime() + 8 * 3600000;
+			return timestamp;
+		},
 		// 获取状态信息
 		getEquipStatus() {
 			this.$axios({
 				method: 'POST',
-				url: '/api/api_gateway?method=forecast.worm_lamp.device_status_data',
+				url: '/api/equipmanage_cbd_detail',
 				data: this.qs.stringify({
-					device_id: this.queryInfo.e_id
+					id: this.$route.query.id
 				})
 			}).then((res) => {
-				if (res.data.message == '') {
-					this.equipStatus = res.data.data;
-					if(res.data.data.dver.indexOf('HK') != '-1'){ //判断版本是否包含HK的
-						this.showHksimFlag = true;
-					}else{
-						this.showHksimFlag = false;
-					}
-				}
+					var datStr = res.data[0].cbd_status;
+					var dat = eval('('+datStr+')');
+					this.equipStatus = {
+						dver:dat.dver,
+						csq:dat.csq,
+						upds:dat.upds,
+						hs:dat.hs,
+						gs:dat.gs,
+						ts:dat.ts,
+						device_status:dat.is_online,
+					};
 			})
 		},
 		dateChange(data) {
 			this.queryInfo.page = 1
-			this.queryInfo.begin = data.begin
-			this.queryInfo.end = data.end
+			this.queryInfo.begin = new Date(data.begin*1000).toLocaleDateString().replace(/\//g,'-'); 
+			this.queryInfo.end = new Date(data.end*1000).toLocaleDateString().replace(/\//g,'-'); 
 			this.getChartLine()
 			this.getHisDataList()
 		},
@@ -563,44 +511,33 @@ export default {
 		getHisDataList() {
 			this.$axios({
 				method: 'POST',
-				url: '/api/api_gateway?method=forecast.worm_lamp.device_history_data',
+				url: '/api/cbd_report_detail',
 				data: this.qs.stringify({
-					device_type_id: 3,
-					device_id: this.queryInfo.e_id,
-					start_time: this.queryInfo.begin,
-					end_time: this.queryInfo.end,
-					page: this.queryInfo.page
+					page: this.queryInfo.page,
+					req: 'filter',
+					id: this.$route.query.id,
+					begin: this.queryInfo.begin,
+					end: this.queryInfo.end
 				})
 			}).then((res) => {
-				if (res.data.message == '') {
-					this.total = res.data.data.counts
-					var data = res.data.data.data
-					this.tableData = []
-					if (data.length > 0) {
-						for (var i = 0; i < data.length; i++) {
-							var dht = data[i].d_h_t
-							dht.addtime = this.formatTime(dht.addtime * 1000)
-							dht.rps = dht.rps == 0 ? '正常' : '雨控'
-							dht.tps = dht.tps == 0 ? '正常' : '温控'
-							dht.lps = dht.lps == 0 ? '正常' : '光控'
-							if (dht.lamp != undefined) {
-								if (dht.ws == 1) {
-									if (dht.lamp == 1) {
-										dht.blbs = '工作中'
-									} else if (dht.lux == 0) {
-										dht.blbs = 'N/A(未检测到传感器)'
-									} else {
-										dht.blbs = '异常'
-									}
-								} else {
-									dht.blbs = '关闭'
-								}
-							} else {
-								dht.blbs = '--'
-							}
-							this.tableData.push(dht)
-						}
-					}
+				this.tableData = []
+				this.total = res.data.nums
+				var dat = res.data.dat
+				for (var i = 0; i < dat.length; i++) {
+					var cbd_data = eval('('+dat[i].cbd_data+')')
+					var rps = cbd_data.rps == 0 ? '正常' : '雨控';
+					var tps = cbd_data.tps == 0 ? '正常' : '温控';
+					var lps = cbd_data.lps == 0 ? '正常' : '光控';
+					this.tableData.push({
+						at:cbd_data.at,
+						ah:cbd_data.ah,
+						hrt:cbd_data.hrt,
+						rps:rps,
+						tps:tps,
+						lps:lps,
+						vbat:cbd_data.vbat,
+						addtime:dat[i].upl_time
+					})
 				}
 			})
 		},
@@ -711,14 +648,14 @@ export default {
 		refresh() {
 			this.$axios({
 				method: 'POST',
-				url: '/api/api_gateway?method=forecast.send_control.get_device_config',
+				url: '/api/cbd_mqtt',
 				data: this.qs.stringify({
-					device_type_id: 3,
-					d_id: this.queryInfo.d_id,
-					control_type: 'data'
+					req: 'read',
+					topicid: this.$route.query.id,
+					kind: 'status'
 				})
 			}).then((res) => {
-				if (res.data.data) {
+				if (res.data == 0) {
 					this.$message.success('刷新成功')
 				} else {
 					this.$message.err('刷新失败')
@@ -757,7 +694,10 @@ export default {
 	}
 }
 .charts {
-	height: 450px;
+	height: 360px;
+	highcharts{
+		height: 360px;
+	}
 }
 .equipStatus {
 	display: flex;

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 230 - 841
bigdata2/src/pages/forecasting/cbd/PestsStats.vue


+ 367 - 0
bigdata2/src/pages/forecasting/cbd/cbd_pest_library.js

@@ -0,0 +1,367 @@
+// 害虫库
+var insect_dict = {'1':'金龟子',
+'2':'夜蛾',
+'3':'二点委夜蛾',
+'4':'梨剑纹夜蛾',
+'5':'杨扇舟蛾',
+'6':'舟蛾',
+'7':'旋幽夜蛾',
+'8':'蝼蛄',
+'9':'步甲',
+'10':'螟蛾',
+'11':'毛黄鳃金龟',
+'12':'尺蛾',
+'13':'剑纹夜蛾',
+'14':'粉缘钻夜蛾',
+'15':'夜蛾科',
+'16':'七星瓢虫',
+'17':'棉铃虫',
+'18':'蜻蜓',
+'19':'蚊',
+'20':'东方粘虫',
+'21':'叶蝉',
+'22':'春尺蠖',
+'23':'雄性春尺蠖',
+'24':'杨小舟蛾',
+'25':'甘蓝夜蛾',
+'26':'小地老虎',
+'27':'两点尼夜蛾',
+'28':'柳阴翅斑螟',
+'29':'桑褶翅尺蛾',
+'30':'宽胫夜蛾',
+'31':'尺蠖',
+'32':'一点钻夜蛾',
+'33':'天蛾',
+'34':'裳夜蛾',
+'35':'灯蛾',
+'36':'美国白蛾',
+'37':'八字白眉天蛾',
+'38':'陌夜蛾',
+'39':'豆天蛾',
+'40':'麦蛾',
+'41':'围连环夜蛾',
+'42':'亚美尺蛾',
+'43':'梨星毛虫',
+'44':'银锭夜蛾',
+'45':'黄臀灯蛾',
+'46':'大螟',
+'47':'燕尾舟蛾',
+'48':'榆津尺蛾',
+'49':'朽木夜蛾',
+'50':'黄地老虎',
+'51':'白钩粘夜蛾',
+'52':'桃蛀螟',
+'53':'甜菜夜蛾',
+'54':'斜纹夜蛾',
+'55':'蚀夜蛾',
+'56':'淡银锭夜蛾',
+'57':'齿美冬夜蛾',
+'58':'一点金刚钻',
+'59':'胡桃豹夜蛾',
+'60':'桑剑纹夜蛾',
+'61':'蓝目天蛾',
+'62':'黑绒绢金龟',
+'63':'烟青虫',
+'64':'暗黑鳃金龟',
+'65':'中华绒金龟',
+'66':'八字地老虎',
+'67':'榆绿天蛾',
+'68':'红星雪灯蛾',
+'69':'雀纹天蛾',
+'70':'铜绿丽金龟',
+'71':'水龟虫',
+'72':'曲线尼夜蛾',
+'73':'粘虫',
+'74':'瘦银锭夜蛾',
+'75':'红天蛾',
+'76':'鳃金龟',
+'77':'大黑鳃金龟',
+'78':'大地老虎',
+'79':'玉米螟',
+'80':'赤角盲蝽',
+'81':'槐尺蛾',
+'82':'银纹夜蛾',
+'83':'天牛',
+'84':'乏夜蛾',
+'85':'丁香天蛾',
+'86':'构月天蛾',
+'87':'虎甲',
+'88':'劳氏粘虫',
+'89':'白薯天蛾',
+'90':'广鹿蛾',
+'91':'二十八星瓢虫',
+'92':'腮金龟',
+'93':'人纹污夜蛾',
+'94':'叩甲',
+'95':'楸蠹野螟',
+'96':'丝绵木金星尺蛾',
+'97':'红缘灯蛾',
+'98':'黄褐丽金龟',
+'99':'螟蛾科',
+'100':'红棕灰夜蛾',
+'101':'黑绒绢金龟',
+'102':'广鹿灯蛾',
+'103':'蝽',
+'104':'蜂',
+'105':'大造桥虫',
+'106':'童剑纹夜蛾',
+'107':'晃剑纹夜蛾',
+'108':'钩粘虫',
+'109':'直影夜蛾',
+'110':'毛黄绢金龟',
+'111':'乌氏小尾天蚕蛾',
+'112':'褐边绿刺蛾',
+'113':'广鹿舟蛾',
+'114':'颜倾城',
+'115':'龙虱',
+'116':'双带盘瓢虫',
+'117':'槲犹冬夜蛾',
+'118':'洋槐天蛾',
+'119':'弧角散纹夜蛾',
+'120':'黄脉天蛾',
+'121':'葡萄天蛾',
+'122':'桃六点天蛾',
+'123':'异色瓢虫',
+'124':'榆黄足毒蛾',
+'125':'客来夜蛾',
+'126':'桦尺蛾',
+'127':'草地螟',
+'128':'细条纹野螟',
+'129':'污灯蛾属',
+'130':'杨二尾舟蛾',
+'131':'克什杆野螟',
+'132':'筱客来夜蛾',
+'133':'栗六点天蛾',
+'134':'紫光盾天蛾',
+'135':'款冬玉米螟',
+'136':'草蛉',
+'137':'亚麻篱灯蛾',
+'138':'扁连环夜蛾',
+'139':'圣蜣螂',
+'140':'白钩粘虫',
+'141':'苇实夜蛾',
+'142':'姬蜂',
+'143':'秘夜蛾',
+'144':'织网夜蛾',
+'145':'深色白眉天蛾',
+'146':'短扇舟蛾',
+'147':'白须天蛾',
+'148':'歌梦尼夜蛾',
+'149':'海安夜蛾',
+'150':'满丫纹夜蛾',
+'151':'蟋蟀',
+'152':'双斑青步甲',
+'153':'白条夜蛾',
+'154':'蟪蛄',
+'155':'负子蝽',
+'156':'脊青步甲',
+'157':'宽斑青步甲',
+'158':'稻从卷叶螟',
+'159':'淡剑夜蛾',
+'160':'甜菜白带野螟',
+'161': '樗蚕', 
+'162': '蒙古寒蝉',
+'163': '中带三角夜蛾', 
+'164': '蝗虫', 
+'165': '多色异丽金龟', 
+'166': '白色小卷蛾', 
+'167': '狭边青步甲',
+'168': '棉卷叶野螟', 
+'169': '豆荚野螟', 
+'170': '麻小食心虫', 
+'171': '星斑虎甲', 
+'172': '黄缘龙虱',
+'173': '无斑弧丽金龟', 
+'174': '白额鹰翅天蛾',
+'175': '日本真龙虱', 
+'176': '山东云斑螟',
+'177': '小文夜蛾', 
+'178': '三条蛀野螟', 
+'179': '榆掌舟蛾', 
+'180': '刺槐掌舟蛾', 
+'181': '星绒天蛾', 
+'182': '杨剑舟蛾', 
+'183': '刀夜蛾',
+'184': '红节天蛾', 
+'185': '星白雪灯蛾', 
+'186': '桃剑纹夜蛾', 
+'187': '谐夜蛾', 
+'188': '小剑纹夜蛾', 
+'189': '鸣鸣蝉', 
+'190': '姬夜蛾',
+'191': '落叶松毛虫', 
+'192': '苹六点天蛾', 
+'193': '四斑绢野螟', 
+'194': '甘薯天蛾', 
+'195': '小线角木蠹蛾', 
+'196': '三斑蕊夜蛾', 
+'197': '白雪灯蛾', 
+'198': '黄刺蛾', 
+'199': '茶翅蝽',
+'200': '杨树枯叶蛾',
+"201": "标瑙夜蛾",
+"202": "瓜绢野螟",
+"203": "稻绿蝽",
+"204": "杨雪毒蛾",
+"205": "榆白边舟蛾",
+"206": "扁刺蛾",
+"207": "绒黏夜蛾",
+"208": "庸肖毛翅夜蛾",
+"209": "中华婪步甲",
+"210": "褐黄前锹甲",
+"211": "旱柳原野螟",
+"212": "巨影夜蛾",
+"213": "食蚜蝇",
+"214": "双斑葬甲",
+"215": "黄毒蛾",
+"216": "婪步甲",
+"217": "土甲",
+"218": "中华真地鳖",
+"219": "紫线夜蛾",
+"220": "小黄鳃金龟",
+"221": "中华真土鳖",
+"222": "云斑虎甲",
+"223": "中华黧尺蛾",
+"224": "中华绿刺蛾",
+"225": "巨豹纹尺蛾",
+"226": "多斑豹蠹蛾",
+"227": "桑尺蛾",
+"228": "灰直纹螟",
+"229": "中国绿刺蛾",
+"230": "云杉梢斑螟",
+"231": "桑绢野螟",
+"232": "黄杨绢野螟",
+"233": "突背斑红蝽",
+"234": "高粱条螟",
+"235": "小麦负泥虫",
+"236": "苹掌舟蛾",
+"237": "绒粘夜蛾",
+"238": "灰白灯蛾",
+"239": "隐丫纹夜蛾",
+"240": "满纹夜蛾",
+"241": "黑剑狼夜蛾",
+"242": "蜣螂",
+"243": "福婆鳃金龟",
+"244": "雨尺蛾",
+"245": "优美苔蛾",
+"246": "黄斑野螟",
+"247": "疆夜蛾",
+"248": "六点天蛾",
+"249": "斜线夜蛾",
+"250": "石榴巾夜蛾",
+"251": "绒星天蛾",
+"252": "霜天蛾",
+"253": "大田鳖",
+"254": "灰双纹螟",
+"255": "青尺蛾",
+"256": "二线绿尺蛾",
+"257": "散纹夜蛾",
+"258": "红双线尺蛾",
+"259": "胞短栉夜蛾",
+"260": "飞虱科",
+"261": "桃多斑野螟",
+"262": "甜菜青野螟",
+"263": "核桃鹰翅天蛾",
+"264": "角顶尺蛾",
+"265": "葡萄缺角天蛾",
+"266": "绿尾大蚕蛾",
+"267": "杨褐枯叶蝶",
+"268": "双云尺蛾",
+"269": "斑拟兜夜蛾",
+"270": "阿莎尺蛾",
+"271": "榄绿岐角螟",
+"272": "青革土蝽",
+"273": "核桃美舟蛾",
+"274": "斑点卷叶螟",
+"275": "黄褐箩纹蛾",
+"276": "白环红天蛾",
+"277": "白腹网丛螟",
+"278": "枯叶蛾",
+"279": "丹日明夜蛾",
+"280": "仿白边舟蛾",
+"281": "槐羽舟蛾",
+"282": "草地贪夜蛾",
+"283": "环夜蛾",
+"284": "尘尺蛾",
+"285": "黄二星舟蛾",
+"286": "榆木蠹蛾",
+"287": "水黾",
+"288": "银装冬夜蛾",
+"289": "饰奇尺蛾",
+"290": "枯叶蝶",
+"291": "步甲",
+"292": "阔胸禾犀金龟",
+"293": "眼斑钩蛾",
+"294": "三开蜣螂",
+"295": "金星步甲",
+"296": "残夜蛾",
+"297": "野蚕蛾",
+"298": "芦苇豹蠹蛾",
+"299": "华晓扁犀金龟",
+"300": "灰胸突鳃金龟",
+"301": "龟纹瓢虫",
+"302": "麻皮蝽",
+"303": "斑须蝽",
+"304": "斜斑虎甲",
+"305": "地鳖",
+"306": "叶甲",
+"307": "燕夜蛾",
+"308": "黑纹北灯蛾",
+"309": "网夜蛾",
+"310": "棘翅夜蛾",
+"311": "规尺蛾",
+"312": "苜蓿银纹夜蛾",
+"313": "拟扇舟蛾",
+"314": "丁目大蚕蛾",
+"315": "金黄蛾",
+"316": "黄星雪灯蛾",
+"317": "暗纹紫褐螟",
+"318": "白眉天蛾",
+"319": "黄板盘瓢虫",
+"320": "玫岐角螟",
+"321":"枯黄贡尺蛾",
+"322":"小豆长喙天蛾",
+"323":"橙拟灯蛾",
+"324":"粉蝶灯蛾",
+"325":"纹散丽灯蛾",
+"326":"雪尾尺蛾",
+"327":"鹰翅天蛾",
+"328":"波纹蛾",
+"329":"黑条灰灯蛾",
+"330":"八点灰灯蛾",
+"331":"间纹弦夜蛾",
+"332":"缤夜蛾",
+"333":"樟蚕",
+"334":"乌夜蛾",
+"335":"亮棲夜蛾",
+"336":"鸟嘴壶夜蛾",
+"337":"榕透翅毒蛾",
+"338":"四星负葬甲",
+"339":"魔目夜蛾",
+"340":"华尾天蚕蛾",
+"341":"洋麻钩蛾",
+"342":"旋皮夜蛾",
+"343":"奇尺蛾",
+"344":"土元",
+"345":"肯髯须夜蛾",
+"346":"苹果卷叶蛾",
+"347":"矛夜蛾",
+"348":"斜线燕蛾",
+"349":"红秘夜蛾",
+"350":"桃红猎夜蛾",
+"351":"帕委夜蛾",
+"352":"奚毛胫夜蛾",
+"353":"委夜蛾",
+"354":"角翅舟蛾",
+"355":"戟盗毒蛾",
+"356":"瓢虫",
+"357":"隐尺蛾",
+"358":"钝突刺腹牙甲",
+"359":"金龟",
+"360":"花金龟",
+"361":"白褐缘尾尺蛾",
+"362":"金黄螟",
+"363":"云斑白条天牛"
+}
+
+export default insect_dict

+ 2 - 2
bigdata2/src/router/index.js

@@ -58,7 +58,7 @@ export default new Router({
         component: Cbd
       },
       {
-        path: 'cbdDataDetails/:e_id/:d_id',
+        path: 'cbdDataDetails',
         component: CbdDataDetails
       },
       {
@@ -70,7 +70,7 @@ export default new Router({
         component: CbdHistoryData
       },
       {
-        path: 'pestsStats/:id',
+        path: 'pestsStats',
         component: PestsStats
       },
       {