feat: 异常案例库

This commit is contained in:
JiangSheng
2026-03-24 19:18:40 +08:00
parent 0985cd1299
commit acc9e37956
8 changed files with 26 additions and 1 deletions

View File

@@ -267,7 +267,7 @@ const dynamicTableName = computed(() => {
if (props.dirType === DIR_TYPE.TOLERANCE_ANALYSIS) {
return TABLE_NAME.TOLERANCE_ANALYSIS;
}
if (props.dirType === DIR_TYPE.KNOWLEDGE) {
if ([DIR_TYPE.EXCEPTION_CASE, DIR_TYPE.KNOWLEDGE].includes(props.dirType)) {
return TABLE_NAME.SIMULATION_KNOWLEDGE;
}
return props.tableName || TABLE_NAME.SIMULATION_KNOWLEDGE;

View File

@@ -287,6 +287,11 @@ export default [
path: '/competenceCenter/toleranceAnalysis',
name: 'CompetenceCenterToleranceAnalysis',
},
{
title: '异常案例库',
path: '/competenceCenter/exceptionCase',
name: 'CompetenceCenterExceptionCase',
},
// {
// title: '仿真流程创建',
// path: '/simulation/creation',

View File

@@ -318,6 +318,13 @@ export default [
component: () =>
import('@/tenants/lyric/views/competenceCenter/toleranceAnalysis/index.vue'),
},
{
title: '异常案例库',
path: '/competenceCenter/exceptionCase',
name: 'CompetenceCenterExceptionCase',
component: () =>
import('@/tenants/lyric/views/competenceCenter/exceptionCase/index.vue'),
},
// {
// title: '仿真流程创建',
// path: '/simulation/creation',

View File

@@ -0,0 +1,8 @@
<template>
<ResourceLibraryPage :dirType="DIR_TYPE.EXCEPTION_CASE" />
</template>
<script lang="ts" setup>
import ResourceLibraryPage from '@/components/common/resourceLibrary/resourceLibraryPage.vue';
import { DIR_TYPE } from '@/utils/enum/data';
</script>

View File

@@ -21,4 +21,6 @@ export enum DIR_TYPE {
INDUSTRIAL_DESIGN = 10,
/** 公差分析库 */
TOLERANCE_ANALYSIS = 11,
/** 异常案例库 */
EXCEPTION_CASE = 12,
}

View File

@@ -62,6 +62,7 @@ const lang = {
: 'Robot Library',
: 'Industrial Design Library',
: 'Tolerance Analysis Library',
: 'Exception Case Library',
: 'Simulation Workflow',
仿: 'Parameter Library',
: 'Report Library',

View File

@@ -61,6 +61,7 @@ const lang = {
: '机器人库',
: '工业设计库',
: '公差分析库',
: '异常案例库',
: '流程管理',
仿: '仿真参数库',
: '报告模板库',

View File

@@ -121,6 +121,7 @@ const dirTypeList = computed(() => [
{ label: t('菜单.机器人库'), value: DIR_TYPE.ROBOT },
{ label: t('菜单.工业设计库'), value: DIR_TYPE.INDUSTRIAL_DESIGN },
{ label: t('菜单.公差分析库'), value: DIR_TYPE.TOLERANCE_ANALYSIS },
{ label: t('菜单.异常案例库'), value: DIR_TYPE.EXCEPTION_CASE },
]);
//