Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huarun-binjiang-ipad
/
ipad
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
240ebd45
authored
Dec 27, 2021
by
liuwange1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改noPoint
parent
8eb80e35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
+28
-4
src/App.vue
+28
-4
No files found.
src/App.vue
View file @
240ebd45
...
...
@@ -386,6 +386,11 @@ export default {
menuCode
:
menuCode
,
})
.
then
((
e
)
=>
{
e
.
data
.
list
.
forEach
((
item
)
=>
{
if
(
!
this
.
isNumber
(
item
.
xaxis
))
{
item
.
noPoint
=
true
;
}
});
if
(
this
.
pageNum
==
1
)
{
this
.
alarmList
=
e
.
data
.
list
;
}
else
{
...
...
@@ -394,6 +399,17 @@ export default {
this
.
isScrolling
=
false
;
});
},
isNumber
(
value
)
{
if
(
value
)
{
if
(
typeof
(
value
-
0
)
===
"number"
&&
!
isNaN
(
value
-
0
))
{
return
true
;
}
else
{
return
false
;
}
}
else
{
return
false
;
}
},
// 点击报警事件
alarmClickHandle
(
index
)
{
if
(
this
.
alarmActiveIndex
==
index
)
{
...
...
@@ -404,10 +420,18 @@ export default {
});
}
else
{
this
.
alarmActiveIndex
=
index
;
this
.
$axios
.
post
(
"/osc/sendString"
,
{
arg
:
JSON
.
stringify
({
data
:
this
.
alarmList
[
index
]
}),
name
:
"/BJTC_OSC"
,
});
console
.
log
(
"type"
,
this
.
alarmList
[
index
].
noPoint
);
if
(
this
.
alarmList
[
index
].
noPoint
)
{
this
.
$axios
.
post
(
"/osc/sendString"
,
{
arg
:
JSON
.
stringify
({
data
:
this
.
alarmList
[
index
]
}),
name
:
"/BJTC_NOPOINT_OSC"
,
});
}
else
{
this
.
$axios
.
post
(
"/osc/sendString"
,
{
arg
:
JSON
.
stringify
({
data
:
this
.
alarmList
[
index
]
}),
name
:
"/BJTC_OSC"
,
});
}
}
},
scrolll
(
e
)
{
...
...
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