feat: 仿真地图库关联动画文件

This commit is contained in:
JiangSheng
2026-04-13 16:59:43 +08:00
parent 6aa6fa61af
commit df37b5a6c8
5 changed files with 27 additions and 1 deletions

View File

@@ -82,6 +82,9 @@ const linkTextKey = computed(() => {
if (props.dirType === DIR_TYPE.EXCEPTION_CASE) {
return '工况库.关联N个异常附件';
}
if (props.dirType === DIR_TYPE.ANIMATION) {
return '工况库.关联N个动画文件';
}
return '工况库.关联N个执行规范';
});

View File

@@ -223,6 +223,7 @@ const lang = {
N个执行规范: 'Associated {count} Standards',
N个场景: 'Associated {count} Scenes',
N个异常附件: 'Associated {count} Exception Attachments',
N个动画文件: 'Associated {count} Animation Files',
: 'Please select task pool',
: 'Discipline Accuracy',
: 'Workspace Accuracy',

View File

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

View File

@@ -14,7 +14,15 @@
:tableName="TABLE_NAME.TASK_POOL_CARD_LIST"
v-model:data="formData"
:formAttrs="{ poolName: { disabled: mode === 'edit' } }"
/>
>
<template #form-animation>
<KnowledgeSelect
v-model="formData.animation"
v-model:modelName="formData.animationName"
:dirType="DIR_TYPE.ANIMATION"
/>
</template>
</TableForm>
</template>
<template #footer>
<div>
@@ -36,6 +44,8 @@ import { useI18n } from 'vue-i18n';
import { TABLE_NAME } from '@/utils/enum/tableName';
import { updateTaskPoolBriefApi } from '@/api/task/taskpool';
import type { Pool } from './types';
import { DIR_TYPE } from '@/utils/enum/data.ts';
import KnowledgeSelect from '@/components/common/treeCaseTable/knowledgeSelect.vue';
const { t } = useI18n();

View File

@@ -44,6 +44,15 @@
<template #iconFile="{ row }">
<UploadImg v-model="row.iconFile" :multiple="true" :disabled="true" viewMode="inline" />
</template>
<template #animation="{ row }">
<KnowledgeSelect
v-model="row.animation"
v-model:modelName="row.animationName"
:dirType="DIR_TYPE.ANIMATION"
:editable="false"
size="small"
/>
</template>
</BaseTable>
<DelPoolModal
v-model="delPoolModalVisible"
@@ -72,6 +81,8 @@ import { filterExcludeStandardScene } from '@/utils/node';
import { jumpPage } from '@/utils/common';
import { TABLE_NAME } from '@/utils/enum/tableName';
import UploadImg from '@/components/common/uploadImg/index.vue';
import { DIR_TYPE } from '@/utils/enum/data.ts';
import KnowledgeSelect from '@/components/common/treeCaseTable/knowledgeSelect.vue';
const route = useRoute();
const baseTableRef = ref();