|
@@ -32,7 +32,15 @@
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="身份证到期时间">
|
|
<el-form-item label="身份证到期时间">
|
|
- <el-input :disabled="!canEdit" v-model="individualForm.idCardDeadTime" placeholder="请按身份证背面“有效期限”如实填写"></el-input>
|
|
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="individualForm.idCardDeadTime"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ align="right"
|
|
|
|
+ type="date"
|
|
|
|
+ placeholder="请按身份证背面“有效期限”如实填写"
|
|
|
|
+ :disabled="!canEdit"
|
|
|
|
+ >
|
|
|
|
+ </el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="家庭或单位地址">
|
|
<el-form-item label="家庭或单位地址">
|
|
<el-input :disabled="!canEdit" v-model="individualForm.address"></el-input>
|
|
<el-input :disabled="!canEdit" v-model="individualForm.address"></el-input>
|
|
@@ -153,25 +161,25 @@
|
|
idCardDeadTime: "",
|
|
idCardDeadTime: "",
|
|
address: ""
|
|
address: ""
|
|
},
|
|
},
|
|
- failureReason:'',
|
|
|
|
|
|
+ failureReason: '',
|
|
authType: -1,
|
|
authType: -1,
|
|
authDetail: {},
|
|
authDetail: {},
|
|
authStatus: '',
|
|
authStatus: '',
|
|
- canEdit:false
|
|
|
|
|
|
+ canEdit: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- setUserInfo(){
|
|
|
|
|
|
+ setUserInfo() {
|
|
this.user = storageGet('user') && storageGet('user').userVO;
|
|
this.user = storageGet('user') && storageGet('user').userVO;
|
|
},
|
|
},
|
|
submitIndividualAuth() {
|
|
submitIndividualAuth() {
|
|
Http.put(`/api/user/${this.user.id}/personalAuth`, this.individualForm).then(res => {
|
|
Http.put(`/api/user/${this.user.id}/personalAuth`, this.individualForm).then(res => {
|
|
if (res) {
|
|
if (res) {
|
|
- notify('success', '认证成功');
|
|
|
|
|
|
+ notify('success', '提交成功');
|
|
this.$router.push('/personal/authentication')
|
|
this.$router.push('/personal/authentication')
|
|
}
|
|
}
|
|
- }).catch(err=>{
|
|
|
|
- notify('error',err.data)
|
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
+ notify('error', err.data)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//获取当前认证状态
|
|
//获取当前认证状态
|
|
@@ -188,20 +196,20 @@
|
|
this.authType = 0 //未参与个人认证
|
|
this.authType = 0 //未参与个人认证
|
|
this.canEdit = true
|
|
this.canEdit = true
|
|
}
|
|
}
|
|
- }).catch(err=>{
|
|
|
|
- notify('error',err.data)
|
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
+ notify('error', err.data)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
setFormInfo(detail) {
|
|
setFormInfo(detail) {
|
|
//回显认证信息
|
|
//回显认证信息
|
|
this.individualForm.roleList = detail.roleList,
|
|
this.individualForm.roleList = detail.roleList,
|
|
- this.individualForm.realName = detail.realName,
|
|
|
|
- this.individualForm.gender = detail.gender,
|
|
|
|
- this.individualForm.idCard = detail.idCard,
|
|
|
|
- this.individualForm.address = detail.address,
|
|
|
|
- this.individualForm.idCardPositivePhoto = detail.idCardPositivePhoto,
|
|
|
|
- this.individualForm.idCardBackPhoto = detail.idCardBackPhoto,
|
|
|
|
- this.individualForm.idCardDeadTime = detail.idCardDeadTime
|
|
|
|
|
|
+ this.individualForm.realName = detail.realName,
|
|
|
|
+ this.individualForm.gender = detail.gender,
|
|
|
|
+ this.individualForm.idCard = detail.idCard,
|
|
|
|
+ this.individualForm.address = detail.address,
|
|
|
|
+ this.individualForm.idCardPositivePhoto = detail.idCardPositivePhoto,
|
|
|
|
+ this.individualForm.idCardBackPhoto = detail.idCardBackPhoto,
|
|
|
|
+ this.individualForm.idCardDeadTime = detail.idCardDeadTime
|
|
},
|
|
},
|
|
//文件上传前的响应函数
|
|
//文件上传前的响应函数
|
|
beforeFileUpload(file) {
|
|
beforeFileUpload(file) {
|
|
@@ -254,7 +262,7 @@
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped lang="less">
|
|
<style scoped lang="less">
|
|
- .avatar-uploader{
|
|
|
|
|
|
+ .avatar-uploader {
|
|
border-radius: 6px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
position: relative;
|
|
position: relative;
|
|
@@ -263,9 +271,11 @@
|
|
width: 270px;
|
|
width: 270px;
|
|
height: 170px;
|
|
height: 170px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.avatar-uploader .el-upload:hover {
|
|
.avatar-uploader .el-upload:hover {
|
|
border-color: #409EFF;
|
|
border-color: #409EFF;
|
|
}
|
|
}
|
|
|
|
+
|
|
.avatar-uploader-icon {
|
|
.avatar-uploader-icon {
|
|
font-size: 28px;
|
|
font-size: 28px;
|
|
color: #8c939d;
|
|
color: #8c939d;
|
|
@@ -274,6 +284,7 @@
|
|
line-height: 178px;
|
|
line-height: 178px;
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
+
|
|
.avatar {
|
|
.avatar {
|
|
width: 270px;
|
|
width: 270px;
|
|
height: 170px;
|
|
height: 170px;
|