소스 검색

履职计划选履职内容异常

jiawuxian 2 년 전
부모
커밋
0bb3caef29
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/views/resumption/plan/dialog.edit.vue

+ 5 - 2
src/views/resumption/plan/dialog.edit.vue

@@ -407,8 +407,11 @@ export default {
       // api.getPointIds(this.id).then((res) => {
       //   this.defaultSelect = res.data;
       // });
-
-      return this.tableData.map((d) => d.id);
+      if (!this.tableData) {
+        return [];
+      } else {
+        return this.tableData.map((d) => d.id);
+      }
     },
     openSelect() {
       this.$refs.DialogSelect.show(this.getIteamF());