Lijy 1 рік тому
батько
коміт
1e7239e681

+ 1 - 0
fhKeeper/formulahousekeeper/timesheet/src/components/translationOpenDataText.vue

@@ -8,6 +8,7 @@
             <dt-open-data :open-type='dingdingOpenType[type]' :open-id='openIdValue'></dt-open-data>
         </span>
         <span v-else>{{ openIdValue }}</span>
+        <!-- <span>{{ openIdValue }}</span> -->
     </div>
 </template>
 

+ 12 - 2
fhKeeper/formulahousekeeper/timesheet/src/views/project/list.vue

@@ -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',{