From ff77eaa3428460cb17628ec83acd8f85d893db68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=B6=E4=B8=9C?= <1654135867@qq.com> Date: Sun, 10 Nov 2024 11:19:52 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../expproject/controller/ExpprojectController.java | 2 +- .../views/expert/admin/components/ExpertForm.vue | 13 ++++++++++--- .../views/expert/county/components/ExpertForm.vue | 9 ++++++--- .../src/views/expert/firm/components/ExpertForm.vue | 9 ++++++--- .../src/views/expproject/admin/Expproject.data.ts | 4 ++-- 5 files changed, 25 insertions(+), 12 deletions(-) diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/controller/ExpprojectController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/controller/ExpprojectController.java index b07adf5..ac98550 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/controller/ExpprojectController.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/controller/ExpprojectController.java @@ -143,7 +143,7 @@ public class ExpprojectController { public Result add(@RequestBody ExpprojectPage expprojectPage) { Expproject expproject = new Expproject(); BeanUtils.copyProperties(expprojectPage, expproject); - if (!expprojectPage.getExpandproList().isEmpty()) { + if ( expprojectPage.getExpandproList() != null && !expprojectPage.getExpandproList().isEmpty()) { if (expproject.getNeedexp() >= expprojectPage.getExpandproList().size()) { expprojectService.saveMain(expproject, expprojectPage.getExpandproList()); return Result.OK("添加成功!"); diff --git a/jeecgboot-vue3/src/views/expert/admin/components/ExpertForm.vue b/jeecgboot-vue3/src/views/expert/admin/components/ExpertForm.vue index b867049..b04e097 100644 --- a/jeecgboot-vue3/src/views/expert/admin/components/ExpertForm.vue +++ b/jeecgboot-vue3/src/views/expert/admin/components/ExpertForm.vue @@ -9,12 +9,12 @@ - + - + @@ -126,6 +126,8 @@