You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
875 B
52 lines
875 B
import request from '@/axios'; |
|
|
|
export const getList = (current, size, params) => { |
|
return request({ |
|
url: '/blade-system/region/list', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
}, |
|
}); |
|
}; |
|
|
|
export const getLazyTree = (parentCode, params) => { |
|
return request({ |
|
url: '/blade-system/region/lazy-tree', |
|
method: 'get', |
|
params: { |
|
...params, |
|
parentCode, |
|
}, |
|
}); |
|
}; |
|
|
|
export const getDetail = code => { |
|
return request({ |
|
url: '/blade-system/region/detail', |
|
method: 'get', |
|
params: { |
|
code, |
|
}, |
|
}); |
|
}; |
|
|
|
export const remove = id => { |
|
return request({ |
|
url: '/blade-system/region/remove', |
|
method: 'post', |
|
params: { |
|
id, |
|
}, |
|
}); |
|
}; |
|
|
|
export const submit = row => { |
|
return request({ |
|
url: '/blade-system/region/submit', |
|
method: 'post', |
|
data: row, |
|
}); |
|
};
|
|
|