ソースを参照

修复了部分bug

Huanyi 2 ヶ月 前
コミット
86192528b6

+ 2 - 2
.env.development

@@ -1,6 +1,6 @@
 # 页面标题
-VITE_APP_TITLE = 道修远智eTMF
-VITE_APP_LOGO_TITLE = 道修远智eTMF
+VITE_APP_TITLE = 道修远智eTMF
+VITE_APP_LOGO_TITLE = 道修远智eTMF
 
 # 开发环境配置
 VITE_APP_ENV = 'development'

+ 1 - 1
src/api/document/folder/types.ts

@@ -151,7 +151,7 @@ export interface ProjectVO {
   /**
    * 状态
    */
-  status: string;
+  status: number;
 
   /**
    * 开始时间

+ 24 - 0
src/components/ProjectStatusTag/index.vue

@@ -0,0 +1,24 @@
+<template>
+  <el-tag v-if="config" :type="config.type">
+    {{ t(config.label) }}
+  </el-tag>
+  <span v-else>-</span>
+</template>
+
+<script setup lang="ts">
+import { computed } from 'vue';
+import { useI18n } from 'vue-i18n';
+import { getProjectStatusConfig } from '@/enums/projectStatus';
+
+interface Props {
+  status: number | undefined;
+}
+
+const props = defineProps<Props>();
+const { t } = useI18n();
+
+const config = computed(() => {
+  if (props.status === undefined || props.status === null) return null;
+  return getProjectStatusConfig(props.status);
+});
+</script>

+ 3 - 3
src/enums/documentStatus.ts

@@ -60,17 +60,17 @@ export const DOCUMENT_STATUS_CONFIG: Record<DocumentStatus, DocumentStatusConfig
     textColor: '#389E0D'
   },
   [DocumentStatus.UN_QUALITY_CONTROL]: {
-    label: 'document.document.documentList.statusOptions.unQualityControl',
+    label: 'document.document.documentList.statusOptions.unQc',
     color: 'rgba(250, 84, 28, 0.15)',
     textColor: '#D4380D'
   },
   [DocumentStatus.QUALITY_CONTROL_PASS]: {
-    label: 'document.document.documentList.statusOptions.qualityControlPass',
+    label: 'document.document.documentList.statusOptions.qcPass',
     color: 'rgba(19, 194, 194, 0.15)',
     textColor: '#08979C'
   },
   [DocumentStatus.QUALITY_CONTROL_REJECT]: {
-    label: 'document.document.documentList.statusOptions.qualityControlReject',
+    label: 'document.document.documentList.statusOptions.qcReject',
     color: 'rgba(235, 47, 150, 0.15)',
     textColor: '#C41D7F'
   }

+ 52 - 0
src/enums/projectStatus.ts

@@ -0,0 +1,52 @@
+/**
+ * 项目状态枚举
+ */
+export enum ProjectStatus {
+    /** 未开始 */
+    UNSTARTED = 0,
+    /** 进行中 */
+    UNDERWAY = 1,
+    /** 已暂停 */
+    PAUSED = 2,
+    /** 已完成 */
+    FINISHED = 3
+}
+
+/**
+ * 项目状态配置
+ */
+export interface ProjectStatusConfig {
+    label: string;
+    type: 'success' | 'info' | 'warning' | 'primary' | 'danger';
+}
+
+/**
+ * 项目状态配置映射
+ */
+export const PROJECT_STATUS_CONFIG: Record<ProjectStatus, ProjectStatusConfig> = {
+    [ProjectStatus.UNSTARTED]: {
+        label: 'project.management.status.unstarted',
+        type: 'info'
+    },
+    [ProjectStatus.UNDERWAY]: {
+        label: 'project.management.status.underway',
+        type: 'success'
+    },
+    [ProjectStatus.PAUSED]: {
+        label: 'project.management.status.paused',
+        type: 'warning'
+    },
+    [ProjectStatus.FINISHED]: {
+        label: 'project.management.status.finished',
+        type: 'primary'
+    }
+};
+
+/**
+ * 获取项目状态配置
+ * @param status 状态值
+ * @returns 状态配置
+ */
+export const getProjectStatusConfig = (status: number): ProjectStatusConfig | null => {
+    return PROJECT_STATUS_CONFIG[status as ProjectStatus] || null;
+};

+ 3 - 3
src/lang/modules/document/document/en_US.ts

@@ -329,9 +329,9 @@ export default {
       auditReject: 'Audit Reject',
       unFiling: 'Un Filing',
       filing: 'Filing',
-      unQualityControl: 'Un Quality Control',
-      qualityControlPass: 'Quality Control Pass',
-      qualityControlReject: 'Quality Control Reject'
+      unQc: 'Un QC',
+      qcPass: 'QC Pass',
+      qcReject: 'QC Reject'
     }
   },
   // Audit Log

+ 3 - 3
src/lang/modules/document/document/zh_CN.ts

@@ -329,9 +329,9 @@ export default {
       auditReject: '审核拒绝',
       unFiling: '待归档',
       filing: '已归档',
-      unQualityControl: '待质控',
-      qualityControlPass: '质控通过',
-      qualityControlReject: '质控拒绝'
+      unQc: '待质控',
+      qcPass: '质控通过',
+      qcReject: '质控拒绝'
     }
   },
   // 审核记录

+ 3 - 1
src/lang/modules/document/index.ts

@@ -1,6 +1,8 @@
 // 文档管理模块 - 统一导出
 import document from './document/zh_CN';
+import project from './project/zh_CN';
 
 export default {
-  document
+  document,
+  project
 };

+ 3 - 1
src/lang/modules/document/index_en.ts

@@ -1,6 +1,8 @@
 // Document Management Module - Export (English)
 import document from './document/en_US';
+import project from './project/en_US';
 
 export default {
-  document
+  document,
+  project
 };

+ 44 - 0
src/lang/modules/document/project/en_US.ts

@@ -0,0 +1,44 @@
+// Document Project List Module - English Translation
+export default {
+    // Search Form
+    search: {
+        code: 'Project Code',
+        codePlaceholder: 'Please enter project code',
+        name: 'Name',
+        namePlaceholder: 'Please enter name',
+        language: 'Language',
+        languagePlaceholder: 'Please select project language',
+        type: 'Type',
+        typePlaceholder: 'Please select project type',
+        startTime: 'Start Time',
+        endTime: 'End Time',
+        createTime: 'Create Time',
+        updateTime: 'Update Time',
+        startDate: 'Start Date',
+        endDate: 'End Date',
+        search: 'Search',
+        reset: 'Reset'
+    },
+    // Table Columns
+    table: {
+        id: 'No.',
+        code: 'Project Code',
+        name: 'Name',
+        language: 'Language',
+        type: 'Type',
+        status: 'Status',
+        startTime: 'Start Time',
+        endTime: 'End Time',
+        createTime: 'Create Time',
+        updateTime: 'Update Time',
+        actions: 'Actions',
+        enterProject: 'Enter Project'
+    },
+    // Project Status
+    status: {
+        unstarted: 'Unstarted',
+        underway: 'Underway',
+        paused: 'Paused',
+        finished: 'Finished'
+    }
+};

+ 44 - 0
src/lang/modules/document/project/zh_CN.ts

@@ -0,0 +1,44 @@
+// 文档项目列表模块 - 中文翻译
+export default {
+    // 搜索表单
+    search: {
+        code: '项目编号',
+        codePlaceholder: '请输入项目编号',
+        name: '名称',
+        namePlaceholder: '请输入名称',
+        language: '项目语言',
+        languagePlaceholder: '请选择项目语言',
+        type: '项目类型',
+        typePlaceholder: '请选择项目类型',
+        startTime: '开始时间',
+        endTime: '结束时间',
+        createTime: '创建时间',
+        updateTime: '更新时间',
+        startDate: '开始日期',
+        endDate: '结束日期',
+        search: '搜索',
+        reset: '重置'
+    },
+    // 表格列
+    table: {
+        id: '序号',
+        code: '项目编号',
+        name: '名称',
+        language: '项目语言',
+        type: '项目类型',
+        status: '状态',
+        startTime: '开始时间',
+        endTime: '结束时间',
+        createTime: '创建时间',
+        updateTime: '更新时间',
+        actions: '操作',
+        enterProject: '进入项目'
+    },
+    // 项目状态
+    status: {
+        unstarted: '未开始',
+        underway: '进行中',
+        paused: '暂停中',
+        finished: '已完成'
+    }
+};

+ 3 - 3
src/lang/modules/search/en_US.ts

@@ -52,9 +52,9 @@ export default {
     auditReject: 'Audit Reject',
     unFiling: 'Un Filing',
     filing: 'Filing',
-    unQualityControl: 'Un Quality Control',
-    qualityControlPass: 'Quality Control Pass',
-    qualityControlReject: 'Quality Control Reject'
+    unQc: 'Un QC',
+    qcPass: 'QC Pass',
+    qcReject: 'QC Reject'
   },
   message: {
     fetchFailed: 'Failed to get document list',

+ 3 - 3
src/lang/modules/search/zh_CN.ts

@@ -52,9 +52,9 @@ export default {
     auditReject: '审核拒绝',
     unFiling: '待归档',
     filing: '已归档',
-    unQualityControl: '待质控',
-    qualityControlPass: '质控通过',
-    qualityControlReject: '质控拒绝'
+    unQc: '待质控',
+    qcPass: '质控通过',
+    qcReject: '质控拒绝'
   },
   message: {
     fetchFailed: '获取文档列表失败',

+ 2 - 2
src/lang/modules/system/tenant/zh_CN.ts

@@ -44,8 +44,8 @@ export default {
     contactUserNamePlaceholder: '请输入联系人',
     contactPhone: '联系电话',
     contactPhonePlaceholder: '请输入联系电话',
-    username: '用户',
-    usernamePlaceholder: '请输入系统用户',
+    username: '用户账号',
+    usernamePlaceholder: '请输入系统用户账号',
     password: '用户密码',
     passwordPlaceholder: '请输入系统用户密码',
     packageId: '企业套餐',

+ 1 - 1
src/lang/zh_CN.ts

@@ -12,7 +12,7 @@ import qc from './modules/qc/index';
 
 export default {
   // 页面标题
-  title: '道修远智eTMF',
+  title: '道修远智eTMF',
   // 模态框
   modal: {
     systemPrompt: '系统提示',

+ 36 - 62
src/views/document/folder/project.vue

@@ -4,90 +4,90 @@
       <div v-show="showSearch" class="mb-[10px]">
         <el-card shadow="hover">
           <el-form ref="queryFormRef" :model="queryParams" :inline="true" label-width="100px">
-              <el-form-item :label="t('project.management.search.code')" prop="code">
+              <el-form-item :label="t('document.project.search.code')" prop="code">
                 <el-input
                   v-model="queryParams.code"
-                  :placeholder="t('project.management.search.codePlaceholder')"
+                  :placeholder="t('document.project.search.codePlaceholder')"
                   clearable
                   @keyup.enter="handleQuery"
                   style="width: 240px"
                 />
               </el-form-item>
-              <el-form-item :label="t('project.management.search.name')" prop="name">
+              <el-form-item :label="t('document.project.search.name')" prop="name">
                 <el-input
                   v-model="queryParams.name"
-                  :placeholder="t('project.management.search.namePlaceholder')"
+                  :placeholder="t('document.project.search.namePlaceholder')"
                   clearable
                   @keyup.enter="handleQuery"
                   style="width: 240px"
                 />
               </el-form-item>
-              <el-form-item :label="t('project.management.search.language')" prop="language">
+              <el-form-item :label="t('document.project.search.language')" prop="language">
                 <el-select
                   v-model="queryParams.language"
-                  :placeholder="t('project.management.search.languagePlaceholder')"
+                  :placeholder="t('document.project.search.languagePlaceholder')"
                   clearable
                   style="width: 240px"
                 >
                   <el-option v-for="dict in project_language" :key="dict.value" :label="parseI18nName(dict.label)" :value="dict.value" />
                 </el-select>
               </el-form-item>
-              <el-form-item :label="t('project.management.search.type')" prop="type">
-                <el-select v-model="queryParams.type" :placeholder="t('project.management.search.typePlaceholder')" clearable style="width: 240px">
+              <el-form-item :label="t('document.project.search.type')" prop="type">
+                <el-select v-model="queryParams.type" :placeholder="t('document.project.search.typePlaceholder')" clearable style="width: 240px">
                   <el-option v-for="dict in project_type" :key="dict.value" :label="parseI18nName(dict.label)" :value="dict.value" />
                 </el-select>
               </el-form-item>
-              <el-form-item :label="t('project.management.search.startTime')">
+              <el-form-item :label="t('document.project.search.startTime')">
                 <el-date-picker
                   v-model="dateRangeStartTime"
                   value-format="YYYY-MM-DD HH:mm:ss"
                   type="daterange"
                   range-separator="-"
-                  :start-placeholder="t('project.management.search.startDate')"
-                  :end-placeholder="t('project.management.search.endDate')"
+                  :start-placeholder="t('document.project.search.startDate')"
+                  :end-placeholder="t('document.project.search.endDate')"
                   :default-time="[new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 1, 1, 23, 59, 59)]"
                   style="width: 240px"
                 />
               </el-form-item>
-              <el-form-item :label="t('project.management.search.endTime')">
+              <el-form-item :label="t('document.project.search.endTime')">
                 <el-date-picker
                   v-model="dateRangeEndTime"
                   value-format="YYYY-MM-DD HH:mm:ss"
                   type="daterange"
                   range-separator="-"
-                  :start-placeholder="t('project.management.search.startDate')"
-                  :end-placeholder="t('project.management.search.endDate')"
+                  :start-placeholder="t('document.project.search.startDate')"
+                  :end-placeholder="t('document.project.search.endDate')"
                   :default-time="[new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 1, 1, 23, 59, 59)]"
                   style="width: 240px"
                 />
               </el-form-item>
-              <el-form-item :label="t('project.management.search.createTime')">
+              <el-form-item :label="t('document.project.search.createTime')">
                 <el-date-picker
                   v-model="dateRangeCreateTime"
                   value-format="YYYY-MM-DD HH:mm:ss"
                   type="daterange"
                   range-separator="-"
-                  :start-placeholder="t('project.management.search.startDate')"
-                  :end-placeholder="t('project.management.search.endDate')"
+                  :start-placeholder="t('document.project.search.startDate')"
+                  :end-placeholder="t('document.project.search.endDate')"
                   :default-time="[new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 1, 1, 23, 59, 59)]"
                   style="width: 240px"
                 />
               </el-form-item>
-              <el-form-item :label="t('project.management.search.updateTime')">
+              <el-form-item :label="t('document.project.search.updateTime')">
                 <el-date-picker
                   v-model="dateRangeUpdateTime"
                   value-format="YYYY-MM-DD HH:mm:ss"
                   type="daterange"
                   range-separator="-"
-                  :start-placeholder="t('project.management.search.startDate')"
-                  :end-placeholder="t('project.management.search.endDate')"
+                  :start-placeholder="t('document.project.search.startDate')"
+                  :end-placeholder="t('document.project.search.endDate')"
                   :default-time="[new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 1, 1, 23, 59, 59)]"
                   style="width: 240px"
                 />
               </el-form-item>
               <el-form-item>
-                <el-button type="primary" icon="Search" @click="handleQuery">{{ t('project.management.search.search') }}</el-button>
-                <el-button icon="Refresh" @click="resetQuery">{{ t('project.management.search.reset') }}</el-button>
+                <el-button type="primary" icon="Search" @click="handleQuery">{{ t('document.project.search.search') }}</el-button>
+                <el-button icon="Refresh" @click="resetQuery">{{ t('document.project.search.reset') }}</el-button>
               </el-form-item>
             </el-form>
           </el-card>
@@ -102,37 +102,37 @@
         </template>
 
         <el-table v-loading="loading" border :data="projectList" style="width: 100%">
-          <el-table-column :label="t('project.management.table.id')" align="center" prop="id" width="100" />
-          <el-table-column :label="t('project.management.table.code')" align="center" prop="code" width="200" />
-          <el-table-column :label="t('project.management.table.name')" align="center" prop="name" width="200" />
-          <el-table-column :label="t('project.management.table.language')" align="center" prop="language" width="150">
+          <el-table-column :label="t('document.project.table.id')" align="center" prop="id" width="100" />
+          <el-table-column :label="t('document.project.table.code')" align="center" prop="code" width="200" />
+          <el-table-column :label="t('document.project.table.name')" align="center" prop="name" width="200" />
+          <el-table-column :label="t('document.project.table.language')" align="center" prop="language" width="150">
             <template #default="scope">
               <dict-tag :options="project_language" :value="scope.row.language" />
             </template>
           </el-table-column>
-          <el-table-column :label="t('project.management.table.type')" align="center" prop="type" width="200">
+          <el-table-column :label="t('document.project.table.type')" align="center" prop="type" width="200">
             <template #default="scope">
               <dict-tag :options="project_type" :value="scope.row.type" />
             </template>
           </el-table-column>
-          <el-table-column :label="t('project.management.table.status')" align="center" prop="status" width="100">
+          <el-table-column :label="t('document.project.table.status')" align="center" prop="status" width="100">
             <template #default="scope">
-              <el-tag :type="getStatusType(scope.row.status)">{{ getStatusText(scope.row.status) }}</el-tag>
+              <ProjectStatusTag :status="scope.row.status" />
             </template>
           </el-table-column>
-          <el-table-column :label="t('project.management.table.startTime')" align="center" prop="startTime" width="120">
+          <el-table-column :label="t('document.project.table.startTime')" align="center" prop="startTime" width="120">
             <template #default="scope">
               <span>{{ parseTime(scope.row.startTime, '{y}-{m}-{d}') }}</span>
             </template>
           </el-table-column>
-          <el-table-column :label="t('project.management.table.endTime')" align="center" prop="endTime" width="120">
+          <el-table-column :label="t('document.project.table.endTime')" align="center" prop="endTime" width="120">
             <template #default="scope">
               <span>{{ parseTime(scope.row.endTime, '{y}-{m}-{d}') }}</span>
             </template>
           </el-table-column>
-          <el-table-column :label="t('project.management.table.createTime')" align="center" prop="createTime" min-width="180" />
-          <el-table-column :label="t('project.management.table.updateTime')" align="center" prop="updateTime" min-width="180" />
-          <el-table-column :label="t('project.management.table.actions')" align="center" width="120" fixed="right">
+          <el-table-column :label="t('document.project.table.createTime')" align="center" prop="createTime" min-width="180" />
+          <el-table-column :label="t('document.project.table.updateTime')" align="center" prop="updateTime" min-width="180" />
+          <el-table-column :label="t('document.project.table.actions')" align="center" width="120" fixed="right">
             <template #default="scope">
               <el-button
                 v-hasPermi="['document:folder:entry']"
@@ -141,7 +141,7 @@
                 style="padding: 0 5px; font-size: 10px; height: 24px; --el-button-icon-span-gap: 2px"
                 @click="handleEnterProject(scope.row)"
               >
-                {{ t('project.management.table.enterProject') }}
+                {{ t('document.project.table.enterProject') }}
               </el-button>
             </template>
           </el-table-column>
@@ -157,38 +157,12 @@ import { listProject } from '@/api/document/folder';
 import { ProjectVO, ProjectQuery } from '@/api/document/folder/types';
 import { useI18n } from 'vue-i18n';
 import { parseI18nName } from '@/utils/i18n';
+import ProjectStatusTag from '@/components/ProjectStatusTag/index.vue';
 
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
 const { t } = useI18n();
 const { project_type, project_language } = toRefs<any>(proxy?.useDict('project_type', 'project_language'));
 
-// 项目状态枚举映射
-const projectStatusMap: Record<number, string> = {
-  0: 'unstarted',
-  1: 'underway',
-  2: 'paused',
-  3: 'finished'
-};
-
-// 获取状态文本(国际化)
-const getStatusText = (status: number | undefined) => {
-  if (status === undefined || status === null) return '-';
-  const statusKey = projectStatusMap[status];
-  return statusKey ? t(`project.management.status.${statusKey}`) : status;
-};
-
-// 获取状态标签类型
-const getStatusType = (status: number | undefined): 'success' | 'info' | 'warning' | 'primary' | 'danger' => {
-  const typeMap: Record<number, 'success' | 'info' | 'warning' | 'primary' | 'danger'> = {
-    0: 'info',
-    1: 'success',
-    2: 'warning',
-    3: 'primary'
-  };
-  if (status === undefined || status === null) return 'info';
-  return typeMap[status] || 'info';
-};
-
 const projectList = ref<ProjectVO[]>([]);
 const loading = ref(true);
 const showSearch = ref(true);

+ 2 - 28
src/views/project/management/detail/pages/basicInfo.vue

@@ -41,7 +41,7 @@
             <div class="info-item">
               <label class="info-label">{{ t('project.management.table.status') }}</label>
               <div class="info-value">
-                <el-tag :type="getStatusType(projectData.status)">{{ getStatusText(projectData.status) }}</el-tag>
+                <ProjectStatusTag :status="projectData.status" />
               </div>
             </div>
           </el-col>
@@ -164,6 +164,7 @@
 import { inject, computed } from 'vue';
 import { useI18n } from 'vue-i18n';
 import { ManagementVO } from '@/api/project/management/types';
+import ProjectStatusTag from '@/components/ProjectStatusTag/index.vue';
 
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
 const { t } = useI18n();
@@ -172,33 +173,6 @@ const { project_type, project_language } = toRefs<any>(proxy?.useDict('project_t
 // 接收从父组件传递的项目数据
 const projectData = inject<any>('projectData');
 
-// 项目状态枚举映射
-const projectStatusMap: Record<number, string> = {
-  0: 'unstarted',
-  1: 'underway',
-  2: 'paused',
-  3: 'finished'
-};
-
-// 获取状态文本(国际化)
-const getStatusText = (status: number | undefined) => {
-  if (status === undefined || status === null) return '-';
-  const statusKey = projectStatusMap[status];
-  return statusKey ? t(`project.management.status.${statusKey}`) : status;
-};
-
-// 获取状态标签类型
-const getStatusType = (status: number | undefined): 'success' | 'info' | 'warning' | 'primary' | 'danger' => {
-  const typeMap: Record<number, 'success' | 'info' | 'warning' | 'primary' | 'danger'> = {
-    0: 'info',
-    1: 'success',
-    2: 'warning',
-    3: 'primary'
-  };
-  if (status === undefined || status === null) return 'info';
-  return typeMap[status] || 'info';
-};
-
 // 计算项目进度
 const projectProgress = computed(() => {
   if (!projectData?.value?.startTime || !projectData?.value?.endTime) {

+ 2 - 28
src/views/project/management/list.vue

@@ -178,7 +178,7 @@
         </el-table-column>
         <el-table-column :label="t('project.management.table.status')" align="center" prop="status" width="100">
           <template #default="scope">
-            <el-tag :type="getStatusType(scope.row.status)">{{ getStatusText(scope.row.status) }}</el-tag>
+            <ProjectStatusTag :status="scope.row.status" />
           </template>
         </el-table-column>
         <el-table-column :label="t('project.management.table.pdGpd')" align="center" prop="pdGpd" width="150" />
@@ -434,38 +434,12 @@ import { listManagement, getManagement, delManagement, addManagement, updateMana
 import { ManagementVO, ManagementQuery, ManagementForm } from '@/api/project/management/types';
 import { useI18n } from 'vue-i18n';
 import { parseI18nName } from '@/utils/i18n';
+import ProjectStatusTag from '@/components/ProjectStatusTag/index.vue';
 
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
 const { t } = useI18n();
 const { project_type, project_language } = toRefs<any>(proxy?.useDict('project_type', 'project_language'));
 
-// 项目状态枚举映射
-const projectStatusMap: Record<number, string> = {
-  0: 'unstarted',
-  1: 'underway',
-  2: 'paused',
-  3: 'finished'
-};
-
-// 获取状态文本(国际化)
-const getStatusText = (status: number | undefined) => {
-  if (status === undefined || status === null) return '-';
-  const statusKey = projectStatusMap[status];
-  return statusKey ? t(`project.management.status.${statusKey}`) : status;
-};
-
-// 获取状态标签类型
-const getStatusType = (status: number | undefined): 'success' | 'info' | 'warning' | 'primary' | 'danger' => {
-  const typeMap: Record<number, 'success' | 'info' | 'warning' | 'primary' | 'danger'> = {
-    0: 'info',
-    1: 'success',
-    2: 'warning',
-    3: 'primary'
-  };
-  if (status === undefined || status === null) return 'info';
-  return typeMap[status] || 'info';
-};
-
 // 移除组件切换相关的注入(已改用路由跳转)
 // const switchComponent = inject<any>('switchComponent');
 // const DetailComponent = inject<any>('DetailComponent');

+ 3 - 3
src/views/search/index.vue

@@ -36,9 +36,9 @@
             <el-option :label="t('search.status.auditReject')" :value="2" />
             <el-option :label="t('search.status.unFiling')" :value="3" />
             <el-option :label="t('search.status.filing')" :value="4" />
-            <el-option :label="t('search.status.unQualityControl')" :value="5" />
-            <el-option :label="t('search.status.qualityControlPass')" :value="6" />
-            <el-option :label="t('search.status.qualityControlReject')" :value="7" />
+            <el-option :label="t('search.status.unQc')" :value="5" />
+            <el-option :label="t('search.status.qcPass')" :value="6" />
+            <el-option :label="t('search.status.qcReject')" :value="7" />
           </el-select>
         </el-form-item>
         <el-form-item :label="t('search.search.createTime')">

+ 1 - 1
src/views/system/tenant/index.vue

@@ -3,7 +3,7 @@
     <transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
       <div v-show="showSearch" class="mb-[10px]">
         <el-card shadow="hover">
-          <el-form ref="queryFormRef" :model="queryParams" :inline="true" label-width="140px">
+          <el-form ref="queryFormRef" :model="queryParams" :inline="true" label-width="130px">
             <el-form-item :label="t('tenant.search.tenantId')" prop="tenantId">
               <el-input v-model="queryParams.tenantId" :placeholder="t('tenant.search.tenantIdPlaceholder')" clearable @keyup.enter="handleQuery" />
             </el-form-item>