|
@@ -12,6 +12,7 @@ export default {
|
|
|
passwordError: false,
|
|
|
emailError: false,
|
|
|
empty: true,
|
|
|
+ teamIds: '',
|
|
|
passwordType: false,
|
|
|
remenber: false,
|
|
|
ruleForm: {
|
|
@@ -73,17 +74,31 @@ export default {
|
|
|
} else {
|
|
|
localStorage.removeItem('isRemenber')
|
|
|
}
|
|
|
- setTimeout(()=>{
|
|
|
- get('http://81.68.234.235:8032/pdf-tech/vppMember/getMemberInfo').then((res)=>{
|
|
|
- if (res.data.result.role == 1 || res.data.result.role == 2) {
|
|
|
+ setTimeout(() => {
|
|
|
+ if (this.$route.query.teamIds) {
|
|
|
+ this.teamIds = this.$route.query.teamIds.split(',')
|
|
|
+ }
|
|
|
+ var urlencoded = new URLSearchParams()
|
|
|
+ urlencoded.append('memberId', this.$route.query.memberId)
|
|
|
+ urlencoded.append('teamIds', this.teamIds)
|
|
|
+ urlencoded.append('action', this.$route.query.action)
|
|
|
+ urlencoded.append('code', this.$route.query.code)
|
|
|
+ post(
|
|
|
+ 'http://81.68.234.235:8032/pdf-tech/vppTeam/enterTeam',
|
|
|
+ urlencoded
|
|
|
+ ).then((res) => {})
|
|
|
+ get(
|
|
|
+ 'http://81.68.234.235:8032/pdf-tech/vppMember/getMemberInfo'
|
|
|
+ ).then((res) => {
|
|
|
+ if (
|
|
|
+ res.data.result.role == 1 ||
|
|
|
+ res.data.result.role == 2
|
|
|
+ ) {
|
|
|
this.$router.push('/dashboard')
|
|
|
} else {
|
|
|
this.$router.push('/noadmin')
|
|
|
}
|
|
|
})
|
|
|
- post("http://81.68.234.235:8032/pdf-tech/vppTeam/enterTeam").then((res)=>{
|
|
|
- console.log(res)
|
|
|
- })
|
|
|
})
|
|
|
} else if (
|
|
|
res.data.code === 306 &&
|
|
@@ -147,7 +162,10 @@ export default {
|
|
|
@input="isdisable()"
|
|
|
placeholder="Email address"
|
|
|
/>
|
|
|
- <Error class="w-14px h-14px block" :class="emailError ? 'block' : 'hidden'" />
|
|
|
+ <Error
|
|
|
+ class="w-14px h-14px block"
|
|
|
+ :class="emailError ? 'block' : 'hidden'"
|
|
|
+ />
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="password">
|
|
@@ -168,7 +186,10 @@ export default {
|
|
|
<Eyeopen v-show="passwordType" />
|
|
|
<Eyecolse v-show="!passwordType" />
|
|
|
</span>
|
|
|
- <Error class="w-14px h-14px block" :class="passwordError ? 'block' : 'hidden'" />
|
|
|
+ <Error
|
|
|
+ class="w-14px h-14px block"
|
|
|
+ :class="passwordError ? 'block' : 'hidden'"
|
|
|
+ />
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
@@ -206,7 +227,8 @@ export default {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.bg {
|
|
|
- background: #e7eaee url('@/assets/images/background.png') center center no-repeat;
|
|
|
+ background: #e7eaee url('@/assets/images/background.png') center center
|
|
|
+ no-repeat;
|
|
|
}
|
|
|
.loginBox {
|
|
|
box-shadow: 0px 0px 12px rgba(35, 97, 169, 0.05);
|