From 03bc4faef681648fc10314868e4cd69eb1d5dbe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Tue, 7 Jun 2022 13:51:30 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=88=91=E7=9A=84=E9=97=AE=E7=AD=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../my-questions/components/questionItemInfo.vue | 2 +- src/pages/personal/pages/my-questions/index.vue | 11 ++++++++++- .../standQA/components/questions-item.vue | 14 +++++++++++++- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/pages/personal/pages/my-questions/components/questionItemInfo.vue b/src/pages/personal/pages/my-questions/components/questionItemInfo.vue index cc88ae26f..8820de43e 100644 --- a/src/pages/personal/pages/my-questions/components/questionItemInfo.vue +++ b/src/pages/personal/pages/my-questions/components/questionItemInfo.vue @@ -24,7 +24,7 @@
- 归档 + 归档
diff --git a/src/pages/personal/pages/my-questions/index.vue b/src/pages/personal/pages/my-questions/index.vue index 33d5fc532..dd5c5ad98 100644 --- a/src/pages/personal/pages/my-questions/index.vue +++ b/src/pages/personal/pages/my-questions/index.vue @@ -1536,7 +1536,16 @@ export default { },{ _this: this }, res => { - this.answerList = res.data + if(this.activeName === 'myAns'){ + if(res.data.length){ + res.data.forEach(item => { + item.checkedShow = true + }) + } + this.answerList = res.data + }else{ + this.answerList = res.data + } }, e => { }) }, diff --git a/src/pages/regulatoryRepository/standQA/components/questions-item.vue b/src/pages/regulatoryRepository/standQA/components/questions-item.vue index 026fe0193..33fe89e2d 100644 --- a/src/pages/regulatoryRepository/standQA/components/questions-item.vue +++ b/src/pages/regulatoryRepository/standQA/components/questions-item.vue @@ -2,7 +2,7 @@ @@ -93,18 +93,18 @@ export default { diff --git a/src/pages/regulatoryRepository/standQA/index.vue b/src/pages/regulatoryRepository/standQA/index.vue index 9185984f7..b5a863a90 100644 --- a/src/pages/regulatoryRepository/standQA/index.vue +++ b/src/pages/regulatoryRepository/standQA/index.vue @@ -13,7 +13,7 @@ - 查询 + 查询 清空 @@ -290,7 +290,7 @@ 选择标准 - + 相似历史问题: -
- +
+
+ {{item.problemDescription}} + {{item.questionTime}} +
取 消 @@ -698,6 +701,15 @@ import answerItem from "./components/answerItem"; import questionItemInfo from "./components/questionItemInfo"; import standItem from './components/stand-item' +function debounce(func, wait = 500){ + let timeout; + return function(event){ + clearTimeout(timeout) + timeout = setTimeout(() => { + func.call(this, event) + },wait) + } +} export default { name: "standQA", components:{ @@ -708,6 +720,7 @@ export default { }, data(){ return{ + historyList: [], pubOptions: [], //公共问题 handleSelectForm: { standName: '', //标准名称 @@ -783,6 +796,21 @@ export default { }); }, methods:{ + changeInput:debounce(function(val){ + if(val.length){ + this.$http.get('lawss/AskQuestions/resemblance',{ + problemDescription: val, + },{ + _this: this + }, res => { + this.historyList = res.data + }) + } + }), + //点击跳转问题详情 + historyJump(id){ + this.$router.push('/standQA') + }, // 点击查看 handlePreview(item) { let routeUrl = this.$router.resolve({ @@ -992,7 +1020,24 @@ export default { }, //清空 delSearch(){ - + this.questionSerach = { + classification: 'INLAND', + standardName: '', //标准名称 + standardEncdoing: '', //标准编号 + questioner: this.$store.getters.userInfo.userId, //提问人 + problemDescription: '', //关键词/问题描述 + } + }, + searchBtn(){ + this.questionSerach.classification = this.activeType + this.questionSerach.questioner = '' + this.$http.get('lawss/AskQuestions/retrieve',{ + ...this.questionSerach + },{ + _this: this + }, res => { + this.standList = res.data + }) }, //问题查询 queSearch(){ @@ -1208,4 +1253,11 @@ export default { /deep/.el-upload-dragger { height: 90px; } +.history-item{ + padding: 15px; + line-height: 1.5; + font-size: 14px; + color: #409EFF; + cursor: pointer; +} From 9c6145f582f8fd52f748fc55fc8173d67e85a9d7 Mon Sep 17 00:00:00 2001 From: zyd Date: Tue, 7 Jun 2022 23:41:24 +0800 Subject: [PATCH 4/5] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=96=87=E5=AD=97=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/home2/components/solicitopinions/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home2/components/solicitopinions/index.vue b/src/pages/home2/components/solicitopinions/index.vue index 41fbcf4b3..445ad0f5d 100644 --- a/src/pages/home2/components/solicitopinions/index.vue +++ b/src/pages/home2/components/solicitopinions/index.vue @@ -26,7 +26,7 @@ + label="标准名称"> From 28dd02f40613196d24994430d451251e35b0d91e Mon Sep 17 00:00:00 2001 From: zyd Date: Wed, 8 Jun 2022 00:12:27 +0800 Subject: [PATCH 5/5] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/searchCenter/pages/standardSearch.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/searchCenter/pages/standardSearch.vue b/src/pages/searchCenter/pages/standardSearch.vue index f9e76fc3c..3cc22b0de 100644 --- a/src/pages/searchCenter/pages/standardSearch.vue +++ b/src/pages/searchCenter/pages/standardSearch.vue @@ -2758,10 +2758,10 @@ display: inline; } /deep/.highlight-Es-class { - background-color: #3391ce !important; + background-color: #3fb3ff !important; } /deep/.highlight-class { - color: #3391ce !important; + color: #3fb3ff !important; } /deep/.pagination{ position: static !important;