| | |
| | | |
| | | |
| | | // 根据id查询所有收支台账信息 |
| | | export function getSecretInfo(id) { |
| | | export function getSecretInfo(query) { |
| | | return request({ |
| | | url: '/zSecret/' + id, |
| | | url: '/zSecret', |
| | | method: 'get', |
| | | |
| | | params: query |
| | | }) |
| | | } |
| | | //新增收支台账 |
| | |
| | | //上传文件 |
| | | export function uploadPic(data) { |
| | | return request({ |
| | | url: '/common/upload', |
| | | url: '/common/uploads', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | responseType: 'blob' |
| | | }) |
| | | } |
| | | export function enload(data) { |
| | | return request({ |
| | | url: '/zSecret/importData', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | |
| | | export function getCategory() |
| | | { |
| | | return request({ |
| | | url: '/zSecret/type', |
| | | method: 'get', |
| | | // params: {'id':22} |
| | | }) |
| | | } |