From af9d488a4aa43ee40091342d0618971a84d0f31b Mon Sep 17 00:00:00 2001
From: andy <594580820@qq.com>
Date: Tue, 27 Jan 2026 18:03:26 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.claude/settings.local.json | 4 ++-
.../bycrm/service/impl/DealerServiceImpl.java | 2 +-
backend/src/main/resources/application.yml | 10 ++----
frontend/src/views/Customer.vue | 31 ++++++++++---------
frontend/src/views/Dealer.vue | 16 +++++++---
frontend/src/views/Login.vue | 2 +-
frontend/src/views/Report.vue | 29 +++++++++--------
7 files changed, 53 insertions(+), 41 deletions(-)
diff --git a/.claude/settings.local.json b/.claude/settings.local.json
index ac1c212..08a46f1 100644
--- a/.claude/settings.local.json
+++ b/.claude/settings.local.json
@@ -8,7 +8,9 @@
"Bash(git rm:*)",
"Bash(git commit:*)",
"Bash(git push:*)",
- "Bash(git config:*)"
+ "Bash(git config:*)",
+ "Bash(pnpm run build)",
+ "Bash(mvn compile:*)"
]
}
}
diff --git a/backend/src/main/java/com/bycrm/service/impl/DealerServiceImpl.java b/backend/src/main/java/com/bycrm/service/impl/DealerServiceImpl.java
index 3a4d2d0..020cfa6 100644
--- a/backend/src/main/java/com/bycrm/service/impl/DealerServiceImpl.java
+++ b/backend/src/main/java/com/bycrm/service/impl/DealerServiceImpl.java
@@ -72,7 +72,7 @@ public class DealerServiceImpl implements DealerService {
// 设置密码:如果提供了密码则使用提供的密码,否则使用默认密码
String password = dealerDTO.getPassword();
if (password == null || password.trim().isEmpty()) {
- password = "123456"; // 默认密码
+ password = "a123456"; // 默认密码
}
user.setPassword(passwordEncoder.encode(password));
user.setCreatedAt(LocalDateTime.now());
diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml
index d3dd77e..6f858ed 100644
--- a/backend/src/main/resources/application.yml
+++ b/backend/src/main/resources/application.yml
@@ -9,13 +9,9 @@ spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
- # 原本直连外部数据库的配置已注释,改为通过环境变量并默认指向 Docker 服务名 crm-mysql
- # url: jdbc:mysql://192.168.3.80:3306/crm_db?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
- # username: root
- # password: "Boyun@123"
- url: ${SPRING_DATASOURCE_URL:jdbc:mysql://crm-mysql:3306/crm_db?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true}
- username: ${SPRING_DATASOURCE_USERNAME:root}
- password: ${SPRING_DATASOURCE_PASSWORD:MySQL123s56}
+ url: jdbc:mysql://192.168.3.80:3306/crm_db?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
+ username: root
+ password: "Boyun@123"
druid:
initial-size: 5
min-idle: 5
diff --git a/frontend/src/views/Customer.vue b/frontend/src/views/Customer.vue
index fca2b3d..5b4e8bc 100644
--- a/frontend/src/views/Customer.vue
+++ b/frontend/src/views/Customer.vue
@@ -21,7 +21,7 @@
-
+
@@ -32,7 +32,7 @@
-
+
@@ -85,18 +85,20 @@
-
+
+
+
@@ -153,6 +155,7 @@