|
@@ -34,8 +34,11 @@
|
|
|
<el-tag :type="authentication.authStatus.style">{{authentication.authStatus.text}}</el-tag>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="!isModifyMode && authentication.authStatus.text == '认证失败'" label="失败原因" prop="name">
|
|
|
- <el-link v-if="authentication.explain!=null&&authentication.explain!=''" type="danger" disabled>{{authentication.explain}}</el-link>
|
|
|
- <el-link v-if="authentication.explain==null || authentication.explain==''" type="danger" disabled>管理员未填写</el-link>
|
|
|
+ <el-link v-if="authentication.explain!=null&&authentication.explain!=''" type="danger" disabled>
|
|
|
+ {{authentication.explain}}
|
|
|
+ </el-link>
|
|
|
+ <el-link v-if="authentication.explain==null || authentication.explain==''" type="danger" disabled>管理员未填写
|
|
|
+ </el-link>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="公司法人姓名" prop="name">
|
|
|
<el-input v-if="isModifyMode" v-model="authentication.legalPersonName"></el-input>
|
|
@@ -70,7 +73,15 @@
|
|
|
import Http from '@/js/http'
|
|
|
import Apis from '@/js/api'
|
|
|
import {notify} from '@/constants/index'
|
|
|
-import {defaultValue, getCurrentEnterpriseAuthInfo, storageGet, updateEnterpriseAuthInfo} from '@/js/index'
|
|
|
+import {
|
|
|
+ defaultValue,
|
|
|
+ getCurrentEnterpriseAuthInfo,
|
|
|
+ getCurrentUser,
|
|
|
+ getRolesPermissions,
|
|
|
+ storageGet,
|
|
|
+ storageSave,
|
|
|
+ updateEnterpriseAuthInfo
|
|
|
+} from '@/js/index'
|
|
|
|
|
|
export default {
|
|
|
name: 'EnterpriseAuthentication',
|
|
@@ -88,7 +99,7 @@ export default {
|
|
|
unifiedSocialCreditCode: '',
|
|
|
address: '',
|
|
|
authStatus: {},
|
|
|
- explain:''
|
|
|
+ explain: ''
|
|
|
},
|
|
|
rules: {
|
|
|
// name: [
|
|
@@ -172,7 +183,18 @@ export default {
|
|
|
this.authentication.unifiedSocialCreditCode = res.unifiedSocialCreditCode == null ? '暂未填写' : res.unifiedSocialCreditCode
|
|
|
this.authentication.bankAccount = res.bankAccount == null ? '暂未填写' : res.bankAccount
|
|
|
this.authentication.address = res.address == null ? '暂未填写' : res.address
|
|
|
- notify('success', '认证信息修改成功')
|
|
|
+ notify('success', '认证信息修改成功,正在为您刷新用户信息')
|
|
|
+ getCurrentUser().then(res => {
|
|
|
+ storageSave('user', res)
|
|
|
+ this.user = res
|
|
|
+ //this.rolesPermissions = getRolesPermissions(res.roleList)
|
|
|
+ storageSave('rolesPermissions', getRolesPermissions(res.roleList))
|
|
|
+ this.hideLoading()
|
|
|
+ notify('success', '用户信息刷新成功')
|
|
|
+ }).catch((error) => {
|
|
|
+ this.hideLoading()
|
|
|
+ notify('error', '重新获取用户信息失败:' + error.data)
|
|
|
+ })
|
|
|
},
|
|
|
updateAuthInfoFail (error) {
|
|
|
this.hideLoading()
|