图像评估的功能

This commit is contained in:
lSun 2025-10-22 12:19:39 +08:00
parent 92a9ee23cc
commit 9a61c654ba
3 changed files with 15 additions and 14 deletions

View File

@ -9,8 +9,7 @@
:selected-images="selectedImages" :selected-images="selectedImages"
:is-sure="isSure" :is-sure="isSure"
@hand-click="handleHandClickFromChild" @hand-click="handleHandClickFromChild"
@confirm-results="$emit('confirm-results')" @confirm-results="$emit('confirm-results', $event)"
/> />
</div> </div>

View File

@ -69,7 +69,7 @@
<div class="action-buttons" v-if="isEvaluate == '0'"> <div class="action-buttons" v-if="isEvaluate == '0'">
<el-button <el-button
type="primary" type="primary"
@click="confirmGroup(groupIndex)" @click="confirmGroup(groupIndex, group.id)"
:disabled="group.isSure === '1'" :disabled="group.isSure === '1'"
> >
{{ group.isSure === '1' ? '已确认' : '确认' }} {{ group.isSure === '1' ? '已确认' : '确认' }}
@ -205,9 +205,10 @@ export default {
this.$emit('hand-click', {index, isSingle: true}); this.$emit('hand-click', {index, isSingle: true});
}, },
confirmGroup(groupIndex) { confirmGroup(groupIndex,id) {
console.log('confirmGroup', id)
// //
this.$emit('confirm-results', groupIndex); this.$emit('confirm-results', id);
} }
} }
} }

View File

@ -456,7 +456,8 @@ export default {
recognizedCount: record.bzNum || 0, recognizedCount: record.bzNum || 0,
unrecognizedCount: record.wbzNum || 0, unrecognizedCount: record.wbzNum || 0,
isSure: record.isSure, isSure: record.isSure,
operId: record.operaId operId: record.operaId,
id: record.id,
})); }));
// - isActive // - isActive
@ -505,13 +506,14 @@ export default {
return selectedImageInfo; return selectedImageInfo;
}, },
confirmResults() { confirmResults(id) {
console.log('确认结果', id)
const selectedInfo = this.getSelectedImageInfo(); const selectedInfo = this.getSelectedImageInfo();
if (selectedInfo.length === 0) { if (selectedInfo.length === 0) {
// this.$message.warning(''); // this.$message.warning('');
// return; // return;
this.handleConfirm(this.addId, ); this.handleConfirm(this.addId,"",id );
}else{ }else{
// ID // ID
const imageIds = selectedInfo.map(item => item.imageId); const imageIds = selectedInfo.map(item => item.imageId);
@ -523,18 +525,17 @@ export default {
console.log('操作ID:', operId); console.log('操作ID:', operId);
// //
this.handleConfirm(operId, imageIds); this.handleConfirm(operId, imageIds,id);
} }
}, },
async handleConfirm(operId,imageIds) { async handleConfirm(operId,imageIds,id) {
try { try {
// //
const res = await updateImageSureAPI({ const res = await updateImageSureAPI({
id: operId, operId: operId,
imageId:imageIds imageId:imageIds,
id:id
}); });
if (res.code === 200) { if (res.code === 200) {
this.$message.success('确认成功'); this.$message.success('确认成功');