Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wenHuaBu_adminServer
Overview
Overview
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
node_server
wenHuaBu_adminServer
Commits
fb794f3b
Commit
fb794f3b
authored
Apr 01, 2024
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
445235f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
xueShuYanJiu.ts
src/biz/portal/pinPaiXiangMu/xueShuYanJiu.ts
+5
-4
No files found.
src/biz/portal/pinPaiXiangMu/xueShuYanJiu.ts
View file @
fb794f3b
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
* 学术研究
* 学术研究
*/
*/
import
moment
=
require
(
"moment"
);
import
{
ARTICLEPOSITION
,
IMGEDITFUNENUM
,
STATE
}
from
"../../../config/enum"
;
import
{
ARTICLEPOSITION
,
IMGEDITFUNENUM
,
STATE
}
from
"../../../config/enum"
;
import
{
ERRORENUM
}
from
"../../../config/errorEnum"
;
import
{
ERRORENUM
}
from
"../../../config/errorEnum"
;
import
{
addManyData
}
from
"../../../data/add"
;
import
{
addManyData
}
from
"../../../data/add"
;
...
@@ -96,12 +97,12 @@ export async function preview({userId}) {
...
@@ -96,12 +97,12 @@ export async function preview({userId}) {
});
});
let
contentList
=
[];
let
contentList
=
[];
let
xueShuYanJiuData
=
await
find
(
TABLEENUM
.
文章管理
,
{
articleType
:{
"$in"
:[
ARTICLEPOSITION
.
品牌项目
_hgh
学术研究
]},
display
:
STATE
.
是
}
);
let
xueShuYanJiuData
=
await
find
(
TABLEENUM
.
文章管理
,
{
articleType
:{
"$in"
:[
ARTICLEPOSITION
.
品牌项目
_hgh
学术研究
]},
display
:
STATE
.
是
}
,
[
"title"
,
"articleTime"
]
);
xueShuYanJiuData
.
forEach
(
info
=>
{
xueShuYanJiuData
.
forEach
(
info
=>
{
let
{
id
,
title
,
imgUrl
,
articleTime
,
desc
}
=
info
;
let
{
title
,
articleTime
}
=
info
;
let
itemDate
=
new
Date
();
let
itemDate
=
new
Date
(
articleTime
);
contentList
.
push
({
contentList
.
push
({
title
,
author
:
"中国艺术职业教育学会"
,
year
:
itemDate
.
getFullYear
(),
month
:
itemDate
.
getMonth
()
+
1
,
day
:
itemDate
.
getDay
()
title
,
author
:
"中国艺术职业教育学会"
,
articleTime
:
moment
(
articleTime
).
format
(
"YYYY-MM-DD"
),
year
:
itemDate
.
getFullYear
(),
month
:
itemDate
.
getMonth
()
+
1
,
day
:
itemDate
.
getDay
()
});
});
});
});
...
...
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