New file |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // 查询数据 |
| | | export function listMarry(query) { |
| | | return request({ |
| | | url: '/zMarry/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | //新增信息 |
| | | export function addMarry(data) { |
| | | return request({ |
| | | url: '/zMarry', |
| | | method: 'post' |
| | | }) |
| | | } |
| | | |
| | | // 删除资产信息 |
| | | export function delMarry(id) { |
| | | return request({ |
| | | url: '/zMarry/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | | //修改信息 |
| | | export function updateMarry(data) { |
| | | return request({ |
| | | url: '/zMarry', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | //上传文件 |
| | | export function uploadPic(data) { |
| | | return request({ |
| | | url: '/common/upload', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | //下载文件 |
| | | export function download(data) { |
| | | return request({ |
| | | url: '/common/downLoadFile', |
| | | method: 'get', |
| | | params: data, |
| | | responseType: 'blob' |
| | | }) |
| | | } |
| | | |
| | | //拿到类别 |
| | | export function getCategory() |
| | | { |
| | | return request({ |
| | | url: '/zDict/byId', |
| | | method: 'get', |
| | | params: {'id':22} |
| | | }) |
| | | } |
| | | |
| | | |
| | | //上传文件 |
| | | export function enload(data) { |
| | | return request({ |
| | | url: '/family/property/importData', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
New file |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | //Secret |
| | | |
| | | // 查询所有收支台账 |
| | | export function listSecret(query) { |
| | | return request({ |
| | | url: '/zSecret/all', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | |
| | | // 根据id查询所有收支台账信息 |
| | | export function getSecretInfo(id) { |
| | | return request({ |
| | | url: '/zSecret/' + id, |
| | | method: 'get', |
| | | |
| | | }) |
| | | } |
| | | //新增收支台账 |
| | | export function addSecret(data) |
| | | { |
| | | return request({ |
| | | url: '/zSecret', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 删除家庭设备 |
| | | export function delSecret(Ids) { |
| | | return request({ |
| | | url: '/zSecret/' + Ids, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | | |
| | | //修改家庭设备 |
| | | export function updateSecret(data) { |
| | | return request({ |
| | | url: '/zSecret', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | //上传文件 |
| | | export function uploadPic(data) { |
| | | return request({ |
| | | url: '/common/upload', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | //下载文件 |
| | | export function download(data) { |
| | | return request({ |
| | | url: '/common/downLoadFile', |
| | | method: 'get', |
| | | params: data, |
| | | responseType: 'blob' |
| | | }) |
| | | } |
| | | |
| | | |