图像评估的功能
This commit is contained in:
parent
92a9ee23cc
commit
9a61c654ba
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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('确认成功');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue