1.service层
//企业获取收藏的简历列表
getcolList: function (parm) {
var p = $.Deferred();
$.ajax({
type: 'post',
url: Window.IntroduceService + '/company/manage/JobIntroduction/enshrine/v1.0/query',
data: parm,
success: function (res) {
p.resolve(res);
},
error: function (err) {
p.resolve(err);
}
});
return p.promise();
},
2.事件方法层
getDataList: function (currentpage, pagecount) {
var parm = {
UCE197: _QYYGID,//企业员工ID
UCB001: _ZPDWID,//招聘企业ID,
PAGE: currentpage,//页码
LINAGE: pagecount//每页行数
};
tanlent_service.getcolList(parm).then(function (res) {
res = utility.decodeJSON(res);
try {
if (res.IsOK) {
var resRows = res.Result.Rows;
var htmls = "";
for (var i = 0; i < resRows.length; i++) {
var grtx = resRows[i].ResumeDetail.BaseInfo.UPK002;
if (grtx != null && grtx != '' && grtx != undefined) {
grtx = Window.IntroduceService + grtx;
} else {
if (resRows[i].ResumeDetail.BaseInfo.AAC004 == "1") {
grtx = utility.randomManpic();
} else {
grtx = utility.randomWomanPic();
};
};