feat: There is no way the, 新需求 添加查询ES详情接口 文本分词高亮显示全部内容
This commit is contained in:
@@ -509,10 +509,31 @@
|
|||||||
const list = items.filter ( item => !item.type || item.type === this.selectIndex);
|
const list = items.filter ( item => !item.type || item.type === this.selectIndex);
|
||||||
return list
|
return list
|
||||||
},
|
},
|
||||||
checkItems (item) {
|
async checkItems (item) {
|
||||||
this.itermsConditionsFlag = true
|
let detilsData = await this.searchSarBykeyByDetils(item)
|
||||||
this.itermsConditionsTitle1 = item.textContent
|
if (detilsData.ok && detilsData.data) {
|
||||||
this.itermsConditionsTitle2 = item.textItems
|
this.itermsConditionsFlag = true
|
||||||
|
this.itermsConditionsTitle1 = detilsData.data.textContent.replace(/null/g, '- -')
|
||||||
|
this.itermsConditionsTitle2 = detilsData.data.textItems
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
searchSarBykeyByDetils(item) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
const allList = {}
|
||||||
|
allList.selectIndex = 'fulltextserch'
|
||||||
|
allList.selectValue = this.keywords
|
||||||
|
allList.standId = item.id
|
||||||
|
this.$http.post('search/searchCenter/searchSarBykeyByDetils', allList, {
|
||||||
|
_this: this,
|
||||||
|
loading: 'resultLoading'
|
||||||
|
}, res => {
|
||||||
|
const history = res;
|
||||||
|
resolve(history)
|
||||||
|
}, e => {
|
||||||
|
})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
itermsConditionsClose () {
|
itermsConditionsClose () {
|
||||||
this.itermsConditionsFlag = false
|
this.itermsConditionsFlag = false
|
||||||
|
|||||||
Reference in New Issue
Block a user