feat: There is no way the, 新需求 添加查询ES详情接口 文本分词高亮显示全部内容

This commit is contained in:
super_liu
2022-06-10 11:15:26 +08:00
parent 82b24a884b
commit 418fcc3022
@@ -509,10 +509,31 @@
const list = items.filter ( item => !item.type || item.type === this.selectIndex);
return list
},
checkItems (item) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle1 = item.textContent
this.itermsConditionsTitle2 = item.textItems
async checkItems (item) {
let detilsData = await this.searchSarBykeyByDetils(item)
if (detilsData.ok && detilsData.data) {
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 () {
this.itermsConditionsFlag = false