Compare commits
3 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
0e2b5316c6 | |
|
|
e0cc367300 | |
|
|
e53ef58edb |
|
|
@ -2,7 +2,7 @@ import axios from "axios";
|
||||||
import router from '@/router'
|
import router from '@/router'
|
||||||
const requests = axios.create({
|
const requests = axios.create({
|
||||||
baseURL: "/lh-api",
|
baseURL: "/lh-api",
|
||||||
timeout:20000,
|
timeout: 45000,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dTitle: '长期定位监测',
|
dTitle: '长期定位监测',
|
||||||
urlimg: 'https://fxnsp.zgzhny.com/lh-api/sys/common/static/',
|
urlimg: 'https://fxnsp.sxcooh.com/lh-api/sys/common/static/',
|
||||||
urlimg2: 'https://farm.ilhzn.cn/jeecg-boot/sys/common/static/',
|
urlimg2: 'https://farm.ilhzn.cn/jeecg-boot/sys/common/static/',
|
||||||
deployType: 'soil',
|
deployType: 'soil',
|
||||||
allData: null,
|
allData: null,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
<div class="main2">
|
<div class="main2">
|
||||||
<video class="fullscreenvideo" id="bgvid" playsinline="" autoplay="" muted="" loop="">
|
<video class="fullscreenvideo" id="bgvid" playsinline="" autoplay="" muted="" loop="">
|
||||||
<!-- <source src="@/assets/image/bg2.mp4" type="video/mp4">-->
|
<!-- <source src="@/assets/image/bg2.mp4" type="video/mp4">-->
|
||||||
<source src="http://fxnsp.zgzhny.com/lh-api/sys/common/static/v/bg2.mp4" type="video/mp4">
|
<source src="https://fxnsp.sxcooh.com/lh-api/sys/common/static/v/bg2.mp4" type="video/mp4">
|
||||||
</video>
|
</video>
|
||||||
<div class="nav">
|
<div class="nav">
|
||||||
<span class="nav_ti nav_mag">{{DetailList.stationName}}</span>
|
<span class="nav_ti nav_mag">{{DetailList.stationName}}</span>
|
||||||
|
|
@ -172,7 +172,7 @@
|
||||||
<img src="@/assets/image/title_bg.png" class="in1con_lf_titimg" alt="">
|
<img src="@/assets/image/title_bg.png" class="in1con_lf_titimg" alt="">
|
||||||
</div>
|
</div>
|
||||||
<!-- <img src="@/assets/image/zhpjimg2.png" class="zhpjimg2" alt="">-->
|
<!-- <img src="@/assets/image/zhpjimg2.png" class="zhpjimg2" alt="">-->
|
||||||
<img src="http://fxnsp.zgzhny.com/lh-api/sys/common/static/bs/zhpjimg2.png" class="zhpjimg2" alt="">
|
<img src="https://fxnsp.sxcooh.com/lh-api/sys/common/static/bs/zhpjimg2.png" class="zhpjimg2" alt="">
|
||||||
<span class="zhpjtit" >{{DisplayListdetailList.detailValue}}</span>
|
<span class="zhpjtit" >{{DisplayListdetailList.detailValue}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -359,7 +359,7 @@ export default {
|
||||||
name: "CqyzList",
|
name: "CqyzList",
|
||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
urlimg:'https://fxnsp.zgzhny.com/lh-api/sys/common/static/',
|
urlimg:'https://fxnsp.sxcooh.com/lh-api/sys/common/static/',
|
||||||
player: null,
|
player: null,
|
||||||
enableZ:false, //默认关闭电子放大
|
enableZ:false, //默认关闭电子放大
|
||||||
play: false, //默认停止播放
|
play: false, //默认停止播放
|
||||||
|
|
|
||||||
|
|
@ -483,7 +483,7 @@ export default {
|
||||||
markersSoil: [],
|
markersSoil: [],
|
||||||
markersOther: [],
|
markersOther: [],
|
||||||
lastClickIcon: '',
|
lastClickIcon: '',
|
||||||
urlimg: 'https://fxnsp.zgzhny.com/lh-api/sys/common/static/',
|
urlimg: 'https://fxnsp.sxcooh.com/lh-api/sys/common/static/',
|
||||||
mapTypeFlag: true,
|
mapTypeFlag: true,
|
||||||
nowTime: '',
|
nowTime: '',
|
||||||
briefconCode: "",
|
briefconCode: "",
|
||||||
|
|
|
||||||
|
|
@ -505,7 +505,7 @@ export default {
|
||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
urlimg:'https://fxnsp.zgzhny.com/lh-api/sys/common/static/',
|
urlimg:'https://fxnsp.sxcooh.com/lh-api/sys/common/static/',
|
||||||
isShow: true,
|
isShow: true,
|
||||||
nowTime: '',
|
nowTime: '',
|
||||||
briefconCode:"",
|
briefconCode:"",
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<video autoplay loop muted preload
|
<video autoplay loop muted preload
|
||||||
style="width: 100%; height: 100%; object-fit: fill">
|
style="width: 100%; height: 100%; object-fit: fill">
|
||||||
<!-- <source src="@/assets/image/loginback.mp4">-->
|
<!-- <source src="@/assets/image/loginback.mp4">-->
|
||||||
<source src="http://fxnsp.zgzhny.com/lh-api/sys/common/static/v/loginback.mp4">
|
<source src="https://fxnsp.sxcooh.com/lh-api/sys/common/static/v/loginback.mp4">
|
||||||
</video>
|
</video>
|
||||||
<img src="@/assets/image/logintltle.png" alt="" class="logintltle">
|
<img src="@/assets/image/logintltle.png" alt="" class="logintltle">
|
||||||
<el-form
|
<el-form
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
<div class="main2" v-if="stationDetail">
|
<div class="main2" v-if="stationDetail">
|
||||||
<video class="fullscreenvideo" id="bgvid" playsinline="" autoplay="" muted="" loop="">
|
<video class="fullscreenvideo" id="bgvid" playsinline="" autoplay="" muted="" loop="">
|
||||||
<!-- <source src="@/assets/image/bg2.mp4" type="video/mp4">-->
|
<!-- <source src="@/assets/image/bg2.mp4" type="video/mp4">-->
|
||||||
<source src="http://fxnsp.zgzhny.com/lh-api/sys/common/static/v/bg2.mp4" type="video/mp4">
|
<source src="https://fxnsp.sxcooh.com/lh-api/sys/common/static/v/bg2.mp4" type="video/mp4">
|
||||||
</video>
|
</video>
|
||||||
<div class="nav">
|
<div class="nav">
|
||||||
<span class="nav_ti nav_mag">{{ stationDetail.stationName }}</span>
|
<span class="nav_ti nav_mag">{{ stationDetail.stationName }}</span>
|
||||||
|
|
@ -175,7 +175,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="switchStation">
|
<div class="switchStation">
|
||||||
<el-select v-model="stationCode" placeholder="切换站点" @change="switchStation" >
|
<el-select v-model="stationCode" placeholder="切换站点" @change="switchStation" >
|
||||||
<el-option v-for="item in stationList" :key="item.stationCode" :label="item.stationName" :value="item.stationCode"></el-option>
|
<el-option v-for="item in stationList" :key="item.stationCode" :label="item.stationShortName||item.stationName" :value="item.stationCode"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
<div class="leftBox right baseBoxHjleft" style="width:22.5%">
|
<div class="leftBox right baseBoxHjleft" style="width:22.5%">
|
||||||
|
|
@ -192,7 +192,7 @@
|
||||||
<img src="@/assets/image/title_bg.png" class="in1con_lf_titimg" alt="">
|
<img src="@/assets/image/title_bg.png" class="in1con_lf_titimg" alt="">
|
||||||
</div>
|
</div>
|
||||||
<!-- <img src="@/assets/image/zhpjimg2.png" class="zhpjimg2" alt="">-->
|
<!-- <img src="@/assets/image/zhpjimg2.png" class="zhpjimg2" alt="">-->
|
||||||
<img src="http://fxnsp.zgzhny.com/lh-api/sys/common/static/bs/zhpjimg2.png" class="zhpjimg2" alt="">
|
<img src="https://fxnsp.sxcooh.com/lh-api/sys/common/static/bs/zhpjimg2.png" class="zhpjimg2" alt="">
|
||||||
<span class="zhpjtit">{{ DisplayListdetailList.detailValue }}</span>
|
<span class="zhpjtit">{{ DisplayListdetailList.detailValue }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -336,7 +336,7 @@ export default {
|
||||||
singleEchartDialogShowFlag: false,
|
singleEchartDialogShowFlag: false,
|
||||||
singleEchartData: null,
|
singleEchartData: null,
|
||||||
stationCode: '',
|
stationCode: '',
|
||||||
urlimg: 'https://fxnsp.zgzhny.com/lh-api/sys/common/static/',
|
urlimg: 'https://fxnsp.sxcooh.com/lh-api/sys/common/static/',
|
||||||
player: {},
|
player: {},
|
||||||
timer: {},
|
timer: {},
|
||||||
interval: {},
|
interval: {},
|
||||||
|
|
@ -352,8 +352,7 @@ export default {
|
||||||
fullscreen: false, //全屏
|
fullscreen: false, //全屏
|
||||||
qczddialogTableVisible: false,
|
qczddialogTableVisible: false,
|
||||||
waterData: {},
|
waterData: {},
|
||||||
summryAllData: null,
|
summryAllDataJson: null,
|
||||||
echartIndex: 0,
|
|
||||||
maintainLogList: [],
|
maintainLogList: [],
|
||||||
dateType: 'monthDays',
|
dateType: 'monthDays',
|
||||||
dateTypeOptions: [ {
|
dateTypeOptions: [ {
|
||||||
|
|
@ -431,55 +430,37 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
changeDateType() {
|
changeDateType() {
|
||||||
// this.summryAllData = null;
|
|
||||||
this.initChartData();
|
this.initChartData();
|
||||||
},
|
},
|
||||||
initChartData() {
|
initChartData() {
|
||||||
this.riverList = [];
|
let that = this;
|
||||||
this.summryAllData = [];
|
this.summryAllDataJson = {};
|
||||||
getIndexSummry({summrayMode: this.dateType, statsionCode: this.stationCode}).then(res => {
|
getIndexSummry({summrayMode: this.dateType, stationCode: this.stationCode}).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.summryAllData = res.result;
|
res.result.map(item => {
|
||||||
let len = this.summryAllData.length;
|
that.summryAllDataJson[item.stationCode] = item;
|
||||||
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) => {
|
|
||||||
data3[key].push((data2[key][index] - data1[key][index]).toFixed(2))
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
item3['datas'] = data3;
|
|
||||||
this.riverList.push(item3);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
this.initEchartDom(this.echartIndex)
|
this.initEchartDom()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 折线图数据
|
// 折线图数据
|
||||||
initEchartDom(index) {
|
initEchartDom(times) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
let domKey = `myChartDiv0`;
|
let domKey = `myChartDiv0`;
|
||||||
let divDom = document.getElementById(domKey);
|
let divDom = document.getElementById(domKey);
|
||||||
if (!divDom) {
|
if (!divDom) {
|
||||||
console.log('没找到dom:', domKey, divDom)
|
console.warn('没找到dom,两秒后重试:', domKey, divDom)
|
||||||
|
if(times!==2){
|
||||||
|
setTimeout(()=>{this.initEchartDom(2)}, 1500);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(this.echartObj){
|
if(this.echartObj){
|
||||||
this.echartObj.dispose();
|
this.echartObj.dispose();
|
||||||
}
|
}
|
||||||
this.echartObj = this.$echarts.init(divDom);
|
this.echartObj = this.$echarts.init(divDom);
|
||||||
let data = this.summryAllData[index];
|
let data = this.summryAllDataJson[this.stationCode];
|
||||||
console.log('开始初始化echart:' )
|
console.log('开始初始化echart:' )
|
||||||
let dataObj = [];
|
let dataObj = [];
|
||||||
let i = 0;
|
let i = 0;
|
||||||
|
|
@ -719,12 +700,7 @@ export default {
|
||||||
stationInfo().then(res => {
|
stationInfo().then(res => {
|
||||||
this.stationInfoList = res.result
|
this.stationInfoList = res.result
|
||||||
if (this.stationInfoList) {
|
if (this.stationInfoList) {
|
||||||
res.result.map(item => {
|
this.stationList = res.result
|
||||||
this.stationList.push({
|
|
||||||
stationCode: item.stationCode,
|
|
||||||
stationName: item.stationName,
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
@ -2429,7 +2405,7 @@ a:hover {
|
||||||
right: 450px;
|
right: 450px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index: 2000;
|
z-index: 2000;
|
||||||
width: 180px
|
width: 170px
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue