|
@@ -217,6 +217,7 @@ const pageParams = ref<PageParams>({
|
|
|
});
|
|
|
|
|
|
const { isLoading, handleRequest } = useRequest();
|
|
|
+let recognizeResult: string[] = [];
|
|
|
|
|
|
const getCurrentProtocolParams = () => {
|
|
|
handleRequest(async () => {
|
|
@@ -231,6 +232,7 @@ const getCurrentProtocolParams = () => {
|
|
|
baseInfoId: id,
|
|
|
paramName: paramNameOrCode.value,
|
|
|
paramCode: paramNameOrCode.value,
|
|
|
+ recognizeResult,
|
|
|
});
|
|
|
|
|
|
paramList.value = records;
|
|
@@ -245,6 +247,7 @@ const handleParamNameOrCodeChange = debounce(() => {
|
|
|
}, 300);
|
|
|
|
|
|
const handleParamTableChange: TableProps['onChange'] = (pagination, filters, sorter) => {
|
|
|
+ recognizeResult = (filters.recognizeResult as string[] | null) || [];
|
|
|
pageParams.value.pageIndex = pagination.current || 1;
|
|
|
pageParams.value.pageSize = pagination.pageSize || 10;
|
|
|
|
|
@@ -550,9 +553,16 @@ defineExpose({
|
|
|
data-index="recognizeResult"
|
|
|
:width="110"
|
|
|
:sorter="true"
|
|
|
+ :filters="[
|
|
|
+ { text: $t('setupProtocol.recognizeSuccess'), value: ProtocolRecognitionResult.Success },
|
|
|
+ { text: $t('setupProtocol.recognizeMultipleResults'), value: ProtocolRecognitionResult.MultipleResults },
|
|
|
+ { text: $t('setupProtocol.recognizeFailed'), value: ProtocolRecognitionResult.Unrecognized },
|
|
|
+ { text: $t('setupProtocol.recognizeNull'), value: '-' },
|
|
|
+ ]"
|
|
|
>
|
|
|
<template #default="{ record }">
|
|
|
<div
|
|
|
+ v-if="record.recognizeResult"
|
|
|
:class="[
|
|
|
'protocol-recognize-result',
|
|
|
{
|