|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div class="content">
|
|
|
|
|
<cs-search title="案件批量处理" :data="searchData" :span="6" direction="row" @onSearch="onSearch" @getData="onSearch" />
|
|
|
|
|
<div class="index-content">
|
|
|
|
|
<cs-search title="案件批量分析" :data="searchData" :span="6" direction="row" @onSearch="onSearch" @getData="onSearch" />
|
|
|
|
|
<div v-loading="loading" element-loading-text="分析中..." class="index-content">
|
|
|
|
|
<div class="header">
|
|
|
|
|
<el-button type="primary" icon="el-icon-video-play" @click="handleAnalysisAll">一键分析</el-button>
|
|
|
|
|
</div>
|
|
|
|
@ -46,6 +46,7 @@ export default {
|
|
|
|
|
{ label: '认定结果', model: 'identifyResult', type: 'selectMultiple', option: JSON.parse(sessionStorage.getItem('identify_result')) },
|
|
|
|
|
{ label: '分析状态', model: 'analysisStatus', type: 'selectMultiple', option: JSON.parse(sessionStorage.getItem('case_analysis_status')) }
|
|
|
|
|
],
|
|
|
|
|
loading: false,
|
|
|
|
|
// 表格配置
|
|
|
|
|
gridOptions: {
|
|
|
|
|
...mixin.data().gridOptions,
|
|
|
|
@ -74,6 +75,14 @@ export default {
|
|
|
|
|
queryCaseList({ ...this.searchFormData }, this.queryForm.page, this.queryForm.size).then(res => {
|
|
|
|
|
this.gridOptions.data = res.data.records
|
|
|
|
|
this.queryForm.total = res.data.total
|
|
|
|
|
for (const item of this.gridOptions.data) {
|
|
|
|
|
if (item.analysisStatus === '1') {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.fetchData()
|
|
|
|
|
}, 5000)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -84,6 +93,7 @@ export default {
|
|
|
|
|
} else {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
setTimeout
|
|
|
|
|
},
|
|
|
|
|
handleAnalysisAll() {
|
|
|
|
|
const item = this.$refs.modelTable.getCheckboxRecords()
|
|
|
|
@ -95,6 +105,7 @@ export default {
|
|
|
|
|
for (const items of item) {
|
|
|
|
|
list.push(items.caseId)
|
|
|
|
|
}
|
|
|
|
|
this.loading = true
|
|
|
|
|
this.handlecaseAnalysis(list)
|
|
|
|
|
},
|
|
|
|
|
getTypeName(val, type) {
|
|
|
|
@ -105,9 +116,10 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async handlecaseAnalysis(list) {
|
|
|
|
|
const loading = this.$baseLoading(1, '执行中...')
|
|
|
|
|
// const loading = this.$baseLoading(1, '执行中...')
|
|
|
|
|
const res = await caseAnalysis(list)
|
|
|
|
|
loading.close()
|
|
|
|
|
// loading.close()
|
|
|
|
|
this.loading = false
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
this.$baseMessage.success('分析成功')
|
|
|
|
|
this.fetchData()
|
|
|
|
|