|
|
@ -490,7 +490,7 @@ export default { |
|
|
|
e.forEach(item => { |
|
|
|
let ob = { |
|
|
|
fileType: '3', |
|
|
|
fileUrl: item.response.data.url |
|
|
|
fileUrl: item.response ? item.response.data.url : item.url |
|
|
|
} |
|
|
|
this.dataForm.tenantList[rowIndex].idCardImgList.push(ob) |
|
|
|
}) |
|
|
@ -503,7 +503,7 @@ export default { |
|
|
|
e.forEach(item => { |
|
|
|
let ob = { |
|
|
|
fileType: '0', |
|
|
|
fileUrl: item.response.data.url |
|
|
|
fileUrl: item.response ? item.response.data.url : item.url |
|
|
|
} |
|
|
|
this.dataForm.tenantList[rowIndex].imgList.push(ob) |
|
|
|
}) |
|
|
@ -771,8 +771,8 @@ export default { |
|
|
|
if (!valid) { |
|
|
|
return false |
|
|
|
} |
|
|
|
const url = this.dataForm.flag == 'edit' ? '/pli/power/rentContractInfo/savePc' : '/pli/power/rentContractInfo/updatePc' |
|
|
|
this.$http[!this.dataForm.id ? 'post' : 'put'](url, this.dataForm).then(({ data: res }) => { |
|
|
|
const url = this.dataForm.flag == 'edit' ? '/pli/power/rentContractInfo/updatePc' : '/pli/power/rentContractInfo/savePc' |
|
|
|
this.$http['post'](url, this.dataForm).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|