diff --git a/src/api/logManage/exportFile.ts b/src/api/logManage/exportFile.ts index d3f48477..85c29ccf 100644 --- a/src/api/logManage/exportFile.ts +++ b/src/api/logManage/exportFile.ts @@ -51,3 +51,41 @@ export function delFile(query: Record) { params: query, }); } + +/** + * 更新FTP信息 + * @param data 数据 + * @returns object + */ +export function updateFTPInfo(data: Record) { + return request({ + url: `/lm/table/ftp`, + method: 'post', + data: data, + }); +} + +/** + * 获取FTP信息 + * @param data 数据 + * @returns object + */ +export function getFTPInfo() { + return request({ + url: `/lm/table/ftp`, + method: 'get', + }); +} + +/** + * 发送FTP文件 + * @param data 数据 + * @returns object + */ +export function putFTPInfo(filePath: string, fileName: string) { + return request({ + url: `/lm/table/ftp`, + method: 'put', + data: { filePath, fileName }, + }); +} diff --git a/src/views/logManage/exportFile/index.vue b/src/views/logManage/exportFile/index.vue index f9adaec2..60d35470 100644 --- a/src/views/logManage/exportFile/index.vue +++ b/src/views/logManage/exportFile/index.vue @@ -1,19 +1,24 @@