瀏覽代碼

履职计划选履职内容异常

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());