修改bug 56513 问答库-分页显示错误 参照期望里的更改

This commit is contained in:
hanshaozhuang
2022-07-14 18:10:44 +08:00
parent 8dd91448be
commit 6df94112d1
@@ -68,12 +68,11 @@
</el-table>
<!--分页-->
<pagination
v-show="this.tableLoading === false"
style="position: relative;"
:page="questionSerach.page"
:total="tableTotal"
@pageChange="handleSelectPageChange"
@pageSizeChange="handleSelectPageSizeChange"></pagination>
:total="questionSerach.total"
@pageChange="pageChangeFun"
@pageSizeChange="pageSizeChangeFun"></pagination>
</div>
<!--提问弹窗 -->
<el-dialog
@@ -632,6 +631,7 @@ export default {
problemDescription: '', //关键词/问题描述
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
total: 0
},
answerList: [],
answerListDrawer: false,
@@ -900,26 +900,6 @@ export default {
standTypeChange(){
this.questionForm.classification = this.standType
},
handleClick(){
this.ansSearch()
},
sourceClick(){
this.questionSerach.classification = this.activeName
this.questionSerach.standardEncdoing = ''
this.standSearch()
},
questionClick(){
sessionStorage.setItem('queId', this.activeQue)
this.$http.get('lawss/AskQuestions/getAskQuestionsByakId',{
id: this.activeQue,
state: 'yes'
},{
_this: this
}, res => {
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);