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
e2f0fc6e
Commit
e2f0fc6e
authored
Sep 01, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b99fd2d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
+11
-12
api.js
src/axios/api.js
+3
-2
index.vue
src/views/MLargeScreen/components/carInformation/index.vue
+4
-5
index.vue
src/views/MLargeScreen/components/smallWindow/index.vue
+4
-5
No files found.
src/axios/api.js
View file @
e2f0fc6e
...
@@ -14,8 +14,9 @@ export const manualSchedulingQuery = '/api/Manmade'; //获取人工调度信息
...
@@ -14,8 +14,9 @@ export const manualSchedulingQuery = '/api/Manmade'; //获取人工调度信息
export
const
vehicleInformationQuery
=
'
/api/CarPeop
'
;
//获取车辆信息
export
const
vehicleInformationQuery
=
'
/api/CarPeop
'
;
//获取车辆信息
export
const
vehicleInformationUpdate
=
'
/api/CarPeop
'
;
//修改车辆信息
export
const
vehicleInformationUpdate
=
'
/api/CarPeop
'
;
//修改车辆信息
export
const
apiCarClassQuery
=
'
/api/CarClass
'
;
//获取车辆类型
export
const
apiCarClassQuery
=
'
/api/CarClass
'
;
//获取车辆类型
export
const
vehicleRealTimeQuery
=
'
/api/CarReal
'
;
//获取车辆信息实时数据
export
const
vehicleRealTimeQuery
=
'
/api/CarReal
'
;
//获取车辆信息实时数据(不用)
export
const
vehicleRealTimeQuery2
=
'
/api/CarPeop/realtime
'
;
//获取车辆信息实时数据
export
const
vehicleRealTimeQuery2
=
'
/api/CarPeop/realtime
'
;
//获取车辆信息实时数据(不用)
export
const
apiManmadesRealQuery
=
'
/api/Manmades/Real
'
;
//获取车辆信息实时数据(使用)
export
const
personalCenterInforQuery
=
'
/api/Drivers
'
;
//获取个人信息
export
const
personalCenterInforQuery
=
'
/api/Drivers
'
;
//获取个人信息
export
const
failureDeclarationAdd
=
'
/api/Hitch
'
;
//故障申报提交
export
const
failureDeclarationAdd
=
'
/api/Hitch
'
;
//故障申报提交
export
const
achievementStatisticsQuery
=
'
/api/DispatchReal
'
;
//获取绩效统计——司机考核
export
const
achievementStatisticsQuery
=
'
/api/DispatchReal
'
;
//获取绩效统计——司机考核
...
...
src/views/MLargeScreen/components/carInformation/index.vue
View file @
e2f0fc6e
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
<
script
>
<
script
>
import
{
httpGet
,
httpPostForJson
,
putForJson
,
httpDelForJson
}
from
"
@/common/httpBean.js
"
import
{
httpGet
,
httpPostForJson
,
putForJson
,
httpDelForJson
}
from
"
@/common/httpBean.js
"
import
{
vehicleInformationQuery
,
vehicleRealTimeQuery2
}
from
"
@/axios/api.js
"
import
{
vehicleInformationQuery
,
apiManmadesRealQuery
}
from
"
@/axios/api.js
"
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -86,7 +86,6 @@ export default {
...
@@ -86,7 +86,6 @@ export default {
},
},
}
}
},
},
mounted
()
{},
methods
:
{
methods
:
{
loadData
(
value
)
{
loadData
(
value
)
{
let
byValue
=
value
;
let
byValue
=
value
;
...
@@ -100,9 +99,9 @@ export default {
...
@@ -100,9 +99,9 @@ export default {
}
}
}
}
});
});
httpGet
(
vehicleRealTimeQuery2
,{
number
:
byValue
}).
then
((
res
)
=>
{
httpGet
(
apiManmadesRealQuery
,{
number
:
byValue
}).
then
((
res
)
=>
{
if
(
res
.
code
==
20
0
){
if
(
res
.
length
!=
0
){
this
.
realTimeData
=
res
.
data
;
this
.
realTimeData
=
res
[
0
]
;
}
}
});
});
},
},
...
...
src/views/MLargeScreen/components/smallWindow/index.vue
View file @
e2f0fc6e
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<
script
>
<
script
>
import
{
httpGet
,
httpPostForJson
,
putForJson
,
httpDelForJson
}
from
"
@/common/httpBean.js
"
import
{
httpGet
,
httpPostForJson
,
putForJson
,
httpDelForJson
}
from
"
@/common/httpBean.js
"
import
{
vehicleRealTimeQuery2
}
from
"
@/axios/api.js
"
import
{
apiManmadesRealQuery
}
from
"
@/axios/api.js
"
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -40,15 +40,14 @@ export default {
...
@@ -40,15 +40,14 @@ export default {
personalName
:
''
,
personalName
:
''
,
}
}
},
},
mounted
()
{
},
methods
:
{
methods
:
{
loadData
(
carnumber
)
{
loadData
(
carnumber
)
{
this
.
showDecide
=
true
;
this
.
showDecide
=
true
;
this
.
carnumber
=
carnumber
;
this
.
carnumber
=
carnumber
;
//获取实时数据
//获取实时数据
httpGet
(
vehicleRealTimeQuery2
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
httpGet
(
apiManmadesRealQuery
,{
number
:
this
.
carnumber
}).
then
((
res
)
=>
{
if
(
res
.
code
==
20
0
){
if
(
res
.
length
!=
0
){
this
.
carInformationData2
=
res
.
data
.
content
[
0
];
this
.
carInformationData2
=
res
[
0
];
}
}
});
});
},
},
...
...
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