diff --git a/src/components/common/treeCaseTable/loadCaseTable.vue b/src/components/common/treeCaseTable/loadCaseTable.vue index b69c3fde..dc7ab0b1 100644 --- a/src/components/common/treeCaseTable/loadCaseTable.vue +++ b/src/components/common/treeCaseTable/loadCaseTable.vue @@ -185,6 +185,7 @@ import { disposeTagKey } from '@/views/task/projectDetail/components/project'; import { ElMessage } from 'element-plus'; import { generateFakeId } from '@/utils/node'; import i18n from '@/utils/i18n'; +import { TABLE_NAME } from '@/utils/enum/tableName'; const loadcaseTableRef = ref(); @@ -219,7 +220,7 @@ const props = withDefaults(defineProps(), { data: [], tableName: '', loading: false, - modalTableNameList: () => (['TASK_POOL_CATEGORY', 'TASK_POOL_TASK', 'TASK_POOL_PERFORMANCE']), + modalTableNameList: () => ([TABLE_NAME.TASK_POOL_CATEGORY, TABLE_NAME.TASK_POOL_TASK, TABLE_NAME.TASK_POOL_PERFORMANCE]), leftVisible: true, leftButtonVisible: true, hasOperationColumn: true, diff --git a/src/components/common/treeCaseTable/nodeDetailDialog.vue b/src/components/common/treeCaseTable/nodeDetailDialog.vue index 05fdb766..cbdf9a20 100644 --- a/src/components/common/treeCaseTable/nodeDetailDialog.vue +++ b/src/components/common/treeCaseTable/nodeDetailDialog.vue @@ -48,6 +48,7 @@ import { disposeTagKey } from '@/views/task/projectDetail/components/project'; import { isCategoryType, isCategoryNodeType } from '@/utils/node'; import flowTemplateSelect from './flowTemplateSelect.vue'; import knowledgeSelect from './knowledgeSelect.vue'; +import { TABLE_NAME } from '@/utils/enum/tableName'; enum OPERATION_TYPE { ADD = 'add', @@ -68,7 +69,7 @@ const props = withDefaults(defineProps(), { tableName: '', operationType: OPERATION_TYPE.ADD, nodeType: '', - modalTableNameList: () => (['TASK_POOL_CATEGORY', 'TASK_POOL_TASK', 'TASK_POOL_PERFORMANCE']), + modalTableNameList: () => ([TABLE_NAME.TASK_POOL_CATEGORY, TABLE_NAME.TASK_POOL_TASK, TABLE_NAME.TASK_POOL_PERFORMANCE]), detail: null, belongProject: false, }); diff --git a/src/utils/enum/tableName.ts b/src/utils/enum/tableName.ts new file mode 100644 index 00000000..f8a9d54c --- /dev/null +++ b/src/utils/enum/tableName.ts @@ -0,0 +1,20 @@ +export enum TABLE_NAME { + /** 工况库(树结构) */ + TASK_POOL = 'TASK_POOL', + /** 工况库(一维表格) */ + TASK_POOL_LIST = 'TASK_POOL_LIST', + /** 工况库 - 分类 */ + TASK_POOL_CATEGORY = 'TASK_POOL_CATEGORY', + /** 工况库 - 任务 */ + TASK_POOL_TASK = 'TASK_POOL_TASK', + /** 工况库 - 指标 */ + TASK_POOL_PERFORMANCE = 'TASK_POOL_PERFORMANCE', + /** 指标库 */ + PERFORMANCE_POOL = 'PERFORMANCE_POOL', + /** 知识库 */ + SIMULATION_KNOWLEDGE = 'SIMULATION_KNOWLEDGE', + /** 知识库 - 审批预览 */ + SIMULATION_KNOWLEDGE_APPROVE_PREVIEW = 'SIMULATION_KNOWLEDGE_APPROVE_PREVIEW', + /** 项目任务弹窗 */ + PROJECT_TASK_MODAL = 'PROJECT_TASK_MODAL', +} diff --git a/src/views/competenceCenter/condition/components/taskPool.vue b/src/views/competenceCenter/condition/components/taskPool.vue index 14aa4796..020bd151 100644 --- a/src/views/competenceCenter/condition/components/taskPool.vue +++ b/src/views/competenceCenter/condition/components/taskPool.vue @@ -80,8 +80,8 @@