禅道bug 51958 51993
This commit is contained in:
@@ -3718,6 +3718,43 @@ export default {
|
||||
},
|
||||
// 搜索
|
||||
getDomesticStandardTableBtn(item) {
|
||||
// // 自定义属性字段高级搜索处理
|
||||
//advanceSearchVOStr
|
||||
const advanceSearchVOList = [];
|
||||
for (let key in this.advanceSearchMapping) {
|
||||
const value = this.advanceSearchMapping[key];
|
||||
if (value !== null && value !== '' && (key === 'NYLX' || key === 'SYRZ' || key === 'SYCPX' || (item.CLLX && item.CLLX.length > 0))) {
|
||||
advanceSearchVOList.push({
|
||||
connect: "and",
|
||||
field: key || '',
|
||||
type: 'regexp',
|
||||
value: value.join(',')
|
||||
});
|
||||
} else if (value !== null && value !== '' && (key === 'SSRQ' || key === 'XCXSSRQ' || key === 'ZCCSSRQ')) {
|
||||
advanceSearchVOList.push({
|
||||
connect: "and",
|
||||
field: key || '',
|
||||
type: 'between',
|
||||
value: value.join(',')
|
||||
});
|
||||
} else if (value !== null && value !== '' && (key === 'BARQ')) {
|
||||
advanceSearchVOList.push({
|
||||
connect: "and",
|
||||
field: key || '',
|
||||
type: 'equals',
|
||||
value: value
|
||||
});
|
||||
} else if (value !== null && value !== '' && (key === 'TXLBName')) {
|
||||
} else if (value !== null && value !== '') {
|
||||
advanceSearchVOList.push({
|
||||
connect: "and",
|
||||
field: key || '',
|
||||
type: 'like',
|
||||
value: value
|
||||
});
|
||||
}
|
||||
}
|
||||
item.advanceSearchVOStr = advanceSearchVOList
|
||||
sessionStorage.setItem('tableFlag', JSON.stringify(item))
|
||||
this.tableFlag = item
|
||||
item.page = 1
|
||||
@@ -4575,7 +4612,15 @@ export default {
|
||||
});
|
||||
}
|
||||
}
|
||||
formData.advanceSearchVOStr = JSON.stringify(advanceSearchVOList);
|
||||
if(item.advanceSearchVOStr){
|
||||
advanceSearchVOList.push({
|
||||
connect: item.advanceSearchVOStr[0].connect,
|
||||
field: item.advanceSearchVOStr[0].field,
|
||||
type: item.advanceSearchVOStr[0].type,
|
||||
value: item.advanceSearchVOStr[0].value,
|
||||
})
|
||||
}
|
||||
formData.advanceSearchVOStr = JSON.stringify(advanceSearchVOList)
|
||||
this.SarExportSearchEo = formData
|
||||
formData.startIssueTime = formData.issueTime ? formData.issueTime[0] : null
|
||||
formData.endIssueTime = formData.issueTime ? formData.issueTime[1] : null
|
||||
|
||||
Reference in New Issue
Block a user