|
@@ -60,7 +60,7 @@
|
|
|
import { useSceneInfos } from '@/hooks/useSceneInfos';
|
|
import { useSceneInfos } from '@/hooks/useSceneInfos';
|
|
|
import ScoreTable from '../common/ScoreTable.vue';
|
|
import ScoreTable from '../common/ScoreTable.vue';
|
|
|
import ScoreLineChart from '../../charts/ScoreLineChart.vue';
|
|
import ScoreLineChart from '../../charts/ScoreLineChart.vue';
|
|
|
- import { deptTreeList } from '@/api/auth/dept';
|
|
|
|
|
|
|
+ import { getAllDepartments } from '@/api/auth/dept';
|
|
|
import _ from 'lodash-es';
|
|
import _ from 'lodash-es';
|
|
|
|
|
|
|
|
const departmentList = ref<any[]>([]);
|
|
const departmentList = ref<any[]>([]);
|
|
@@ -70,10 +70,10 @@
|
|
|
const { getScenesTree, calculateTreeData } = sceneInfos;
|
|
const { getScenesTree, calculateTreeData } = sceneInfos;
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
getScenesTree({ level: 1, valueKey: 'code', labelKey: 'name', disabled: true });
|
|
getScenesTree({ level: 1, valueKey: 'code', labelKey: 'name', disabled: true });
|
|
|
- deptTreeList().then((res) => {
|
|
|
|
|
|
|
+ getAllDepartments().then((res) => {
|
|
|
departmentList.value = calculateTreeData(
|
|
departmentList.value = calculateTreeData(
|
|
|
res,
|
|
res,
|
|
|
- { level: 3, valueKey: 'deptId', labelKey: 'deptName' },
|
|
|
|
|
|
|
+ { level: 3, valueKey: 'id', labelKey: 'deptName' },
|
|
|
1,
|
|
1,
|
|
|
);
|
|
);
|
|
|
});
|
|
});
|