|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <div class="register">
|
|
|
|
|
|
+ <div class="register" v-if="show">
|
|
<Header
|
|
<Header
|
|
:headerBg="headerBg"
|
|
:headerBg="headerBg"
|
|
:headerBorder="headerBorder"
|
|
:headerBorder="headerBorder"
|
|
@@ -235,7 +235,8 @@ export default {
|
|
comfirmPwdFlag: false, // 查看确认密码
|
|
comfirmPwdFlag: false, // 查看确认密码
|
|
searchOrgLoading: false, // 搜索机构loading
|
|
searchOrgLoading: false, // 搜索机构loading
|
|
coverFlag: false,
|
|
coverFlag: false,
|
|
- loading: false
|
|
|
|
|
|
+ loading: false,
|
|
|
|
+ show: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//计算属性 类似于data概念
|
|
//计算属性 类似于data概念
|
|
@@ -286,7 +287,7 @@ export default {
|
|
getLogin(MethodName, data)
|
|
getLogin(MethodName, data)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
if(res.status===1){
|
|
if(res.status===1){
|
|
- this.$message.success('注册成功,请等待审核');
|
|
|
|
|
|
+ this.$message.success('注册成功!');
|
|
this.$router.push({ path: "/EnterSys" });
|
|
this.$router.push({ path: "/EnterSys" });
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -357,7 +358,7 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
- created() {
|
|
|
|
|
|
+ async created() {
|
|
if(this.config){
|
|
if(this.config){
|
|
let arr = this.config.split('&&&')
|
|
let arr = this.config.split('&&&')
|
|
this.userBg = arr[1] ? arr[1] : 'rgba(0, 0, 0, 0.24)'
|
|
this.userBg = arr[1] ? arr[1] : 'rgba(0, 0, 0, 0.24)'
|
|
@@ -366,8 +367,9 @@ export default {
|
|
}
|
|
}
|
|
this.getOrgList()
|
|
this.getOrgList()
|
|
let MethodName = '/OrgServer/LoginControl/GetInnerAccessToken'
|
|
let MethodName = '/OrgServer/LoginControl/GetInnerAccessToken'
|
|
- getLogin(MethodName, {})
|
|
|
|
|
|
+ await getLogin(MethodName, {})
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
|
+ this.show = true
|
|
if(res.status===1){
|
|
if(res.status===1){
|
|
Cookies.set('registerToken', res.access_token)
|
|
Cookies.set('registerToken', res.access_token)
|
|
}
|
|
}
|