处理bug-合同管理-当导入项目为null时页面无法正常显示施工单位等信息
This commit is contained in:
parent
f69c2031ba
commit
56e05efff1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue