|
@@ -119,21 +119,23 @@ export default {
|
|
|
this.isModifyMode = true
|
|
|
},
|
|
|
submitInfo () {
|
|
|
- //this.isModifyMode = false
|
|
|
- const newAgency = {
|
|
|
- mobile: this.agency.mobile,
|
|
|
- evaluationAgencyName: this.agency.name,
|
|
|
- bankAccount: this.agency.bankAccount,
|
|
|
- address: this.agency.address,
|
|
|
- abilities: this.agency.ability,
|
|
|
- resources: this.agency.resource,
|
|
|
- agencyPhoto: this.agency.photoUrl,
|
|
|
- }
|
|
|
- Http.post(Apis.USER.ADD_AGENCY, newAgency).then((res) => {
|
|
|
- notify('success', '测评机构添加成功')
|
|
|
- }).catch(error => {
|
|
|
- notify('error', error.data.msg)
|
|
|
+ this.$router.push({
|
|
|
+ name: 'AgencyAddSuccess',
|
|
|
})
|
|
|
+ // const newAgency = {
|
|
|
+ // mobile: this.agency.mobile,
|
|
|
+ // evaluationAgencyName: this.agency.name,
|
|
|
+ // bankAccount: this.agency.bankAccount,
|
|
|
+ // address: this.agency.address,
|
|
|
+ // abilities: this.agency.ability,
|
|
|
+ // resources: this.agency.resource,
|
|
|
+ // agencyPhoto: this.agency.photoUrl,
|
|
|
+ // }
|
|
|
+ // Http.post(Apis.USER.ADD_AGENCY, newAgency).then((res) => {
|
|
|
+ // notify('success', '测评机构添加成功')
|
|
|
+ // }).catch(error => {
|
|
|
+ // notify('error', error.data.msg)
|
|
|
+ // })
|
|
|
},
|
|
|
cancelModify () {
|
|
|
this.isModifyMode = false
|
|
@@ -164,7 +166,7 @@ export default {
|
|
|
this.agency.photoUrl = res.data
|
|
|
console.log(res.data)
|
|
|
notify('success', '上传成功')
|
|
|
- sessionStorage.setItem('file','qweqewqweqweqweqew')
|
|
|
+ sessionStorage.setItem('file', 'qweqewqweqweqweqew')
|
|
|
sessionStorage.getItem('file')
|
|
|
}).catch(error => {
|
|
|
notify('error', error.data.msg)
|