| | |
| | | } |
| | | }) |
| | | } |
| | | //高级查询 |
| | | //全查询 |
| | | export const FindData =(params)=>{ |
| | | return request({ |
| | | url: 'api/ubcs-code/mdmEngineController/gridTableDataByClassifyOid', |
| | |
| | | } |
| | | }) |
| | | } |
| | | //导出 |
| | | // 主数据导出 |
| | | export function exportCode(data){ |
| | | return request({ |
| | | url: 'api/ubcs-code/mdmEngineController/exportCode', |
| | | method: 'excel', |
| | | responseType: 'json', // 设置响应类型为arraybuffer |
| | | headers: { |
| | | 'Content-Type': 'application/vnd.ms-excel', // 设置请求头为二进制流类型 |
| | | // 在这里可以设置其他请求头信息 |
| | | // 例如: |
| | | // 'Authorization': 'Bearer your-token', |
| | | }, |
| | | method: 'post', |
| | | responseType: 'blob', // 设置响应类型为blob |
| | | params:{ |
| | | ...data |
| | | } |