From 8d7736b3fcbafa7224a4ff67e0f00a05f620b8f0 Mon Sep 17 00:00:00 2001 From: Teo <2642673902@qq.com> Date: Tue, 26 Aug 2025 09:33:53 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../progress/progressCategorySystemTemplate/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/progress/progressCategorySystemTemplate/index.vue b/src/views/progress/progressCategorySystemTemplate/index.vue index 12bcd3b..6a17a41 100644 --- a/src/views/progress/progressCategorySystemTemplate/index.vue +++ b/src/views/progress/progressCategorySystemTemplate/index.vue @@ -21,8 +21,8 @@ - - + + diff --git a/src/views/progress/progressCategoryTemplate/index.vue b/src/views/progress/progressCategoryTemplate/index.vue index 0b29e10..5d4257b 100644 --- a/src/views/progress/progressCategoryTemplate/index.vue +++ b/src/views/progress/progressCategoryTemplate/index.vue @@ -20,60 +20,70 @@ + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - @@ -100,6 +110,12 @@ + + + + + + @@ -119,7 +135,9 @@ import { addProgressCategoryTemplate, delProgressCategoryTemplate, getProgressCategoryTemplate, + getTabList, listProgressCategoryTemplate, + listProgressCategoryTemplateByParent, updateProgressCategoryTemplate } from '@/api/progress/progressCategoryTemplate'; import { @@ -135,6 +153,8 @@ type ProgressCategoryTemplateOption = { name: string; children?: ProgressCategoryTemplateOption[]; }; +const activeTab = ref('0'); +const tabList = ref([]); const { proxy } = getCurrentInstance() as ComponentInternalInstance; @@ -186,7 +206,8 @@ const data = reactive { loading.value = true; - const res = await listProgressCategoryTemplate(queryParams.value); + const res = await listProgressCategoryTemplateByParent(activeTab.value); const data = proxy?.handleTree(res.data, 'id', 'parentId'); if (data) { progressCategoryTemplateList.value = data; @@ -205,7 +226,7 @@ const getList = async () => { /** 查询进度类别模版下拉树结构 */ const getTreeselect = async () => { - const res = await listProgressCategoryTemplate(); + const res = await listProgressCategoryTemplate({ projectId: queryParams.value.projectId }); progressCategoryTemplateOptions.value = []; const data: ProgressCategoryTemplateOption = { id: 0, name: '顶级节点', children: [] }; data.children = proxy?.handleTree(res.data, 'id', 'parentId'); @@ -310,7 +331,11 @@ const getSubProjectList = async () => { const res = await getChildProject(currentProject.value?.id); projectSon.value = res.data; queryParams.value.projectId = projectSon.value[0]?.id; - getList(); + getTabList(queryParams.value.projectId as string).then((res) => { + tabList.value = res.data; + activeTab.value = res.data[0]?.id; + getList(); + }); }; onMounted(() => { diff --git a/src/views/system/user/profile/userAvatar.vue b/src/views/system/user/profile/userAvatar.vue index 32b6f5c..6b18169 100644 --- a/src/views/system/user/profile/userAvatar.vue +++ b/src/views/system/user/profile/userAvatar.vue @@ -94,6 +94,7 @@ const options = reactive({ previews: {}, visible: false }); +console.log('🚀 ~ userStore.avatar:', userStore.avatar); /** 编辑头像 */ const editCropper = () => {