Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NewTruckTerminalSyetem
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
SQL_Mou
NewTruckTerminalSyetem
Commits
750ae3d4
Commit
750ae3d4
authored
Aug 19, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
af14f022
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
14 deletions
+6
-14
index.vue
src/views/MLargeScreen/components/carInformation/index.vue
+3
-7
index.vue
src/views/MLargeScreen/components/smallWindow/index.vue
+3
-7
No files found.
src/views/MLargeScreen/components/carInformation/index.vue
View file @
750ae3d4
...
...
@@ -69,7 +69,7 @@
<
script
>
import
{
httpGet
,
httpPostForJson
,
putForJson
,
httpDelForJson
}
from
"
@/common/httpBean.js
"
import
{
vehicleInformationQuery
,
vehicleRealTimeQuery
}
from
"
@/axios/api.js
"
import
{
vehicleInformationQuery
,
vehicleRealTimeQuery
2
}
from
"
@/axios/api.js
"
export
default
{
data
()
{
...
...
@@ -100,13 +100,9 @@ export default {
}
}
});
httpGet
(
vehicleRealTimeQuery
,{
number
:
byValue
}).
then
((
res
)
=>
{
httpGet
(
vehicleRealTimeQuery
2
,{
number
:
byValue
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
data
.
totalElements
==
0
){
return
}
else
{
this
.
realTimeData
=
res
.
data
.
content
[
0
];
}
this
.
realTimeData
=
res
.
data
;
}
});
},
...
...
src/views/MLargeScreen/components/smallWindow/index.vue
View file @
750ae3d4
...
...
@@ -29,7 +29,7 @@
<
script
>
import
{
httpGet
,
httpPostForJson
,
putForJson
,
httpDelForJson
}
from
"
@/common/httpBean.js
"
import
{
vehicleRealTimeQuery
}
from
"
@/axios/api.js
"
import
{
vehicleRealTimeQuery
2
}
from
"
@/axios/api.js
"
export
default
{
data
()
{
...
...
@@ -46,14 +46,10 @@ export default {
this
.
showDecide
=
true
;
this
.
carnumber
=
carnumber
;
//获取实时数据
httpGet
(
vehicleRealTimeQuery
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
httpGet
(
vehicleRealTimeQuery
2
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
data
.
totalElements
==
0
){
return
}
else
{
this
.
carInformationData2
=
res
.
data
.
content
[
0
];
}
}
});
},
carInCloseFn
(){
...
...
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