From af67fb927c3f30fa70df834f0e97f0b4a91e6119 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期四, 10 四月 2025 14:58:22 +0800
Subject: [PATCH] 修改

---
 src/main/java/com/example/client/service/UserManageService.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/example/client/service/UserManageService.java b/src/main/java/com/example/client/service/UserManageService.java
index bc39772..c0ea12a 100644
--- a/src/main/java/com/example/client/service/UserManageService.java
+++ b/src/main/java/com/example/client/service/UserManageService.java
@@ -71,12 +71,11 @@
 
         JComboBoxItem[] deptList = sysTeamGroupClassService.getDeptList();
 
-        JComboBoxItem[] boatList = boatFleetService.getBoatList();
 
         columnDto = new ArrayList<>();
         //columnDto.add(new ColumnDto("ID", "id", -1, null,false));
         columnDto.add(new ColumnDto("搴忓彿", "", (width - 10) / 7, "autoCreate", false, null,null));
-        columnDto.add(new ColumnDto("鐢ㄦ埛鍚�", "username", (width - 10) / 7, null, false, null,null));
+        columnDto.add(new ColumnDto("鐢ㄦ埛鍚�", "userName", (width - 10) / 7, null, false, null,null));
         columnDto.add(new ColumnDto("鏄电О", "nickName", (width - 10) / 7, null, false, null,null));
         columnDto.add(new ColumnDto("瀵嗙爜", "password", (width - 10) / 7, null, false, null,null));
         //columnDto.add(new ColumnDto("鎵�灞濼闃�", "boatFleetId", (width - 10) / 8, "dict", true, null,boatList));
@@ -93,9 +92,9 @@
         btnInsert.addActionListener(new ActionListener() {
             @Override
             public void actionPerformed(ActionEvent e) {
+                jFrame.setEnabled(false);
                 SysUser data = new SysUser();
                 addOrUpdate.openDialog(data,jFrame, columnDto,table);
-                jFrame.setEnabled(false);
             }
         });
 
@@ -120,9 +119,9 @@
                 Object newValue = table.getModel().getValueAt(row, column);
                 // 杈撳嚭鍙樺寲淇℃伅
                 if (newValue.equals("edit")){
+                    jFrame.setEnabled(false);
                     SysUser data = list.get(row);
                     addOrUpdate.openDialog(data,jFrame, columnDto,table);
-                    jFrame.setEnabled(false);
                 }else if(newValue.equals("del")) {
                     int n = JOptionPane.showConfirmDialog(null, "鏄惁鍒犻櫎?", "鎻愮ず", JOptionPane.YES_NO_OPTION);
                     if (n == 0) {

--
Gitblit v1.9.1