|
|
@@ -2,7 +2,9 @@ |
|
|
|
<div> |
|
|
|
<div class="head"> |
|
|
|
<div>质控管家管理系统</div> |
|
|
|
<div class="callback" @click="goloign" style="cursor: pointer">退出</div> |
|
|
|
<div class="callback" @click="goloign" style="cursor: pointer"> |
|
|
|
{{ backFlag ? "返回" : "退出" }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="hid">选择后台</div> |
|
|
|
<div class="content"> |
|
|
@@ -39,11 +41,15 @@ export default { |
|
|
|
tabFlag3: false, |
|
|
|
// 楼盘后台标志 |
|
|
|
tabFlag4: false, |
|
|
|
backFlag: false, |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: {}, |
|
|
|
mounted() { |
|
|
|
// console.log(123); |
|
|
|
console.log(this.$route.query.backFlag); |
|
|
|
if (this.$route.query.backFlag) { |
|
|
|
this.backFlag = this.$route.query.backFlag; |
|
|
|
} |
|
|
|
this.getTab(); |
|
|
|
// this.$message.success('123') |
|
|
|
}, |
|
|
@@ -71,33 +77,37 @@ export default { |
|
|
|
}, |
|
|
|
goloign() { |
|
|
|
// 对此进行判断,获取this.$route的参数,如果没有则退出登陆,有的话就返回之前的页面 |
|
|
|
this.$confirm("是否退出系统, 是否继续?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}).then(() => { |
|
|
|
this.$store.dispatch("LogOut").then(() => { |
|
|
|
this.$router.push({ path: "/login" }); |
|
|
|
if (this.backFlag) { |
|
|
|
this.$router.back(); |
|
|
|
} else { |
|
|
|
this.$confirm("是否退出系统, 是否继续?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}).then(() => { |
|
|
|
this.$store.dispatch("LogOut").then(() => { |
|
|
|
this.$router.push({ path: "/login" }); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
goindex(idx) { |
|
|
|
localStorage.setItem('orgType',idx) |
|
|
|
localStorage.setItem("orgType", idx); |
|
|
|
if (idx == 0) { |
|
|
|
// 质控管家后台 |
|
|
|
this.$router.push({ path: "/wel" }); |
|
|
|
} |
|
|
|
if (idx == 1) { |
|
|
|
// 代理商 |
|
|
|
this.$router.push({ path: "/chose",query:{flag:1}}); |
|
|
|
this.$router.push({ path: "/chose", query: { flag: 1 } }); |
|
|
|
} |
|
|
|
if (idx == 2) { |
|
|
|
// 公司后台 |
|
|
|
this.$router.push({ path: "/chose",query:{flag:2}}); |
|
|
|
this.$router.push({ path: "/chose", query: { flag: 2 } }); |
|
|
|
} |
|
|
|
if (idx == 3) { |
|
|
|
// 楼盘后台 |
|
|
|
this.$router.push({ path: "/chose",query:{flag:3}}); |
|
|
|
this.$router.push({ path: "/chose", query: { flag: 3 } }); |
|
|
|
} |
|
|
|
|
|
|
|
// this.$router.push({ path: "/chose" }); |
|
|
|