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);