Commit 38c1331b authored by 罗超's avatar 罗超

no message

parent 2d5d00ae
...@@ -337,7 +337,7 @@ ...@@ -337,7 +337,7 @@
,mounted(){ ,mounted(){
// crm自动登陆传过来的参数 // crm自动登陆传过来的参数
if(this.$route.query.crmOrderObj){ if(this.$route.query.crmOrderObj){
this.crmOrderObj = this.$route.query.crmOrderObj this.crmOrderObj = JSON.parse(this.$route.query.crmOrderObj)
this.active = this.crmOrderObj.type this.active = this.crmOrderObj.type
this.showTab = this.crmOrderObj.type this.showTab = this.crmOrderObj.type
}else{ }else{
......
...@@ -976,7 +976,13 @@ export default { ...@@ -976,7 +976,13 @@ export default {
"dmcTravelBill":dmcTravelBill "dmcTravelBill":dmcTravelBill
}, },
created(){ created(){
this.ID = this.$route.query.id; // // crm自动登陆传过来的参数
if(this.$route.query.crmOrderObj){
let data = JSON.parse(this.$route.query.crmOrderObj)
this.ID = data.id
}else{
this.ID = this.$route.query.id;
}
this.pageIndex = this.$route.query.pageIndex; this.pageIndex = this.$route.query.pageIndex;
let userinfo = this.getLocalStorage(); let userinfo = this.getLocalStorage();
this.bossID = userinfo.EmployeeId; this.bossID = userinfo.EmployeeId;
......
...@@ -31,7 +31,8 @@ ...@@ -31,7 +31,8 @@
password: "", password: "",
Domain: "" Domain: ""
}, },
crmOrderObj:{} crmOrderObj:{},
obj:{}
} }
}, },
components: { components: {
...@@ -41,39 +42,23 @@ ...@@ -41,39 +42,23 @@
}, },
created() { created() {
let href = window.location.href; if(this.$route.query){
if(href){ let param = JSON.parse(this.$route.query.data) ;
let param = href.split('?')[1].split("&") ; this.obj.token=this.$route.query.token;
if(param){ if(param){
let obj={}; this.obj.parameter=param[0]
obj.token=param[0].split('=')[1]; localStorage.crmuserInfo = JSON.stringify(this.obj);
obj.type=param[1].split('=')[1];
obj.OtherType=param[2].split('=')[1];
obj.ReFinanceId=param[3].split('=')[1];
obj.ReFinanceId2=param[4].split('=')[1];
obj.GuestId=param[5].split('=')[1];
localStorage.crmuserInfo = JSON.stringify(obj);
} }
} }
if(!this.getLocalStorage()){ if(!this.getLocalStorage()){
this.autoLogin() this.autoLogin()
}else{ }else{
var data = JSON.parse(localStorage.crmuserInfo) var data = JSON.parse(localStorage.crmuserInfo)
this.crmOrderObj = {
token: data.token,
type: data.type,
OtherType: data.OtherType,
ReFinanceId: data.ReFinanceId,
ReFinanceId2: data.ReFinanceId2,
GuestId: data.GuestId
}
// ?token=${data.token}&type=${data.type}&OtherType=${data.OtherType}&ReFinanceId=${data.ReFinanceId}&ReFinanceId2=${data.ReFinanceId2}&GuestId=${data.GuestId}
this.$router.push({ this.$router.push({
path: `ChoiceAddFinancialDocuments`, path: data.parameter.path,
query:{ query:{
crmOrderObj: this.crmOrderObj, crmOrderObj: JSON.stringify(data.parameter),
Type: data.type Type: data.parameter.type
} }
}); });
} }
...@@ -108,23 +93,16 @@ ...@@ -108,23 +93,16 @@
this.$cookie.set("RB_Group_id", userData.RB_Group_id); this.$cookie.set("RB_Group_id", userData.RB_Group_id);
localStorage.menu = JSON.stringify(firstTire) localStorage.menu = JSON.stringify(firstTire)
this.loginState = 0; this.loginState = 0;
var data = JSON.parse(localStorage.crmuserInfo) var data = JSON.parse(localStorage.crmuserInfo)
this.crmOrderObj = {
token: data.token,
type: data.type,
OtherType: data.OtherType,
ReFinanceId: data.ReFinanceId,
ReFinanceId2: data.ReFinanceId2,
GuestId: data.GuestId
}
// ?token=${data.token}&type=${data.type}&OtherType=${data.OtherType}&ReFinanceId=${data.ReFinanceId}&ReFinanceId2=${data.ReFinanceId2}&GuestId=${data.GuestId}
this.$router.push({ this.$router.push({
path: `ChoiceAddFinancialDocuments`, path: data.parameter.path,
query:{ query:{
crmOrderObj: this.crmOrderObj, crmOrderObj: JSON.stringify(data.parameter),
Type: data.type Type: data.parameter.type
} }
}); });
} else { } else {
this.$notify.error({ this.$notify.error({
title: "提示", title: "提示",
......
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