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