diff --git a/package.json b/package.json
index fad5bd8..e162d6f 100644
--- a/package.json
+++ b/package.json
@@ -5,8 +5,7 @@
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
- "lint": "vue-cli-service lint",
- "preinstall": "pnpm i"
+ "lint": "vue-cli-service lint"
},
"dependencies": {
"@amap/amap-jsapi-loader": "^1.0.1",
diff --git a/src/pages/Home/index.vue b/src/pages/Home/index.vue
index 14438c2..8b62f59 100644
--- a/src/pages/Home/index.vue
+++ b/src/pages/Home/index.vue
@@ -83,7 +83,7 @@
农田污染监测站
个
+ :to="Number(stationCount0)" :key="stationCount0" duration="3000">个
畜禽污染监测站
个
+ :to="Number(stationCount0)" :key="stationCount0" duration="3000">个
小流域污染监测站
个
+ :to="Number(stationCount0)" :key="stationCount0" duration="3000">个
长期定位监测点位
个
+ :to="Number(stationCount0)" :key="stationCount0" duration="3000">个
@@ -136,7 +136,7 @@
{{ item.detailCode }}
{{ item.detailValue2 }}
@@ -155,7 +155,7 @@
{{ legth.detailCode }}
{{ legth.detailValue2 }}
@@ -203,6 +203,10 @@
长期定位监测站
+
+

+
微功率雷达监测
+
@@ -364,7 +368,7 @@
{{ item.name }}
-
{{ item.unit }}
@@ -457,8 +461,23 @@
+
+
+
+ 危废车辆
+
+
+ 危废车辆1
+ 危废车辆2
+ 危废车辆3
+ 危废车辆4
+ 危废车辆5
+
+
+
+
@@ -469,19 +488,16 @@
import ScaleBox from 'vue2-scale-box'
import {
displayInfo,
- fwlist,
getAllstationAndPestLight,
getIndexSummry,
getNewestData,
getPollutionDict,
- getSoilSummry,
- ntfmlist,
stationInfo,
- survItemSummary
} from '@/api';
import vueSeamlessScroll from 'vue-seamless-scroll'
import hefentianqi from '@/pages/weather/weather.vue'
import SoilDialog from '@/components/SoilDialog.vue'
+import LiulDialog from '@/components/LiulDialog.vue'
import {_colors} from '@/utils/color.js'
import SingleEchartDialog from "@/components/SingleEchartDialog.vue";
import TaizhangDialog from "@/components/TaizhangDialog.vue";
@@ -494,7 +510,8 @@ export default {
vueSeamlessScroll,
hefentianqi,
ScaleBox,
- SoilDialog
+ SoilDialog,
+ LiulDialog
},
data() {
return {
@@ -560,7 +577,9 @@ export default {
label: '12个月'
}],
soidShowFlag: false,
+ liulShowFlag:false,
soilDataId: '',
+ liulDataId:'',
tabsLoading: false,
lastZIndex: 1,
};
@@ -607,12 +626,6 @@ export default {
},
},
mounted() {
- console.log('开始初始化!!!!')
- // setTimeout(() => {
- // this.$nextTick(() => {
- // this.indexinfor();
- // })
- // }, 2000)
// 实时时间
setTimeout(() => {
this.$nextTick(() => {
@@ -627,14 +640,8 @@ export default {
this.infor();
this.indexinfor();
this.doGetIndexSummry({index: this.echartIndex});
- this.initSoilData();
},
methods: {
- initSoilData(){
- // getSoilSummry({deployIds:['1679816733238575105'], "summrayMode":"dayhours"}).then(res=>{
- // console.log(res)
- // })
- },
formatter: function (num) {
return num.toFixed(3)
},
@@ -818,10 +825,15 @@ export default {
marker.on('click', e => {
this.soilDataId = e.target.getExtData()
this.soidShowFlag = true
- // console.log('soil click', )
})
this.markersSoil.push(marker);
- } else {
+ } else if(item.type == '10_flowmeter'){//土壤弹窗,长期监测站
+ marker.on('click', e => {
+ this.liulDataId = e.target.getExtData()
+ this.liulShowFlag = true
+ })
+ this.markersSoil.push(marker);
+ } else {
this.markersOther.push(marker)
}
marker.setMap(that.aMap);
@@ -868,7 +880,6 @@ export default {
switchEchartType() {
this.dataTypeEchart = (!this.dataTypeEchart);
this.echartInit = {};
- // this.activeName2 = this.riverList[0].stationName
setTimeout(() => {
this.doGetIndexSummry({index: 0});
}, 300);
@@ -886,30 +897,6 @@ export default {
this.summryAllData = res.result;
let len = this.summryAllData.length;
this.riverList = [];
- //计算对比值,2号站数据减1号站
- // this.summryAllData.map((item1, index) => {
- // if (index % 2 === 0 && item1['datas'] && (index + 1) < len) {
- // let data1 = item1['datas'];
- // let keys = Object.keys(data1);
- // let data2 = this.summryAllData[index + 1]['datas'];
- // let data3 = {}
- // let item3 = JSON.parse(JSON.stringify(item1));
- // if (data2) {
- // keys.map(key => {
- // if (data1[key] instanceof Array) {
- // data3[key] = []
- // data1[key].map((itemSub, index) => {
- // if (data2[key] && data2[key][index] && data1[key][index]){
- // data3[key].push((data2[key][index] - data1[key][index]).toFixed(2))
- // }
- // })
- // }
- // })
- // item3['datas'] = data3;
- // this.riverList.push(item3);
- // }
- // }
- // });
setTimeout(() => {
this.$nextTick(() => { // 加载echarts图
this.initEchartData(this.echartIndex)
@@ -931,7 +918,6 @@ export default {
if (this.echartInit[domKey]) {
this.echartInit[domKey].dispose()
}
- // console.log('初始化echart:', index, domKey, data, /^\d+$/.test(index) ,this.echartInit[domKey])
let divDom = document.getElementById(domKey);
if (!divDom) {
console.log('没找到dom,两秒后重试:', domKey, divDom)
@@ -961,7 +947,6 @@ export default {
data: item.value,
type: 'line',
stack: '',
- // areaStyle: { color: item.color },
lineStyle: {
color: item.color // 设置线的颜色为红色
},
@@ -1053,20 +1038,11 @@ export default {
// 跳转页面3
jumpStationPage(e) {
let stationCode = e.stationCode
- // if (e.stationType == 'livestock') {
- // this.$router.push({path: '/CqyzList', query: {stationCode: stationCode}})
- // // this.$message({
- // // message: '站点正在建设中......',
- // // showClose: true,
- // // });
- // } else {
this.$router.push({path: '/MywrList', query: {stationCode: stationCode}})
- // }
},
// 弹窗退出登录
handleClosetuichu(done) {
this.dialogVisible = false
- // window.sessionStorage.clear();
localStorage.clear()
this.$router.push({path: '/Login'})
},
@@ -1131,10 +1107,6 @@ export default {
item.setzIndex((that.lastZIndex+=2));
});
that.aMap.setFitView(arr, false, [200, 500, 360, 360], 16);
- // setTimeout(() => {
- // let temp = that.aMap.getCenter();//矫正显示标点位置在正中心
- // that.aMap.setZoomAndCenter(that.aMap.getZoom()-2, [temp.lng, temp.lat - 0.15]);
- // },2000)
} else {
that.aMap.setFitView(null, false, [100, 400, 360, 360], 16);
}