feat: 仿真地图库关联动画文件
This commit is contained in:
@@ -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个执行规范';
|
||||
});
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -219,6 +219,7 @@ const lang = {
|
||||
关联N个执行规范: '关联{count}个执行规范',
|
||||
关联N个场景: '关联{count}个场景',
|
||||
关联N个异常附件: '关联{count}个异常附件',
|
||||
关联N个动画文件: '关联{count}个动画文件',
|
||||
请选择工况库: '请选择工况库',
|
||||
学科准确度: '学科准确度',
|
||||
工位准确度: '工位准确度',
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user