|
@@ -5492,7 +5492,12 @@ a {
|
|
|
// }
|
|
|
if(this.user.timeType.projectWithDept) {
|
|
|
if(this.addForm.deptId != null && this.addForm.deptId != '') {
|
|
|
- formData.append("deptId", this.addForm.deptId[this.addForm.deptId.length - 1])
|
|
|
+ // formData.append("deptId", this.addForm.deptId[this.addForm.deptId.length - 1])
|
|
|
+ if(Array.isArray(this.addForm.deptId)) {
|
|
|
+ formData.append("deptId", this.addForm.deptId[this.addForm.deptId.length - 1])
|
|
|
+ } else {
|
|
|
+ formData.append("deptId", this.addForm.deptId)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
formData.append("buId", this.addForm.bu ? this.addForm.bu : '');
|
|
@@ -5521,7 +5526,10 @@ a {
|
|
|
}
|
|
|
// formData.append("associateDegreeNames", listName)
|
|
|
//console.log("addform",this.addForm);
|
|
|
- //return
|
|
|
+ // for (const key of formData.keys()) {
|
|
|
+ // console.log(key + ': ' + formData.get(key));
|
|
|
+ // }
|
|
|
+ // return
|
|
|
this.http.uploadFile(this.port.project.add,formData,
|
|
|
res => {
|
|
|
this.addLoading = false;
|
|
@@ -5739,6 +5747,7 @@ a {
|
|
|
}
|
|
|
},
|
|
|
vueCasader(obj) {
|
|
|
+ console.log(obj, '<-==== 接收的数据')
|
|
|
if(obj.distinction == '32') {
|
|
|
let arr = []
|
|
|
arr.push(obj.id)
|
|
@@ -5746,6 +5755,7 @@ a {
|
|
|
} else if(obj.distinction == '20') {
|
|
|
this.addForm.deptId = obj.id
|
|
|
}
|
|
|
+ console.log(this.addForm)
|
|
|
},
|
|
|
changSubStatus(subProject) {
|
|
|
this.http.post('/sub-project/updateStatus',{
|