소스 검색

qhse体系文件优化

yanghao 1 개월 전
부모
커밋
bbbef61b9f
1개의 변경된 파일과 6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      src/views/pms/qhse/data/index.vue

+ 6 - 3
src/views/pms/qhse/data/index.vue

@@ -440,12 +440,15 @@ const loadRootBreadcrumb = async () => {
 
   try {
     const currentDept = await getUserProfile()
+    const rootDisplayName =
+      currentDept.dept.name === '科瑞石油技术' ? 'QHSE体系文件' : currentDept.dept.name
+
     rootDeptOriginId.value = currentDept.dept.id
     currentTreeOriginId.value = currentDept.dept.id
     deptId.value = String(currentDept.dept.id)
-    rootNodeName.value = currentDept.dept.name
-    nodeName.value = currentDept.dept.name
-    breadcrumbs.value[0].name = currentDept.dept.name
+    rootNodeName.value = rootDisplayName
+    nodeName.value = rootDisplayName
+    breadcrumbs.value[0].name = rootDisplayName
   } catch {}
 }