From a4f4b16881f9abc1250d5be3cd29d2f567805054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CXCYH=E2=80=9D?= <“1561381013@qq.com”> Date: Thu, 18 Apr 2024 23:55:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=AE=A1=E7=90=86=E7=9A=84=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E4=BF=AE=E6=94=B9=EF=BC=8C=E5=B7=AE=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=92=8C=E5=87=A0=E4=B8=AA=E5=8A=9F=E8=83=BD=E5=92=8C=E6=9D=83?= =?UTF-8?q?=E9=99=90=E5=88=86=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/manage.js | 59 +++- .../personal/project/childSystem/manage.vue | 139 ++++----- .../project/childSystem/participate.vue | 11 +- .../personal/project/childmodel/manage.vue | 288 ++++++++++-------- .../project/childmodel/participate.vue | 25 +- src/views/personal/project/detail/manage.vue | 55 +++- .../personal/project/detail/participate.vue | 10 +- src/views/personal/project/manage.vue | 29 +- 8 files changed, 393 insertions(+), 223 deletions(-) diff --git a/src/api/manage.js b/src/api/manage.js index d89dfa0..b09b6af 100644 --- a/src/api/manage.js +++ b/src/api/manage.js @@ -117,7 +117,7 @@ export const getManageProjectList = (token) => { /** - * 获取我管理的页面的子模块项目列表(接口没数据) + * 获取我管理的页面的子模块项目列表 * * @param token 访问令牌 * @returns {Promise> | *} @@ -134,6 +134,63 @@ export const getProjectList = (token) => { }) } +/** + * 获取我管理的页面的子系统项目列表 + * @param projectId 项目id + * @param token 访问令牌 + * @returns {Promise> | *} + */ +export const getProjectSysList = (projectId,token) => { + return axios({ + url: api +"/module/get?projectId=" + projectId , + method: "get", + headers: { + 'Authorization': 'Bearer ' + token, + 'Timestamp': getCurrentTimestamp() + } + + + }) +} +/** + * 获取我管理的页面的子模块项目列表(接口没数据) + * @param sysId 子系统id + * @param token 访问令牌 + * @returns {Promise> | *} + */ +export const getProjectModList = (sysId,token) => { + return axios({ + url: api +"/module/get/min?sysId=" + sysId , + method: "get", + headers: { + 'Authorization': 'Bearer ' + token, + 'Timestamp': getCurrentTimestamp() + } + + + }) +} +/** + * 获取我管理的页面的子模块详细信息 + * @param id 子模块id + * @param token 访问令牌 + * @returns {Promise> | *} + */ +export const getProjectModDetail = (id,token) => { + return axios({ + url: api +"/project/module/id?id=" + id , + method: "get", + headers: { + 'Authorization': 'Bearer ' + token, + 'Timestamp': getCurrentTimestamp() + } + + + }) +} + + + diff --git a/src/views/personal/project/childSystem/manage.vue b/src/views/personal/project/childSystem/manage.vue index 73637c9..8ae5475 100644 --- a/src/views/personal/project/childSystem/manage.vue +++ b/src/views/personal/project/childSystem/manage.vue @@ -1,7 +1,7 @@ - + 查看详情 @@ -76,12 +76,13 @@ const toChildModel = (SysId: number) => { interface User { id: number - createdAt: string + cycle: number description: { description: string } isDeleted: number name: string principalId: number + deadLine: string projectId: number workLoad: number status: string @@ -98,12 +99,10 @@ const handleSelectionChange = (val: User[]) => { const tableData = ref([ { id: 1, - createdAt: '2022-01-01', + deadLine: '2022-01-01', cycle: 1, description: { description: '子系统1的简介' }, isDeleted: 0, - - name: '子系统1', principalId: 1, projectId: 1, @@ -122,7 +121,7 @@ const parseData = (data) => { return { id: data.id, - createdAt: data.createdAt, + deadLine: data.deadLine, cycle: data.cycle, description: description, isDeleted: data.isDeleted, diff --git a/src/views/personal/project/childmodel/manage.vue b/src/views/personal/project/childmodel/manage.vue index 7737559..828bfb3 100644 --- a/src/views/personal/project/childmodel/manage.vue +++ b/src/views/personal/project/childmodel/manage.vue @@ -1,143 +1,165 @@ + + +
+ 子模块列表 +
+ 新增 + 删除 +
+
+ + + + + + + + + + + + {{row.description.description}} + + + + 查看详情 + + + +
+ + + + + - \ No newline at end of file +} +fetchData(); + + + + + \ No newline at end of file diff --git a/src/views/personal/project/childmodel/participate.vue b/src/views/personal/project/childmodel/participate.vue index 79df9cb..ba6a044 100644 --- a/src/views/personal/project/childmodel/participate.vue +++ b/src/views/personal/project/childmodel/participate.vue @@ -30,7 +30,7 @@
- + @@ -96,7 +96,28 @@ const handleSelectionChange = (val: User[]) => { //列表 -const tableData = ref([]); +const tableData = ref([ + { + beginTime: '2021-11-11', + childSystemName: '子系统1', + completeTime: '2021-11-11', + cycle: "10tian", + description: { description: '子系统1描述' }, + id: 1, + isDelete: 0, + isFinishi: '否', + name: '子模块1', + pid: '1', + principalId: 1, + principalUser: '负责人1', + projectId: 1, + status: '待完成', + type: '子系统', + workLoad: 10 + } + + +]); const initialTableData = ref([]); const parseData = (data) => { const descripation = JSON.parse(data.description); diff --git a/src/views/personal/project/detail/manage.vue b/src/views/personal/project/detail/manage.vue index 32976ff..d74863c 100644 --- a/src/views/personal/project/detail/manage.vue +++ b/src/views/personal/project/detail/manage.vue @@ -1,7 +1,7 @@