处理bug-合同管理-当导入项目为null时页面无法正常显示施工单位等信息

This commit is contained in:
曹磊 2024-04-16 09:43:26 +08:00
parent f69c2031ba
commit 56e05efff1
1 changed files with 11 additions and 9 deletions

View File

@ -1192,7 +1192,9 @@ export default {
}
this.approval = res.approval;
this.projectIds = res.projectId;
this.ids = res.projectId.split(",");
if(res.projectId !=null){
this.ids = res.projectId.split(",");
}
this.dataExcelForm.id = res.contractSsjd;
//
this.dicZFYList.forEach((item) => {
@ -1273,14 +1275,14 @@ export default {
}
})
//console.log(this.dataExcelForm.contractJxfpPhoto);
if (this.dataExcelForm.contractJxfpPhoto !== null && this.dataForm.contractJxfpPhoto !== "" && this.dataForm.contractJxfpPhoto !== undefined) {
this.$http.request({
url: this.$http.adornUrl('/sys/oss/list' + "?filePath=" + this.dataForm.contractJxfpPhoto),
method: 'get',
}).then(({data}) => {
this.files.push(data.replace(/[\r\n]/g, ""));
})
}
// if (this.dataExcelForm.contractJxfpPhoto !== null && this.dataForm.contractJxfpPhoto !== "" && this.dataForm.contractJxfpPhoto !== undefined) {
// this.$http.request({
// url: this.$http.adornUrl('/sys/oss/list' + "?filePath=" + this.dataForm.contractJxfpPhoto),
// method: 'get',
// }).then(({data}) => {
// this.files.push(data.replace(/[\r\n]/g, ""));
// })
// }
} else{
this.dataExcelForm.id = '';
this.dataExcelForm.contractId = this.dataForm.id