Compare commits

...

5 Commits

Author SHA1 Message Date
mpaster 792c4e1b4b
Pre Merge pull request !432 from mpaster/springboot3_dev_PR 2025-08-23 03:48:14 +00:00
RuoYi 1284f6763f 用户导入添加验证提示 2025-08-23 11:47:17 +08:00
RuoYi eeb6303200 优化布局设置显示 2025-08-23 11:47:07 +08:00
mpaster 264c868173 docker配置更新。 2025-08-19 18:32:39 +08:00
mpaster 4e0a27d6a5 支持菜单修改时图标可置空。 2025-08-19 17:00:07 +08:00
17 changed files with 64 additions and 37 deletions

View File

@ -1,12 +1,20 @@
version : '3.8'
networks:
ruoyi-net:
driver: bridge
services:
ruoyi-nacos:
container_name: ruoyi-nacos
image: nacos/nacos-server
image: nacos/nacos-server:3.0.2
build:
context: ./nacos
environment:
- MODE=standalone
- NACOS_AUTH_TOKEN=rO0ABXNyABNqYXZhLnV0aWwuQmFzZTY0dPTZ3QE+Kk1T6mN8X0YpV3kQ7ZbJ5A==
- NACOS_AUTH_IDENTITY_KEY=serverIdentity
- NACOS_AUTH_IDENTITY_VALUE=security
volumes:
- ./nacos/logs/:/home/nacos/logs
- ./nacos/conf/application.properties:/home/nacos/conf/application.properties
@ -14,8 +22,11 @@ services:
- "8848:8848"
- "9848:9848"
- "9849:9849"
- "8888:8080"
depends_on:
- ruoyi-mysql
networks:
- ruoyi-net
ruoyi-mysql:
container_name: ruoyi-mysql
image: mysql:5.7
@ -38,6 +49,8 @@ services:
environment:
MYSQL_DATABASE: 'ry-cloud'
MYSQL_ROOT_PASSWORD: password
networks:
- ruoyi-net
ruoyi-redis:
container_name: ruoyi-redis
image: redis
@ -49,6 +62,8 @@ services:
- ./redis/conf/redis.conf:/home/ruoyi/redis/redis.conf
- ./redis/data:/data
command: redis-server /home/ruoyi/redis/redis.conf
networks:
- ruoyi-net
ruoyi-nginx:
container_name: ruoyi-nginx
image: nginx
@ -63,8 +78,8 @@ services:
- ./nginx/conf.d:/etc/nginx/conf.d
depends_on:
- ruoyi-gateway
links:
- ruoyi-gateway
networks:
- ruoyi-net
ruoyi-gateway:
container_name: ruoyi-gateway
build:
@ -74,8 +89,9 @@ services:
- "8080:8080"
depends_on:
- ruoyi-redis
links:
- ruoyi-redis
- ruoyi-nacos
networks:
- ruoyi-net
ruoyi-auth:
container_name: ruoyi-auth
build:
@ -85,8 +101,9 @@ services:
- "9200:9200"
depends_on:
- ruoyi-redis
links:
- ruoyi-redis
- ruoyi-nacos
networks:
- ruoyi-net
ruoyi-modules-system:
container_name: ruoyi-modules-system
build:
@ -96,10 +113,10 @@ services:
- "9201:9201"
depends_on:
- ruoyi-redis
- ruoyi-nacos
- ruoyi-mysql
links:
- ruoyi-redis
- ruoyi-mysql
networks:
- ruoyi-net
ruoyi-modules-gen:
container_name: ruoyi-modules-gen
build:
@ -109,8 +126,8 @@ services:
- "9202:9202"
depends_on:
- ruoyi-mysql
links:
- ruoyi-mysql
networks:
- ruoyi-net
ruoyi-modules-job:
container_name: ruoyi-modules-job
build:
@ -120,8 +137,8 @@ services:
- "9203:9203"
depends_on:
- ruoyi-mysql
links:
- ruoyi-mysql
networks:
- ruoyi-net
ruoyi-modules-file:
container_name: ruoyi-modules-file
build:
@ -131,6 +148,8 @@ services:
- "9300:9300"
volumes:
- ./ruoyi/uploadPath:/home/ruoyi/uploadPath
networks:
- ruoyi-net
ruoyi-visual-monitor:
container_name: ruoyi-visual-monitor
build:
@ -138,3 +157,5 @@ services:
dockerfile: dockerfile
ports:
- "9100:9100"
networks:
- ruoyi-net

View File

@ -22,8 +22,8 @@ nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/
nacos.core.auth.system.type=nacos
nacos.core.auth.enabled=false
nacos.core.auth.default.token.expire.seconds=18000
nacos.core.auth.default.token.secret.key=SecretKey012345678901234567890123456789012345678901234567890123456789
nacos.core.auth.plugin.nacos.token.expire.seconds=18000
nacos.core.auth.plugin.nacos.token.secret.key=rO0ABXNyABNqYXZhLnV0aWwuQmFzZTY0dPTZ3QE+Kk1T6mN8X0YpV3kQ7ZbJ5A==
nacos.core.auth.caching.enabled=true
nacos.core.auth.enable.userAgentAuthWhite=false
nacos.core.auth.server.identity.key=serverIdentity

View File

@ -1,5 +1,5 @@
# 基础镜像
FROM openjdk:8-jre
FROM openjdk:17-jdk-slim
# author
MAINTAINER ruoyi

View File

@ -1,5 +1,5 @@
# 基础镜像
FROM openjdk:8-jre
# 基础镜像openjdk:17-jdk-slim不包含验证码所需的字体
FROM openjdk:17-jdk
# author
MAINTAINER ruoyi

View File

@ -1,5 +1,5 @@
# 基础镜像
FROM openjdk:8-jre
FROM openjdk:17-jdk-slim
# author
MAINTAINER ruoyi

View File

@ -1,5 +1,5 @@
# 基础镜像
FROM openjdk:8-jre
FROM openjdk:17-jdk-slim
# author
MAINTAINER ruoyi

View File

@ -1,5 +1,5 @@
# 基础镜像
FROM openjdk:8-jre
FROM openjdk:17-jdk-slim
# author
MAINTAINER ruoyi

View File

@ -1,5 +1,5 @@
# 基础镜像
FROM openjdk:8-jre
FROM openjdk:17-jdk-slim
# author
MAINTAINER ruoyi

View File

@ -1,5 +1,5 @@
# 基础镜像
FROM openjdk:8-jre
FROM openjdk:17-jdk-slim
# author
MAINTAINER ruoyi

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: ruoyi-nacos:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: ruoyi-nacos:8848
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: ruoyi-nacos:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: ruoyi-nacos:8848
# 配置文件格式
file-extension: yml
# 共享配置
@ -33,7 +33,7 @@ spring:
datasource:
ds1:
nacos:
server-addr: 127.0.0.1:8848
server-addr: ruoyi-nacos:8848
dataId: sentinel-ruoyi-gateway
groupId: DEFAULT_GROUP
data-type: json

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: ruoyi-nacos:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: ruoyi-nacos:8848
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -149,7 +149,7 @@
<if test="visible != null">visible = #{visible},</if>
<if test="status != null">status = #{status},</if>
<if test="perms !=null">perms = #{perms},</if>
<if test="icon !=null and icon != ''">icon = #{icon},</if>
icon = #{icon},
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
update_time = sysdate()

View File

@ -34,15 +34,14 @@
<router-link to="/user/profile">
<el-dropdown-item>个人中心</el-dropdown-item>
</router-link>
<el-dropdown-item @click.native="setLayout" v-if="setting">
<span>布局设置</span>
</el-dropdown-item>
<el-dropdown-item divided @click.native="logout">
<span>退出登录</span>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<div class="right-menu-item hover-effect setting" @click="setLayout" v-if="setting">
<svg-icon icon-class="more-up" />
</div>
</div>
</div>
</template>
@ -178,6 +177,7 @@ export default {
.avatar-wrapper {
margin-top: 10px;
right: 8px;
position: relative;
.user-avatar {
@ -190,6 +190,7 @@ export default {
.user-nickname{
position: relative;
bottom: 10px;
left: 2px;
font-size: 14px;
font-weight: bold;
}

View File

@ -139,7 +139,7 @@
@show="$refs['iconSelect'].reset()"
>
<IconSelect ref="iconSelect" @selected="selected" :active-icon="form.icon" />
<el-input slot="reference" v-model="form.icon" placeholder="点击选择图标" readonly>
<el-input slot="reference" v-model="form.icon" placeholder="点击选择图标" clearable>
<svg-icon
v-if="form.icon"
slot="prefix"

View File

@ -546,6 +546,11 @@ export default {
},
//
submitFileForm() {
const file = this.$refs.upload.uploadFiles
if (!file || file.length === 0 || !file[0].name.toLowerCase().endsWith('.xls') && !file[0].name.toLowerCase().endsWith('.xlsx')) {
this.$modal.msgError("请选择后缀为 “xls”或“xlsx”的文件。")
return
}
this.$refs.upload.submit()
}
}