Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZiBoYingJI
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
Kimber
ZiBoYingJI
Commits
f38d4d25
Commit
f38d4d25
authored
Sep 18, 2024
by
Kimber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'up'
parent
ef3ef72b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
63 deletions
+50
-63
index.html
public/datav/index.html
+50
-63
No files found.
public/datav/index.html
View file @
f38d4d25
...
...
@@ -168,7 +168,7 @@
background-image
:
linear-gradient
(
to
bottom
,
rgba
(
20
,
72
,
247
,
.4
),
transparent
);
}
.selects
select
{
position
:
relative
;
z-index
:
2
;
position
:
relative
;
z-index
:
2
;
max-width
:
150px
;
background-color
:
transparent
;
color
:
#92f9ff
;
border-color
:
transparent
;
outline
:
none
;
option{
...
...
@@ -215,8 +215,6 @@
}
}
}
</style>
</head>
...
...
@@ -298,6 +296,7 @@
<!-- 物联网主机 -->
<div
style=
"transform-origin:left center;left:0;"
class=
"absolute"
:style=
"{transform:'scale(' + ( heightScale) + ')'}"
>
<!-- 设备状态 -->
<div
style=
"width: 514px;"
>
<div
class=
"ml10 flex align-center f20 color-theme wp100"
style=
"background-image: url('static/sub-title.png');background-size: 100% 100%;height: 48px;"
>
...
...
@@ -306,13 +305,9 @@
<div
class=
"relative"
style=
"height: 220px;width: 480px;"
>
<div
class=
"md1-wrap absolute"
>
<ul>
<li>
<div
class=
"icon"
><font>
156
</font></div>
<span>
设备在线
</span>
</li>
<li>
<div
class=
"icon"
><font>
156
</font></div>
<span>
设备离线
</span>
<li
v-for=
"item in devicelist"
>
<div
class=
"icon"
><font>
{{item.num}}
</font></div>
<span>
{{item.name}}
</span>
</li>
</ul>
</div>
...
...
@@ -965,6 +960,10 @@
mineNumber3
:
0
,
mineNumber4
:
0
,
mineNumber5
:
0
,
// 设备状态
devicelist
:[],
// 公告信息
notice
:
{
title
:
''
,
...
...
@@ -1098,6 +1097,7 @@
// 区域选择列表
var
mselect
=
document
.
getElementById
(
"
mselect
"
);
var
selects
=
mselect
.
children
;
// 请求三级联动
this
.
reqSelectArea
(
selects
);
},
...
...
@@ -1119,10 +1119,11 @@
select
.
onchange
=
function
(
e
){
var
tag
=
e
.
target
||
e
.
srcElement
;
var
value
=
tag
.
selectedOptions
[
0
].
value
;
if
(
i
<
3
){
reqiust
(
value
,
i
);
}
else
{
that
.
reqEnterprise
(
value
,
select
[
i
]);
that
.
reqEnterprise
(
value
,
select
s
[
i
]);
};
};
...
...
@@ -1135,7 +1136,6 @@
})(
0
,
i
);
},
reqEnterprise
(
value
,
select
){
if
(
true
){
var
req
=
{
params
:
{
deptId
:(
this
.
deptId
=
value
||
0
)
...
...
@@ -1144,25 +1144,35 @@
axios
.
get
(
host
+
'
/api/yingji/deptandenterprise/enterprise
'
,
req
).
then
(
res
=>
{
res
=
res
.
data
;
var
list
=
res
.
body
||
[];
console
.
log
(
'
body ________________
'
,
list
,
select
);
this
[
select
.
id
]
=
list
;
this
.
isReady
=
true
;
if
(
list
[
0
]){
this
.
reqMines
(
this
.
enterpriseId
=
list
[
0
].
id
)
;
this
.
enterpriseId
=
list
[
0
].
id
;
}
else
{
this
.
enterpriseId
=
0
;
this
.
marker
=
[];
}
console
.
log
(
'
this.enterpriseId ________________
'
,
this
.
enterpriseId
);
// 矿山数据
this
.
reqMines
(
this
.
enterpriseId
);
this
.
setMap
();
});
};
},
console
.
log
(
'
select ________________
'
,
select
);
var
that
=
this
;
!
select
.
onchange
&&
(
select
.
onchange
=
function
(
e
){
var
tag
=
e
.
target
||
e
.
srcElement
;
var
value
=
tag
.
selectedOptions
[
0
].
value
;
that
.
enterpriseId
=
value
;
console
.
log
(
'
value ________________
'
,
value
);
that
.
reqMines
(
that
.
enterpriseId
);
});
},
reqDeviceStatus
(){
var
req
=
{
params
:
{
...
...
@@ -1172,29 +1182,8 @@
};
axios
.
get
(
host
+
'
/api/yingji/keynoteadmin/deviceStatus
'
,
req
).
then
(
res
=>
{
res
=
res
.
data
;
console
.
log
(
'
deviceStatus ________________
'
,
res
);
return
;
var
list
=
res
.
body
||
[];
console
.
log
(
'
body ________________
'
,
list
,
select
);
this
[
select
.
id
]
=
list
;
this
.
isReady
=
true
;
if
(
list
[
0
]){
this
.
reqMines
(
this
.
enterpriseId
=
list
[
0
].
id
);
}
else
{
this
.
marker
=
[];
}
this
.
setMap
();
this
.
devicelist
=
list
;
});
},
...
...
@@ -1812,6 +1801,9 @@
},
async
getData
(
refesh
)
{
console
.
log
(
'
getData ________________
'
,
refesh
);
this
.
refreshTimes
=
this
.
refreshTimes
+
1
;
/**
* 5分钟1次
...
...
@@ -1856,15 +1848,10 @@
*/
if
(
!
refesh
)
{
//this.reqMines();
}
if
(
this
.
refreshTimes
%
60
==
0
)
{
_5minus
();
setTimeout
(()
=>
this
.
getData
(
'
refesh
'
),
60
*
1000
);
// 10秒一个刷新周期
}
_5minus
();
setTimeout
(()
=>
this
.
getData
(
'
refesh
'
),
60
*
1000
);
// 10秒一个刷新周期
},
// 危险作业列表
...
...
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