From 61101abd138a35b01cee903cce6aedd1a2c045dc Mon Sep 17 00:00:00 2001 From: GUjiYN <2946459904@qq.com> Date: Fri, 15 Mar 2024 20:48:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=AE=A1=E7=90=86=E7=9A=84=E7=95=8C?= =?UTF-8?q?=E9=9D=A2bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/request.js | 13 +++++++++++++ src/router/index.js | 4 ++-- src/views/WorkLoadPage/I_Manage.vue | 12 +++++++++--- .../WorkLoadPage/I_Manage_ChildSystem.vue | 18 +++++++++++++++--- 4 files changed, 39 insertions(+), 8 deletions(-) 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..55f60f1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -56,12 +56,12 @@ const router = createRouter({ name:'WorkLoadI_Responsible', component:() =>import('@/views/WorkLoadPage/I_Responsible.vue') }, - { + /*{ path:'/WorkLoad/I_Responsible/:projId', name:'WorkLoadI_ResponsibleProject', component:() =>import('@/views/WorkLoadPage/I_ResponsibleChild.vue') }, - +*/ { path:'/WorkLoad/I_Manage/ChildModule', 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}}