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
6474a171
提交
6474a171
authored
11月 21, 2022
作者:
RuoYi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
消除Vue3控制台出现的警告信息
上级
142f6ad6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
21 行增加
和
44 行删除
+21
-44
SysRole.java
...ain/java/com/ruoyi/common/core/domain/entity/SysRole.java
+5
-4
index-tree.vue.vm
...-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm
+3
-18
index.vue.vm
ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm
+2
-12
SysPost.java
...system/src/main/java/com/ruoyi/system/domain/SysPost.java
+5
-4
SysPostMapper.xml
...system/src/main/resources/mapper/system/SysPostMapper.xml
+3
-3
SysRoleMapper.xml
...system/src/main/resources/mapper/system/SysRoleMapper.xml
+3
-3
没有找到文件。
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java
浏览文件 @
6474a171
...
...
@@ -2,6 +2,7 @@ package com.ruoyi.common.core.domain.entity;
import
java.util.Set
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
...
...
@@ -32,7 +33,7 @@ public class SysRole extends BaseEntity
/** 角色排序 */
@Excel
(
name
=
"角色排序"
)
private
String
roleSort
;
private
Integer
roleSort
;
/** 数据范围(1:所有数据权限;2:自定义数据权限;3:本部门数据权限;4:本部门及以下数据权限;5:仅本人数据权限) */
@Excel
(
name
=
"数据范围"
,
readConverterExp
=
"1=所有数据权限,2=自定义数据权限,3=本部门数据权限,4=本部门及以下数据权限,5=仅本人数据权限"
)
...
...
@@ -117,13 +118,13 @@ public class SysRole extends BaseEntity
this
.
roleKey
=
roleKey
;
}
@Not
Blank
(
message
=
"显示顺序不能为空"
)
public
String
getRoleSort
()
@Not
Null
(
message
=
"显示顺序不能为空"
)
public
Integer
getRoleSort
()
{
return
roleSort
;
}
public
void
setRoleSort
(
String
roleSort
)
public
void
setRoleSort
(
Integer
roleSort
)
{
this
.
roleSort
=
roleSort
;
}
...
...
ruoyi-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm
浏览文件 @
6474a171
...
...
@@ -136,24 +136,9 @@
#end
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<template
#
default=
"scope"
>
<el-button
type=
"text"
icon=
"Edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['${moduleName}:${businessName}:edit']"
>
修改
</el-button>
<el-button
type=
"text"
icon=
"Plus"
@
click=
"handleAdd(scope.row)"
v-hasPermi=
"['${moduleName}:${businessName}:add']"
>
新增
</el-button>
<el-button
type=
"text"
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=
"['${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>
</template>
</el-table-column>
</el-table>
...
...
ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm
浏览文件 @
6474a171
...
...
@@ -148,18 +148,8 @@
#end
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button
type="text"
icon="Edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:edit']"
>修改</el-button>
<el-button
type="text"
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="['${moduleName}:${businessName}:edit']">修改</el-button>
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['${moduleName}:${businessName}:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/SysPost.java
浏览文件 @
6474a171
package
com
.
ruoyi
.
system
.
domain
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
...
...
@@ -31,7 +32,7 @@ public class SysPost extends BaseEntity
/** 岗位排序 */
@Excel
(
name
=
"岗位排序"
)
private
String
postSort
;
private
Integer
postSort
;
/** 状态(0正常 1停用) */
@Excel
(
name
=
"状态"
,
readConverterExp
=
"0=正常,1=停用"
)
...
...
@@ -74,13 +75,13 @@ public class SysPost extends BaseEntity
this
.
postName
=
postName
;
}
@Not
Blank
(
message
=
"显示顺序不能为空"
)
public
String
getPostSort
()
@Not
Null
(
message
=
"显示顺序不能为空"
)
public
Integer
getPostSort
()
{
return
postSort
;
}
public
void
setPostSort
(
String
postSort
)
public
void
setPostSort
(
Integer
postSort
)
{
this
.
postSort
=
postSort
;
}
...
...
ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml
浏览文件 @
6474a171
...
...
@@ -77,7 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<set>
<if
test=
"postCode != null and postCode != ''"
>
post_code = #{postCode},
</if>
<if
test=
"postName != null and postName != ''"
>
post_name = #{postName},
</if>
<if
test=
"postSort != null
and postSort != ''
"
>
post_sort = #{postSort},
</if>
<if
test=
"postSort != null"
>
post_sort = #{postSort},
</if>
<if
test=
"status != null and status != ''"
>
status = #{status},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
<if
test=
"updateBy != null and updateBy != ''"
>
update_by = #{updateBy},
</if>
...
...
@@ -91,7 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"postId != null and postId != 0"
>
post_id,
</if>
<if
test=
"postCode != null and postCode != ''"
>
post_code,
</if>
<if
test=
"postName != null and postName != ''"
>
post_name,
</if>
<if
test=
"postSort != null
and postSort != ''
"
>
post_sort,
</if>
<if
test=
"postSort != null"
>
post_sort,
</if>
<if
test=
"status != null and status != ''"
>
status,
</if>
<if
test=
"remark != null and remark != ''"
>
remark,
</if>
<if
test=
"createBy != null and createBy != ''"
>
create_by,
</if>
...
...
@@ -100,7 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"postId != null and postId != 0"
>
#{postId},
</if>
<if
test=
"postCode != null and postCode != ''"
>
#{postCode},
</if>
<if
test=
"postName != null and postName != ''"
>
#{postName},
</if>
<if
test=
"postSort != null
and postSort != ''
"
>
#{postSort},
</if>
<if
test=
"postSort != null"
>
#{postSort},
</if>
<if
test=
"status != null and status != ''"
>
#{status},
</if>
<if
test=
"remark != null and remark != ''"
>
#{remark},
</if>
<if
test=
"createBy != null and createBy != ''"
>
#{createBy},
</if>
...
...
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
浏览文件 @
6474a171
...
...
@@ -98,7 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"roleId != null and roleId != 0"
>
role_id,
</if>
<if
test=
"roleName != null and roleName != ''"
>
role_name,
</if>
<if
test=
"roleKey != null and roleKey != ''"
>
role_key,
</if>
<if
test=
"roleSort != null
and roleSort != ''
"
>
role_sort,
</if>
<if
test=
"roleSort != null"
>
role_sort,
</if>
<if
test=
"dataScope != null and dataScope != ''"
>
data_scope,
</if>
<if
test=
"menuCheckStrictly != null"
>
menu_check_strictly,
</if>
<if
test=
"deptCheckStrictly != null"
>
dept_check_strictly,
</if>
...
...
@@ -110,7 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"roleId != null and roleId != 0"
>
#{roleId},
</if>
<if
test=
"roleName != null and roleName != ''"
>
#{roleName},
</if>
<if
test=
"roleKey != null and roleKey != ''"
>
#{roleKey},
</if>
<if
test=
"roleSort != null
and roleSort != ''
"
>
#{roleSort},
</if>
<if
test=
"roleSort != null"
>
#{roleSort},
</if>
<if
test=
"dataScope != null and dataScope != ''"
>
#{dataScope},
</if>
<if
test=
"menuCheckStrictly != null"
>
#{menuCheckStrictly},
</if>
<if
test=
"deptCheckStrictly != null"
>
#{deptCheckStrictly},
</if>
...
...
@@ -126,7 +126,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<set>
<if
test=
"roleName != null and roleName != ''"
>
role_name = #{roleName},
</if>
<if
test=
"roleKey != null and roleKey != ''"
>
role_key = #{roleKey},
</if>
<if
test=
"roleSort != null
and roleSort != ''
"
>
role_sort = #{roleSort},
</if>
<if
test=
"roleSort != null"
>
role_sort = #{roleSort},
</if>
<if
test=
"dataScope != null and dataScope != ''"
>
data_scope = #{dataScope},
</if>
<if
test=
"menuCheckStrictly != null"
>
menu_check_strictly = #{menuCheckStrictly},
</if>
<if
test=
"deptCheckStrictly != null"
>
dept_check_strictly = #{deptCheckStrictly},
</if>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论