fix: 关联异常附件

This commit is contained in:
JiangSheng
2026-04-02 20:24:19 +08:00
parent 65a4526f1a
commit de4a4c169a
3 changed files with 10 additions and 1 deletions

View File

@@ -35,7 +35,7 @@
>
<template #reference>
<span class="link-text">
{{ $t('工况库.关联N个执行规范', { count: displayNames.length }) }}
{{ $t(linkTextKey, { count: displayNames.length }) }}
</span>
</template>
<div class="template-list">
@@ -78,6 +78,13 @@ import OverflowTooltip from '@/components/common/text/overflowTooltip.vue';
import { DIR_TYPE } from '@/utils/enum/data.ts';
import { downloadFileById } from '@/utils/file';
const linkTextKey = computed(() => {
if (props.dirType === DIR_TYPE.EXCEPTION_CASE) {
return '工况库.关联N个异常附件';
}
return '工况库.关联N个执行规范';
});
interface Props {
modelValue?: any;
modelName?: string;

View File

@@ -218,6 +218,7 @@ const lang = {
N个报告模版: 'Associated {count} Report Templates',
N个执行规范: 'Associated {count} Standards',
N个场景: 'Associated {count} Scenes',
N个异常附件: 'Associated {count} Exception Attachments',
: 'Please select task pool',
: 'Discipline Accuracy',
: 'Workspace Accuracy',

View File

@@ -214,6 +214,7 @@ const lang = {
N个报告模版: '关联{count}个报告模版',
N个执行规范: '关联{count}个执行规范',
N个场景: '关联{count}个场景',
N个异常附件: '关联{count}个异常附件',
: '请选择工况库',
: '学科准确度',
: '工位准确度',