提交 | 用户 | 时间
|
afc4d5
|
1 |
import request from '@/config/axios' |
D |
2 |
|
|
3 |
// 查询列表 |
|
4 |
export const getPage = (params) => { |
|
5 |
return request.get({ url: '/model/chart/page', params}) |
|
6 |
} |
|
7 |
|
|
8 |
// 获得 |
|
9 |
export const get = (id) => { |
|
10 |
return request.get({ url: '/model/chart/get?id=' + id }) |
|
11 |
} |
|
12 |
|
|
13 |
// 新增 |
|
14 |
export const create = (data) => { |
|
15 |
return request.post({ url: '/model/chart/create', data }) |
|
16 |
} |
|
17 |
|
|
18 |
// 修改 |
|
19 |
export const update = (data) => { |
|
20 |
return request.put({ url: '/model/chart/update', data }) |
|
21 |
} |
|
22 |
|
|
23 |
// 删除 |
|
24 |
export const del = (id) => { |
|
25 |
return request.delete({ url: '/model/chart/delete?id=' + id }) |
|
26 |
} |