jinlin
2025-04-05 92705ac08a97ddc4904795f024723aab69e1abd8
src/main/java/com/example/client/service/DataImportManageService.java
@@ -9,7 +9,8 @@
import com.example.server.progressTrack.dao.ImportRecordDao;
import com.example.server.progressTrack.model.ExportRecord;
import com.example.server.progressTrack.model.ImportRecord;
import com.example.server.utils.CacheUtils;
import com.example.server.user.model.SysUser;
import com.example.server.utils.UserAndSiteUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
@@ -37,6 +38,11 @@
    private JTable table;
    public JPanel createTable(Integer width, Integer height, JFrame jFrame) {
        SysUser user = (SysUser) UserAndSiteUtils.get("user","user");
        if (user==null){
            JOptionPane.showMessageDialog(null, "用户失效请退出并重新登录", "提示", JOptionPane.WARNING_MESSAGE);
            return null;
        }
        JPanel panel = new JPanel(new BorderLayout());
        panel.setPreferredSize(new Dimension(width-10,height));
@@ -58,7 +64,7 @@
        south.setPreferredSize(new Dimension((width - 10) / 2, (height-50)/3*2));
        String site = (String) CacheUtils.get("site", "site");
        String site = (String) UserAndSiteUtils.get("site", "site");
        JLabel label = new JLabel(site + "机器");
        top.add(label);