|
|
@@ -10,6 +10,7 @@ module.exports={
|
|
|
createRationGLJ:createRationGLJ,
|
|
|
testGetQuantify:testGetQuantify,
|
|
|
getGLJData:getGLJData,
|
|
|
+ getGLJDataPaging: getGLJDataPaging,
|
|
|
getGLJDataByCodes:getGLJDataByCodes,
|
|
|
addGLJ:addGLJ,
|
|
|
replaceGLJ:replaceGLJ,
|
|
|
@@ -56,6 +57,19 @@ async function getGLJDataByCodes(req,res){
|
|
|
res.json(result);
|
|
|
}
|
|
|
|
|
|
+async function getGLJDataPaging(req, res) {
|
|
|
+ let data = JSON.parse(req.body.data);
|
|
|
+ try {
|
|
|
+ let gljLibId = await getGLJLibByEngineerID(data.engineerID);
|
|
|
+ let info = {
|
|
|
+ gljLibId,
|
|
|
+ userID: req.session.sessionUser.id,
|
|
|
+ compilationId: req.session.sessionCompilation._id
|
|
|
+ };
|
|
|
+ } catch (e) {
|
|
|
+
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
async function getGLJData(req, res) {
|
|
|
let result={
|