From 418fcc30229af1ee780ab50b0ad335c00dcab110 Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Fri, 10 Jun 2022 11:15:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20There=20is=20no=20way=20the,=20?= =?UTF-8?q?=E6=96=B0=E9=9C=80=E6=B1=82=20=E6=B7=BB=E5=8A=A0=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2ES=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3=20=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E5=88=86=E8=AF=8D=E9=AB=98=E4=BA=AE=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=85=A8=E9=83=A8=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../searchCenter/pages/standardSearch.vue | 29 ++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/src/pages/searchCenter/pages/standardSearch.vue b/src/pages/searchCenter/pages/standardSearch.vue index 3cc22b0de..64efb31e5 100644 --- a/src/pages/searchCenter/pages/standardSearch.vue +++ b/src/pages/searchCenter/pages/standardSearch.vue @@ -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