| | |
| | | }) |
| | | } |
| | | |
| | | //类别数据 |
| | | export function listType(query) { |
| | | return request({ |
| | | url: '/zfCollection/type', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // 根据id查询收藏和荣誉 |
| | | export function getCollection(id) { |
| | | return request({ |
| | |
| | | //上传文件 |
| | | export function uploadPic(data) { |
| | | return request({ |
| | | url: '/common/upload', |
| | | url: '/common/uploads', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | responseType: 'blob' |
| | | }) |
| | | } |
| | | //导入模板 |
| | | export function downloadModel(data) { |
| | | |
| | | //导入 |
| | | export function enload(data) { |
| | | return request({ |
| | | url: '/zfCollection/model', |
| | | method: 'get', |
| | | params: data, |
| | | responseType: 'blob' |
| | | url: '/zfCollection/importData', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |