Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qsh-wc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
honghuiliu
qsh-wc
Commits
539e0bf2
Commit
539e0bf2
authored
Sep 26, 2022
by
honghuiliu
💬
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
feb01ab6
c4240747
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
24 deletions
+47
-24
index.js
pc/src/api/methods/index.js
+4
-0
EZUIKitJs.vue
pc/src/components/EZUIKitJs.vue
+9
-3
site-detail.vue
pc/src/views/site-detail.vue
+34
-21
No files found.
pc/src/api/methods/index.js
View file @
539e0bf2
...
...
@@ -28,4 +28,8 @@ export default {
getYewei
(
params
)
{
return
http
.
post
(
'web/data/getYewei'
,
params
)
},
//获取监控信息
getMonitorInfo
(
params
)
{
return
http
.
post
(
'web/toilet/getMonitorInfo'
,
params
)
},
}
pc/src/components/EZUIKitJs.vue
View file @
539e0bf2
...
...
@@ -34,9 +34,15 @@
next_time
:
Date
.
now
()
}
},
mounted
(){
this
.
init
();
window
.
addEventListener
(
'onresize'
,
this
.
resize
);
watch
:{
url
(
val
){
if
(
val
){
this
.
$nextTick
(()
=>
{
this
.
init
();
window
.
addEventListener
(
'onresize'
,
this
.
resize
);
})
}
}
},
methods
:
{
play
()
{
...
...
pc/src/views/site-detail.vue
View file @
539e0bf2
...
...
@@ -123,10 +123,10 @@
</div>
</div>
<div
class=
"table-body"
>
<div
class=
"row"
v-for=
"(item,index) in
typeList.filter(one=>one.show)
"
:key=
"index"
>
<div
class=
"row"
v-for=
"(item,index) in
list.data
"
:key=
"index"
>
<div
class=
"cell flex_2"
>
<span
class=
"point"
:style=
"`background-color:
$
{item.color}
`">
</span>
<span
:style=
"`color:
$
{item.color}`">
{{
item
.
n
ame
}}
</span>
<span
class=
"point"
:style=
"`background-color:
#09a8ae
`"
></span>
<span
:style=
"`color:
#09a8ae`"
>
{{
item
.
typeN
ame
}}
</span>
</div>
<div
class=
"cell flex_3"
>
{{
item
.
value
}}
{{
item
.
unit
}}
</div>
<div
class=
"cell"
>
{{
item
.
CreatedAt
}}
</div>
...
...
@@ -278,15 +278,14 @@
setup
(
props
,
{
emit
})
{
const
state
=
reactive
({
show
:
false
,
url
:
'ezopen://open.ys7.com/E77565052/1.hd.live'
,
order_id
:
''
,
detail
:
{
poster
:[],
index
:
0
,
yewei
:
0
,
type
:
1
,
accessToken
:
'
at.bvx2ea007tfqqdvkcb9iuhk70q6gjodm-7smdnjfh9j-1wdmw5f-mal3go2vz
'
,
url
:
'
ezopen://open.ys7.com/E77565052/1.live
'
,
accessToken
:
''
,
url
:
''
,
},
showBanner
:
false
,
tabs
:
[
...
...
@@ -328,7 +327,7 @@
{
name
:
'液位'
,
prop
:
'液位'
,
value
:
0
.7
,
value
:
0
,
unit
:
'm'
,
color
:
'#09a8ae'
,
CreatedAt
:
''
,
...
...
@@ -439,6 +438,18 @@
}
});
}
function
getMonitorInfo
()
{
state
.
detail
.
accessToken
=
''
;
state
.
detail
.
url
=
''
;
api
.
getMonitorInfo
({
id
:
props
.
site_id
}).
then
((
res
)
=>
{
if
(
res
.
code
==
0
){
if
(
res
.
data
.
access_token
){
state
.
detail
.
accessToken
=
res
.
data
.
access_token
;
state
.
detail
.
url
=
res
.
data
.
camera_url
;
}
}
});
}
function
typeChange
(
type
=
1
)
{
switch
(
type
)
{
case
1
:
...
...
@@ -463,11 +474,14 @@
getYewei
();
}
if
(
item
.
value
==
'monitor'
){
// getList
();
getMonitorInfo
();
}
if
(
item
.
value
==
'history'
||
item
.
value
==
'process'
){
if
(
item
.
value
==
'history'
){
getHistoryDataList
();
}
if
(
item
.
value
==
'process'
){
getYewei
();
}
if
(
item
.
value
==
'order'
){
getOrderList
();
}
...
...
@@ -478,6 +492,16 @@
if
(
res
.
code
==
0
){
if
(
res
.
data
.
value
){
state
.
detail
.
yewei
=
Number
(
res
.
data
.
value
);
state
.
typeList
.
forEach
((
item
)
=>
{
item
.
show
=
false
;
item
.
value
=
0
;
item
.
unit
=
''
;
item
.
CreatedAt
=
''
;
if
(
item
.
name
==
"液位"
){
item
.
value
=
Number
(
res
.
data
.
value
);
item
.
unit
=
res
.
data
.
unit
;
}
});
}
}
});
...
...
@@ -595,21 +619,10 @@
}
state
.
list
.
page
=
page
;
api
.
getHistoryDataList
(
p
).
then
((
res
)
=>
{
state
.
typeList
.
forEach
((
item
)
=>
{
item
.
show
=
false
;
item
.
value
=
0
;
item
.
unit
=
''
;
item
.
CreatedAt
=
''
;
});
if
(
res
.
code
==
0
){
if
(
Array
.
isArray
(
res
.
data
.
list
)){
res
.
data
.
list
.
forEach
((
item
)
=>
{
if
(
state
.
typeList
.
find
(
one
=>
one
.
name
==
item
.
typeName
)){
state
.
typeList
.
find
(
one
=>
one
.
name
==
item
.
typeName
).
show
=
true
;
state
.
typeList
.
find
(
one
=>
one
.
name
==
item
.
typeName
).
value
=
item
.
value
;
state
.
typeList
.
find
(
one
=>
one
.
name
==
item
.
typeName
).
unit
=
item
.
unit
;
state
.
typeList
.
find
(
one
=>
one
.
name
==
item
.
typeName
).
CreatedAt
=
myPublic
.
dateFormat
.
format
(
item
.
CreatedAt
);
}
item
.
CreatedAt
=
myPublic
.
dateFormat
.
format
(
item
.
CreatedAt
);
});
state
.
list
.
data
=
res
.
data
.
list
;
state
.
list
.
total
=
res
.
data
.
total
;
...
...
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