瀏覽代碼

2022.3.17小改

17613754660 3 年之前
父節點
當前提交
89246f76b2
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      fhKeeper/formulahousekeeper/timesheet/src/views/team/index.vue

+ 4 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/team/index.vue

@@ -510,8 +510,11 @@
                 this.$refs.handleSelectTable.clearSelection()
                 this.$refs.handleSelectTable.clearSelection()
             },
             },
             handleSelectionZzjgbtn2(){
             handleSelectionZzjgbtn2(){
+                if (this.handleSelectionZzjgwillchange == null) {
+                    return
+                }
+                this.handleSelectionZzjgDate[index].departmentId = this.handleSelectionZzjgwillchange[this.handleSelectionZzjgwillchange.length - 1]
                 for (let index = 0; index < this.handleSelectionZzjgDate.length; index++) {
                 for (let index = 0; index < this.handleSelectionZzjgDate.length; index++) {
-                    this.handleSelectionZzjgDate[index].departmentId = this.handleSelectionZzjgwillchange[this.handleSelectionZzjgwillchange.length - 1]
                     if (this.handleSelectionZzjgDate[index].role == 1) {
                     if (this.handleSelectionZzjgDate[index].role == 1) {
                         this.submitInsert1(this.handleSelectionZzjgDate[index],1)
                         this.submitInsert1(this.handleSelectionZzjgDate[index],1)
                     }else{
                     }else{