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 @@