소스 검색

修复清空问题

wolyshaw 4 년 전
부모
커밋
4517a8c17c
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/main/schedule-branch/modals/create.vue

+ 2 - 1
src/views/main/schedule-branch/modals/create.vue

@@ -173,7 +173,8 @@ export default {
             rows: 999
           })
           this.technicians = res.data.rows
-          this.$set(this.form, 'group', group.map(item => ({...item, userId: ''})))
+          console.log(this.form.group.map(item => ({...item, userId: ''})))
+          this.$set(this.form, 'group', this.form.group.map(item => ({...item, userId: ''})))
         } catch (error) {}
       }
     }