diff --git a/web-vue/src/api/node-project.js b/web-vue/src/api/node-project.js index 97b7a58c2..3dfc7efbb 100644 --- a/web-vue/src/api/node-project.js +++ b/web-vue/src/api/node-project.js @@ -250,4 +250,38 @@ export function getRecoverData(params) { method: 'post', data: params }) +} + +/** + * 获取项目日志文件大小 + * @param { + * nodeId: 节点 ID + * id: 项目 ID + * copyId: copyId + * } params + */ +export function getProjectLogSize(params) { + return axios({ + url: '/node/manage/log/logSize', + method: 'post', + data: params + }) +} + +/** + * 下载项目日志文件 + * @param { + * nodeId: 节点 ID + * id: 项目 ID + * copyId: copyId + * } params + */ +export function downloadProjectLogFile(params) { + return axios({ + url: '/node/manage/log/export.html', + method: 'get', + responseType: 'blob', + timeout: 0, + params + }) } \ No newline at end of file diff --git a/web-vue/src/pages/node/node-layout/project/project-console.vue b/web-vue/src/pages/node/node-layout/project/project-console.vue new file mode 100644 index 000000000..5a5f03974 --- /dev/null +++ b/web-vue/src/pages/node/node-layout/project/project-console.vue @@ -0,0 +1,185 @@ + + + \ No newline at end of file diff --git a/web-vue/src/pages/node/node-layout/project/project-list.vue b/web-vue/src/pages/node/node-layout/project/project-list.vue index 8c3601a89..024e77f04 100644 --- a/web-vue/src/pages/node/node-layout/project/project-list.vue +++ b/web-vue/src/pages/node/node-layout/project/project-list.vue @@ -17,7 +17,7 @@ @@ -74,16 +74,21 @@ - + - + + + +