diff --git a/src/js/request.js b/src/js/request.js index 20dbb73..f47f789 100644 --- a/src/js/request.js +++ b/src/js/request.js @@ -654,6 +654,18 @@ const moduleGetByProjectId = (projectId, token) => { } +/*const moduleGetByProjectId = (projectId, token) => { + return axios ({ + url:api + "/module/get", + methods:"get", + params:projectId, + headers:{ + 'Authorization':'Bearer '+token, + 'content-type': 'application/json;charset=utf-8', + 'Timestamp': getCurrentTimestamp() + } + }) +}*/ export default { login, @@ -700,4 +712,5 @@ export default { messageGet, + } \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 75fb5db..dc583b2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -56,6 +56,7 @@ const router = createRouter({ name:'WorkLoadI_Responsible', component:() =>import('@/views/WorkLoadPage/I_Responsible.vue') }, + { path:'/WorkLoad/I_Responsible/:projId', name:'WorkLoadI_ResponsibleProject', diff --git a/src/views/WorkLoadPage/I_Manage.vue b/src/views/WorkLoadPage/I_Manage.vue index bfcd5f3..60729e4 100644 --- a/src/views/WorkLoadPage/I_Manage.vue +++ b/src/views/WorkLoadPage/I_Manage.vue @@ -29,7 +29,7 @@
- +

{{ChildProject.name}}

@@ -59,12 +59,18 @@ const showButton = reactive([]); const token = window.localStorage.getItem('token') const ChildProjects = ref([]); // 使用ref创建响应式数据 const id = ref(2); +const tagAll=ref(true) const tagsData = ref([]); const selectTags = ref([false, false, false, false]); - +const data =reactive({ + is:1, + id:null, + tags:[], + isFinish:[0,1,2,-1] +}) onMounted(() =>{ - request.projectWorkGet(id, token).then((res) => { + request.projectWorkGet(data, token).then((res) => { ChildProjects.value = res.data.data; }) }) diff --git a/src/views/WorkLoadPage/I_Manage_ChildSystem.vue b/src/views/WorkLoadPage/I_Manage_ChildSystem.vue index 3ca7c60..9202ec2 100644 --- a/src/views/WorkLoadPage/I_Manage_ChildSystem.vue +++ b/src/views/WorkLoadPage/I_Manage_ChildSystem.vue @@ -20,12 +20,12 @@
-
+

01

-

子系统名称

+

{{ChildSystem.name}}