图像评估的功能
This commit is contained in:
parent
92a9ee23cc
commit
9a61c654ba
|
|
@ -9,8 +9,7 @@
|
|||
:selected-images="selectedImages"
|
||||
:is-sure="isSure"
|
||||
@hand-click="handleHandClickFromChild"
|
||||
@confirm-results="$emit('confirm-results')"
|
||||
|
||||
@confirm-results="$emit('confirm-results', $event)"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@
|
|||
<div class="action-buttons" v-if="isEvaluate == '0'">
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="confirmGroup(groupIndex)"
|
||||
@click="confirmGroup(groupIndex, group.id)"
|
||||
:disabled="group.isSure === '1'"
|
||||
>
|
||||
{{ group.isSure === '1' ? '已确认' : '确认' }}
|
||||
|
|
@ -205,9 +205,10 @@ export default {
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -456,7 +456,8 @@ export default {
|
|||
recognizedCount: record.bzNum || 0,
|
||||
unrecognizedCount: record.wbzNum || 0,
|
||||
isSure: record.isSure,
|
||||
operId: record.operaId
|
||||
operId: record.operaId,
|
||||
id: record.id,
|
||||
}));
|
||||
|
||||
// 初始化选中状态 - 根据 isActive 字段
|
||||
|
|
@ -505,13 +506,14 @@ export default {
|
|||
return selectedImageInfo;
|
||||
},
|
||||
|
||||
confirmResults() {
|
||||
confirmResults(id) {
|
||||
console.log('确认结果', id)
|
||||
const selectedInfo = this.getSelectedImageInfo();
|
||||
|
||||
if (selectedInfo.length === 0) {
|
||||
// this.$message.warning('请至少选择一张图片');
|
||||
// return;
|
||||
this.handleConfirm(this.addId, );
|
||||
this.handleConfirm(this.addId,"",id );
|
||||
}else{
|
||||
// 获取图片ID数组
|
||||
const imageIds = selectedInfo.map(item => item.imageId);
|
||||
|
|
@ -523,18 +525,17 @@ export default {
|
|||
console.log('操作ID:', operId);
|
||||
|
||||
// 调用确认接口
|
||||
this.handleConfirm(operId, imageIds);
|
||||
this.handleConfirm(operId, imageIds,id);
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
|
||||
async handleConfirm(operId,imageIds) {
|
||||
async handleConfirm(operId,imageIds,id) {
|
||||
try {
|
||||
// 调用后端接口
|
||||
const res = await updateImageSureAPI({
|
||||
id: operId,
|
||||
imageId:imageIds
|
||||
operId: operId,
|
||||
imageId:imageIds,
|
||||
id:id
|
||||
});
|
||||
if (res.code === 200) {
|
||||
this.$message.success('确认成功');
|
||||
|
|
|
|||
Loading…
Reference in New Issue