Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyang
sts网站
Commits
a2d3f987
Commit
a2d3f987
authored
Nov 30, 2021
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
bf4ac3ad
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
9 deletions
+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
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysProfileController.java
View file @
a2d3f987
...
...
@@ -72,7 +72,7 @@ public class SysProfileController extends BaseController
&&
UserConstants
.
NOT_UNIQUE
.
equals
(
userService
.
checkEmailUnique
(
user
)))
{
return
AjaxResult
.
error
(
"修改用户'"
+
user
.
getUserName
()
+
"'失败,邮箱账号已存在"
);
}
}
user
.
setUserId
(
sysUser
.
getUserId
());
user
.
setPassword
(
null
);
if
(
userService
.
updateUserProfile
(
user
)
>
0
)
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java
View file @
a2d3f987
...
...
@@ -179,7 +179,7 @@ public class SysMenuServiceImpl implements ISysMenuService
router
.
setPath
(
"/inner"
);
List
<
RouterVo
>
childrenList
=
new
ArrayList
<
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
.
setComponent
(
UserConstants
.
INNER_LINK
);
children
.
setName
(
StringUtils
.
capitalize
(
routerPath
));
...
...
@@ -358,7 +358,7 @@ public class SysMenuServiceImpl implements ISysMenuService
// 内链打开外网方式
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
())
...
...
@@ -500,4 +500,15 @@ public class SysMenuServiceImpl implements ISysMenuService
{
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
View file @
a2d3f987
...
...
@@ -59,6 +59,14 @@ export default {
type
:
"warning"
,
})
},
// 提交内容
prompt
(
content
)
{
return
MessageBox
.
prompt
(
content
,
"系统提示"
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
"warning"
,
})
},
// 打开遮罩层
loading
(
content
)
{
loadingInstance
=
Loading
.
service
({
...
...
ruoyi-ui/src/views/monitor/online/index.vue
View file @
a2d3f987
...
...
@@ -111,7 +111,7 @@ export default {
},
/** 强退按钮操作 */
handleForceLogout
(
row
)
{
this
.
$modal
.
confirm
(
'是否确认强退名称为"'
+
row
.
userName
+
'"的
数据项
?'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
'是否确认强退名称为"'
+
row
.
userName
+
'"的
用户
?'
).
then
(
function
()
{
return
forceLogout
(
row
.
tokenId
);
}).
then
(()
=>
{
this
.
getList
();
...
...
ruoyi-ui/src/views/system/user/index.vue
View file @
a2d3f987
...
...
@@ -596,7 +596,7 @@ export default {
cancelButtonText
:
"取消"
,
closeOnClickModal
:
false
,
inputPattern
:
/^.
{5,20}
$/
,
inputErrorMessage
:
"用户密码长度必须介于 5 和 20 之间"
,
inputErrorMessage
:
"用户密码长度必须介于 5 和 20 之间"
}).
then
(({
value
})
=>
{
resetUserPwd
(
row
.
userId
,
value
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功,新密码是:"
+
value
);
...
...
ruoyi-ui/src/views/tool/gen/basicInfoForm.vue
View file @
a2d3f987
...
...
@@ -11,7 +11,6 @@
<el-input
placeholder=
"请输入"
v-model=
"info.tableComment"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"实体类名称"
prop=
"className"
>
<el-input
placeholder=
"请输入"
v-model=
"info.className"
/>
...
...
@@ -30,9 +29,9 @@
</el-row>
</el-form>
</
template
>
<
script
>
export
default
{
name
:
"BasicInfoForm"
,
props
:
{
info
:
{
type
:
Object
,
...
...
ruoyi-ui/src/views/tool/gen/editTable.vue
View file @
a2d3f987
...
...
@@ -124,6 +124,7 @@
</el-form>
</el-card>
</template>
<
script
>
import
{
getGenTable
,
updateGenTable
}
from
"@/api/tool/gen"
;
import
{
optionselect
as
getDictOptionselect
}
from
"@/api/system/dict/type"
;
...
...
ruoyi-ui/src/views/tool/gen/genInfoForm.vue
View file @
a2d3f987
...
...
@@ -11,7 +11,6 @@
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
prop=
"packageName"
>
<span
slot=
"label"
>
...
...
@@ -213,12 +212,12 @@
</el-row>
</el-form>
</
template
>
<
script
>
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
export
default
{
name
:
"BasicInfoForm"
,
components
:
{
Treeselect
},
props
:
{
info
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment