|
@@ -93,43 +93,214 @@
|
|
|
</router-link>
|
|
|
</li>
|
|
|
<el-dropdown v-if="isLogin">
|
|
|
- <span class="dropdown-toggle nav-link el-dropdown-link">{{user.userVO.name}}<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
+ <span class="dropdown-toggle nav-link el-dropdown-link">{{user.userVO.name}}<i
|
|
|
+ class="el-icon-arrow-down el-icon--right"></i>
|
|
|
</span>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item><el-link type="danger" icon="el-icon-warning-outline">未实名认证</el-link></el-dropdown-item>
|
|
|
- <el-dropdown-item disabled><el-link type="info" disabled icon="el-icon-warning-outline">已认证</el-link></el-dropdown-item>
|
|
|
+ <el-dropdown-item>
|
|
|
+ <router-link :to="{ name: 'AuthenticationManage'}">
|
|
|
+ <el-link icon="el-icon-view" :underline="false">
|
|
|
+ 审核认证信息
|
|
|
+ </el-link>
|
|
|
+ </router-link>
|
|
|
+ </el-dropdown-item>
|
|
|
+ <el-dropdown-item>
|
|
|
+ <router-link :to="{ name: 'AuthenticationIndex'}">
|
|
|
+ <el-link type="info" icon="el-icon-warning-outline" :underline="false">
|
|
|
+ 未实名认证
|
|
|
+ </el-link>
|
|
|
+ </router-link>
|
|
|
+ </el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="handleClickAuthChecking()">
|
|
|
+ <el-link type="warning" icon="el-icon-loading" :underline="false">
|
|
|
+ 认证审核中
|
|
|
+ </el-link>
|
|
|
+ </el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="handleClickAuthPass()">
|
|
|
+ <el-link type="primary" icon="el-icon-check" :underline="false">
|
|
|
+ 已认证
|
|
|
+ </el-link>
|
|
|
+ </el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="handleClickAuthReject()">
|
|
|
+ <el-link type="danger" icon="el-icon-close" :underline="false">
|
|
|
+ 认证失败
|
|
|
+ </el-link>
|
|
|
+ </el-dropdown-item>
|
|
|
<el-dropdown-item divided @click.native="userLogout()">登出</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
+ <el-dialog title="认证信息审核中" :visible.sync="isShowAuthCheckingDialog" width="40%"
|
|
|
+ :before-close="hideAuthCheckingDialog" center>
|
|
|
+ <span>
|
|
|
+ <el-card v-if="authInfo.type" class="box-card">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>认证信息</span>
|
|
|
+ </div>
|
|
|
+ <div class="text item">
|
|
|
+ <ul v-if="authInfo.type=='个人'" style="list-style-type:none">
|
|
|
+ <li>认证类型:{{authInfo.type}}认证</li>
|
|
|
+ <li>认证姓名:{{authInfo.realName}}</li>
|
|
|
+ <li>认证账户:{{authInfo.bankAccount}}</li>
|
|
|
+ <li>认证地址:{{authInfo.address}}</li>
|
|
|
+ <li>申请时间:{{authInfo.createTime}}</li>
|
|
|
+ <li>认证状态:{{authInfo.status}}</li>
|
|
|
+ <li>失败原因:{{authInfo.rejectReason}}</li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ <ul v-if="authInfo.type=='机构'" style="list-style-type:none">
|
|
|
+ <li>认证类型:{{authInfo.type}}认证</li>
|
|
|
+ <li>认证姓名:{{authInfo.evaluationAgencyName}}</li>
|
|
|
+ <li>认证账户:{{authInfo.bankAccount}}</li>
|
|
|
+ <li>认证地址:{{authInfo.address}}</li>
|
|
|
+ <li>申请时间:{{authInfo.createTime}}</li>
|
|
|
+ <li>认证状态:{{authInfo.status}}</li>
|
|
|
+ <li>失败原因:{{authInfo.rejectReason}}</li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ <ul v-if="authInfo.type=='企业'" style="list-style-type:none">
|
|
|
+ <li>认证类型:{{authInfo.type}}认证</li>
|
|
|
+ <li>认证企业名称:{{authInfo.companyName}}</li>
|
|
|
+ <li>认证法人姓名:{{authInfo.legalPersonName}}</li>
|
|
|
+ <li>认证账户:{{authInfo.bankAccount}}</li>
|
|
|
+ <li>统一信用代码:{{authInfo.unifiedSocialCreditCode}}</li>
|
|
|
+ <li>认证地址:{{authInfo.address}}</li>
|
|
|
+ <li>申请时间:{{authInfo.createTime}}</li>
|
|
|
+ <li>认证状态:{{authInfo.status}}</li>
|
|
|
+ <li>失败原因:{{authInfo.rejectReason}}</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+ </span>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="mini" @click="hideAuthCheckingDialog">返回</el-button>
|
|
|
+ <el-button size="mini" type="danger" @click="deleteOldAuthInfo">放弃认证</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="handleUpdateAuthInfo">重新认证</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog title="认证成功" :visible.sync="isShowAuthPassDialog" width="40%" :before-close="hideAuthPassDialog"
|
|
|
+ center>
|
|
|
+ <span>
|
|
|
+ <el-card v-if="authInfo.type" class="box-card">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>认证信息</span>
|
|
|
+ </div>
|
|
|
+ <div class="text item">
|
|
|
+ <ul v-if="authInfo.type=='个人'" style="list-style-type:none">
|
|
|
+ <li>认证类型:{{authInfo.type}}认证</li>
|
|
|
+ <li>认证姓名:{{authInfo.realName}}</li>
|
|
|
+ <li>认证账户:{{authInfo.bankAccount}}</li>
|
|
|
+ <li>认证地址:{{authInfo.address}}</li>
|
|
|
+ <li>申请时间:{{authInfo.createTime}}</li>
|
|
|
+ <li>认证状态:{{authInfo.status}}</li>
|
|
|
+ <li>失败原因:{{authInfo.rejectReason}}</li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ <ul v-if="authInfo.type=='机构'" style="list-style-type:none">
|
|
|
+ <li>认证类型:{{authInfo.type}}认证</li>
|
|
|
+ <li>认证姓名:{{authInfo.evaluationAgencyName}}</li>
|
|
|
+ <li>认证账户:{{authInfo.bankAccount}}</li>
|
|
|
+ <li>认证地址:{{authInfo.address}}</li>
|
|
|
+ <li>申请时间:{{authInfo.createTime}}</li>
|
|
|
+ <li>认证状态:{{authInfo.status}}</li>
|
|
|
+ <li>失败原因:{{authInfo.rejectReason}}</li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ <ul v-if="authInfo.type=='企业'" style="list-style-type:none">
|
|
|
+ <li>认证类型:{{authInfo.type}}认证</li>
|
|
|
+ <li>认证企业名称:{{authInfo.companyName}}</li>
|
|
|
+ <li>认证法人姓名:{{authInfo.legalPersonName}}</li>
|
|
|
+ <li>认证账户:{{authInfo.bankAccount}}</li>
|
|
|
+ <li>统一信用代码:{{authInfo.unifiedSocialCreditCode}}</li>
|
|
|
+ <li>认证地址:{{authInfo.address}}</li>
|
|
|
+ <li>申请时间:{{authInfo.createTime}}</li>
|
|
|
+ <li>认证状态:{{authInfo.status}}</li>
|
|
|
+ <li>失败原因:{{authInfo.rejectReason}}</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+ </span>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="mini" @click="hideAuthPassDialog">返回</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog title="认证失败" :visible.sync="isShowAuthRejectDialog" width="40%"
|
|
|
+ :before-close="hideAuthRejectDialog"
|
|
|
+ center>
|
|
|
+ <span>
|
|
|
+ <el-card v-if="authInfo.type" class="box-card">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>认证信息</span>
|
|
|
+ </div>
|
|
|
+ <div class="text item">
|
|
|
+ <ul v-if="authInfo.type=='个人'" style="list-style-type:none">
|
|
|
+ <li>认证类型:{{authInfo.type}}认证</li>
|
|
|
+ <li>认证姓名:{{authInfo.realName}}</li>
|
|
|
+ <li>认证账户:{{authInfo.bankAccount}}</li>
|
|
|
+ <li>认证地址:{{authInfo.address}}</li>
|
|
|
+ <li>申请时间:{{authInfo.createTime}}</li>
|
|
|
+ <li>认证状态:{{authInfo.status}}</li>
|
|
|
+ <li>失败原因:{{authInfo.rejectReason}}</li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ <ul v-if="authInfo.type=='机构'" style="list-style-type:none">
|
|
|
+ <li>认证类型:{{authInfo.type}}认证</li>
|
|
|
+ <li>认证姓名:{{authInfo.evaluationAgencyName}}</li>
|
|
|
+ <li>认证账户:{{authInfo.bankAccount}}</li>
|
|
|
+ <li>认证地址:{{authInfo.address}}</li>
|
|
|
+ <li>申请时间:{{authInfo.createTime}}</li>
|
|
|
+ <li>认证状态:{{authInfo.status}}</li>
|
|
|
+ <li>失败原因:{{authInfo.rejectReason}}</li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ <ul v-if="authInfo.type=='企业'" style="list-style-type:none">
|
|
|
+ <li>认证类型:{{authInfo.type}}认证</li>
|
|
|
+ <li>认证企业名称:{{authInfo.companyName}}</li>
|
|
|
+ <li>认证法人姓名:{{authInfo.legalPersonName}}</li>
|
|
|
+ <li>认证账户:{{authInfo.bankAccount}}</li>
|
|
|
+ <li>统一信用代码:{{authInfo.unifiedSocialCreditCode}}</li>
|
|
|
+ <li>认证地址:{{authInfo.address}}</li>
|
|
|
+ <li>申请时间:{{authInfo.createTime}}</li>
|
|
|
+ <li>认证状态:{{authInfo.status}}</li>
|
|
|
+ <li>失败原因:{{authInfo.rejectReason}}</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+ </span>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="mini" @click="hideAuthRejectDialog">返回</el-button>
|
|
|
+ <el-button size="mini" type="danger" @click="deleteOldAuthInfo">放弃认证</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="handleUpdateAuthInfo">修改认证信息</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
<!--<li class="dropdown nav-item">-->
|
|
|
- <!--<router-link v-if="isLogin" to="/mine">-->
|
|
|
- <!--<a class="dropdown-toggle nav-link" data-toggle="dropdown">-->
|
|
|
- <!--<span>{{user.userVO.name}}</span>-->
|
|
|
- <!--</a>-->
|
|
|
- <!--</router-link>-->
|
|
|
+ <!--<router-link v-if="isLogin" to="/mine">-->
|
|
|
+ <!--<a class="dropdown-toggle nav-link" data-toggle="dropdown">-->
|
|
|
+ <!--<span>{{user.userVO.name}}</span>-->
|
|
|
+ <!--</a>-->
|
|
|
+ <!--</router-link>-->
|
|
|
<!--</li>-->
|
|
|
<!--<li class="dropdown nav-item">-->
|
|
|
- <!--<router-link v-if="isLogin" to="/mine">-->
|
|
|
- <!--<div style="margin-top: 5px;margin-right: 20px">-->
|
|
|
- <!--<el-tooltip class="item" effect="dark" content="认证成功" placement="bottom">-->
|
|
|
- <!--<el-link type="info" disabled icon="el-icon-warning-outline">已认证</el-link>-->
|
|
|
- <!--</el-tooltip>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</router-link>-->
|
|
|
+ <!--<router-link v-if="isLogin" to="/mine">-->
|
|
|
+ <!--<div style="margin-top: 5px;margin-right: 20px">-->
|
|
|
+ <!--<el-tooltip class="item" effect="dark" content="认证成功" placement="bottom">-->
|
|
|
+ <!--<el-link type="info" disabled icon="el-icon-warning-outline">已认证</el-link>-->
|
|
|
+ <!--</el-tooltip>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--</router-link>-->
|
|
|
<!--</li>-->
|
|
|
<!--<li class="dropdown nav-item">-->
|
|
|
- <!--<router-link v-if="isLogin" to="/mine">-->
|
|
|
- <!--<div style="margin-top: 5px;margin-right: 20px">-->
|
|
|
- <!--<el-tooltip class="item" effect="dark" content="点击进行认证" placement="bottom">-->
|
|
|
- <!--<el-link type="danger" icon="el-icon-warning-outline">未实名认证</el-link>-->
|
|
|
- <!--</el-tooltip>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</router-link>-->
|
|
|
+ <!--<router-link v-if="isLogin" to="/mine">-->
|
|
|
+ <!--<div style="margin-top: 5px;margin-right: 20px">-->
|
|
|
+ <!--<el-tooltip class="item" effect="dark" content="点击进行认证" placement="bottom">-->
|
|
|
+ <!--<el-link type="danger" icon="el-icon-warning-outline">未实名认证</el-link>-->
|
|
|
+ <!--</el-tooltip>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--</router-link>-->
|
|
|
<!--</li>-->
|
|
|
<!--<li>-->
|
|
|
- <!--<a v-if="isLogin" class="dropdown-toggle nav-link" data-toggle="dropdown" href="#" @click="userLogout()">-->
|
|
|
- <!--<span>登出</span>-->
|
|
|
- <!--</a>-->
|
|
|
+ <!--<a v-if="isLogin" class="dropdown-toggle nav-link" data-toggle="dropdown" href="#" @click="userLogout()">-->
|
|
|
+ <!--<span>登出</span>-->
|
|
|
+ <!--</a>-->
|
|
|
<!--</li>-->
|
|
|
</ul>
|
|
|
</div>
|
|
@@ -139,7 +310,16 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {defaultValue, getCurrentUser, getRolesPermissions, logout, storageGet, storageSave} from '@/js/index'
|
|
|
+import {
|
|
|
+ defaultValue,
|
|
|
+ deleteAuthInfo,
|
|
|
+ getCurrentAuthenInfo,
|
|
|
+ getCurrentUser,
|
|
|
+ getRolesPermissions,
|
|
|
+ logout,
|
|
|
+ storageGet,
|
|
|
+ storageSave
|
|
|
+} from '@/js/index'
|
|
|
import {notify} from '@/constants/index'
|
|
|
|
|
|
export default {
|
|
@@ -148,6 +328,10 @@ export default {
|
|
|
return {
|
|
|
user: {},
|
|
|
fullScreenLoading: true,
|
|
|
+ authInfo: {},
|
|
|
+ isShowAuthCheckingDialog: false,
|
|
|
+ isShowAuthRejectDialog: false,
|
|
|
+ isShowAuthPassDialog: false,
|
|
|
//loading: true,
|
|
|
openNavBar: false,
|
|
|
defaultValue: defaultValue,
|
|
@@ -235,6 +419,84 @@ export default {
|
|
|
})
|
|
|
|
|
|
},
|
|
|
+ showLoading () {
|
|
|
+ this.fullScreenLoading = true
|
|
|
+ },
|
|
|
+ hideLoading () {
|
|
|
+ this.fullScreenLoading = false
|
|
|
+ },
|
|
|
+ handleClickAuthReject () {
|
|
|
+ this.getAuthInfo(this.showAuthRejectDialog)
|
|
|
+ },
|
|
|
+ handleClickAuthPass () {
|
|
|
+ this.getAuthInfo(this.showAuthPassDialog)
|
|
|
+ },
|
|
|
+ handleClickAuthChecking () {
|
|
|
+ this.getAuthInfo(this.showAuthCheckingDialog)
|
|
|
+ },
|
|
|
+ showAuthRejectDialog () {
|
|
|
+ this.isShowAuthRejectDialog = true
|
|
|
+ },
|
|
|
+ showAuthPassDialog () {
|
|
|
+ this.isShowAuthPassDialog = true
|
|
|
+ },
|
|
|
+ showAuthCheckingDialog () {
|
|
|
+ this.isShowAuthCheckingDialog = true
|
|
|
+ },
|
|
|
+ hideAuthRejectDialog () {
|
|
|
+ this.isShowAuthRejectDialog = false
|
|
|
+ },
|
|
|
+ hideAuthPassDialog () {
|
|
|
+ this.isShowAuthPassDialog = false
|
|
|
+ },
|
|
|
+ hideAuthCheckingDialog () {
|
|
|
+ this.isShowAuthCheckingDialog = false
|
|
|
+ },
|
|
|
+ deleteOldAuthInfo () {
|
|
|
+ this.hideAuthCheckingDialog()
|
|
|
+ this.hideAuthRejectDialog()
|
|
|
+ this.hideAuthPassDialog()
|
|
|
+ this.showLoading()
|
|
|
+ deleteAuthInfo().then((res) => {
|
|
|
+ this.hideLoading()
|
|
|
+ notify('success', '成功删除认证信息')
|
|
|
+ }).catch((error) => {
|
|
|
+ this.hideLoading()
|
|
|
+ notify('error', '删除认证信息失败:' + error.data)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getAuthInfo (successMethod) {
|
|
|
+ this.showLoading()
|
|
|
+ getCurrentAuthenInfo().then((res) => {
|
|
|
+ console.log(res)
|
|
|
+ this.authInfo = res
|
|
|
+ this.hideLoading()
|
|
|
+ successMethod()
|
|
|
+ }).catch((error) => {
|
|
|
+ this.hideLoading()
|
|
|
+ notify('error', '加载用户认证信息失败:' + error.data)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleUpdateAuthInfo () {
|
|
|
+ this.hideAuthPassDialog()
|
|
|
+ this.hideAuthRejectDialog()
|
|
|
+ this.hideAuthCheckingDialog()
|
|
|
+ if (this.authInfo.type == '个人') {
|
|
|
+ this.$router.push({
|
|
|
+ name: 'IndividualAuthentication',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (this.authInfo.type == '企业') {
|
|
|
+ this.$router.push({
|
|
|
+ name: 'EnterpriseAuthentication',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (this.authInfo.type == '机构') {
|
|
|
+ this.$router.push({
|
|
|
+ name: 'AgencyAuthentication',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
created () {
|
|
|
},
|