明树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
b5592641
Commit
b5592641
authored
Mar 13, 2026
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3d71b8b7
Pipeline
#108281
passed with stage
in 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
templateController.js
controller/templateController.js
+1
-1
userController.js
controller/userController.js
+1
-1
No files found.
controller/templateController.js
View file @
b5592641
...
...
@@ -228,7 +228,7 @@ async function importExcelTempData(req, res, next) {
for
(
let
c
=
0
;
c
<
sheetData
[
0
].
length
;
c
++
)
{
// const formulaString = hf.getCellFormula({ sheet: 0, row: r, col: c });
let
calculated
=
hf
.
getCellValue
({
sheet
:
0
,
row
:
r
,
col
:
c
});
//
console.log( calculated, " === ")
console
.
log
(
calculated
,
" === "
)
try
{
const
result
=
hf
.
calculateFormula
(
"="
+
calculated
,
0
)
// console.log(typeof result, "-----------------")
...
...
controller/userController.js
View file @
b5592641
...
...
@@ -85,7 +85,7 @@ async function login(req, res, next) {
delete
element
.
menus
;
newRoles
.
push
(
element
);
}
menus
=
_
.
uniqBy
(
menus
,
'id'
);
menus
=
_
.
filter
(
_
.
uniqBy
(
menus
,
'id'
),
(
o
)
=>
{
return
o
.
del
==
0
}
);
user
.
roles
=
newRoles
||
[];
// let allMenus = await DB.Menu.findAll({where: {del: 0}, raw: true});
user
.
menus
=
utils
.
buildTree
(
menus
);
...
...
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