From 9675f1491ef23c4c6f69cb83cbf6de3fd6dac61b Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期三, 26 七月 2023 17:40:58 +0800 Subject: [PATCH] 主数据导出 --- Source/UBCS-WEB/src/api/GetItem.js | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/src/api/GetItem.js b/Source/UBCS-WEB/src/api/GetItem.js index af5f940..a1ade96 100644 --- a/Source/UBCS-WEB/src/api/GetItem.js +++ b/Source/UBCS-WEB/src/api/GetItem.js @@ -56,6 +56,23 @@ } }) } +//瀵煎嚭 +export function exportCode(data){ + return request({ + url: 'api/ubcs-code/mdmEngineController/exportCode', + method: 'excel', + responseType: 'json', // 璁剧疆鍝嶅簲绫诲瀷涓篴rraybuffer + headers: { + 'Content-Type': 'application/vnd.ms-excel', // 璁剧疆璇锋眰澶翠负浜岃繘鍒舵祦绫诲瀷 + // 鍦ㄨ繖閲屽彲浠ヨ缃叾浠栬姹傚ご淇℃伅 + // 渚嬪锛� + // 'Authorization': 'Bearer your-token', + }, + params:{ + ...data + } + }) +} // 鎵归噺淇敼鏁版嵁 export function batchUpdateCode(data) { return request({ -- Gitblit v1.9.3