Commit fb794f3b by lixinming

no message

parent 445235f5
......@@ -2,6 +2,7 @@
* 学术研究
*/
import moment = require("moment");
import { ARTICLEPOSITION, IMGEDITFUNENUM, STATE } from "../../../config/enum";
import { ERRORENUM } from "../../../config/errorEnum";
import { addManyData } from "../../../data/add";
......@@ -96,12 +97,12 @@ export async function preview({userId}) {
});
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 => {
let {id, title, imgUrl, articleTime, desc} = info;
let itemDate = new Date();
let { title, articleTime} = info;
let itemDate = new Date(articleTime);
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()
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment