From 6df94112d19edb864743cbd5f07f018d10a4502e Mon Sep 17 00:00:00 2001 From: hanshaozhuang Date: Thu, 14 Jul 2022 18:10:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug=2056513=20=E9=97=AE?= =?UTF-8?q?=E7=AD=94=E5=BA=93-=E5=88=86=E9=A1=B5=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF=20=E5=8F=82=E7=85=A7=E6=9C=9F=E6=9C=9B?= =?UTF-8?q?=E9=87=8C=E7=9A=84=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../regulatoryRepository/standQA/index.vue | 73 ++++--------------- 1 file changed, 14 insertions(+), 59 deletions(-) diff --git a/src/pages/regulatoryRepository/standQA/index.vue b/src/pages/regulatoryRepository/standQA/index.vue index 71f9b323c..fca85967f 100644 --- a/src/pages/regulatoryRepository/standQA/index.vue +++ b/src/pages/regulatoryRepository/standQA/index.vue @@ -68,12 +68,11 @@ + :total="questionSerach.total" + @pageChange="pageChangeFun" + @pageSizeChange="pageSizeChangeFun"> { - this.answerList = res.data - }, e => { - }) - }, //提问按钮 queBtn(){ this.fileList = [] @@ -963,9 +943,18 @@ export default { problemDescription: '', //关键词/问题描述 page:1, pageSize:this.$store.getters.userInfo.configContent, + total: 0 } this.searchBtn() }, + pageChangeFun(page) { + this.questionSerach.page = page + this.searchBtn() + }, + pageSizeChangeFun(pageSize) { + this.questionSerach.pageSize = pageSize + this.searchBtn() + }, searchBtn(){ this.questionSerach.questioner = '' this.tableLoading = true @@ -975,44 +964,10 @@ export default { _this: this }, res => { this.tableData = res.data.records - this.tableTotal = res.total + this.questionSerach.total = res.data.total this.tableLoading = false }) }, - //问题查询 - queSearch(){ - this.$http.get('lawss/AskQuestions/getAskQuestionsNew',{ - standardId: this.activestand, - classification: this.activeName, - problemDescription: this.questionSerach.problemDescription - },{ - _this: this - }, res => { - this.questionsList = res.data - }) - }, - //查询提问标准 - standSearch2(){ - let qId = this.$route.query.standId - let queNumber = 0 - this.standList = [] - this.$http.get('lawss/AskQuestions/getAskQuestionsDetails',{ ...this.questionSerach },{ - _this: this - }, res =>{ - res.data.forEach(item => { - if(item.standardId === qId){ - this.standList.push(item) - queNumber++ - } - }) - if(queNumber === 0){ - this.standList = res.data - this.refreshStandMap() - } - }, e => { - - }) - }, //文件上传前 beforeUploadTheme(file){ console.log(file);