|
@@ -79,6 +79,10 @@ export default {
|
|
/** 表单变量 */
|
|
/** 表单变量 */
|
|
formData: {
|
|
formData: {
|
|
type: '工程师',
|
|
type: '工程师',
|
|
|
|
+ nickName: '',
|
|
|
|
+ mobile: '',
|
|
|
|
+ idCard: '',
|
|
|
|
+ bankAccount: '',
|
|
examineRemark: '',
|
|
examineRemark: '',
|
|
examineStatus: '',
|
|
examineStatus: '',
|
|
idCardImg: []
|
|
idCardImg: []
|
|
@@ -429,17 +433,21 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
update(removeTab){
|
|
update(removeTab){
|
|
- update({
|
|
|
|
- userId: this.formData.userId,
|
|
|
|
- websitId: this.formData.websitId,
|
|
|
|
- bankAccount: this.formData.bankAccount,
|
|
|
|
- idCard: this.formData.idCard,
|
|
|
|
- idCardImg: this.formData.idCardImg[0].url,
|
|
|
|
- name: this.formData.nickName
|
|
|
|
- }).then(res => {
|
|
|
|
- this.$message({ type: 'success', message: '保存成功!' })
|
|
|
|
- removeTab('list')
|
|
|
|
- this.$refs.pageRef.refreshList()
|
|
|
|
|
|
+ this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ update({
|
|
|
|
+ userId: this.formData.userId,
|
|
|
|
+ websitId: this.formData.websitId,
|
|
|
|
+ bankAccount: this.formData.bankAccount,
|
|
|
|
+ idCard: this.formData.idCard,
|
|
|
|
+ idCardImg: this.formData.idCardImg[0].url,
|
|
|
|
+ name: this.formData.nickName
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.$message({ type: 'success', message: '保存成功!' })
|
|
|
|
+ removeTab('list')
|
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
|
+ })
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|