明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
letian_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
letian_backend
Commits
d8eebba4
Commit
d8eebba4
authored
Oct 22, 2024
by
zengfanpei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
836d66af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
local.json
config/local.json
+1
-1
excelCron.js
cron/excelCron.js
+2
-2
No files found.
config/local.json
View file @
d8eebba4
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
"getDeviceList"
:
false
,
"getDeviceList"
:
false
,
"getAllDevice"
:
false
,
"getAllDevice"
:
false
,
"collectDeviceInfo"
:
false
,
"collectDeviceInfo"
:
false
,
"collectDeviceInfo4"
:
tru
e
,
"collectDeviceInfo4"
:
fals
e
,
"excel"
:
true
"excel"
:
true
}
}
}
}
\ No newline at end of file
cron/excelCron.js
View file @
d8eebba4
...
@@ -19,7 +19,7 @@ const ExcelJS = require('exceljs');
...
@@ -19,7 +19,7 @@ const ExcelJS = require('exceljs');
const
fs
=
require
(
'fs'
);
const
fs
=
require
(
'fs'
);
//
exportExcel()
exportExcel
()
async
function
exportExcel
()
{
async
function
exportExcel
()
{
let
info
=
await
DB
.
ExcelRecord
.
findOne
({
type
:
2
,
status
:
1
});
let
info
=
await
DB
.
ExcelRecord
.
findOne
({
type
:
2
,
status
:
1
});
...
@@ -62,7 +62,7 @@ async function exportExcel() {
...
@@ -62,7 +62,7 @@ async function exportExcel() {
mimetype
:
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
,
mimetype
:
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
,
filename
:
name
+
'.xlsx'
,
filename
:
name
+
'.xlsx'
,
path
:
excelUrl
,
path
:
excelUrl
,
nginxpath
:
_
.
last
(
String
(
req
.
file
.
path
).
split
(
'/mnt/vdb1'
)),
nginxpath
:
_
.
last
(
String
(
path
).
split
(
'/mnt/vdb1'
)),
type
:
2
,
type
:
2
,
});
});
// 3. 更新任务结果
// 3. 更新任务结果
...
...
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