| | |
| | | // 新增字典类型 |
| | | export function addType(data) { |
| | | return request({ |
| | | url: '/system/dict/type', |
| | | url: '/system/dict/type/add', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | // 修改字典类型 |
| | | export function updateType(data) { |
| | | return request({ |
| | | url: '/system/dict/type', |
| | | method: 'put', |
| | | url: '/system/dict/type/edit', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | |
| | | export function delType(dictId) { |
| | | return request({ |
| | | url: '/system/dict/type/' + dictId, |
| | | method: 'delete' |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | |
| | | export function refreshCache() { |
| | | return request({ |
| | | url: '/system/dict/type/refreshCache', |
| | | method: 'delete' |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | |
| | | url: '/system/dict/type/optionselect', |
| | | method: 'get' |
| | | }) |
| | | } |
| | | } |