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
e3d4cfe5
Commit
e3d4cfe5
authored
Sep 05, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
29477bde
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
api.js
src/axios/api.js
+1
-0
index.vue
src/views/MLargeScreen/index.vue
+6
-2
No files found.
src/axios/api.js
View file @
e3d4cfe5
...
...
@@ -27,6 +27,7 @@ export const carsInforQuery = '/api/CarBreak'; //获取语音申请车辆
export
const
faultInforQuery
=
'
/api/BreakClass
'
;
//获取车辆故障类型
export
const
carRealTimeLocationQuery1
=
'
/gps/all
'
;
//获取车辆实时位置
export
const
carRealTimeLocationQuery2
=
'
/gps
'
;
//获取一个车辆位置
export
const
gpsPhoneGpsQuery
=
'
/gps/phoneGps
'
;
//获取一个车辆位置
export
const
faultDayAdd
=
'
/api/Fault
'
;
//添加故障日报
export
const
faultMonthAdd
=
'
/api/FaultMonth
'
;
//添加故障月报
export
const
faultYearAdd
=
'
/api/FaultYear
'
;
//添加故障年报
...
...
src/views/MLargeScreen/index.vue
View file @
e3d4cfe5
...
...
@@ -81,6 +81,7 @@ import {
dispatchFinishQuery
,
carRealTimeLocationQuery2
,
failureDeclarationAdd
,
gpsPhoneGpsQuery
,
}
from
"
@/axios/api.js
"
import
startOrderReceiving
from
'
./components/startOrderReceiving/index.vue
'
//接受派单
import
voiceApplication
from
'
./components/voiceApplication/index.vue
'
//语音申请
...
...
@@ -271,8 +272,11 @@ export default {
LoaObj1
.
location
=
LoaObj1xy
;
LoaObj1
.
name
=
that
.
equipmentName
;
LoaObj1
.
time
=
new
Date
().
getTime
();
console
.
log
(
JSON
.
stringify
(
LoaObj1
));
//httpPostForJson(carRealTimeLocationQuery2,JSON.stringify(LoaObj1)).then((res1) => {})
let
zuizhong1
=
{};
zuizhong1
.
name
=
that
.
equipmentName
;
zuizhong1
.
jsonObject
=
JSON
.
stringify
(
LoaObj1
);
httpPostForJson
(
gpsPhoneGpsQuery
,
zuizhong1
).
then
((
res1
)
=>
{})
httpPostForJson
(
carRealTimeLocationQuery2
,
JSON
.
stringify
(
LoaObj1
)).
then
((
res2
)
=>
{})
},
//locationError 获取失败的话
function
(
error
)
{
...
...
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