diff --git a/src/components/Header.vue b/src/components/Header.vue index ca31cb92..ed2cb687 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -106,8 +106,16 @@ const flush = () => { dialogVisible.value = false; getProjectList(); }; + +// const getProjectList = () => { +// axios.get('/controller/projects/list').then((resp) => { +// projectData.value = resp.data; +// store.commit('saveProjectList', projectData.value); +// }); +// }; +// 修改为:按用户查找所有项目 const getProjectList = () => { - axios.get('/controller/projects/list').then((resp) => { + axios.get('/controller/users/listProjects').then((resp) => { projectData.value = resp.data; store.commit('saveProjectList', projectData.value); }); diff --git a/src/components/ProjectUpdate.vue b/src/components/ProjectUpdate.vue index e44852d3..50c53798 100644 --- a/src/components/ProjectUpdate.vue +++ b/src/components/ProjectUpdate.vue @@ -207,7 +207,7 @@ onMounted(() => { >{{ $t('form.save') }} [ component: () => import('../views/Jobs.vue'), meta: { title: $tc('routes.timedTask') }, }, +//llj:项目成员功能 + { + path: 'Members', + name: 'Members', + component: () => import('../views/Members.vue'), + meta: { title: $tc('routes.membersProject') }, + }, { path: 'ProjectOption', name: 'ProjectOption', diff --git a/src/views/Home.vue b/src/views/Home.vue index d7286b42..952a4397 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -154,6 +154,11 @@ onMounted(() => { > {{ $t('homeTS.projectSetting.update') }} + + + {{ $t('homeTS.projectSetting.member') }} + + diff --git a/src/views/Members.vue b/src/views/Members.vue new file mode 100644 index 00000000..b4c8f405 --- /dev/null +++ b/src/views/Members.vue @@ -0,0 +1,188 @@ + + +