Commit fe37d03e by lixinming

no message

parent a9278292
......@@ -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};
}
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