案件列表默认根据创建时间倒序排列

ocr_2.0
DESKTOP-DDTUS3E\yaxin 6 months ago
parent 44a7d7afe2
commit 2456300988

@ -143,7 +143,8 @@ export default {
//
caseList: [],
caseAnalysisStatus: '',
orderType: ''
orderType: '',
orderBy: 'create_time'
}
},
mounted() {
@ -170,7 +171,8 @@ export default {
delete params['updateTime']
if (params.identifyResult && params.identifyResult.length === 0) delete params['identifyResult']
params.caseAnalysisStatus = this.caseAnalysisStatus
params.orderType = this.orderType
params.orderType = this.orderType || 'DESC'
params.orderBy = this.orderBy
queryCaseList(params, this.queryForm.page, this.queryForm.size).then(res => {
this.caseList = res.data.records
this.caseList.forEach(e => {
@ -296,6 +298,7 @@ export default {
},
changeType(val) {
this.orderType = val
this.orderBy = 'total_score'
this.queryForm.page = 1
this.fetchData()
},

Loading…
Cancel
Save