sunjh 6 년 전
부모
커밋
bf8fcf1e7b

+ 1 - 0
src/components/authen/AgencyAuthentication.vue

@@ -322,6 +322,7 @@ export default {
         this.authentication.agencyPhoto = res.data
         console.log(res.data)
         notify('success', '上传成功')
+        this.$refs['authentication'].validateField('agencyPhoto');
       }).catch(error => {
         notify('error', error.data.msg)
       })

+ 5 - 2
src/components/authen/AgencyAuthenticationCreate.vue

@@ -27,7 +27,7 @@
         <!--<el-input v-if="isModifyMode" v-model="authentication.mobile"></el-input>-->
         <!--&lt;!&ndash;<span v-if="!isModifyMode">{{authentication.name}}</span>&ndash;&gt;-->
         <!--</el-form-item>-->
-        <el-form-item label="对公账户" prop="bankAccount">
+        <el-form-item label="银行卡账户" prop="bankAccount">
           <el-input size="small" v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>
           <!--<span v-if="!isModifyMode">{{authentication.bankAccount}}</span>-->
         </el-form-item>
@@ -285,6 +285,7 @@ export default {
     },
     //上传文件,此处为上传图片
     uploadFile (param) {
+      this.showLoading()
       const formData = new FormData()
       let config = {
         //添加请求头
@@ -292,11 +293,13 @@ export default {
       }
       formData.append('file', param.file)
       Http.upload(Apis.FILE.UPLOAD_IMAGE.replace('{userId}', this.user.userVO.id), formData, config).then((res) => {
-        console.log('上传成功')
+        this.hideLoading()
         this.authentication.agencyPhoto = res.data
         console.log(res.data)
         notify('success', '上传成功')
+        this.$refs['authentication'].validateField('agencyPhoto');
       }).catch(error => {
+        this.hideLoading()
         notify('error', error.data.msg)
       })
     },

+ 1 - 0
src/components/cheat/AgencyAdd.vue

@@ -352,6 +352,7 @@ export default {
         this.agency.photoUrl = res.data
         console.log(res.data)
         notify('success', '上传成功')
+        this.$refs['agency'].validateField('photoUrl');
       }).catch(error => {
         notify('error', error.data)
       })

+ 1 - 1
src/js/userService.js

@@ -287,7 +287,7 @@ export const checkPassAuth = (type, userId, checkPassAuthSuccess, checkPassAuthF
 }
 export const checkRejectAuth = (type, userId, data, checkRejectAuthSuccess, checkRejectAuthFail) => {
   if (type == 'agency') {
-    Http.put(Apis.USER.REJECT_INDIVIDUAL_AUTH.replace('{userId}', userId), data).then((res) => {
+    Http.put(Apis.USER.REJECT_AGENCY_AUTH.replace('{userId}', userId), data).then((res) => {
       checkRejectAuthSuccess(res)
     }).catch((error) => {
       checkRejectAuthFail(error)