Commit 9b2238f7 authored by xinzhedeai's avatar xinzhedeai

污水温水监测 注释无用方法

parent a59c51cf
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</div> </div>
</div> </div>
<div class="b_0"> <div class="b_0">
<iframe <!-- <iframe
ref="iframe" ref="iframe"
frameborder="0" frameborder="0"
src="/huangshi/index.html" src="/huangshi/index.html"
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
right: 0; right: 0;
" "
@click="iframeclick" @click="iframeclick"
></iframe> ></iframe> -->
<header class="bg-o85"> <header class="bg-o85">
<!-- <div class="b0 b-1"> <!-- <div class="b0 b-1">
<div class="b1-a"></div> <div class="b1-a"></div>
...@@ -179,11 +179,11 @@ ...@@ -179,11 +179,11 @@
<div class="tit-bg"></div> <div class="tit-bg"></div>
<h3 class="el-icon-s-unfold">沉降监测GNSS</h3> <h3 class="el-icon-s-unfold">沉降监测GNSS</h3>
<div class="km-thead col02d upop scrollListTitle4Gnss"> <div class="km-thead col02d upop scrollListTitle4Gnss">
<div>边坡监测点</div> <div>边坡监测点</div>
<div>X</div> <div>X</div>
<div>Y</div> <div>Y</div>
<div>Z</div> <div>Z</div>
</div> </div>
<vue-seamless-scroll :data="listData4gnss" class="warp"> <vue-seamless-scroll :data="listData4gnss" class="warp">
<ul class="item"> <ul class="item">
<li v-for="(item, index) in listData4gnss" :key="index"> <li v-for="(item, index) in listData4gnss" :key="index">
...@@ -202,49 +202,20 @@ ...@@ -202,49 +202,20 @@
<div class="in-box"> <div class="in-box">
<div class="tit-bg"></div> <div class="tit-bg"></div>
<h3 class="el-icon-s-unfold">排水口污水水质</h3> <h3 class="el-icon-s-unfold">排水口污水水质</h3>
<div class="first-cl first-cl1"> <div class="km-thead col02d upop scrollListTitle">
<div class="cl1bg"></div> <div>监测项</div>
<div class="cl1left"> <div>监测值</div>
<div class="cltop"> <div>监测时间</div>
<span>{{ indexClData.mining }} </span> t
</div>
<div class="clbottom">已开采数量</div>
</div>
<div class="cl1right">
<div class="cltop">
<span>{{ indexClData.kaicaizl }} </span> t
</div>
<div class="clbottom">总储量数量</div>
</div>
<div
id="liquidEchart11"
ref="liquidEchart1"
class="liquidData liquidData1"
></div>
</div>
<div class="stitle">
<div class="stit">生产管理</div>
</div>
<div class="first-cl first-cl2">
<div class="cl2bg"></div>
<div class="cl2left">
<div class="cltop">
<span>{{ "1000" }} </span>
</div>
<div class="clbottom">生产设备总数量</div>
</div>
<div class="cl2right">
<div class="cltop">
<span>{{ "300" }} </span>
</div> </div>
<div class="clbottom">生产设备在线</div> <vue-seamless-scroll :data="listData4wushui" class="warp">
</div> <ul class="item">
<div <li v-for="(item, index) in listData4wushui" :key="index">
id="liquidEchart22" <span class="title qixiangspan" v-text="item.items"></span>
ref="liquidEchart2" <span class="title qixiangspan" v-text="item.evalue"></span>
class="liquidData liquidData2" <span class="date qixiangspan" v-text="item.time"></span>
></div> </li>
</div> </ul>
</vue-seamless-scroll>
</div> </div>
</div> </div>
</div> </div>
...@@ -256,11 +227,20 @@ ...@@ -256,11 +227,20 @@
<div class="in-box"> <div class="in-box">
<div class="tit-bg"></div> <div class="tit-bg"></div>
<h3 class="el-icon-s-unfold">温泉水质</h3> <h3 class="el-icon-s-unfold">温泉水质</h3>
<div id="weather1" class="weather"> <div class="km-thead col02d upop scrollListTitle">
<div class="rt1-info"> <div>监测项</div>
<p>接口暂停服务</p> <div>监测值</div>
<div>监测时间</div>
</div> </div>
</div> <vue-seamless-scroll :data="listData4wenshui" class="warp">
<ul class="item">
<li v-for="(item, index) in listData4wenshui" :key="index">
<span class="title qixiangspan" v-text="item.items"></span>
<span class="title qixiangspan" v-text="item.evalue"></span>
<span class="date qixiangspan" v-text="item.time"></span>
</li>
</ul>
</vue-seamless-scroll>
</div> </div>
</div> </div>
</div> </div>
...@@ -308,15 +288,15 @@ ...@@ -308,15 +288,15 @@
</div> </div>
</div> </div>
</div> </div>
<!-- <div class="d0 d-3"> <div class="d0 d-3">
<div class="layerWd1"> <div class="layerWd1">
<div class="in-box"> <div class="in-box">
<div class="tit-bg"></div> <div class="tit-bg"></div>
<h3 class="el-icon-s-unfold">降雨量</h3> <h3 class="el-icon-s-unfold">降雨量</h3>
<div class="indexjiankong" @click="jiankong('all')"></div> <div class="indexjiankong1"></div>
</div> </div>
</div> </div>
</div> --> </div>
</div> </div>
</div> </div>
<div class="d_ d_0" :class="{ actv: navActv === 1 }"> <div class="d_ d_0" :class="{ actv: navActv === 1 }">
...@@ -1302,24 +1282,24 @@ export default { ...@@ -1302,24 +1282,24 @@ export default {
}, },
created() { created() {
this.$nextTick(() => { this.$nextTick(() => {
this.hjjcszjc(); // this.hjjcszjc();
this.setLabel(); // this.setLabel();
localStorage.removeItem("name"); // localStorage.removeItem("name");
localStorage.removeItem("to3d"); // localStorage.removeItem("to3d");
this.$refs.iframe.contentWindow.addEventListener("message", (e) => { // this.$refs.iframe.contentWindow.addEventListener("message", (e) => {
// console.log(e, 1); // 跨域的话就要通过postMessage通信 // // console.log(e, 1); // 跨域的话就要通过postMessage通信
}); // });
this.$refs.iframe.contentWindow.addEventListener("click", (e) => { // this.$refs.iframe.contentWindow.addEventListener("click", (e) => {
let nowlocalStorage = localStorage.getItem("name"); // let nowlocalStorage = localStorage.getItem("name");
// console.log(e.target, 2); // 不跨越的话就可以操作内部的dom啥的 // // console.log(e.target, 2); // 不跨越的话就可以操作内部的dom啥的
// console.log(nowlocalStorage, "localStorage"); // // console.log(nowlocalStorage, "localStorage");
if (this.old3d === nowlocalStorage) { // if (this.old3d === nowlocalStorage) {
// console.log("一样"); // // console.log("一样");
} else { // } else {
// console.log("不一样"); // // console.log("不一样");
this.old3d = nowlocalStorage; // this.old3d = nowlocalStorage;
} // }
}); // });
}); });
}, },
mounted() { mounted() {
...@@ -1327,50 +1307,50 @@ export default { ...@@ -1327,50 +1307,50 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
// console.log(this.$refs.iframe.contentWindow); // 获取iframe里面window对象 // console.log(this.$refs.iframe.contentWindow); // 获取iframe里面window对象
this.nowAlarm(); this.nowAlarm();
// 加载天气 // // 加载天气
var weather = this.$el.querySelector("#weather1"); // var weather = this.$el.querySelector("#weather1");
getWeather({ // getWeather({
c: "code", // c: "code",
a: "getcode", // a: "getcode",
id: 48, // id: 48,
icon: 1, // icon: 1,
py: "huangshi", // py: "huangshi",
}).then((res) => { // }).then((res) => {
var body = document.createElement("div"); // var body = document.createElement("div");
setTimeout(function () { // setTimeout(function () {
body.innerHTML = res; // body.innerHTML = res;
var styles = body.querySelectorAll("link"); // var styles = body.querySelectorAll("link");
for (var style of styles) { // for (var style of styles) {
body.removeChild(style); // body.removeChild(style);
} // }
var scripts = body.querySelectorAll("script"); // var scripts = body.querySelectorAll("script");
for (var script of scripts) { // for (var script of scripts) {
script.parentNode.removeChild(script); // script.parentNode.removeChild(script);
} // }
// 查看图片 // // 查看图片
var img = body.querySelector("#day_1 .img").firstElementChild; // var img = body.querySelector("#day_1 .img").firstElementChild;
img.src = // img.src =
"http://plugin.tianqistatic.com/static/" + // "http://plugin.tianqistatic.com/static/" +
img.src.split("static/")[1]; // img.src.split("static/")[1];
// 修剪dom // // 修剪dom
var mobile05 = body.querySelector("#mobile05"); // var mobile05 = body.querySelector("#mobile05");
mobile05.removeChild(mobile05.firstElementChild); // mobile05.removeChild(mobile05.firstElementChild);
mobile05.removeChild(mobile05.lastElementChild); // mobile05.removeChild(mobile05.lastElementChild);
var childs = mobile05.children; // var childs = mobile05.children;
for (var child of childs) { // for (var child of childs) {
child.innerHTML = child.firstElementChild.innerHTML; // child.innerHTML = child.firstElementChild.innerHTML;
} // }
weather.innerHTML = body.innerHTML; // weather.innerHTML = body.innerHTML;
}, 300); // }, 300);
}); // });
this.indexAlarmList(); this.indexAlarmList();
this.initLiquidEchart2(); // this.initLiquidEchart2();
this.nowWaterData(); // this.nowWaterData();
this.indexCl(); // this.indexCl();
this.getJianCeList() this.getJianCeList()
this.getBianpoChenJiangList() this.getBianpoChenJiangList()
...@@ -1630,13 +1610,6 @@ export default { ...@@ -1630,13 +1610,6 @@ export default {
alarmNowData(param).then((res) => { alarmNowData(param).then((res) => {
// console.log(res, "首页报警列表"); // console.log(res, "首页报警列表");
this.indexAlarmData = res; this.indexAlarmData = res;
for (let index = 0; index < 20; index++) {
this.indexAlarmData.push({
equipname: '设备'+index,
time: '2024-5-25 '+index
})
}
}); });
}, },
handleClose() { handleClose() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment