|
|
|
|
@ -3,6 +3,7 @@
|
|
|
|
|
* @param item
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
import dateUtil from "./dateUtil.js";
|
|
|
|
|
export function isEmptyCheck(value) {
|
|
|
|
|
if (value == null || value === "" || value == "null" || typeof value == "undefined") {
|
|
|
|
|
return true;
|
|
|
|
|
@ -1234,42 +1235,24 @@ export function disposeJobListData(recordList) {
|
|
|
|
|
item["age"] = ageStr;
|
|
|
|
|
// console.log(item.salaryClassify,'=============', item.salaryClassifyValue);
|
|
|
|
|
item["salaryClassifyValue"] = getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue);
|
|
|
|
|
// //时薪
|
|
|
|
|
// var hourlyPayStr = '';
|
|
|
|
|
// var hasHourlyPay = false;
|
|
|
|
|
// if (isNotEmptyCheck(item.hourlyPay)) {
|
|
|
|
|
// hourlyPayStr = item.hourlyPay + '元/小时';
|
|
|
|
|
// hasHourlyPay = true;
|
|
|
|
|
// } else if (isNotEmptyCheck(item.dayPay)) {
|
|
|
|
|
// hourlyPayStr = item.dayPay + '元/日';
|
|
|
|
|
// hasHourlyPay = true;
|
|
|
|
|
// } else {
|
|
|
|
|
// if (isNotEmptyCheck(item.minMonthlyPay) && isNotEmptyCheck(item.maxMonthlyPay)) {
|
|
|
|
|
// if (item.minMonthlyPay == item.maxMonthlyPay) {
|
|
|
|
|
// hourlyPayStr = item.minMonthlyPay;
|
|
|
|
|
// } else {
|
|
|
|
|
// hourlyPayStr = item.minMonthlyPay + '-' + item.maxMonthlyPay;
|
|
|
|
|
// }
|
|
|
|
|
// } else if (isNotEmptyCheck(item.minMonthlyPay)) {
|
|
|
|
|
// hourlyPayStr = item.minMonthlyPay;
|
|
|
|
|
// } else if (isNotEmptyCheck(item.maxMonthlyPay)) {
|
|
|
|
|
// hourlyPayStr = item.maxMonthlyPay;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// item["hourlyPay"] = hourlyPayStr;
|
|
|
|
|
|
|
|
|
|
//代理名称
|
|
|
|
|
item['agencyName'] = item.agencyName.split(item.agencyCode).join('')
|
|
|
|
|
|
|
|
|
|
item.updateTime = dateUtil.timeShowXXX(item.updateTime)
|
|
|
|
|
//月薪
|
|
|
|
|
var monthlyPayStr = "";
|
|
|
|
|
// if (hasHourlyPay) {
|
|
|
|
|
if (isNotEmptyCheck(item.minMonthlyPay) && isNotEmptyCheck(item.maxMonthlyPay)) {
|
|
|
|
|
if (item.minMonthlyPay == item.maxMonthlyPay) {
|
|
|
|
|
monthlyPayStr = item.minMonthlyPay;
|
|
|
|
|
monthlyPayStr = item.minMonthlyPay/100;
|
|
|
|
|
} else {
|
|
|
|
|
monthlyPayStr = item.minMonthlyPay + "-" + item.maxMonthlyPay;
|
|
|
|
|
monthlyPayStr = item.minMonthlyPay/100 + "-" + item.maxMonthlyPay/100;
|
|
|
|
|
}
|
|
|
|
|
} else if (isNotEmptyCheck(item.minMonthlyPay)) {
|
|
|
|
|
monthlyPayStr = item.minMonthlyPay;
|
|
|
|
|
monthlyPayStr = item.minMonthlyPay/100;
|
|
|
|
|
} else if (isNotEmptyCheck(item.maxMonthlyPay)) {
|
|
|
|
|
monthlyPayStr = item.maxMonthlyPay;
|
|
|
|
|
monthlyPayStr = item.maxMonthlyPay/100;
|
|
|
|
|
}
|
|
|
|
|
// console.log(monthlyPayStr);
|
|
|
|
|
// }
|
|
|
|
|
|