Commit 77ef2e21 authored by xxx's avatar xxx

修改登录时修改人员与车辆绑定操作

parent 01333c66
......@@ -187,6 +187,14 @@ export default {
if (user.password !== this.cookiePass) {
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){
httpPostForJson(login, user).then( res =>{
let that = this;
......@@ -202,16 +210,7 @@ export default {
Cookies.remove('username')
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});
})
}
});
}
})
} else {
......
......@@ -100,10 +100,6 @@ export default {
}
if(resSon1.data.content[0].workStatus == 0 && this.paidanFlag == 0){
if(res_1.data.content[0].orderClass == 0){
this.zhinengjiedan = this.zhinengjiedan + 1;
if(this.zhinengjiedan >= 4){
this.startPaidanFn();
}
this.showDe = true;
this.btnShow1 = true;
this.btnShow2 = false;
......@@ -118,6 +114,10 @@ export default {
let au = document.getElementById('audio1');
au.currentTime = 0;
au.play();
this.zhinengjiedan = this.zhinengjiedan + 1;
if(this.zhinengjiedan >= 7){
this.startPaidanFn();
}
}else{
this.showDe = true;
this.btnShow1 = false;
......@@ -202,10 +202,6 @@ export default {
this.btnShow3 = true;
this.btnShow4 = true;
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.showDe = true;
this.btnShow1 = true;
......@@ -220,6 +216,10 @@ export default {
let au = document.getElementById('audio1');
au.currentTime = 0;
au.play();
if(this.rengongjiedan >= 7){
this.startPaidanFn();
}
this.rengongjiedan = this.rengongjiedan + 1;
}else{
if(this.paidanFlag == 0){
this.rengongjiedan = this.rengongjiedan + 1;
......@@ -239,10 +239,6 @@ export default {
au.play();
}else{
if(this.zuizhongpaidanFlag == 0){
if(this.rengongjiedan >= 4){
this.startPaidanFn();
}
this.rengongjiedan = this.rengongjiedan + 1;
this.paidanFlag = res.data.content[0].flag;
this.showDe = true;
this.btnShow1 = true;
......@@ -257,6 +253,10 @@ export default {
let au = document.getElementById('audio1');
au.currentTime = 0;
au.play();
if(this.rengongjiedan >= 7){
this.startPaidanFn();
}
this.rengongjiedan = this.rengongjiedan + 1;
}
}
}
......@@ -309,10 +309,6 @@ export default {
this.btnShow3 = true;
this.btnShow4 = true;
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.showDe = true;
this.btnShow1 = true;
......@@ -327,6 +323,10 @@ export default {
let au = document.getElementById('audio1');
au.currentTime = 0;
au.play();
if(this.rengongjiedan >= 7){
this.startPaidanFn();
}
this.rengongjiedan = this.rengongjiedan + 1;
}else{
if(this.paidanFlag == 0){
this.rengongjiedan = this.rengongjiedan + 1;
......@@ -346,10 +346,6 @@ export default {
au.play();
}else{
if(this.zuizhongpaidanFlag == 0){
if(this.rengongjiedan >= 4){
this.startPaidanFn();
}
this.rengongjiedan = this.rengongjiedan + 1;
this.paidanFlag = res.data.content[0].flag;
this.showDe = true;
this.btnShow1 = true;
......@@ -364,6 +360,10 @@ export default {
let au = document.getElementById('audio1');
au.currentTime = 0;
au.play();
if(this.rengongjiedan >= 7){
this.startPaidanFn();
}
this.rengongjiedan = this.rengongjiedan + 1;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment