Commit cc29242c authored by zhangyanni's avatar zhangyanni

成功之后跳转

parent 05360626
......@@ -14,8 +14,8 @@
<div class="successButton" v-if="loginVisible||authVisible">
<el-button type="primary" @click="handleToIndex(1)">{{$t("topNav.findProject")}}</el-button>
<el-button type="primary" @click="handleToIndex(2)">{{$t("topNav.findCustomer")}}</el-button>
<el-button v-if="userInfo&&userInfo.empType == 0" style="margin-top: 0.3rem" type="warning" @click="handleToIndex(5)">{{$t("topNav.submitPro")}}</el-button>
<el-button v-if="userInfo&&userInfo.empType == 1" style="margin-top: 0.3rem" type="warning" @click="handleToIndex(6)">{{$t("commonTitle.sendRequire")}}</el-button>
<el-button v-if="userInfo&&publicFun.getUserDetailRoleFunc()==1" style="margin-top: 0.3rem" type="warning" @click="handleToIndex(5)">{{$t("topNav.submitPro")}}</el-button>
<el-button v-if="userInfo&&publicFun.getUserDetailRoleFunc()==1" style="margin-top: 0.3rem" type="warning" @click="handleToIndex(6)">{{$t("commonTitle.sendRequire")}}</el-button>
</div>
<div class="successTitle" v-if="registerVisible">
......@@ -55,9 +55,17 @@
},
methods:{
handleToIndex(type){
if(type==1) this.$router.replace({path:"/projectlist",query:{state:true}}); //
if(type==1) {
globalMsg.$emit("sendContactIndex",1)
globalMsg.$emit('sendSelected', "contact");
this.$router.replace({path:"/tabconnect",query:{tabIndex:1}});
} //
if(type==2) {
this.$router.push("/phoneBusinessList");
globalMsg.$emit("sendContactIndex",2)
globalMsg.$emit('sendSelected', "contact");
this.$router.replace({path:"/tabconnect",query:{tabIndex:2}});
// this.$router.push("/phoneBusinessList");
}
if(type==3){
this.$router.push("/mobileAddAuth")
......
......@@ -197,33 +197,7 @@
},
handleToCom(){
if(this.userInfo.empType==1){
this.$router.push('/reminder')
}
else if(this.userInfo.empType==0){
let params = {
pagination:{
numberOfPages:1,
number:10
},
search:{}
};
api.selectProjected(params).then((res)=>{
if(res.code==0){
if(res.result.records.length==0){
this.$router.push('/projectrelease')
}else{
this.$router.push('/reminder')
}
}else{
this.$toast(res.msg);
}
}).catch((err)=>{
this.$toast(err);
})
}
this.$router.push('/reminder');
},
handleTrans(flag){
......
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