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
77ef2e21
Commit
77ef2e21
authored
Nov 16, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登录时修改人员与车辆绑定操作
parent
01333c66
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
30 deletions
+29
-30
Login.vue
src/views/Login.vue
+9
-10
index.vue
...ews/MLargeScreen/components/startOrderReceiving/index.vue
+20
-20
No files found.
src/views/Login.vue
View file @
77ef2e21
...
@@ -187,6 +187,14 @@ export default {
...
@@ -187,6 +187,14 @@ export default {
if
(
user
.
password
!==
this
.
cookiePass
)
{
if
(
user
.
password
!==
this
.
cookiePass
)
{
user
.
password
=
encrypt
(
user
.
password
)
user
.
password
=
encrypt
(
user
.
password
)
}
}
//修改人员表中绑定的车辆personalCenterInforQuery
httpGet
(
personalCenterInforQuery
,{
userName
:
user
.
username
}).
then
((
respersonal
)
=>
{
if
(
respersonal
.
code
==
200
&&
respersonal
.
data
.
totalElements
!=
0
){
let
lastpersonalData
=
respersonal
.
data
.
content
[
0
];
lastpersonalData
.
car
=
that
.
bindingCar
;
putForJson
(
personalCenterInforQuery
,
lastpersonalData
).
then
((
res
)
=>
{})
}
});
if
(
valid
){
if
(
valid
){
httpPostForJson
(
login
,
user
).
then
(
res
=>
{
httpPostForJson
(
login
,
user
).
then
(
res
=>
{
let
that
=
this
;
let
that
=
this
;
...
@@ -202,16 +210,7 @@ export default {
...
@@ -202,16 +210,7 @@ export default {
Cookies
.
remove
(
'
username
'
)
Cookies
.
remove
(
'
username
'
)
Cookies
.
remove
(
'
password
'
)
Cookies
.
remove
(
'
password
'
)
}
}
//修改人员表中绑定的车辆personalCenterInforQuery
httpGet
(
personalCenterInforQuery
,{
userName
:
user
.
username
}).
then
((
respersonal
)
=>
{
if
(
respersonal
.
code
==
200
&&
respersonal
.
data
.
totalElements
!=
0
){
let
lastpersonalData
=
respersonal
.
data
.
content
[
0
];
lastpersonalData
.
car
=
that
.
bindingCar
;
putForJson
(
personalCenterInforQuery
,
lastpersonalData
).
then
((
res
)
=>
{
that
.
$router
.
push
({
path
:
'
/MLargeScreen/index?
'
+
user
.
username
});
that
.
$router
.
push
({
path
:
'
/MLargeScreen/index?
'
+
user
.
username
});
})
}
});
}
}
})
})
}
else
{
}
else
{
...
...
src/views/MLargeScreen/components/startOrderReceiving/index.vue
View file @
77ef2e21
...
@@ -100,10 +100,6 @@ export default {
...
@@ -100,10 +100,6 @@ export default {
}
}
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
&&
this
.
paidanFlag
==
0
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
&&
this
.
paidanFlag
==
0
){
if
(
res_1
.
data
.
content
[
0
].
orderClass
==
0
){
if
(
res_1
.
data
.
content
[
0
].
orderClass
==
0
){
this
.
zhinengjiedan
=
this
.
zhinengjiedan
+
1
;
if
(
this
.
zhinengjiedan
>=
4
){
this
.
startPaidanFn
();
}
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow2
=
false
;
this
.
btnShow2
=
false
;
...
@@ -118,6 +114,10 @@ export default {
...
@@ -118,6 +114,10 @@ export default {
let
au
=
document
.
getElementById
(
'
audio1
'
);
let
au
=
document
.
getElementById
(
'
audio1
'
);
au
.
currentTime
=
0
;
au
.
currentTime
=
0
;
au
.
play
();
au
.
play
();
this
.
zhinengjiedan
=
this
.
zhinengjiedan
+
1
;
if
(
this
.
zhinengjiedan
>=
7
){
this
.
startPaidanFn
();
}
}
else
{
}
else
{
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
false
;
this
.
btnShow1
=
false
;
...
@@ -202,10 +202,6 @@ export default {
...
@@ -202,10 +202,6 @@ export default {
this
.
btnShow3
=
true
;
this
.
btnShow3
=
true
;
this
.
btnShow4
=
true
;
this
.
btnShow4
=
true
;
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
){
if
(
this
.
rengongjiedan
>=
4
){
this
.
startPaidanFn
();
}
this
.
rengongjiedan
=
this
.
rengongjiedan
+
1
;
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow1
=
true
;
...
@@ -220,6 +216,10 @@ export default {
...
@@ -220,6 +216,10 @@ export default {
let
au
=
document
.
getElementById
(
'
audio1
'
);
let
au
=
document
.
getElementById
(
'
audio1
'
);
au
.
currentTime
=
0
;
au
.
currentTime
=
0
;
au
.
play
();
au
.
play
();
if
(
this
.
rengongjiedan
>=
7
){
this
.
startPaidanFn
();
}
this
.
rengongjiedan
=
this
.
rengongjiedan
+
1
;
}
else
{
}
else
{
if
(
this
.
paidanFlag
==
0
){
if
(
this
.
paidanFlag
==
0
){
this
.
rengongjiedan
=
this
.
rengongjiedan
+
1
;
this
.
rengongjiedan
=
this
.
rengongjiedan
+
1
;
...
@@ -239,10 +239,6 @@ export default {
...
@@ -239,10 +239,6 @@ export default {
au
.
play
();
au
.
play
();
}
else
{
}
else
{
if
(
this
.
zuizhongpaidanFlag
==
0
){
if
(
this
.
zuizhongpaidanFlag
==
0
){
if
(
this
.
rengongjiedan
>=
4
){
this
.
startPaidanFn
();
}
this
.
rengongjiedan
=
this
.
rengongjiedan
+
1
;
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow1
=
true
;
...
@@ -257,6 +253,10 @@ export default {
...
@@ -257,6 +253,10 @@ export default {
let
au
=
document
.
getElementById
(
'
audio1
'
);
let
au
=
document
.
getElementById
(
'
audio1
'
);
au
.
currentTime
=
0
;
au
.
currentTime
=
0
;
au
.
play
();
au
.
play
();
if
(
this
.
rengongjiedan
>=
7
){
this
.
startPaidanFn
();
}
this
.
rengongjiedan
=
this
.
rengongjiedan
+
1
;
}
}
}
}
}
}
...
@@ -309,10 +309,6 @@ export default {
...
@@ -309,10 +309,6 @@ export default {
this
.
btnShow3
=
true
;
this
.
btnShow3
=
true
;
this
.
btnShow4
=
true
;
this
.
btnShow4
=
true
;
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
){
if
(
this
.
rengongjiedan
>=
4
){
this
.
startPaidanFn
();
}
this
.
rengongjiedan
=
this
.
rengongjiedan
+
1
;
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow1
=
true
;
...
@@ -327,6 +323,10 @@ export default {
...
@@ -327,6 +323,10 @@ export default {
let
au
=
document
.
getElementById
(
'
audio1
'
);
let
au
=
document
.
getElementById
(
'
audio1
'
);
au
.
currentTime
=
0
;
au
.
currentTime
=
0
;
au
.
play
();
au
.
play
();
if
(
this
.
rengongjiedan
>=
7
){
this
.
startPaidanFn
();
}
this
.
rengongjiedan
=
this
.
rengongjiedan
+
1
;
}
else
{
}
else
{
if
(
this
.
paidanFlag
==
0
){
if
(
this
.
paidanFlag
==
0
){
this
.
rengongjiedan
=
this
.
rengongjiedan
+
1
;
this
.
rengongjiedan
=
this
.
rengongjiedan
+
1
;
...
@@ -346,10 +346,6 @@ export default {
...
@@ -346,10 +346,6 @@ export default {
au
.
play
();
au
.
play
();
}
else
{
}
else
{
if
(
this
.
zuizhongpaidanFlag
==
0
){
if
(
this
.
zuizhongpaidanFlag
==
0
){
if
(
this
.
rengongjiedan
>=
4
){
this
.
startPaidanFn
();
}
this
.
rengongjiedan
=
this
.
rengongjiedan
+
1
;
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
showDe
=
true
;
this
.
showDe
=
true
;
this
.
btnShow1
=
true
;
this
.
btnShow1
=
true
;
...
@@ -364,6 +360,10 @@ export default {
...
@@ -364,6 +360,10 @@ export default {
let
au
=
document
.
getElementById
(
'
audio1
'
);
let
au
=
document
.
getElementById
(
'
audio1
'
);
au
.
currentTime
=
0
;
au
.
currentTime
=
0
;
au
.
play
();
au
.
play
();
if
(
this
.
rengongjiedan
>=
7
){
this
.
startPaidanFn
();
}
this
.
rengongjiedan
=
this
.
rengongjiedan
+
1
;
}
}
}
}
}
}
...
...
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