|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="create-container">
|
|
|
- <div class="create-body">
|
|
|
+ <div class="create-body" v-loading="loading">
|
|
|
<div class="title">测评机构认证</div>
|
|
|
<el-form :model="authentication" :rules="rules" ref="authentication" label-width="12%" class="demo-report">
|
|
|
<el-form-item prop="file" label="机构logo">
|
|
@@ -24,8 +24,8 @@
|
|
|
<!--<span v-if="!isModifyMode">{{authentication.name}}</span>-->
|
|
|
</el-form-item>
|
|
|
<!--<el-form-item label="机构电话" prop="name">-->
|
|
|
- <!--<el-input v-if="isModifyMode" v-model="authentication.mobile"></el-input>-->
|
|
|
- <!--<!–<span v-if="!isModifyMode">{{authentication.name}}</span>–>-->
|
|
|
+ <!--<el-input v-if="isModifyMode" v-model="authentication.mobile"></el-input>-->
|
|
|
+ <!--<!–<span v-if="!isModifyMode">{{authentication.name}}</span>–>-->
|
|
|
<!--</el-form-item>-->
|
|
|
<el-form-item label="对公账户" prop="name">
|
|
|
<el-input v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>
|
|
@@ -90,6 +90,7 @@ export default {
|
|
|
return {
|
|
|
userId: 0,
|
|
|
user: {},
|
|
|
+ loading: false,
|
|
|
isModifyMode: true,
|
|
|
resourceTypes: [],
|
|
|
serviceTypes: [],
|
|
@@ -146,6 +147,7 @@ export default {
|
|
|
//提交认证信息
|
|
|
submitInfo () {
|
|
|
//this.isModifyMode = false
|
|
|
+ this.showLoading()
|
|
|
const newAuthentication = {
|
|
|
mobile: this.authentication.mobile,
|
|
|
evaluationAgencyName: this.authentication.name,
|
|
@@ -158,6 +160,7 @@ export default {
|
|
|
console.log(newAuthentication)
|
|
|
Http.post(Apis.USER.SUBMIT_AGENCY_AUTHENTICATION_INFO.replace('{userId}', this.user.userVO.id), newAuthentication).then((res) => {
|
|
|
console.log(res)
|
|
|
+ this.hideLoading()
|
|
|
notify('success', '认证信息上传成功')
|
|
|
}).catch(error => {
|
|
|
notify('error', error.data)
|
|
@@ -258,6 +261,16 @@ export default {
|
|
|
//
|
|
|
setUserInfo () {
|
|
|
this.user = storageGet('user')
|
|
|
+ },
|
|
|
+ //
|
|
|
+ showLoading () {
|
|
|
+ this.loading = true
|
|
|
+ },
|
|
|
+ hideLoading () {
|
|
|
+ this.loading = false
|
|
|
+ },
|
|
|
+ submitSuccess () {
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
created: function () {
|