|
|
|
|
@ -2611,10 +2611,25 @@ Page({
|
|
|
|
|
data.recordList.length <
|
|
|
|
|
that.data.storeJobListSearchForm.pageSize
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
|
|
console.log('from 搜索')
|
|
|
|
|
var jobListTemp = commonUtil.disposeJobListData(
|
|
|
|
|
data.recordList
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
jobListTemp.forEach((item, index) => {
|
|
|
|
|
if (item.jobSpecialLabelNames && item.jobSpecialLabelNames.length > 0) {
|
|
|
|
|
console.log('为什么不会执行',item,index)
|
|
|
|
|
item.labelGroup = item.jobSpecialLabelNames.split(', ').filter((itm, inx) => {
|
|
|
|
|
return inx < 6
|
|
|
|
|
}).map(itm => {
|
|
|
|
|
return itm
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
console.log('为什么会执行',item,index)
|
|
|
|
|
item.labelGroup = [];
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
that.data.recordList = that.data.recordList.concat(jobListTemp);
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
|
@ -2623,18 +2638,21 @@ Page({
|
|
|
|
|
isTrigger: false,
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
console.log('from 其他')
|
|
|
|
|
var jobListTemp = commonUtil.disposeJobListData(
|
|
|
|
|
data.recordList
|
|
|
|
|
);
|
|
|
|
|
that.data.recordList = that.data.recordList.concat(jobListTemp);
|
|
|
|
|
that.data.recordList.forEach((item, index) => {
|
|
|
|
|
if (item.jobSpecialLabelNames && item.jobSpecialLabelNames.length > 0) {
|
|
|
|
|
item.labelGroup = item.jobSpecialLabelNames.split(', ').filter((item, index) => {
|
|
|
|
|
return index < 6
|
|
|
|
|
}).map(item => {
|
|
|
|
|
return item
|
|
|
|
|
console.log('为什么不会执行',item,index)
|
|
|
|
|
item.labelGroup = item.jobSpecialLabelNames.split(', ').filter((itm, inx) => {
|
|
|
|
|
return inx < 6
|
|
|
|
|
}).map(itm => {
|
|
|
|
|
return itm
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
console.log('为什么会执行',item,index)
|
|
|
|
|
item.labelGroup = [];
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|