Просмотр исходного кода

Merge branch 'qhse_file' of shuzhihua/pms-iot-vue into master

yanghao 3 недель назад
Родитель
Сommit
fa3d70679f
2 измененных файлов с 4 добавлено и 3 удалено
  1. 2 1
      src/views/pms/qhse/case/index.vue
  2. 2 2
      src/views/pms/qhse/industry/index.vue

+ 2 - 1
src/views/pms/qhse/case/index.vue

@@ -283,6 +283,7 @@ const deptList2 = ref<Tree[]>([]) // 树形结构
 import { defaultProps } from '@/utils/tree'
 import * as DeptApi from '@/api/system/dept'
 defineOptions({ name: 'QhseAccidentCase' })
+import { handleTree } from '@/utils/tree'
 
 const rootDeptId = 156
 const deptId = useUserStore().getUser.deptId || rootDeptId
@@ -477,6 +478,6 @@ const downloadFile = async (url: string) => {
 onMounted(async () => {
   getList()
 
-  deptList2.value = await DeptApi.getSimpleDeptList()
+  deptList2.value = handleTree(await DeptApi.getSimpleDeptList())
 })
 </script>

+ 2 - 2
src/views/pms/qhse/industry/index.vue

@@ -275,7 +275,7 @@ import { useUserStore } from '@/store/modules/user'
 import { defaultProps } from '@/utils/tree'
 import * as DeptApi from '@/api/system/dept'
 import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
-
+import { handleTree } from '@/utils/tree'
 defineOptions({ name: 'QhseIndustryStandard' })
 
 const rootDeptId = 156
@@ -431,6 +431,6 @@ const handleExport = async () => {
 
 onMounted(async () => {
   getList()
-  deptList2.value = await DeptApi.getSimpleDeptList()
+  deptList2.value = handleTree(await DeptApi.getSimpleDeptList())
 })
 </script>