|
@@ -297,7 +297,8 @@ export default {
|
|
|
init: [],
|
|
init: [],
|
|
|
init2: [],
|
|
init2: [],
|
|
|
list2: [],
|
|
list2: [],
|
|
|
- opened: ''
|
|
|
|
|
|
|
+ opened: '',
|
|
|
|
|
+ lists: ''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -530,9 +531,52 @@ export default {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ add() {
|
|
|
|
|
+ this.$http
|
|
|
|
|
+ .post(
|
|
|
|
|
+ '/identityAuth/all',
|
|
|
|
|
+ {
|
|
|
|
|
+ query: {
|
|
|
|
|
+ userId: this.userInfo.id
|
|
|
|
|
+ },
|
|
|
|
|
+ sort: 'createdAt,desc',
|
|
|
|
|
+ size: 1,
|
|
|
|
|
+ page: 0
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ body: 'json'
|
|
|
|
|
+ }
|
|
|
|
|
+ )
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ this.lists = res.content[0].org;
|
|
|
|
|
+ console.log(this.lists);
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
send() {
|
|
send() {
|
|
|
- this.checkAuth().then(() => {
|
|
|
|
|
- this.$refs.send.show = true;
|
|
|
|
|
|
|
+ this.$confirm('未认证不能转增,是否认证', '认证', {
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ customClass: 'myClass',
|
|
|
|
|
+ center: true
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ this.add();
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ console.log(this.lists);
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ if (this.userInfo.authStatus !== 'NOT_AUTH' && this.lists == false) {
|
|
|
|
|
+ this.add();
|
|
|
|
|
+ this.$router.push('/userauthentication');
|
|
|
|
|
+ this.$refs.send.show = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ }, 1000);
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ if (this.userInfo.authStatus !== 'NOT_AUTH' && this.lists == true) {
|
|
|
|
|
+ this.add();
|
|
|
|
|
+ this.$router.push('/enterpriseauthentication');
|
|
|
|
|
+ this.$refs.send.show = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ }, 1000);
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|