合并
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user