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
2263e06b
Commit
2263e06b
authored
Nov 16, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
4b54e36f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
48 deletions
+8
-48
Login.vue
src/views/Login.vue
+8
-48
No files found.
src/views/Login.vue
View file @
2263e06b
...
...
@@ -95,37 +95,13 @@ export default {
//查询车辆表中设备是否与车辆绑定
httpGet
(
vehicleInformationQuery
,{
equipmentName
:
that
.
deviceOAID
}).
then
((
resCar
)
=>
{
if
(
resCar
.
code
==
200
&&
resCar
.
data
.
totalElements
!=
0
){
// that.$message({
// message: "设备检索完毕,可进行登录!",
// type: 'success'
// });
that
.
bindingStatus
=
true
;
}
else
{
// that.$message({
// message: "请在后台系统中将该设备与车辆绑定后再进行登录!",
// type: 'error'
// });
// that.$message({
// showClose: true,
// message: "设备号:" + that.deviceOAID,
// type: 'error',
// duration: 0
// });
that
.
bindingStatus
=
false
;
}
})
}
else
{
httpPostForJson
(
apiEquipmentQuery
,{
name
:
that
.
deviceOAID
,
status
:
'
正常
'
}).
then
((
res
)
=>
{
// that.$message({
// message: "请在后台系统中将该设备与车辆绑定后再进行登录!",
// type: 'error'
// });
// that.$message({
// showClose: true,
// message: "设备号:" + that.deviceOAID,
// type: 'error',
// duration: 0
// });
that
.
bindingStatus
=
false
;
})
}
...
...
@@ -133,10 +109,6 @@ export default {
},
fail
:
function
(
e
){
console
.
log
(
'
getDeviceInfo failed:
'
+
JSON
.
stringify
(
e
));
// that.$message({
// message: "获取设备信息失败,请退出系统并且开启权限后重试!",
// type: 'error'
// });
that
.
bindingStatus
=
false
;
}
})
...
...
@@ -176,34 +148,22 @@ export default {
this
.
LoginInitiation
();
}
else
{
this
.
$message
({
message
:
"
请在后台系统中将该设备与车辆绑定后再进行登录!
"
,
type
:
'
warning
'
showClose
:
true
,
message
:
"
请在后台系统中将该设备与车辆绑定后再进行登录!设备号:
"
+
this
.
deviceOAID
,
type
:
'
warning
'
,
duration
:
0
});
this
.
$nextTick
(()
=>
{
this
.
$message
({
showClose
:
true
,
message
:
"
设备号:
"
+
this
.
deviceOAID
,
type
:
'
warning
'
,
duration
:
0
});
})
this
.
bindingStatus
=
false
;
}
})
}
else
{
httpPostForJson
(
apiEquipmentQuery
,{
name
:
this
.
deviceOAID
,
status
:
'
正常
'
}).
then
((
res
)
=>
{
this
.
$message
({
message
:
"
请在后台系统中将该设备与车辆绑定后再进行登录!
"
,
type
:
'
warning
'
showClose
:
true
,
message
:
"
请在后台系统中将该设备与车辆绑定后再进行登录!设备号:
"
+
this
.
deviceOAID
,
type
:
'
warning
'
,
duration
:
0
});
this
.
$nextTick
(()
=>
{
this
.
$message
({
showClose
:
true
,
message
:
"
设备号:
"
+
this
.
deviceOAID
,
type
:
'
warning
'
,
duration
:
0
});
})
this
.
bindingStatus
=
false
;
})
}
...
...
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