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
a2d3f987
提交
a2d3f987
authored
11月 30, 2021
作者:
RuoYi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化代码
上级
bf4ac3ad
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
27 行增加
和
9 行删除
+27
-9
SysProfileController.java
...com/ruoyi/web/controller/system/SysProfileController.java
+1
-1
SysMenuServiceImpl.java
...ava/com/ruoyi/system/service/impl/SysMenuServiceImpl.java
+13
-2
modal.js
ruoyi-ui/src/plugins/modal.js
+8
-0
index.vue
ruoyi-ui/src/views/monitor/online/index.vue
+1
-1
index.vue
ruoyi-ui/src/views/system/user/index.vue
+1
-1
basicInfoForm.vue
ruoyi-ui/src/views/tool/gen/basicInfoForm.vue
+1
-2
editTable.vue
ruoyi-ui/src/views/tool/gen/editTable.vue
+1
-0
genInfoForm.vue
ruoyi-ui/src/views/tool/gen/genInfoForm.vue
+1
-2
没有找到文件。
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysProfileController.java
浏览文件 @
a2d3f987
...
@@ -72,7 +72,7 @@ public class SysProfileController extends BaseController
...
@@ -72,7 +72,7 @@ public class SysProfileController extends BaseController
&&
UserConstants
.
NOT_UNIQUE
.
equals
(
userService
.
checkEmailUnique
(
user
)))
&&
UserConstants
.
NOT_UNIQUE
.
equals
(
userService
.
checkEmailUnique
(
user
)))
{
{
return
AjaxResult
.
error
(
"修改用户'"
+
user
.
getUserName
()
+
"'失败,邮箱账号已存在"
);
return
AjaxResult
.
error
(
"修改用户'"
+
user
.
getUserName
()
+
"'失败,邮箱账号已存在"
);
}
}
user
.
setUserId
(
sysUser
.
getUserId
());
user
.
setUserId
(
sysUser
.
getUserId
());
user
.
setPassword
(
null
);
user
.
setPassword
(
null
);
if
(
userService
.
updateUserProfile
(
user
)
>
0
)
if
(
userService
.
updateUserProfile
(
user
)
>
0
)
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java
浏览文件 @
a2d3f987
...
@@ -179,7 +179,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -179,7 +179,7 @@ public class SysMenuServiceImpl implements ISysMenuService
router
.
setPath
(
"/inner"
);
router
.
setPath
(
"/inner"
);
List
<
RouterVo
>
childrenList
=
new
ArrayList
<
RouterVo
>();
List
<
RouterVo
>
childrenList
=
new
ArrayList
<
RouterVo
>();
RouterVo
children
=
new
RouterVo
();
RouterVo
children
=
new
RouterVo
();
String
routerPath
=
StringUtils
.
replaceEach
(
menu
.
getPath
(),
new
String
[]
{
Constants
.
HTTP
,
Constants
.
HTTPS
},
new
String
[]
{
""
,
""
}
);
String
routerPath
=
innerLinkReplaceEach
(
menu
.
getPath
()
);
children
.
setPath
(
routerPath
);
children
.
setPath
(
routerPath
);
children
.
setComponent
(
UserConstants
.
INNER_LINK
);
children
.
setComponent
(
UserConstants
.
INNER_LINK
);
children
.
setName
(
StringUtils
.
capitalize
(
routerPath
));
children
.
setName
(
StringUtils
.
capitalize
(
routerPath
));
...
@@ -358,7 +358,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -358,7 +358,7 @@ public class SysMenuServiceImpl implements ISysMenuService
// 内链打开外网方式
// 内链打开外网方式
if
(
menu
.
getParentId
().
intValue
()
!=
0
&&
isInnerLink
(
menu
))
if
(
menu
.
getParentId
().
intValue
()
!=
0
&&
isInnerLink
(
menu
))
{
{
routerPath
=
StringUtils
.
replaceEach
(
routerPath
,
new
String
[]
{
Constants
.
HTTP
,
Constants
.
HTTPS
},
new
String
[]
{
""
,
""
}
);
routerPath
=
innerLinkReplaceEach
(
routerPath
);
}
}
// 非外链并且是一级目录(类型为目录)
// 非外链并且是一级目录(类型为目录)
if
(
0
==
menu
.
getParentId
().
intValue
()
&&
UserConstants
.
TYPE_DIR
.
equals
(
menu
.
getMenuType
())
if
(
0
==
menu
.
getParentId
().
intValue
()
&&
UserConstants
.
TYPE_DIR
.
equals
(
menu
.
getMenuType
())
...
@@ -500,4 +500,15 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -500,4 +500,15 @@ public class SysMenuServiceImpl implements ISysMenuService
{
{
return
getChildList
(
list
,
t
).
size
()
>
0
?
true
:
false
;
return
getChildList
(
list
,
t
).
size
()
>
0
?
true
:
false
;
}
}
/**
* 内链域名特殊字符替换
*
* @return
*/
public
String
innerLinkReplaceEach
(
String
path
)
{
return
StringUtils
.
replaceEach
(
path
,
new
String
[]
{
Constants
.
HTTP
,
Constants
.
HTTPS
},
new
String
[]
{
""
,
""
});
}
}
}
ruoyi-ui/src/plugins/modal.js
浏览文件 @
a2d3f987
...
@@ -59,6 +59,14 @@ export default {
...
@@ -59,6 +59,14 @@ export default {
type
:
"warning"
,
type
:
"warning"
,
})
})
},
},
// 提交内容
prompt
(
content
)
{
return
MessageBox
.
prompt
(
content
,
"系统提示"
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
"warning"
,
})
},
// 打开遮罩层
// 打开遮罩层
loading
(
content
)
{
loading
(
content
)
{
loadingInstance
=
Loading
.
service
({
loadingInstance
=
Loading
.
service
({
...
...
ruoyi-ui/src/views/monitor/online/index.vue
浏览文件 @
a2d3f987
...
@@ -111,7 +111,7 @@ export default {
...
@@ -111,7 +111,7 @@ export default {
},
},
/** 强退按钮操作 */
/** 强退按钮操作 */
handleForceLogout
(
row
)
{
handleForceLogout
(
row
)
{
this
.
$modal
.
confirm
(
'是否确认强退名称为"'
+
row
.
userName
+
'"的
数据项
?'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
'是否确认强退名称为"'
+
row
.
userName
+
'"的
用户
?'
).
then
(
function
()
{
return
forceLogout
(
row
.
tokenId
);
return
forceLogout
(
row
.
tokenId
);
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
...
...
ruoyi-ui/src/views/system/user/index.vue
浏览文件 @
a2d3f987
...
@@ -596,7 +596,7 @@ export default {
...
@@ -596,7 +596,7 @@ export default {
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
closeOnClickModal
:
false
,
closeOnClickModal
:
false
,
inputPattern
:
/^.
{5,20}
$/
,
inputPattern
:
/^.
{5,20}
$/
,
inputErrorMessage
:
"用户密码长度必须介于 5 和 20 之间"
,
inputErrorMessage
:
"用户密码长度必须介于 5 和 20 之间"
}).
then
(({
value
})
=>
{
}).
then
(({
value
})
=>
{
resetUserPwd
(
row
.
userId
,
value
).
then
(
response
=>
{
resetUserPwd
(
row
.
userId
,
value
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功,新密码是:"
+
value
);
this
.
$modal
.
msgSuccess
(
"修改成功,新密码是:"
+
value
);
...
...
ruoyi-ui/src/views/tool/gen/basicInfoForm.vue
浏览文件 @
a2d3f987
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
<el-input
placeholder=
"请输入"
v-model=
"info.tableComment"
/>
<el-input
placeholder=
"请输入"
v-model=
"info.tableComment"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"实体类名称"
prop=
"className"
>
<el-form-item
label=
"实体类名称"
prop=
"className"
>
<el-input
placeholder=
"请输入"
v-model=
"info.className"
/>
<el-input
placeholder=
"请输入"
v-model=
"info.className"
/>
...
@@ -30,9 +29,9 @@
...
@@ -30,9 +29,9 @@
</el-row>
</el-row>
</el-form>
</el-form>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
"BasicInfoForm"
,
props
:
{
props
:
{
info
:
{
info
:
{
type
:
Object
,
type
:
Object
,
...
...
ruoyi-ui/src/views/tool/gen/editTable.vue
浏览文件 @
a2d3f987
...
@@ -124,6 +124,7 @@
...
@@ -124,6 +124,7 @@
</el-form>
</el-form>
</el-card>
</el-card>
</template>
</template>
<
script
>
<
script
>
import
{
getGenTable
,
updateGenTable
}
from
"@/api/tool/gen"
;
import
{
getGenTable
,
updateGenTable
}
from
"@/api/tool/gen"
;
import
{
optionselect
as
getDictOptionselect
}
from
"@/api/system/dict/type"
;
import
{
optionselect
as
getDictOptionselect
}
from
"@/api/system/dict/type"
;
...
...
ruoyi-ui/src/views/tool/gen/genInfoForm.vue
浏览文件 @
a2d3f987
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
prop=
"packageName"
>
<el-form-item
prop=
"packageName"
>
<span
slot=
"label"
>
<span
slot=
"label"
>
...
@@ -213,12 +212,12 @@
...
@@ -213,12 +212,12 @@
</el-row>
</el-row>
</el-form>
</el-form>
</
template
>
</
template
>
<
script
>
<
script
>
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
export
default
{
export
default
{
name
:
"BasicInfoForm"
,
components
:
{
Treeselect
},
components
:
{
Treeselect
},
props
:
{
props
:
{
info
:
{
info
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论