Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
honghu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xinzhedeai
honghu
Commits
9b2238f7
Commit
9b2238f7
authored
May 26, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
污水温水监测 注释无用方法
parent
a59c51cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
96 additions
and
123 deletions
+96
-123
index.vue
src/views/bigscreen/index.vue
+96
-123
No files found.
src/views/bigscreen/index.vue
View file @
9b2238f7
...
@@ -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>
...
@@ -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
class=
"clbottom"
>
生产设备在线
</div>
</div>
<div
id=
"liquidEchart22"
ref=
"liquidEchart2"
class=
"liquidData liquidData2"
></div>
</div>
</div>
<vue-seamless-scroll
:data=
"listData4wushui"
class=
"warp"
>
<ul
class=
"item"
>
<li
v-for=
"(item, index) in listData4wushui"
: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>
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment