feat: 上传证据,笔录缓存问题修改

ocr_2.1
xiangcongshuai
parent 48b9de86b2
commit 92eb85a683

@ -55,8 +55,8 @@ import { ocrAndExtractList } from '@/api/caseDetails/evidence'
import mixin from '@/views/mixin' import mixin from '@/views/mixin'
export default { export default {
name: 'EvidenceExtract', name: 'EvidenceExtract',
mixins: [mixin],
components: { vuedraggable }, components: { vuedraggable },
mixins: [mixin],
data() { data() {
return { return {
detailImg: require('@/assets/record/view_detail.png'), detailImg: require('@/assets/record/view_detail.png'),
@ -99,13 +99,14 @@ export default {
return [`${baseURL}${commonDownloadFile}${row.fileId}`] return [`${baseURL}${commonDownloadFile}${row.fileId}`]
}, },
getDataList() { getDataList() {
if (!this.$route.query.recordId) return
ocrAndExtractList({ ocrAndExtractList({
batchNo: this.$route.query.recordId, batchNo: this.$route.query.recordId,
caseId: this.$route.params.id caseId: this.$route.params.id
}).then(res => { }).then(res => {
if (res.code === 200) { if (res.code === 200) {
this.$set(this.gridOptions, 'data', res.data) this.$set(this.gridOptions, 'data', res.data)
this.gridOptions.data = res.data // this.gridOptions.data = res.data
for (const item of res.data) { for (const item of res.data) {
if (item.status !== '2' && item.status !== '3') { if (item.status !== '2' && item.status !== '3') {
setTimeout(() => { setTimeout(() => {

@ -48,7 +48,7 @@ import UploadRecord from './components/UploadRecord.vue'
import RecordAnalysis from './components/RecordAnalysis.vue' import RecordAnalysis from './components/RecordAnalysis.vue'
import { getRocordInfo, queryFileList } from '@/api/caseDetails/ocr' import { getRocordInfo, queryFileList } from '@/api/caseDetails/ocr'
export default { export default {
name: 'OcrRecord', name: 'AddRecord',
components: { RecordIdentify, RecordProofread, UploadRecord, RecordAnalysis }, components: { RecordIdentify, RecordProofread, UploadRecord, RecordAnalysis },
data() { data() {
return { return {
@ -75,6 +75,7 @@ export default {
}, },
mounted() { mounted() {
this.$store.dispatch('record/setRecordInfo', {}) this.$store.dispatch('record/setRecordInfo', {})
// const pathList = this.$route.path.split('/')
if (this.$route.query.imgRecordStatus === '1') { if (this.$route.query.imgRecordStatus === '1') {
this.activeStep = 1 this.activeStep = 1
} else if (this.$route.query.imgRecordStatus === '2') { } else if (this.$route.query.imgRecordStatus === '2') {

Loading…
Cancel
Save