refine table example demo

This commit is contained in:
Pan
2017-04-23 14:50:51 +08:00
parent 6d9ddadcf1
commit 3e3819cae3
4 changed files with 74 additions and 87 deletions

View File

@@ -1,48 +1,17 @@
import { fetch } from 'utils/fetch';
import { param } from 'utils';
// export function calendarsList(query) {
// return fetch({
// url: '/finfo/calendars?' + param(query),
// method: 'get'
// });
// }
export function fetchList(query) {
return fetch({
url: '/article_table/list',
method: 'get'
method: 'get',
params: query
});
}
export function calendarCreate(data) {
export function fetchPv(pv) {
return fetch({
url: '/finfo/calendar/create',
method: 'post',
data
});
}
export function calendarDelete(id) {
return fetch({
url: '/finfo/calendar/delete',
method: 'post',
data: { id }
});
}
export function calendarUpdate(data) {
return fetch({
url: '/finfo/calendar/update',
method: 'post',
data
});
}
export function calcountriesList() {
return fetch({
url: '/finfo/calcountries',
method: 'get'
url: '/article_table/pv',
method: 'get',
params: { pv }
});
}