feat: 对接系统配置中的组织架构90%

This commit is contained in:
Zzz1zz
2025-06-28 00:10:30 +08:00
parent c5c61f0573
commit f6e4159889
16 changed files with 901 additions and 49 deletions
+14
View File
@@ -77,6 +77,7 @@
PROJECT_TYPE_COLORS,
PROJECT_TYPE_LABELS,
} from '@/types/business';
import { ProjectParams, getAllProjectList } from '@/api/business';
const { loading, setLoading } = useLoading(false);
const renderData = ref<ProjectRecord[]>([
@@ -138,4 +139,17 @@
pagination.current = current;
// TODO: 这里应该调用API获取对应页码的数据
};
const getAllProjectListData = async () => {
setLoading(true);
try {
const { data } = await getAllProjectList();
console.log(data, 'getAllProjectList');
} catch (err) {
// you can report use errorHandler or other
} finally {
setLoading(false);
}
};
// getAllProjectListData()
</script>