明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_backend
Project
Project
Details
Activity
Releases
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
zengfanpei
jt_backend
Commits
76135aeb
Commit
76135aeb
authored
Dec 09, 2025
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
7bcae37c
Pipeline
#104367
passed with stage
in 3 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
roleController.js
controller/roleController.js
+3
-0
userController.js
controller/userController.js
+1
-1
projectModule.js
module/projectModule.js
+3
-0
No files found.
controller/roleController.js
View file @
76135aeb
...
...
@@ -106,6 +106,9 @@ async function getRole(req, res, next) {
}
]
});
if
(
!
ret
)
{
return
res
.
sendError
(
errorMessage
.
resourceNotFound
);
}
ret
=
ret
.
toJSON
();
if
(
ret
&&
ret
.
menus
&&
ret
.
menus
.
length
)
{
// ret.menus = utils.buildTree(ret.menus);
...
...
controller/userController.js
View file @
76135aeb
...
...
@@ -56,10 +56,10 @@ async function login(req, res, next) {
]
});
// console.log('this is user login', user)
user
=
user
.
toJSON
();
if
(
!
user
)
{
return
res
.
sendError
(
errorMessage
.
loginError
);
}
user
=
user
.
toJSON
();
//判断删除状态 ,暂时不加
const
check
=
utils
.
checkUserPassword
({
reqPw
:
password
,
...
...
module/projectModule.js
View file @
76135aeb
...
...
@@ -150,6 +150,9 @@ async function getProjectInfo({id}) {
],
// raw: true
});
if
(
!
project
)
{
return
res
.
sendError
(
errorMessage
.
resourceNotFound
);
}
project
=
project
.
toJSON
();
project
.
projectXmtzzes
=
utils
.
buildTree2
(
project
.
projectXmtzzes
,
'xh'
,
'parentXh'
);
...
...
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