Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-front
Overview
Overview
Details
Activity
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
platform
hg-front
Commits
303d4ad6
Commit
303d4ad6
authored
Nov 01, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
1bcfc2e2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
260 additions
and
95 deletions
+260
-95
index.vue
pages/device-cockpit/index.vue
+132
-4
home.vue
pages/home/home.vue
+128
-91
No files found.
pages/device-cockpit/index.vue
View file @
303d4ad6
...
...
@@ -37,7 +37,7 @@
<view
class=
"flex-between"
>
<view
class=
"flex-row-center"
>
<image
class=
"icon"
src=
"../../static/big-data/line_icon.png"
mode=
"widthFix"
></image>
<text
class=
"text-title text-lg text-bold"
>
{{
item
.
deviceName
}}
</text>
<text
class=
"text-title text-lg text-bold"
>
{{
item
.
deviceName
}}
-
{{
item
.
deviceModel
}}
</text>
</view>
<view
class=
"flex-row-center"
>
<image
v-if=
"['1','2','3','4'].includes(item.status)"
class=
"icon"
src=
"../../static/d_s_1.png"
mode=
"widthFix"
></image>
...
...
@@ -165,7 +165,8 @@
4
:
"复位"
,
5
:
"一级报警"
,
6
:
"二级报警"
}
},
mockDataList
:
[]
};
},
onLoad
()
{
...
...
@@ -212,8 +213,135 @@
companyCode
:
this
.
factoryList
[
this
.
factoryIndex
].
companyCode
,
date
:
moment
(
this
.
date
).
format
(
"YYYYMMDD"
)
}).
then
(
res
=>
{
if
(
res
.
data
.
__sys__
.
status
===
0
)
{
this
.
dataChatList
=
res
.
data
.
result
.
map
(
item
=>
{
if
(
res
.
data
.
__sys__
.
status
===
0
&&
res
.
data
.
result
)
{
let
list
=
res
.
data
.
result
this
.
mockDataList
=
[
{
deviceCode
:
'SB000098'
,
deviceModel
:
'G8098F'
,
deviceName
:
'切割机_98'
,
errerTime
:[
{
[
moment
(
this
.
date
).
subtract
(
6
,
'd'
).
format
(
"MMDD"
)]:
212
},
{
[
moment
(
this
.
date
).
subtract
(
5
,
'd'
).
format
(
"MMDD"
)]:
300
,
},
{
[
moment
(
this
.
date
).
subtract
(
4
,
'd'
).
format
(
"MMDD"
)]:
146
,
},
{
[
moment
(
this
.
date
).
subtract
(
3
,
'd'
).
format
(
"MMDD"
)]:
245
,
},
{
[
moment
(
this
.
date
).
subtract
(
2
,
'd'
).
format
(
"MMDD"
)]:
242
,
},
{
[
moment
(
this
.
date
).
subtract
(
1
,
'd'
).
format
(
"MMDD"
)]:
106
,
},
{
[
moment
(
this
.
date
).
format
(
"MMDD"
)]:
123
}
],
runTime
:[
{
[
moment
(
this
.
date
).
subtract
(
6
,
'd'
).
format
(
"MMDD"
)]:
12
},
{
[
moment
(
this
.
date
).
subtract
(
5
,
'd'
).
format
(
"MMDD"
)]:
34
},
{
[
moment
(
this
.
date
).
subtract
(
4
,
'd'
).
format
(
"MMDD"
)]:
24
},
{
[
moment
(
this
.
date
).
subtract
(
3
,
'd'
).
format
(
"MMDD"
)]:
45
},
{
[
moment
(
this
.
date
).
subtract
(
2
,
'd'
).
format
(
"MMDD"
)]:
61
},
{
[
moment
(
this
.
date
).
subtract
(
1
,
'd'
).
format
(
"MMDD"
)]:
68
},
{
[
moment
(
this
.
date
).
format
(
"MMDD"
)]:
31
}
],
status
:
'1'
},
{
deviceCode
:
'SB000099'
,
deviceModel
:
'G8099F'
,
deviceName
:
'切割机_99'
,
errerTime
:[
{
[
moment
(
this
.
date
).
subtract
(
6
,
'd'
).
format
(
"MMDD"
)]:
232
},
{
[
moment
(
this
.
date
).
subtract
(
5
,
'd'
).
format
(
"MMDD"
)]:
240
,
},
{
[
moment
(
this
.
date
).
subtract
(
4
,
'd'
).
format
(
"MMDD"
)]:
186
,
},
{
[
moment
(
this
.
date
).
subtract
(
3
,
'd'
).
format
(
"MMDD"
)]:
145
,
},
{
[
moment
(
this
.
date
).
subtract
(
2
,
'd'
).
format
(
"MMDD"
)]:
222
,
},
{
[
moment
(
this
.
date
).
subtract
(
1
,
'd'
).
format
(
"MMDD"
)]:
116
,
},
{
[
moment
(
this
.
date
).
format
(
"MMDD"
)]:
223
}
],
runTime
:[
{
[
moment
(
this
.
date
).
subtract
(
6
,
'd'
).
format
(
"MMDD"
)]:
24
},
{
[
moment
(
this
.
date
).
subtract
(
5
,
'd'
).
format
(
"MMDD"
)]:
24
},
{
[
moment
(
this
.
date
).
subtract
(
4
,
'd'
).
format
(
"MMDD"
)]:
14
},
{
[
moment
(
this
.
date
).
subtract
(
3
,
'd'
).
format
(
"MMDD"
)]:
25
},
{
[
moment
(
this
.
date
).
subtract
(
2
,
'd'
).
format
(
"MMDD"
)]:
41
},
{
[
moment
(
this
.
date
).
subtract
(
1
,
'd'
).
format
(
"MMDD"
)]:
48
},
{
[
moment
(
this
.
date
).
format
(
"MMDD"
)]:
21
}
],
status
:
'1'
}
]
list
.
push
(...
this
.
mockDataList
)
this
.
dataChatList
=
list
.
map
(
item
=>
{
return
{
...
item
,
echartShow
:
false
,
...
...
pages/home/home.vue
View file @
303d4ad6
This diff is collapsed.
Click to expand it.
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