修改bug 56513 问答库-分页显示错误 参照期望里的更改
This commit is contained in:
@@ -68,12 +68,11 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
<!--分页-->
|
<!--分页-->
|
||||||
<pagination
|
<pagination
|
||||||
v-show="this.tableLoading === false"
|
|
||||||
style="position: relative;"
|
style="position: relative;"
|
||||||
:page="questionSerach.page"
|
:page="questionSerach.page"
|
||||||
:total="tableTotal"
|
:total="questionSerach.total"
|
||||||
@pageChange="handleSelectPageChange"
|
@pageChange="pageChangeFun"
|
||||||
@pageSizeChange="handleSelectPageSizeChange"></pagination>
|
@pageSizeChange="pageSizeChangeFun"></pagination>
|
||||||
</div>
|
</div>
|
||||||
<!--提问弹窗 -->
|
<!--提问弹窗 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
@@ -632,6 +631,7 @@ export default {
|
|||||||
problemDescription: '', //关键词/问题描述
|
problemDescription: '', //关键词/问题描述
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
|
total: 0
|
||||||
},
|
},
|
||||||
answerList: [],
|
answerList: [],
|
||||||
answerListDrawer: false,
|
answerListDrawer: false,
|
||||||
@@ -900,26 +900,6 @@ export default {
|
|||||||
standTypeChange(){
|
standTypeChange(){
|
||||||
this.questionForm.classification = this.standType
|
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(){
|
queBtn(){
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
@@ -963,9 +943,18 @@ export default {
|
|||||||
problemDescription: '', //关键词/问题描述
|
problemDescription: '', //关键词/问题描述
|
||||||
page:1,
|
page:1,
|
||||||
pageSize:this.$store.getters.userInfo.configContent,
|
pageSize:this.$store.getters.userInfo.configContent,
|
||||||
|
total: 0
|
||||||
}
|
}
|
||||||
this.searchBtn()
|
this.searchBtn()
|
||||||
},
|
},
|
||||||
|
pageChangeFun(page) {
|
||||||
|
this.questionSerach.page = page
|
||||||
|
this.searchBtn()
|
||||||
|
},
|
||||||
|
pageSizeChangeFun(pageSize) {
|
||||||
|
this.questionSerach.pageSize = pageSize
|
||||||
|
this.searchBtn()
|
||||||
|
},
|
||||||
searchBtn(){
|
searchBtn(){
|
||||||
this.questionSerach.questioner = ''
|
this.questionSerach.questioner = ''
|
||||||
this.tableLoading = true
|
this.tableLoading = true
|
||||||
@@ -975,44 +964,10 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.tableData = res.data.records
|
this.tableData = res.data.records
|
||||||
this.tableTotal = res.total
|
this.questionSerach.total = res.data.total
|
||||||
this.tableLoading = false
|
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){
|
beforeUploadTheme(file){
|
||||||
console.log(file);
|
console.log(file);
|
||||||
|
|||||||
Reference in New Issue
Block a user