|
|
@@ -55,8 +55,10 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import LoginInfo from '../components/LoginInfo.vue';
|
|
|
+import pageableTable from '@/mixins/pageableTable';
|
|
|
import { mapState, mapMutations } from 'vuex';
|
|
|
export default {
|
|
|
+ mixins: [pageableTable],
|
|
|
components: { LoginInfo },
|
|
|
watch: {
|
|
|
$route() {
|
|
|
@@ -69,6 +71,7 @@ export default {
|
|
|
active: '',
|
|
|
show: false,
|
|
|
activeName: '',
|
|
|
+ url: '/identityAuth/all',
|
|
|
menus: [
|
|
|
{
|
|
|
label: '铸造者',
|
|
|
@@ -111,6 +114,21 @@ export default {
|
|
|
this.getActive();
|
|
|
},
|
|
|
methods: {
|
|
|
+ beforeData() {
|
|
|
+ return {
|
|
|
+ query: {
|
|
|
+ userId: this.userInfo.id
|
|
|
+ }
|
|
|
+ };
|
|
|
+ },
|
|
|
+ setList(list) {
|
|
|
+ this.lists = list.filter(item => {
|
|
|
+ return item.userId === this.userInfo.id;
|
|
|
+ });
|
|
|
+ this.org = this.lists[0].org;
|
|
|
+ // console.log(this.lists);
|
|
|
+ console.log(this.org);
|
|
|
+ },
|
|
|
Login() {
|
|
|
this.$refs.ref.flag();
|
|
|
},
|
|
|
@@ -138,22 +156,14 @@ export default {
|
|
|
this.updateUserInfo(null);
|
|
|
this.$router.push('/');
|
|
|
} else if (command === 'supply') {
|
|
|
- if (this.type) {
|
|
|
- if (this.type.name == 'ROLE_INSTITUTION') {
|
|
|
- this.$nextTick(() => {
|
|
|
- // if (this.institutionInfo.status == 'PASS') {
|
|
|
- this.$router.push('/enterpriseauthentication');
|
|
|
- // }
|
|
|
- });
|
|
|
- } else if (this.type.name == 'ROLE_PERSONAL') {
|
|
|
- this.$nextTick(() => {
|
|
|
- // if (this.institutionInfo.status == 'PASS') {
|
|
|
- this.$router.push('/userauthentication');
|
|
|
- // }
|
|
|
- });
|
|
|
- }
|
|
|
- } else {
|
|
|
+ if (this.userInfo.authStatus === 'NOT_AUTH') {
|
|
|
this.$router.push('/authentication');
|
|
|
+ } else {
|
|
|
+ if (this.userInfo.authStatus !== 'NOT_AUTH' && this.org == false) {
|
|
|
+ this.$router.push('/userauthentication');
|
|
|
+ } else {
|
|
|
+ this.$router.push('/enterpriseauthentication');
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|