Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cocktail-party-server
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
cocktail-party
cocktail-party-server
Commits
d3b23a83
提交
d3b23a83
authored
3月 04, 2025
作者:
RuoYi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化代码
上级
89ab3bd0
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
34 行增加
和
28 行删除
+34
-28
pom.xml
pom.xml
+1
-1
SpringUtils.java
.../main/java/com/ruoyi/common/utils/spring/SpringUtils.java
+7
-1
domain.java.vm
ruoyi-generator/src/main/resources/vm/java/domain.java.vm
+1
-1
index-tree.vue.vm
ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
+4
-4
index.vue.vm
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
+6
-6
index-tree.vue.vm
...-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm
+4
-4
index.vue.vm
ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm
+6
-6
Navbar.vue
ruoyi-ui/src/layout/components/Navbar.vue
+5
-5
没有找到文件。
pom.xml
浏览文件 @
d3b23a83
...
...
@@ -31,7 +31,7 @@
<velocity.version>
2.3
</velocity.version>
<jwt.version>
0.9.1
</jwt.version>
<!-- override dependency version -->
<tomcat.version>
9.0.
100
</tomcat.version>
<tomcat.version>
9.0.
98
</tomcat.version>
<logback.version>
1.2.13
</logback.version>
<spring-security.version>
5.7.12
</spring-security.version>
<spring-framework.version>
5.3.39
</spring-framework.version>
...
...
ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java
浏览文件 @
d3b23a83
package
com
.
ruoyi
.
common
.
utils
.
spring
;
import
org.springframework.aop.framework.Advised
;
import
org.springframework.aop.framework.AopContext
;
import
org.springframework.beans.BeansException
;
import
org.springframework.beans.factory.NoSuchBeanDefinitionException
;
...
...
@@ -120,7 +121,12 @@ public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationC
@SuppressWarnings
(
"unchecked"
)
public
static
<
T
>
T
getAopProxy
(
T
invoker
)
{
return
(
T
)
AopContext
.
currentProxy
();
Object
proxy
=
AopContext
.
currentProxy
();
if
(((
Advised
)
proxy
).
getTargetSource
().
getTargetClass
()
==
invoker
.
getClass
())
{
return
(
T
)
proxy
;
}
return
invoker
;
}
/**
...
...
ruoyi-generator/src/main/resources/vm/java/domain.java.vm
浏览文件 @
d3b23a83
...
...
@@ -71,9 +71,9 @@ public class ${ClassName} extends ${Entity}
{
return
$
column
.
javaField
;
}
#
end
#
end
#
if
($
table
.
sub
)
public
List
<${
subClassName
}>
get
${
subClassName
}
List
()
{
...
...
ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
浏览文件 @
d3b23a83
...
...
@@ -75,7 +75,7 @@
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['${
moduleName}:${businessName
}:add']"
v-hasPermi="['${
permissionPrefix
}:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
...
...
@@ -144,21 +144,21 @@
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['${
moduleName}:${businessName
}:edit']"
v-hasPermi="['${
permissionPrefix
}:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-plus"
@click="handleAdd(scope.row)"
v-hasPermi="['${
moduleName}:${businessName
}:add']"
v-hasPermi="['${
permissionPrefix
}:add']"
>新增</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['${
moduleName}:${businessName
}:remove']"
v-hasPermi="['${
permissionPrefix
}:remove']"
>删除</el-button>
</template>
</el-table-column>
...
...
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
浏览文件 @
d3b23a83
...
...
@@ -75,7 +75,7 @@
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['${
moduleName}:${businessName
}:add']"
v-hasPermi="['${
permissionPrefix
}:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
...
...
@@ -86,7 +86,7 @@
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['${
moduleName}:${businessName
}:edit']"
v-hasPermi="['${
permissionPrefix
}:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
...
...
@@ -97,7 +97,7 @@
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['${
moduleName}:${businessName
}:remove']"
v-hasPermi="['${
permissionPrefix
}:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
...
...
@@ -107,7 +107,7 @@
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['${
moduleName}:${businessName
}:export']"
v-hasPermi="['${
permissionPrefix
}:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
...
...
@@ -158,14 +158,14 @@
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['${
moduleName}:${businessName
}:edit']"
v-hasPermi="['${
permissionPrefix
}:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['${
moduleName}:${businessName
}:remove']"
v-hasPermi="['${
permissionPrefix
}:remove']"
>删除</el-button>
</template>
</el-table-column>
...
...
ruoyi-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm
浏览文件 @
d3b23a83
...
...
@@ -73,7 +73,7 @@
plain
icon=
"Plus"
@
click=
"handleAdd"
v-hasPermi=
"['${
moduleName}:${businessName
}:add']"
v-hasPermi=
"['${
permissionPrefix
}:add']"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
...
...
@@ -136,9 +136,9 @@
#end
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<template
#
default=
"scope"
>
<el-button
link
type=
"primary"
icon=
"Edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['${
moduleName}:${businessName
}:edit']"
>
修改
</el-button>
<el-button
link
type=
"primary"
icon=
"Plus"
@
click=
"handleAdd(scope.row)"
v-hasPermi=
"['${
moduleName}:${businessName
}:add']"
>
新增
</el-button>
<el-button
link
type=
"primary"
icon=
"Delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['${
moduleName}:${businessName
}:remove']"
>
删除
</el-button>
<el-button
link
type=
"primary"
icon=
"Edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['${
permissionPrefix
}:edit']"
>
修改
</el-button>
<el-button
link
type=
"primary"
icon=
"Plus"
@
click=
"handleAdd(scope.row)"
v-hasPermi=
"['${
permissionPrefix
}:add']"
>
新增
</el-button>
<el-button
link
type=
"primary"
icon=
"Delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['${
permissionPrefix
}:remove']"
>
删除
</el-button>
</template>
</el-table-column>
</el-table>
...
...
ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm
浏览文件 @
d3b23a83
...
...
@@ -73,7 +73,7 @@
plain
icon="Plus"
@click="handleAdd"
v-hasPermi="['${
moduleName}:${businessName
}:add']"
v-hasPermi="['${
permissionPrefix
}:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
...
...
@@ -83,7 +83,7 @@
icon="Edit"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['${
moduleName}:${businessName
}:edit']"
v-hasPermi="['${
permissionPrefix
}:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
...
...
@@ -93,7 +93,7 @@
icon="Delete"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['${
moduleName}:${businessName
}:remove']"
v-hasPermi="['${
permissionPrefix
}:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
...
...
@@ -102,7 +102,7 @@
plain
icon="Download"
@click="handleExport"
v-hasPermi="['${
moduleName}:${businessName
}:export']"
v-hasPermi="['${
permissionPrefix
}:export']"
>导出</el-button>
</el-col>
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
...
...
@@ -148,8 +148,8 @@
#end
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['${
moduleName}:${businessName
}:edit']">修改</el-button>
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['${
moduleName}:${businessName
}:remove']">删除</el-button>
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['${
permissionPrefix
}:edit']">修改</el-button>
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['${
permissionPrefix
}:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
...
...
ruoyi-ui/src/layout/components/Navbar.vue
浏览文件 @
d3b23a83
...
...
@@ -2,8 +2,8 @@
<div
class=
"navbar"
>
<hamburger
id=
"hamburger-container"
:is-active=
"sidebar.opened"
class=
"hamburger-container"
@
toggleClick=
"toggleSideBar"
/>
<breadcrumb
id=
"breadcrumb-container"
class=
"breadcrumb-container"
v-if=
"!topNav"
/>
<top-nav
id=
"topmenu-container"
class=
"topmenu-container"
v-if=
"topNav"
/>
<breadcrumb
v-if=
"!topNav"
id=
"breadcrumb-container"
class=
"breadcrumb-container"
/>
<top-nav
v-if=
"topNav"
id=
"topmenu-container"
class=
"topmenu-container"
/>
<div
class=
"right-menu"
>
<template
v-if=
"device!=='mobile'"
>
...
...
@@ -95,16 +95,16 @@ export default {
toggleSideBar
()
{
this
.
$store
.
dispatch
(
'app/toggleSideBar'
)
},
async
logout
()
{
logout
()
{
this
.
$confirm
(
'确定注销并退出系统吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
location
.
href
=
'/index'
;
location
.
href
=
'/index'
})
}).
catch
(()
=>
{})
;
}).
catch
(()
=>
{})
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论