Merge branch 'ocr_2.0' of http://192.168.10.28:3000/Yaxin/fu-hsi-web into ocr_2.0

ocr_2.0
xiangcongshuai 8 months ago
commit 4ac4fa5b9f

@ -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()
}, },

@ -26,6 +26,7 @@
:type="passwordType" :type="passwordType"
placeholder="请输入密码" placeholder="请输入密码"
clearable clearable
@keyup.enter.native="handleLoginClick"
/> />
<span <span
v-if="passwordType === 'password'" v-if="passwordType === 'password'"

@ -327,12 +327,14 @@ export default {
submit() { submit() {
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
if (this.dataInfo.type === '1') {
for (const item of this.dataInfo.extractAttributes) { for (const item of this.dataInfo.extractAttributes) {
if (item.attrName === '' || item.attrValueType === '') { if (item.attrName === '' || item.attrValueType === '') {
this.$baseMessage.error('请填写完整属性') this.$baseMessage.error('请填写完整属性')
return return
} }
} }
}
const params = { const params = {
id: this.$route.params.id, id: this.$route.params.id,
...this.dataInfo, ...this.dataInfo,

Loading…
Cancel
Save