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
fe37d03e
Commit
fe37d03e
authored
Apr 01, 2024
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
a9278292
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
39 deletions
+13
-39
xueShuYanJiu.ts
src/biz/portal/pinPaiXiangMu/xueShuYanJiu.ts
+13
-39
No files found.
src/biz/portal/pinPaiXiangMu/xueShuYanJiu.ts
View file @
fe37d03e
...
...
@@ -2,11 +2,11 @@
* 学术研究
*/
import
{
IMGEDITFUNENUM
}
from
"../../../config/enum"
;
import
{
ARTICLEPOSITION
,
IMGEDITFUNENUM
,
STATE
}
from
"../../../config/enum"
;
import
{
ERRORENUM
}
from
"../../../config/errorEnum"
;
import
{
addManyData
}
from
"../../../data/add"
;
import
{
TABLEENUM
}
from
"../../../data/models/model"
;
import
{
find
,
findOnce
}
from
"../../../data/select"
;
import
{
find
,
findOnce
,
findToPage
}
from
"../../../data/select"
;
import
{
updateOneData
}
from
"../../../data/update"
;
import
{
generateSystemId
,
successResult
}
from
"../../../tools/system"
;
import
{
BizError
}
from
"../../../util/bizError"
;
...
...
@@ -94,42 +94,16 @@ export async function preview({userId}) {
let
{
id
,
index
,
imgUrl
,
desc
}
=
info
;
imgList
.
push
({
id
,
imgUrl
,
index
,
desc
});
});
let
contentList
=
[
{
year
:
2021
,
month
:
12
,
day
:
31
,
title
:
'学术研究标题'
,
author
:
'张三'
},
{
year
:
2021
,
month
:
12
,
day
:
31
,
title
:
'学术研究标题'
,
author
:
'张三'
},
{
year
:
2021
,
month
:
12
,
day
:
31
,
title
:
'学术研究标题'
,
author
:
'张三'
},
{
year
:
2021
,
month
:
12
,
day
:
31
,
title
:
'学术研究标题'
,
author
:
'张三'
},
{
year
:
2021
,
month
:
12
,
day
:
31
,
title
:
'学术研究标题'
,
author
:
'张三'
}
];
let
contentList
=
[];
let
xueShuYanJiuData
=
await
find
(
TABLEENUM
.
文章管理
,
{
articleType
:{
"$in"
:[
ARTICLEPOSITION
.
品牌项目
_hgh
学术研究
]},
display
:
STATE
.
是
}
);
xueShuYanJiuData
.
forEach
(
info
=>
{
let
{
id
,
title
,
imgUrl
,
articleTime
,
desc
}
=
info
;
let
itemDate
=
new
Date
();
contentList
.
push
({
title
,
author
:
"中国艺术职业教育学会"
,
year
:
itemDate
.
getFullYear
(),
month
:
itemDate
.
getMonth
()
+
1
,
day
:
itemDate
.
getDay
()
});
});
return
{
imgList
,
contentList
};
}
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