|
@@ -165,20 +165,10 @@ class CompleRatoinDao {
|
|
|
comGljs = await complementaryGljModel.find({userId: userId, ID: {$in: comGljIds}});
|
|
comGljs = await complementaryGljModel.find({userId: userId, ID: {$in: comGljIds}});
|
|
|
}
|
|
}
|
|
|
let gljDatas = gljUtil.sortRationGLJ(stdGljs.concat(comGljs),true);
|
|
let gljDatas = gljUtil.sortRationGLJ(stdGljs.concat(comGljs),true);
|
|
|
- /* gljDatas.sort(function (a, b) {
|
|
|
|
|
- let aV = a.gljType + a.code,
|
|
|
|
|
- bV = b.gljType + b.code;
|
|
|
|
|
- if(aV > bV) {
|
|
|
|
|
- return 1;
|
|
|
|
|
- } else if (aV < bV) {
|
|
|
|
|
- return -1;
|
|
|
|
|
- }
|
|
|
|
|
- return 0;
|
|
|
|
|
- });*/
|
|
|
|
|
if(ration.jobContent && ration.jobContent.toString().trim() !== ''){
|
|
if(ration.jobContent && ration.jobContent.toString().trim() !== ''){
|
|
|
hintsArr.push(`<label class="nomargin font_blue">工作内容:`);
|
|
hintsArr.push(`<label class="nomargin font_blue">工作内容:`);
|
|
|
hintsArr = hintsArr.concat(ration.jobContent.split('\n'));
|
|
hintsArr = hintsArr.concat(ration.jobContent.split('\n'));
|
|
|
- hintsArr.push("</label>")
|
|
|
|
|
|
|
+ hintsArr.push("</label>");
|
|
|
hintsArr.push("");
|
|
hintsArr.push("");
|
|
|
}
|
|
}
|
|
|
for(let glj of gljDatas){
|
|
for(let glj of gljDatas){
|
|
@@ -253,17 +243,6 @@ class CompleRatoinDao {
|
|
|
stdGljs = await stdGljModel.find({ID: {$in: stdGljIds}});
|
|
stdGljs = await stdGljModel.find({ID: {$in: stdGljIds}});
|
|
|
}
|
|
}
|
|
|
let gljDatas = gljUtil.sortRationGLJ(stdGljs,true);
|
|
let gljDatas = gljUtil.sortRationGLJ(stdGljs,true);
|
|
|
- /* gljDatas.sort(function (a, b) {
|
|
|
|
|
- let aV = a.gljType + a.code,
|
|
|
|
|
- bV = b.gljType + b.code;
|
|
|
|
|
- if(aV > bV) {
|
|
|
|
|
- return 1;
|
|
|
|
|
- } else if (aV < bV) {
|
|
|
|
|
- return -1;
|
|
|
|
|
- }
|
|
|
|
|
- return 0;
|
|
|
|
|
- });*/
|
|
|
|
|
- gljDatas = gljUtil.sortRationGLJ(gljDatas,true);
|
|
|
|
|
if(ration.jobContent && ration.jobContent.toString().trim() !== ''){
|
|
if(ration.jobContent && ration.jobContent.toString().trim() !== ''){
|
|
|
hintsArr.push(`<label class="nomargin font_blue">工作内容:`);
|
|
hintsArr.push(`<label class="nomargin font_blue">工作内容:`);
|
|
|
hintsArr = hintsArr.concat(ration.jobContent.split('\n'));
|
|
hintsArr = hintsArr.concat(ration.jobContent.split('\n'));
|