Commit fe37d03e by lixinming

no message

parent a9278292
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
* 学术研究 * 学术研究
*/ */
import { IMGEDITFUNENUM } 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";
import { TABLEENUM } from "../../../data/models/model"; 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 { updateOneData } from "../../../data/update";
import { generateSystemId, successResult } from "../../../tools/system"; import { generateSystemId, successResult } from "../../../tools/system";
import { BizError } from "../../../util/bizError"; import { BizError } from "../../../util/bizError";
...@@ -94,42 +94,16 @@ export async function preview({userId}) { ...@@ -94,42 +94,16 @@ export async function preview({userId}) {
let {id, index, imgUrl, desc} = info; let {id, index, imgUrl, desc} = info;
imgList.push({id, imgUrl, index, desc}); imgList.push({id, imgUrl, index, desc});
}); });
let contentList = [
{ let contentList = [];
year:2021, let xueShuYanJiuData = await find(TABLEENUM.文章管理, {articleType:{"$in":[ARTICLEPOSITION.品牌项目_hgh学术研究]}, display:STATE.} );
month:12, xueShuYanJiuData.forEach(info => {
day:31, let {id, title, imgUrl, articleTime, desc} = info;
title:'学术研究标题', let itemDate = new Date();
author:'张三' contentList.push({
}, title, author:"中国艺术职业教育学会", year:itemDate.getFullYear(), month:itemDate.getMonth() + 1, day:itemDate.getDay()
{ });
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:'张三'
}
];
return {imgList, contentList}; 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