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

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

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

Loading…
Cancel
Save