This commit is contained in:
Teo
2025-08-14 01:58:00 +08:00
parent 606722f19e
commit 3158dc84f7
99 changed files with 620 additions and 554 deletions

View File

@ -97,7 +97,7 @@ const queryParams = ref({
pid: undefined,
name: undefined,
unitType: undefined,
projectId: currentProject.value.id,
projectId: currentProject.value?.id,
matrixId: undefined,
params: {}
});
@ -382,7 +382,7 @@ const resetMatrix = () => {
/** 查询进度类别列表 */
const getList = async () => {
if (!queryParams.value.matrixId) {
const res = await getProjectSquare(currentProject.value.id);
const res = await getProjectSquare(currentProject.value?.id);
if (res.data.length === 0) {
proxy?.$modal.msgWarning('当前项目下没有方阵,请先创建方阵');
} else {
@ -398,7 +398,7 @@ const getList = async () => {
}
}
loading.value = true;
queryParams.value.projectId = currentProject.value.id;
queryParams.value.projectId = currentProject.value?.id;
const res = await listProgressCategory(queryParams.value);
const data = proxy?.handleTree<ProgressCategoryVO>(res.data, 'id', 'pid');
if (data) {